mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-17 22:00:29 +02:00
Moved Save Project Button to Menu
This commit is contained in:
@@ -389,8 +389,8 @@ void IntelliPhotoGui::createActions(){
|
|||||||
actionSaveAs.append(action);
|
actionSaveAs.append(action);
|
||||||
}
|
}
|
||||||
|
|
||||||
//set exporter to actions
|
// Set exporter to actions
|
||||||
QAction*pngSaveAction = new QAction("PNG-8", this);
|
QAction*pngSaveAction = new QAction("PNG-8...", this);
|
||||||
pngSaveAction->setData("PNG");
|
pngSaveAction->setData("PNG");
|
||||||
// When clicked call IntelliPhotoGui::save()
|
// When clicked call IntelliPhotoGui::save()
|
||||||
connect(pngSaveAction, SIGNAL(triggered()), this, SLOT(slotSave()));
|
connect(pngSaveAction, SIGNAL(triggered()), this, SLOT(slotSave()));
|
||||||
@@ -398,14 +398,6 @@ void IntelliPhotoGui::createActions(){
|
|||||||
actionSaveAs.append(pngSaveAction);
|
actionSaveAs.append(pngSaveAction);
|
||||||
pngSaveAction->setShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_S));
|
pngSaveAction->setShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_S));
|
||||||
|
|
||||||
QAction*projectSaveAction = new QAction("Projekt", this);
|
|
||||||
projectSaveAction->setData("idf");
|
|
||||||
// When clicked call IntelliPhotoGui::save()
|
|
||||||
connect(projectSaveAction, SIGNAL(triggered()), this, SLOT(slotSave()));
|
|
||||||
// Attach each PNG in save Menu
|
|
||||||
actionSaveAs.append(projectSaveAction);
|
|
||||||
projectSaveAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_S));
|
|
||||||
|
|
||||||
// Create exit action and tie to IntelliPhotoGui::close()
|
// Create exit action and tie to IntelliPhotoGui::close()
|
||||||
actionExit = new QAction(tr("&Exit"), this);
|
actionExit = new QAction(tr("&Exit"), this);
|
||||||
actionExit->setShortcuts(QKeySequence::Quit);
|
actionExit->setShortcuts(QKeySequence::Quit);
|
||||||
@@ -594,17 +586,24 @@ void IntelliPhotoGui::createActions(){
|
|||||||
// Create the menubar
|
// Create the menubar
|
||||||
void IntelliPhotoGui::createMenus(){
|
void IntelliPhotoGui::createMenus(){
|
||||||
// Create Save As option and the list of file types
|
// Create Save As option and the list of file types
|
||||||
saveAsMenu = new QMenu(tr("&Save As"), this);
|
saveAsMenu = new QMenu(tr("&Export As"), this);
|
||||||
foreach (QAction * action, actionSaveAs)
|
foreach (QAction * action, actionSaveAs)
|
||||||
saveAsMenu->addAction(action);
|
saveAsMenu->addAction(action);
|
||||||
|
|
||||||
// Attach all actions to File
|
// Attach all actions to file menu
|
||||||
fileMenu = new QMenu(tr("&File"), this);
|
fileMenu = new QMenu(tr("&File"), this);
|
||||||
fileMenu->addAction(actionOpen);
|
fileMenu->addAction(actionOpen);
|
||||||
fileMenu->addMenu(saveAsMenu);
|
fileMenu->addMenu(saveAsMenu);
|
||||||
fileMenu->addSeparator();
|
fileMenu->addSeparator();
|
||||||
fileMenu->addAction(actionExit);
|
fileMenu->addAction(actionExit);
|
||||||
|
|
||||||
|
// Attach the save project option to file menu
|
||||||
|
QAction*projectSaveAction = new QAction("Save Project", this);
|
||||||
|
projectSaveAction->setData("idf");
|
||||||
|
connect(projectSaveAction, SIGNAL(triggered()), this, SLOT(slotSave()));
|
||||||
|
projectSaveAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_S));
|
||||||
|
fileMenu->addAction(projectSaveAction);
|
||||||
|
|
||||||
// Attach all actions to Render Settings
|
// Attach all actions to Render Settings
|
||||||
renderMenu = new QMenu(tr("&Fast Renderer"), this);
|
renderMenu = new QMenu(tr("&Fast Renderer"), this);
|
||||||
renderMenu->addAction(actionUpdateFastRenderSettingsOn);
|
renderMenu->addAction(actionUpdateFastRenderSettingsOn);
|
||||||
|
|||||||
Reference in New Issue
Block a user