20 #ifndef PROJECTMANAGERFORQT_H
21 #define PROJECTMANAGERFORQT_H
23 #include "../core/adapters/projectmanageradapter.h"
128 #endif // PROJECTMANAGERFORQT_H
ProjectManagerForQt(MainWindow *mainwindow)
Default constructor.
void setCurrentPath(QString path)
Function to set the current path for the file dialog.
virtual void fillNew(Piano &piano) overridefinal
Fills the given Piano with default values and texts.
Implementation of the ProjectManagerAdapter in Qt.
QString getCurrentPath() const
Function to get the current path for the file dialog.
MainWindow * mMainWindow
The main window.
virtual Results share() overridefinal
Handle the share button.
virtual void showSaveError() overridefinal
Shows an error message if an error during saving occured.
virtual void showOpenError() overridefinal
Shows an error message if an error during open occured.
Results
Enumeration of the possible outcomes of a typical mouse button.
virtual ~ProjectManagerForQt()
Empty virtual destructor.
virtual Results askForSaving() overridefinal
Displays a standard message box if the user wants to save the changes made.
virtual FileDialogResult getOpenPath(int fileType) overridefinal
Opens a QFileDialog to get a path to open a file.
QString getFileFilters(int fileTypes, bool addAll) const
virtual Results editFile() overridefinal
Opens the EditPianoSheetDialog to edit the piano data sheet.
virtual FileDialogResult getSavePath(int fileType) overridefinal
Opens a QFileDialog to get a path to save the file to.
Project manager adapter class.