CubicSDR/src/FrequencyDialog.h

31 lines
767 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"
#define wxID_FREQ_INPUT 3001
2015-05-04 19:44:03 -04:00
class FrequencyDialog: public wxDialog
{
public:
FrequencyDialog ( wxWindow * parent, wxWindowID id, const wxString & title,
const wxPoint & pos = wxDefaultPosition,
const wxSize & size = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE );
wxTextCtrl * dialogText;
long long strToFrequency(std::string freqStr);
std::string frequencyToStr(long long freq);
2015-05-04 19:44:03 -04:00
private:
void OnEnter ( wxCommandEvent &event );
void OnChar ( wxKeyEvent &event );
std::string& filterChars(std::string& s, const std::string& allowed);
2015-05-04 19:44:03 -04:00
DECLARE_EVENT_TABLE()
};