1 // Copyright (c) Charles J. Cliffe 2 // SPDX-License-Identifier: GPL-2.0+ 3 4 #pragma once 5 6 #include "wx/dialog.h" 7 #include "wx/textctrl.h" 8 #include "wx/string.h" 9 #include "wx/button.h" 10 #include "DemodulatorInstance.h" 11 12 #define wxID_LABEL_INPUT 3002 13 14 class DemodLabelDialog : public wxDialog 15 { 16 public: 17 18 DemodLabelDialog( wxWindow * parent, wxWindowID id, const wxString & title, 19 DemodulatorInstancePtr demod = nullptr, 20 const wxPoint & pos = wxDefaultPosition, 21 const wxSize & size = wxDefaultSize, 22 long style = wxDEFAULT_DIALOG_STYLE); 23 24 wxTextCtrl * dialogText; 25 26 private: 27 DemodulatorInstancePtr activeDemod = nullptr; 28 void OnChar ( wxKeyEvent &event ); 29 void OnShow(wxShowEvent &event); 30 DECLARE_EVENT_TABLE() 31 }; 32