From 673eba7167483a92b7a2b8fbfadcccc1f9c3c651 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sun, 21 Mar 2021 20:09:53 -0400 Subject: improved siggen prompt; WIP split wxmain --- gui/wxsiggen.hpp | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 gui/wxsiggen.hpp (limited to 'gui/wxsiggen.hpp') diff --git a/gui/wxsiggen.hpp b/gui/wxsiggen.hpp new file mode 100644 index 0000000..acf479e --- /dev/null +++ b/gui/wxsiggen.hpp @@ -0,0 +1,42 @@ +/** + * @file wxsiggen.hpp + * @brief Dialog prompt for providing signal generator input. + * + * Copyright (C) 2021 Clyne Sullivan + * + * Distributed under the GNU GPL v3 or later. You should have received a copy of + * the GNU General Public License along with this program. + * If not, see . + */ + +#ifndef WXSIGGEN_HPP_ +#define WXSIGGEN_HPP_ + +#include +#include +#include +#include + +class SiggenDialog : public wxDialog { +public: + SiggenDialog(wxWindow *parent); + ~SiggenDialog(); + + auto Result() const { + return m_result; + } + + void onSourceChange(wxCommandEvent&); + void onSourceFile(wxCommandEvent&); + void onSave(wxCommandEvent&); + +private: + wxStaticText *m_instruction = nullptr; + wxTextCtrl *m_source_list = nullptr; + wxTextCtrl *m_source_math = nullptr; + wxButton *m_source_file = nullptr; + wxString m_result; +}; + +#endif // WXSIGGEN_HPP_ + -- cgit v1.2.3