Added ReportBugDialog to Help menu.

- Also renamed "File" toolbar to "Quick Access" toolbar (#13).
This commit is contained in:
Jim Evins
2019-01-27 21:46:56 -05:00
parent 212578c380
commit 0e60c52d4c
11 changed files with 555 additions and 20 deletions
+19 -4
View File
@@ -384,14 +384,14 @@ namespace glabels
/* View actions */
viewFileToolBarAction = new QAction( tr("File"), this );
viewFileToolBarAction = new QAction( tr("Quick Access"), this );
viewFileToolBarAction->setCheckable( true );
viewFileToolBarAction->setStatusTip( tr("Change visibility of file toolbar in current window") );
viewFileToolBarAction->setStatusTip( tr("Change visibility of the \"Quick Access\" toolbar in current window") );
connect( viewFileToolBarAction, SIGNAL(toggled(bool)), this, SLOT(viewFileToolBar(bool)) );
viewEditorToolBarAction = new QAction( tr("Editor"), this );
viewEditorToolBarAction->setCheckable( true );
viewEditorToolBarAction->setStatusTip( tr("Change visibility of editor toolbar in current window") );
viewEditorToolBarAction->setStatusTip( tr("Change visibility of the \"Editor\" toolbar in current window") );
connect( viewEditorToolBarAction, SIGNAL(toggled(bool)), this, SLOT(viewEditorToolBar(bool)) );
@@ -536,12 +536,16 @@ namespace glabels
/* Help actions */
helpContentsAction = new QAction( tr("&Contents..."), this );
helpContentsAction = new QAction( tr("&User Manual..."), this );
helpContentsAction->setIcon( QIcon::fromTheme( "help-contents" ) );
helpContentsAction->setShortcut( QKeySequence::HelpContents );
helpContentsAction->setStatusTip( tr("Open gLabels manual") );
connect( helpContentsAction, SIGNAL(triggered()), this, SLOT(helpContents()) );
helpReportBugAction = new QAction( tr("&Report Bug..."), this );
helpReportBugAction->setStatusTip( tr("Report a bug to the developers") );
connect( helpReportBugAction, SIGNAL(triggered()), this, SLOT(helpReportBug()) );
helpAboutAction = new QAction( tr("&About..."), this );
helpAboutAction->setIcon( QIcon::fromTheme( "help-about" ) );
helpAboutAction->setStatusTip( tr("About gLabels") );
@@ -651,6 +655,7 @@ namespace glabels
helpMenu = menuBar()->addMenu( tr("&Help") );
helpMenu->addAction( helpContentsAction );
helpMenu->addAction( helpReportBugAction );
helpMenu->addAction( helpAboutAction );
contextMenu = new QMenu();
@@ -897,6 +902,7 @@ namespace glabels
// Help actions
helpContentsAction->setEnabled( true );
helpReportBugAction->setEnabled( true );
helpAboutAction->setEnabled( true );
// Special context actions
@@ -1530,6 +1536,15 @@ namespace glabels
}
///
/// Help->Report Bug Action
///
void MainWindow::helpReportBug()
{
Help::displayReportBug( this );
}
///
/// Help->About Action
///