CubicSDR/src/FrequencyDialog.h

31 lines
992 B
C
Raw Normal View History

2015-05-04 19:44:03 -04:00
#pragma once
#include "wx/dialog.h"
#include "wx/textctrl.h"
#include "wx/string.h"
#include "wx/button.h"
2015-05-10 01:39:10 -04:00
#include "DemodulatorInstance.h"
2015-05-04 19:44:03 -04:00
#define wxID_FREQ_INPUT 3001
2015-05-04 19:44:03 -04:00
class FrequencyDialog: public wxDialog
{
public:
typedef enum FrequencyDialogTarget { FDIALOG_TARGET_DEFAULT, FDIALOG_TARGET_CENTERFREQ, FDIALOG_TARGET_FREQ, FDIALOG_TARGET_BANDWIDTH } FrequencyDialogTarget;
2015-05-04 19:44:03 -04:00
FrequencyDialog ( wxWindow * parent, wxWindowID id, const wxString & title,
2015-05-10 01:39:10 -04:00
DemodulatorInstance *demod = NULL,
2015-05-04 19:44:03 -04:00
const wxPoint & pos = wxDefaultPosition,
const wxSize & size = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE,
FrequencyDialogTarget targetMode = FDIALOG_TARGET_DEFAULT);
2015-05-04 19:44:03 -04:00
wxTextCtrl * dialogText;
private:
2015-05-10 01:39:10 -04:00
DemodulatorInstance *activeDemod;
2015-05-04 19:44:03 -04:00
void OnEnter ( wxCommandEvent &event );
void OnChar ( wxKeyEvent &event );
FrequencyDialogTarget targetMode;
2015-05-04 19:44:03 -04:00
DECLARE_EVENT_TABLE()
};