1 #ifndef SAVENEWREVISIONDIALOG_H 2 #define SAVENEWREVISIONDIALOG_H 3 4 #include <QDialog> 5 #include <QFileInfo> 6 7 namespace Ui { 8 class SaveNewRevisionDialog; 9 } 10 11 namespace MusEGui { 12 13 14 15 class SaveNewRevisionDialog : public QDialog 16 { 17 Q_OBJECT 18 19 public: 20 explicit SaveNewRevisionDialog(QWidget *parent, QFileInfo projectFileInfo); 21 ~SaveNewRevisionDialog(); 22 23 QString getNewRevision(); 24 QString getNewRevisionWithDialog(); 25 26 private slots: 27 void accept() override; 28 void reject() override; 29 30 private: 31 QString buildFilePath(QString newName); 32 33 Ui::SaveNewRevisionDialog *ui; 34 QFileInfo _projectFileInfo; 35 }; 36 37 } // namespace MusEGui 38 39 #endif // SAVENEWREVISIONDIALOG_H 40