diff --git a/doc/index.docbook b/doc/index.docbook --- a/doc/index.docbook +++ b/doc/index.docbook @@ -186,7 +186,7 @@ Buttons - There are five buttons located at the bottom of the &spectacle; window. Their functions are described below: + There are six buttons located at the bottom of the &spectacle; window. Their functions are described below: @@ -202,7 +202,13 @@ - Export Image... + Tools + + Clicking on this button shows a drop-down menu, offering access to the print dialog. + + + + Export This drop-down menu will allow you to directly open the screenshot with all programs that are associated with the PNG (Portable Network Graphics) &MIME; type. Depending on what programs are installed, you will be able to open and edit the snapshot in your graphics applications or viewers. diff --git a/src/Gui/KSMainWindow.h b/src/Gui/KSMainWindow.h --- a/src/Gui/KSMainWindow.h +++ b/src/Gui/KSMainWindow.h @@ -73,12 +73,14 @@ KSWidget *mKSWidget; QFrame *mDivider; QDialogButtonBox *mDialogButtonBox; - QPushButton *mSendToButton; QToolButton *mConfigureButton; + QPushButton *mToolsButton; + QPushButton *mSendToButton; QToolButton *mClipboardButton; QToolButton *mSaveButton; QMenu *mSaveMenu; KMessageWidget *mMessageWidget; + QMenu *mToolsMenu; ExportMenu *mExportMenu; bool mOnClickAvailable; }; diff --git a/src/Gui/KSMainWindow.cpp b/src/Gui/KSMainWindow.cpp --- a/src/Gui/KSMainWindow.cpp +++ b/src/Gui/KSMainWindow.cpp @@ -51,12 +51,14 @@ mKSWidget(new KSWidget), mDivider(new QFrame), mDialogButtonBox(new QDialogButtonBox), - mSendToButton(new QPushButton), mConfigureButton(new QToolButton), + mToolsButton(new QPushButton), + mSendToButton(new QPushButton), mClipboardButton(new QToolButton), mSaveButton(new QToolButton), mSaveMenu(new QMenu), mMessageWidget(new KMessageWidget), + mToolsMenu(new QMenu), mExportMenu(new ExportMenu(this)), mOnClickAvailable(onClickAvailable) { @@ -132,7 +134,13 @@ mConfigureButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon); mDialogButtonBox->addButton(mConfigureButton, QDialogButtonBox::ResetRole); - KGuiItem::assign(mSendToButton, KGuiItem(i18n("Export Image..."))); + KGuiItem::assign(mToolsButton, KGuiItem(i18n("Tools"))); + mToolsButton->setIcon(QIcon::fromTheme(QStringLiteral("application-menu"))); + mDialogButtonBox->addButton(mToolsButton, QDialogButtonBox::ActionRole); + mToolsMenu->addAction(KStandardAction::print(this, SLOT(showPrintDialog()), this)); + mToolsButton->setMenu(mToolsMenu); + + KGuiItem::assign(mSendToButton, KGuiItem(i18n("Export"))); mSendToButton->setIcon(QIcon::fromTheme(QStringLiteral("document-share"))); mDialogButtonBox->addButton(mSendToButton, QDialogButtonBox::ActionRole); @@ -220,9 +228,6 @@ mSaveMenu->addAction(actionSaveAs); break; } - - // finish off building the menu - mSaveMenu->addAction(KStandardAction::print(this, SLOT(showPrintDialog()), this)); } // overrides