Added two standard paths to file open/save dialog

In particular Desktop and Downloads have been added.
Also introduced a new function to create a file dialog
in order to prevent code duplication.
This commit is contained in:
Lukas W
2014-01-22 17:07:50 +01:00
parent 054abf79f7
commit f073c6d11b
2 changed files with 44 additions and 21 deletions

View File

@@ -36,6 +36,7 @@ class QAction;
class QDomElement;
class QGridLayout;
class QMdiArea;
class QFileDialog;
class configManager;
class PluginView;
@@ -99,6 +100,7 @@ public slots:
}
void createNewProject( void );
void createNewProjectFromTemplate( QAction * _idx );
QFileDialog* newFileDialog( const QString & caption = QString(), const QString & directory = QString(), const QString & filter = QString() );
void openProject( void );
bool saveProject( void );
bool saveProjectAs( void );