diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2020-10-19 21:01:53 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2020-10-19 21:01:53 -0400 |
commit | f1ad9796741daa8368f4885bbce360522df24367 (patch) | |
tree | 48416337fd661d8a12e90d2d7d8fb6dbbc6aa83b /gui/wxmain.hpp | |
parent | 241a089c39c77345e8e0a0c8a04301ba2271e432 (diff) |
gui improvements; code templates
Diffstat (limited to 'gui/wxmain.hpp')
-rw-r--r-- | gui/wxmain.hpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gui/wxmain.hpp b/gui/wxmain.hpp index 268a08d..ce3e5a5 100644 --- a/gui/wxmain.hpp +++ b/gui/wxmain.hpp @@ -23,18 +23,23 @@ class MainFrame : public wxFrame public: MainFrame(); + void onCloseEvent(wxCloseEvent&); + void onFileNew(wxCommandEvent&); void onFileOpen(wxCommandEvent&); + void onFileOpenTemplate(wxCommandEvent&); void onFileSave(wxCommandEvent&); void onFileSaveAs(wxCommandEvent&); void onFileQuit(wxCommandEvent&); void onRunConnect(wxCommandEvent&); void onRunStart(wxCommandEvent&); - void onRunCompile(wxCommandEvent&); void onRunUpload(wxCommandEvent&); void onRunUnload(wxCommandEvent&); + void onRunCompile(wxCommandEvent&); + void onCodeDisassemble(wxCommandEvent&); + void onMeasureTimer(wxTimerEvent& te); private: @@ -46,13 +51,16 @@ private: wxMenuItem *m_run_measure = nullptr; wxTimer *m_measure_timer = nullptr; wxStatusBar *m_status_bar = nullptr; + wxMenuBar *m_menu_bar = nullptr; wxString m_open_file_path; + wxString m_temp_file_name; stmdsp::device *m_device = nullptr; bool tryDevice(); void prepareEditor(); wxString compileEditorCode(); + wxMenu *loadTemplates(); }; #endif // WXMAIN_HPP_ |