Removed OBE properties action. Reworded some tooltips.

This commit is contained in:
Jim Evins
2016-03-28 22:48:55 -04:00
parent 90012b97e6
commit 7382074477
2 changed files with 4 additions and 22 deletions
+4 -20
View File
@@ -173,32 +173,27 @@ void MainWindow::createActions()
fileNewAction = new QAction( tr("&New..."), this ); fileNewAction = new QAction( tr("&New..."), this );
fileNewAction->setIcon( QIcon::fromTheme( "document-new", Icons::Fallback::FileNew() ) ); fileNewAction->setIcon( QIcon::fromTheme( "document-new", Icons::Fallback::FileNew() ) );
fileNewAction->setShortcut( QKeySequence::New ); fileNewAction->setShortcut( QKeySequence::New );
fileNewAction->setStatusTip( tr("Create a new file") ); fileNewAction->setStatusTip( tr("Create a new gLabels project") );
connect( fileNewAction, SIGNAL(triggered()), this, SLOT(fileNew()) ); connect( fileNewAction, SIGNAL(triggered()), this, SLOT(fileNew()) );
fileOpenAction = new QAction( tr("&Open..."), this ); fileOpenAction = new QAction( tr("&Open..."), this );
fileOpenAction->setIcon( QIcon::fromTheme( "document-open", Icons::Fallback::FileOpen() ) ); fileOpenAction->setIcon( QIcon::fromTheme( "document-open", Icons::Fallback::FileOpen() ) );
fileOpenAction->setShortcut( QKeySequence::Open ); fileOpenAction->setShortcut( QKeySequence::Open );
fileOpenAction->setStatusTip( tr("Open a file") ); fileOpenAction->setStatusTip( tr("Open an existing gLabels project") );
connect( fileOpenAction, SIGNAL(triggered()), this, SLOT(fileOpen()) ); connect( fileOpenAction, SIGNAL(triggered()), this, SLOT(fileOpen()) );
fileSaveAction = new QAction( tr("&Save"), this ); fileSaveAction = new QAction( tr("&Save"), this );
fileSaveAction->setIcon( QIcon::fromTheme( "document-save", Icons::Fallback::FileSave() ) ); fileSaveAction->setIcon( QIcon::fromTheme( "document-save", Icons::Fallback::FileSave() ) );
fileSaveAction->setShortcut( QKeySequence::Save ); fileSaveAction->setShortcut( QKeySequence::Save );
fileSaveAction->setStatusTip( tr("Save current file") ); fileSaveAction->setStatusTip( tr("Save current gLabels project") );
connect( fileSaveAction, SIGNAL(triggered()), this, SLOT(fileSave()) ); connect( fileSaveAction, SIGNAL(triggered()), this, SLOT(fileSave()) );
fileSaveAsAction = new QAction( tr("Save &As..."), this ); fileSaveAsAction = new QAction( tr("Save &As..."), this );
fileSaveAsAction->setIcon( QIcon::fromTheme( "document-save-as", Icons::Fallback::FileSaveAs() ) ); fileSaveAsAction->setIcon( QIcon::fromTheme( "document-save-as", Icons::Fallback::FileSaveAs() ) );
fileSaveAsAction->setShortcut( QKeySequence::SaveAs ); fileSaveAsAction->setShortcut( QKeySequence::SaveAs );
fileSaveAsAction->setStatusTip( tr("Save current file to a different name") ); fileSaveAsAction->setStatusTip( tr("Save current gLabels project to a different name") );
connect( fileSaveAsAction, SIGNAL(triggered()), this, SLOT(fileSaveAs()) ); connect( fileSaveAsAction, SIGNAL(triggered()), this, SLOT(fileSaveAs()) );
filePropertiesAction = new QAction( tr("Properties..."), this );
filePropertiesAction->setIcon( QIcon::fromTheme( "document-properties" ) );
filePropertiesAction->setStatusTip( tr("Modify document properties") );
connect( filePropertiesAction, SIGNAL(triggered()), this, SLOT(fileProperties()) );
fileTemplateDesignerAction = new QAction( tr("Template &Designer..."), this ); fileTemplateDesignerAction = new QAction( tr("Template &Designer..."), this );
fileTemplateDesignerAction->setStatusTip( tr("Create custom templates") ); fileTemplateDesignerAction->setStatusTip( tr("Create custom templates") );
connect( fileTemplateDesignerAction, SIGNAL(triggered()), this, SLOT(fileTemplateDesigner()) ); connect( fileTemplateDesignerAction, SIGNAL(triggered()), this, SLOT(fileTemplateDesigner()) );
@@ -470,7 +465,6 @@ void MainWindow::createMenus()
fileMenu->addAction( fileSaveAction ); fileMenu->addAction( fileSaveAction );
fileMenu->addAction( fileSaveAsAction ); fileMenu->addAction( fileSaveAsAction );
fileMenu->addSeparator(); fileMenu->addSeparator();
fileMenu->addAction( filePropertiesAction );
fileMenu->addAction( fileTemplateDesignerAction ); fileMenu->addAction( fileTemplateDesignerAction );
fileMenu->addSeparator(); fileMenu->addSeparator();
fileMenu->addAction( fileCloseAction ); fileMenu->addAction( fileCloseAction );
@@ -682,7 +676,6 @@ QWidget* MainWindow::createPrintPage()
/// ///
void MainWindow::setDocVerbsEnabled( bool enabled ) void MainWindow::setDocVerbsEnabled( bool enabled )
{ {
filePropertiesAction->setEnabled( enabled );
fileSaveAction->setEnabled( enabled ); fileSaveAction->setEnabled( enabled );
fileSaveAsAction->setEnabled( enabled ); fileSaveAsAction->setEnabled( enabled );
editUndoAction->setEnabled( enabled ); editUndoAction->setEnabled( enabled );
@@ -886,15 +879,6 @@ void MainWindow::fileSaveAs()
} }
///
/// File->Properties Action
///
void MainWindow::fileProperties()
{
qDebug() << "ACTION: file->Properties";
}
/// ///
/// File->Template Designer Action /// File->Template Designer Action
/// ///
-2
View File
@@ -83,7 +83,6 @@ private slots:
void fileOpen(); void fileOpen();
void fileSave(); void fileSave();
void fileSaveAs(); void fileSaveAs();
void fileProperties();
void fileTemplateDesigner(); void fileTemplateDesigner();
void fileClose(); void fileClose();
void fileExit(); void fileExit();
@@ -214,7 +213,6 @@ private:
QAction* fileOpenAction; QAction* fileOpenAction;
QAction* fileSaveAction; QAction* fileSaveAction;
QAction* fileSaveAsAction; QAction* fileSaveAsAction;
QAction* filePropertiesAction;
QAction* fileTemplateDesignerAction; QAction* fileTemplateDesignerAction;
QAction* fileCloseAction; QAction* fileCloseAction;
QAction* fileExitAction; QAction* fileExitAction;