diff options
Diffstat (limited to 'gui/wxmain.hpp')
-rw-r--r-- | gui/wxmain.hpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/gui/wxmain.hpp b/gui/wxmain.hpp index b0f73a6..4e56326 100644 --- a/gui/wxmain.hpp +++ b/gui/wxmain.hpp @@ -18,18 +18,30 @@ class MainFrame : public wxFrame { - enum Id { - Single = 1, - ConnectDevice, - UploadFilter, - RenderTimer - }; +public: + MainFrame(); + + void onPaint(wxPaintEvent& pe); + void onSinglePressed(wxCommandEvent& ce); + void onConnectPressed(wxCommandEvent& ce); + void onUploadPressed(wxCommandEvent& ce); + void onRenderTimer(wxTimerEvent& te); + + void onFileNew(wxCommandEvent&); + void onFileOpen(wxCommandEvent&); + void onFileSave(wxCommandEvent&); + void onFileSaveAs(wxCommandEvent&); + + void doSingle(); + void updateDrawing(); +private: bool m_is_rendering = false; wxTimer *m_render_timer = nullptr; wxComboBox *m_device_combo = nullptr; wxStyledTextCtrl *m_text_editor = nullptr; wxControl *m_signal_area = nullptr; + wxString m_open_file_path; stmdsp::device *m_device = nullptr; std::future<std::vector<stmdsp::adcsample_t>> m_device_samples_future; @@ -38,18 +50,6 @@ class MainFrame : public wxFrame bool tryDevice(); void prepareEditor(); wxString compileEditorCode(); - -public: - MainFrame(); - - void onPaint(wxPaintEvent& pe); - void onSinglePressed(wxCommandEvent& ce); - void onConnectPressed(wxCommandEvent& ce); - void onUploadPressed(wxCommandEvent& ce); - void onRenderTimer(wxTimerEvent& te); - - void doSingle(); - void updateDrawing(); }; #endif // WXMAIN_HPP_ |