15TUNER_SLIDER_BASE::TUNER_SLIDER_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
17 wxBoxSizer* bSizerMain;
18 bSizerMain =
new wxBoxSizer( wxVERTICAL );
20 m_panel1 =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SUNKEN|wxTAB_TRAVERSAL );
22 bSizer6 =
new wxBoxSizer( wxVERTICAL );
24 wxBoxSizer* bSizerUpper;
25 bSizerUpper =
new wxBoxSizer( wxVERTICAL );
27 m_name =
new wxStaticText(
m_panel1, wxID_ANY,
_(
"Name"), wxDefaultPosition, wxDefaultSize, 0 );
29 m_name->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD,
false, wxEmptyString ) );
31 bSizerUpper->Add(
m_name, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
34 bSizer6->Add( bSizerUpper, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
36 m_staticline4 =
new wxStaticLine(
m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
40 bSizer7 =
new wxBoxSizer( wxHORIZONTAL );
43 m_e24->SetToolTip(
_(
"Limit to E24 series values.") );
45 bSizer7->Add(
m_e24, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
50 bSizer7->Add(
m_separator, 0, wxALIGN_CENTER_VERTICAL, 5 );
53 m_e48->SetToolTip(
_(
"Limit to E48 series values.") );
55 bSizer7->Add(
m_e48, 0, wxALIGN_CENTER_VERTICAL, 5 );
58 bSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
61 m_e96->SetToolTip(
_(
"Limit to E96 series values") );
63 bSizer7->Add(
m_e96, 0, wxALIGN_CENTER_VERTICAL, 5 );
66 bSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
69 m_e192->SetToolTip(
_(
"Limit to E192 series values") );
71 bSizer7->Add(
m_e192, 0, wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
74 bSizer6->Add( bSizer7, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
76 wxBoxSizer* bSizerMiddle;
77 bSizerMiddle =
new wxBoxSizer( wxHORIZONTAL );
79 wxBoxSizer* bSizerSlider;
80 bSizerSlider =
new wxBoxSizer( wxVERTICAL );
82 m_slider =
new wxSlider(
m_panel1, wxID_ANY, 50, 0, 100, wxDefaultPosition, wxDefaultSize, wxSL_INVERSE|wxSL_LEFT|wxSL_VERTICAL );
83 m_slider->SetMinSize( wxSize( -1,200 ) );
85 bSizerSlider->Add(
m_slider, 1, wxTOP|wxRIGHT|wxLEFT, 5 );
88 bSizerMiddle->Add( bSizerSlider, 0, wxEXPAND, 5 );
90 wxGridSizer* gSizerTxtCtr;
91 gSizerTxtCtr =
new wxGridSizer( 0, 1, 0, 0 );
93 m_maxText =
new wxTextCtrl(
m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
96 gSizerTxtCtr->Add(
m_maxText, 0, wxALIGN_TOP|wxALL, 5 );
98 m_valueText =
new wxTextCtrl(
m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
101 gSizerTxtCtr->Add(
m_valueText, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
103 m_minText =
new wxTextCtrl(
m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
104 m_minText->SetMinSize( wxSize( 70,-1 ) );
106 gSizerTxtCtr->Add(
m_minText, 0, wxALIGN_BOTTOM|wxALL, 5 );
109 bSizerMiddle->Add( gSizerTxtCtr, 1, wxEXPAND|wxBOTTOM, 5 );
112 bSizer6->Add( bSizerMiddle, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
114 wxBoxSizer* bSizerBottom;
115 bSizerBottom =
new wxBoxSizer( wxHORIZONTAL );
117 m_saveBtn =
new wxButton(
m_panel1, wxID_ANY,
_(
"Save"), wxDefaultPosition, wxDefaultSize, 0 );
118 bSizerBottom->Add(
m_saveBtn, 1, wxEXPAND|wxRIGHT|wxLEFT, 3 );
121 bSizerBottom->Add(
m_closeBtn, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 8 );
124 bSizer6->Add( bSizerBottom, 0, wxEXPAND|wxALL, 3 );
130 bSizerMain->Add(
m_panel1, 1, wxEXPAND|wxRIGHT, 8 );
133 this->SetSizer( bSizerMain );
135 bSizerMain->Fit(
this );
virtual void onClose(wxCommandEvent &event)
virtual void onESeries(wxCommandEvent &event)
virtual void onSliderChanged(wxScrollEvent &event)
virtual void onMinTextEnter(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_closeBtn
BITMAP_BUTTON * m_separator
virtual void onSliderScroll(wxScrollEvent &event)
virtual void onValueKillFocus(wxFocusEvent &event)
virtual void onValueTextEnter(wxCommandEvent &event)
virtual void onMaxKillFocus(wxFocusEvent &event)
virtual void onMinKillFocus(wxFocusEvent &event)
wxStaticLine * m_staticline4
TUNER_SLIDER_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxBORDER_NONE|wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
virtual void onMaxTextEnter(wxCommandEvent &event)
virtual void onSave(wxCommandEvent &event)