diff options
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r-- | src/mainwindow.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h index 1138dfb..a2e2271 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -42,10 +42,31 @@ class MainWindow public: MainWindow(QString program); +protected: + void closeEvent(QCloseEvent*); + private slots: + // Menubar + void newFile(); + void loadFile(); + void loadFile(QString filename); + void saveFile(); + void saveFileAs(); + + // Toolbar + void stop(); + void start(); void reset(); + void programChanged(); + private: + bool checkDirty(); + void setWindowEnabled(bool enabled); + void updateWindowTitle(); + + bool dirty{false}; + QAction* act_save; CodeEditor *editor; QFileSystemWatcher watcher; |