Removed print and merge-properties action artifacts from main window.

This commit is contained in:
Jim Evins
2015-08-22 14:11:54 -04:00
parent 9fa2b13522
commit 27e006d3e4
2 changed files with 0 additions and 41 deletions
-37
View File
@@ -185,12 +185,6 @@ namespace glabels
fileSaveAsAction->setStatusTip( tr("Save current file to a different name") ); fileSaveAsAction->setStatusTip( tr("Save current file to a different name") );
connect( fileSaveAsAction, SIGNAL(triggered()), this, SLOT(fileSaveAs()) ); connect( fileSaveAsAction, SIGNAL(triggered()), this, SLOT(fileSaveAs()) );
filePrintAction = new QAction( tr("&Print..."), this );
filePrintAction->setIcon( QIcon::fromTheme( "document-print", Icons::Fallback::FilePrint() ) );
filePrintAction->setShortcut( QKeySequence::Print );
filePrintAction->setStatusTip( tr("Print the current file") );
connect( filePrintAction, SIGNAL(triggered()), this, SLOT(filePrint()) );
filePropertiesAction = new QAction( tr("Properties..."), this ); filePropertiesAction = new QAction( tr("Properties..."), this );
filePropertiesAction->setIcon( QIcon::fromTheme( "document-properties" ) ); filePropertiesAction->setIcon( QIcon::fromTheme( "document-properties" ) );
filePropertiesAction->setStatusTip( tr("Modify document properties") ); filePropertiesAction->setStatusTip( tr("Modify document properties") );
@@ -419,11 +413,6 @@ namespace glabels
objectsCenterVertAction->setStatusTip( tr("Vertically center objects in label") ); objectsCenterVertAction->setStatusTip( tr("Vertically center objects in label") );
connect( objectsCenterVertAction, SIGNAL(triggered()), this, SLOT(objectsCenterVert()) ); connect( objectsCenterVertAction, SIGNAL(triggered()), this, SLOT(objectsCenterVert()) );
objectsMergePropertiesAction = new QAction( tr("Merge Properties..."), this );
objectsMergePropertiesAction->setIcon( Icons::Merge() );
objectsMergePropertiesAction->setStatusTip( tr("Edit merge properties") );
connect( objectsMergePropertiesAction, SIGNAL(triggered()), this, SLOT(objectsMergeProperties()) );
/* Help actions */ /* Help actions */
helpContentsAction = new QAction( tr("&Contents..."), this ); helpContentsAction = new QAction( tr("&Contents..."), this );
@@ -450,8 +439,6 @@ namespace glabels
fileMenu->addAction( fileSaveAction ); fileMenu->addAction( fileSaveAction );
fileMenu->addAction( fileSaveAsAction ); fileMenu->addAction( fileSaveAsAction );
fileMenu->addSeparator(); fileMenu->addSeparator();
fileMenu->addAction( filePrintAction );
fileMenu->addSeparator();
fileMenu->addAction( filePropertiesAction ); fileMenu->addAction( filePropertiesAction );
fileMenu->addAction( fileTemplateDesignerAction ); fileMenu->addAction( fileTemplateDesignerAction );
fileMenu->addSeparator(); fileMenu->addSeparator();
@@ -514,8 +501,6 @@ namespace glabels
objectsCenterMenu = objectsMenu->addMenu( tr("Center") ); objectsCenterMenu = objectsMenu->addMenu( tr("Center") );
objectsCenterMenu->addAction( objectsCenterHorizAction ); objectsCenterMenu->addAction( objectsCenterHorizAction );
objectsCenterMenu->addAction( objectsCenterVertAction ); objectsCenterMenu->addAction( objectsCenterVertAction );
objectsMenu->addSeparator();
objectsMenu->addAction( objectsMergePropertiesAction );
helpMenu = menuBar()->addMenu( tr("&Help") ); helpMenu = menuBar()->addMenu( tr("&Help") );
helpMenu->addAction( helpContentsAction ); helpMenu->addAction( helpContentsAction );
@@ -532,8 +517,6 @@ namespace glabels
fileToolBar->addAction( fileNewAction ); fileToolBar->addAction( fileNewAction );
fileToolBar->addAction( fileOpenAction ); fileToolBar->addAction( fileOpenAction );
fileToolBar->addAction( fileSaveAction ); fileToolBar->addAction( fileSaveAction );
fileToolBar->addSeparator();
fileToolBar->addAction( filePrintAction );
editorToolBar = new QToolBar( tr("&Editor") ); editorToolBar = new QToolBar( tr("&Editor") );
editorToolBar->addAction( objectsArrowModeAction ); editorToolBar->addAction( objectsArrowModeAction );
@@ -634,7 +617,6 @@ namespace glabels
filePropertiesAction->setEnabled( enabled ); filePropertiesAction->setEnabled( enabled );
fileSaveAction->setEnabled( enabled ); fileSaveAction->setEnabled( enabled );
fileSaveAsAction->setEnabled( enabled ); fileSaveAsAction->setEnabled( enabled );
filePrintAction->setEnabled( enabled );
editUndoAction->setEnabled( enabled ); editUndoAction->setEnabled( enabled );
editRedoAction->setEnabled( enabled ); editRedoAction->setEnabled( enabled );
editCutAction->setEnabled( enabled ); editCutAction->setEnabled( enabled );
@@ -675,7 +657,6 @@ namespace glabels
objectsCenterMenu->setEnabled( enabled ); objectsCenterMenu->setEnabled( enabled );
objectsCenterHorizAction->setEnabled( enabled ); objectsCenterHorizAction->setEnabled( enabled );
objectsCenterVertAction->setEnabled( enabled ); objectsCenterVertAction->setEnabled( enabled );
objectsMergePropertiesAction->setEnabled( enabled );
} }
@@ -837,15 +818,6 @@ namespace glabels
} }
///
/// File->Print Action
///
void MainWindow::filePrint()
{
File::print( this );
}
/// ///
/// File->Properties Action /// File->Properties Action
/// ///
@@ -1224,15 +1196,6 @@ namespace glabels
} }
///
/// Objects->Merge Properties Action
///
void MainWindow::objectsMergeProperties()
{
qDebug() << "ACTION: objects->Merge Properties...";
}
/// ///
/// Help->Contents Action /// Help->Contents Action
/// ///
-4
View File
@@ -82,7 +82,6 @@ namespace glabels
void fileOpen(); void fileOpen();
void fileSave(); void fileSave();
void fileSaveAs(); void fileSaveAs();
void filePrint();
void fileProperties(); void fileProperties();
void fileTemplateDesigner(); void fileTemplateDesigner();
void fileClose(); void fileClose();
@@ -128,7 +127,6 @@ namespace glabels
void objectsAlignBottom(); void objectsAlignBottom();
void objectsCenterHoriz(); void objectsCenterHoriz();
void objectsCenterVert(); void objectsCenterVert();
void objectsMergeProperties();
void helpContents(); void helpContents();
void helpAbout(); void helpAbout();
@@ -202,7 +200,6 @@ namespace glabels
QAction* fileOpenAction; QAction* fileOpenAction;
QAction* fileSaveAction; QAction* fileSaveAction;
QAction* fileSaveAsAction; QAction* fileSaveAsAction;
QAction* filePrintAction;
QAction* filePropertiesAction; QAction* filePropertiesAction;
QAction* fileTemplateDesignerAction; QAction* fileTemplateDesignerAction;
QAction* fileCloseAction; QAction* fileCloseAction;
@@ -248,7 +245,6 @@ namespace glabels
QAction* objectsAlignBottomAction; QAction* objectsAlignBottomAction;
QAction* objectsCenterHorizAction; QAction* objectsCenterHorizAction;
QAction* objectsCenterVertAction; QAction* objectsCenterVertAction;
QAction* objectsMergePropertiesAction;
QAction* helpContentsAction; QAction* helpContentsAction;
QAction* helpAboutAction; QAction* helpAboutAction;