diff options
author | Chris Robinson <[email protected]> | 2016-02-22 07:56:05 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-02-22 07:56:05 -0800 |
commit | 840fa1b5e8fe8c677a3cb3ed1178c222848317e0 (patch) | |
tree | 0c3385bd5f976bdd571da838b13f534e83e7da65 /utils/alsoft-config/mainwindow.h | |
parent | 9d94f792de3c1bcd8260c0510c63ab5656ce07bf (diff) |
Add a warning if closing alsoft-config with unsaved changes
Diffstat (limited to 'utils/alsoft-config/mainwindow.h')
-rw-r--r-- | utils/alsoft-config/mainwindow.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/alsoft-config/mainwindow.h b/utils/alsoft-config/mainwindow.h index 0f94c0ce..dfa69ca2 100644 --- a/utils/alsoft-config/mainwindow.h +++ b/utils/alsoft-config/mainwindow.h @@ -17,11 +17,15 @@ public: ~MainWindow(); private slots: + void cancelCloseAction(); + void saveCurrentConfig(); void saveConfigAsFile(); void loadConfigFromFile(); + void enableApplyButton(); + void updateResamplerLabel(int num); void updatePeriodSizeEdit(int size); @@ -47,6 +51,10 @@ private: QValidator *mSourceSendValidator; QValidator *mSampleRateValidator; + bool mNeedsSave; + + void closeEvent(QCloseEvent *event); + void loadConfig(const QString &fname); void saveConfig(const QString &fname) const; }; |