aboutsummaryrefslogtreecommitdiffstats
path: root/gui/wxmain.hpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2021-02-01 19:03:24 -0500
committerClyne Sullivan <clyne@bitgloo.com>2021-02-01 19:03:24 -0500
commit22a0cd0c82e4c63a8e1a6546218d1ab58f3b6221 (patch)
tree0e2f05f723242f0e9870bd1f95a6c22802c60580 /gui/wxmain.hpp
parent4f59610a00da78639c1909acb09c7dfde4519a28 (diff)
clean up gui states
Diffstat (limited to 'gui/wxmain.hpp')
-rw-r--r--gui/wxmain.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/gui/wxmain.hpp b/gui/wxmain.hpp
index 8068784..e96f51d 100644
--- a/gui/wxmain.hpp
+++ b/gui/wxmain.hpp
@@ -61,7 +61,9 @@ public:
void onMeasureTimer(wxTimerEvent& te);
private:
+ // Set to true if connected and running
bool m_is_running = false;
+
wxComboBox *m_device_combo = nullptr;
wxStyledTextCtrl *m_text_editor = nullptr;
wxTextCtrl *m_compile_output = nullptr;
@@ -71,17 +73,30 @@ private:
wxStatusBar *m_status_bar = nullptr;
wxMenuBar *m_menu_bar = nullptr;
wxComboBox *m_rate_select = nullptr;
+
+ // File handle for logging output samples
+ // Not null when logging is enabled
wxFileOutputStream *m_conv_result_log = nullptr;
+ // File path of currently opened file
+ // Empty if new file
wxString m_open_file_path;
+ // File path for temporary files (e.g. compiled ELF)
+ // Set by compile action
wxString m_temp_file_name;
+ // Device interface
+ // Not null if connected
stmdsp::device *m_device = nullptr;
+ // WAV data for signal generator
+ // Not null when a WAV is loaded
wav::clip *m_wav_clip = nullptr;
bool tryDevice();
void prepareEditor();
wxString compileEditorCode();
wxMenu *loadTemplates();
+ // Updates control availabilities based on device connection
+ void updateMenuOptions();
};
#endif // WXMAIN_HPP_