2016-08-11 12:41:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2022-12-23 15:26:47 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
|
2016-08-11 12:41:44 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2020-12-30 16:59:02 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2016-08-11 12:41:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2022-12-26 10:29:52 +00:00
|
|
|
#include "widgets/bitmap_button.h"
|
2022-12-23 15:26:47 +00:00
|
|
|
#include "widgets/std_bitmap_button.h"
|
|
|
|
|
2016-08-11 12:41:44 +00:00
|
|
|
#include "tuner_slider_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2020-12-30 16:59:02 +00:00
|
|
|
TUNER_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 )
|
2016-08-11 12:41:44 +00:00
|
|
|
{
|
2020-12-30 16:59:02 +00:00
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2022-12-23 15:26:47 +00:00
|
|
|
m_panel1 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SUNKEN|wxTAB_TRAVERSAL );
|
|
|
|
wxBoxSizer* bSizer6;
|
|
|
|
bSizer6 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2020-12-30 16:59:02 +00:00
|
|
|
wxBoxSizer* bSizerUpper;
|
2022-12-23 15:26:47 +00:00
|
|
|
bSizerUpper = new wxBoxSizer( wxVERTICAL );
|
2020-12-30 16:59:02 +00:00
|
|
|
|
2022-12-23 15:26:47 +00:00
|
|
|
m_name = new wxStaticText( m_panel1, wxID_ANY, _("Name"), wxDefaultPosition, wxDefaultSize, 0 );
|
2016-08-11 12:41:44 +00:00
|
|
|
m_name->Wrap( -1 );
|
2022-12-26 10:48:17 +00:00
|
|
|
m_name->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
|
|
|
|
|
2022-12-23 15:26:47 +00:00
|
|
|
bSizerUpper->Add( m_name, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2020-12-30 16:59:02 +00:00
|
|
|
|
|
|
|
|
2022-12-23 15:26:47 +00:00
|
|
|
bSizer6->Add( bSizerUpper, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
|
2020-12-30 16:59:02 +00:00
|
|
|
|
2022-12-23 15:26:47 +00:00
|
|
|
m_staticline4 = new wxStaticLine( m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
2022-12-26 10:29:52 +00:00
|
|
|
bSizer6->Add( m_staticline4, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizer7;
|
|
|
|
bSizer7 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
m_e24 = new BITMAP_BUTTON( m_panel1, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_e24->SetToolTip( _("Bold") );
|
|
|
|
|
|
|
|
bSizer7->Add( m_e24, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
m_separator = new BITMAP_BUTTON( m_panel1, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_separator->SetToolTip( _("Bold") );
|
|
|
|
|
|
|
|
bSizer7->Add( m_separator, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
m_e48 = new BITMAP_BUTTON( m_panel1, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_e48->SetToolTip( _("Bold") );
|
|
|
|
|
|
|
|
bSizer7->Add( m_e48, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
m_e96 = new BITMAP_BUTTON( m_panel1, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_e96->SetToolTip( _("Bold") );
|
|
|
|
|
|
|
|
bSizer7->Add( m_e96, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
m_e192 = new BITMAP_BUTTON( m_panel1, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_e192->SetToolTip( _("Bold") );
|
|
|
|
|
|
|
|
bSizer7->Add( m_e192, 0, wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizer6->Add( bSizer7, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
|
2020-12-30 16:59:02 +00:00
|
|
|
|
|
|
|
wxBoxSizer* bSizerMiddle;
|
|
|
|
bSizerMiddle = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizerSlider;
|
|
|
|
bSizerSlider = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2022-12-23 20:04:26 +00:00
|
|
|
m_slider = new wxSlider( m_panel1, wxID_ANY, 50, 0, 100, wxDefaultPosition, wxDefaultSize, wxSL_INVERSE|wxSL_LEFT|wxSL_VERTICAL );
|
2022-12-26 10:29:52 +00:00
|
|
|
m_slider->SetMinSize( wxSize( -1,200 ) );
|
|
|
|
|
|
|
|
bSizerSlider->Add( m_slider, 1, wxTOP|wxRIGHT|wxLEFT, 5 );
|
2020-12-30 16:59:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
bSizerMiddle->Add( bSizerSlider, 0, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
wxGridSizer* gSizerTxtCtr;
|
|
|
|
gSizerTxtCtr = new wxGridSizer( 0, 1, 0, 0 );
|
|
|
|
|
2022-12-23 15:26:47 +00:00
|
|
|
m_maxText = new wxTextCtrl( m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
|
2016-08-11 12:41:44 +00:00
|
|
|
m_maxText->SetMinSize( wxSize( 70,-1 ) );
|
2020-12-30 16:59:02 +00:00
|
|
|
|
|
|
|
gSizerTxtCtr->Add( m_maxText, 0, wxALIGN_TOP|wxALL, 5 );
|
|
|
|
|
2022-12-23 15:26:47 +00:00
|
|
|
m_valueText = new wxTextCtrl( m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
|
2016-08-11 12:41:44 +00:00
|
|
|
m_valueText->SetMinSize( wxSize( 70,-1 ) );
|
2020-12-30 16:59:02 +00:00
|
|
|
|
|
|
|
gSizerTxtCtr->Add( m_valueText, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
|
|
|
|
2022-12-23 15:26:47 +00:00
|
|
|
m_minText = new wxTextCtrl( m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
|
2016-08-11 12:41:44 +00:00
|
|
|
m_minText->SetMinSize( wxSize( 70,-1 ) );
|
2020-12-30 16:59:02 +00:00
|
|
|
|
|
|
|
gSizerTxtCtr->Add( m_minText, 0, wxALIGN_BOTTOM|wxALL, 5 );
|
|
|
|
|
|
|
|
|
2022-12-26 10:29:52 +00:00
|
|
|
bSizerMiddle->Add( gSizerTxtCtr, 1, wxEXPAND|wxBOTTOM, 5 );
|
2020-12-30 16:59:02 +00:00
|
|
|
|
|
|
|
|
2022-12-23 15:26:47 +00:00
|
|
|
bSizer6->Add( bSizerMiddle, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizerBottom;
|
|
|
|
bSizerBottom = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
m_saveBtn = new wxButton( m_panel1, wxID_ANY, _("Save"), wxDefaultPosition, wxDefaultSize, 0 );
|
2022-12-26 10:29:52 +00:00
|
|
|
bSizerBottom->Add( m_saveBtn, 1, wxEXPAND|wxRIGHT|wxLEFT, 3 );
|
2022-12-23 15:26:47 +00:00
|
|
|
|
|
|
|
m_closeBtn = new STD_BITMAP_BUTTON( m_panel1, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2022-12-26 10:29:52 +00:00
|
|
|
bSizerBottom->Add( m_closeBtn, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 8 );
|
2020-12-30 16:59:02 +00:00
|
|
|
|
2022-12-23 15:26:47 +00:00
|
|
|
|
|
|
|
bSizer6->Add( bSizerBottom, 0, wxEXPAND|wxALL, 3 );
|
|
|
|
|
|
|
|
|
|
|
|
m_panel1->SetSizer( bSizer6 );
|
|
|
|
m_panel1->Layout();
|
|
|
|
bSizer6->Fit( m_panel1 );
|
2022-12-26 10:48:17 +00:00
|
|
|
bSizerMain->Add( m_panel1, 1, wxEXPAND|wxRIGHT, 8 );
|
2020-12-30 16:59:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( bSizerMain );
|
2016-08-11 12:41:44 +00:00
|
|
|
this->Layout();
|
2022-12-23 15:26:47 +00:00
|
|
|
bSizerMain->Fit( this );
|
2020-12-30 16:59:02 +00:00
|
|
|
|
2016-08-11 12:41:44 +00:00
|
|
|
// Connect Events
|
2022-12-26 10:29:52 +00:00
|
|
|
m_e24->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TUNER_SLIDER_BASE::onESeries ), NULL, this );
|
|
|
|
m_e48->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TUNER_SLIDER_BASE::onESeries ), NULL, this );
|
|
|
|
m_e96->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TUNER_SLIDER_BASE::onESeries ), NULL, this );
|
|
|
|
m_e192->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TUNER_SLIDER_BASE::onESeries ), NULL, this );
|
2022-12-26 10:48:17 +00:00
|
|
|
m_slider->Connect( wxEVT_SCROLL_TOP, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderScroll ), NULL, this );
|
|
|
|
m_slider->Connect( wxEVT_SCROLL_BOTTOM, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderScroll ), NULL, this );
|
|
|
|
m_slider->Connect( wxEVT_SCROLL_LINEUP, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderScroll ), NULL, this );
|
|
|
|
m_slider->Connect( wxEVT_SCROLL_LINEDOWN, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderScroll ), NULL, this );
|
|
|
|
m_slider->Connect( wxEVT_SCROLL_PAGEUP, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderScroll ), NULL, this );
|
|
|
|
m_slider->Connect( wxEVT_SCROLL_PAGEDOWN, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderScroll ), NULL, this );
|
|
|
|
m_slider->Connect( wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderScroll ), NULL, this );
|
|
|
|
m_slider->Connect( wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderScroll ), NULL, this );
|
|
|
|
m_slider->Connect( wxEVT_SCROLL_CHANGED, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderScroll ), NULL, this );
|
2016-08-11 12:41:44 +00:00
|
|
|
m_slider->Connect( wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderChanged ), NULL, this );
|
2021-10-20 23:33:30 +00:00
|
|
|
m_maxText->Connect( wxEVT_KILL_FOCUS, wxFocusEventHandler( TUNER_SLIDER_BASE::onMaxKillFocus ), NULL, this );
|
2016-08-11 12:41:44 +00:00
|
|
|
m_maxText->Connect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( TUNER_SLIDER_BASE::onMaxTextEnter ), NULL, this );
|
2021-10-20 23:33:30 +00:00
|
|
|
m_valueText->Connect( wxEVT_KILL_FOCUS, wxFocusEventHandler( TUNER_SLIDER_BASE::onValueKillFocus ), NULL, this );
|
2016-08-11 12:41:44 +00:00
|
|
|
m_valueText->Connect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( TUNER_SLIDER_BASE::onValueTextEnter ), NULL, this );
|
2021-10-20 23:33:30 +00:00
|
|
|
m_minText->Connect( wxEVT_KILL_FOCUS, wxFocusEventHandler( TUNER_SLIDER_BASE::onMinKillFocus ), NULL, this );
|
2016-08-11 12:41:44 +00:00
|
|
|
m_minText->Connect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( TUNER_SLIDER_BASE::onMinTextEnter ), NULL, this );
|
|
|
|
m_saveBtn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TUNER_SLIDER_BASE::onSave ), NULL, this );
|
2022-12-23 15:26:47 +00:00
|
|
|
m_closeBtn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TUNER_SLIDER_BASE::onClose ), NULL, this );
|
2016-08-11 12:41:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
TUNER_SLIDER_BASE::~TUNER_SLIDER_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
2022-12-26 10:29:52 +00:00
|
|
|
m_e24->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TUNER_SLIDER_BASE::onESeries ), NULL, this );
|
|
|
|
m_e48->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TUNER_SLIDER_BASE::onESeries ), NULL, this );
|
|
|
|
m_e96->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TUNER_SLIDER_BASE::onESeries ), NULL, this );
|
|
|
|
m_e192->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TUNER_SLIDER_BASE::onESeries ), NULL, this );
|
2022-12-26 10:48:17 +00:00
|
|
|
m_slider->Disconnect( wxEVT_SCROLL_TOP, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderScroll ), NULL, this );
|
|
|
|
m_slider->Disconnect( wxEVT_SCROLL_BOTTOM, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderScroll ), NULL, this );
|
|
|
|
m_slider->Disconnect( wxEVT_SCROLL_LINEUP, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderScroll ), NULL, this );
|
|
|
|
m_slider->Disconnect( wxEVT_SCROLL_LINEDOWN, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderScroll ), NULL, this );
|
|
|
|
m_slider->Disconnect( wxEVT_SCROLL_PAGEUP, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderScroll ), NULL, this );
|
|
|
|
m_slider->Disconnect( wxEVT_SCROLL_PAGEDOWN, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderScroll ), NULL, this );
|
|
|
|
m_slider->Disconnect( wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderScroll ), NULL, this );
|
|
|
|
m_slider->Disconnect( wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderScroll ), NULL, this );
|
|
|
|
m_slider->Disconnect( wxEVT_SCROLL_CHANGED, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderScroll ), NULL, this );
|
2016-08-11 12:41:44 +00:00
|
|
|
m_slider->Disconnect( wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler( TUNER_SLIDER_BASE::onSliderChanged ), NULL, this );
|
2021-10-20 23:33:30 +00:00
|
|
|
m_maxText->Disconnect( wxEVT_KILL_FOCUS, wxFocusEventHandler( TUNER_SLIDER_BASE::onMaxKillFocus ), NULL, this );
|
2016-08-11 12:41:44 +00:00
|
|
|
m_maxText->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( TUNER_SLIDER_BASE::onMaxTextEnter ), NULL, this );
|
2021-10-20 23:33:30 +00:00
|
|
|
m_valueText->Disconnect( wxEVT_KILL_FOCUS, wxFocusEventHandler( TUNER_SLIDER_BASE::onValueKillFocus ), NULL, this );
|
2016-08-11 12:41:44 +00:00
|
|
|
m_valueText->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( TUNER_SLIDER_BASE::onValueTextEnter ), NULL, this );
|
2021-10-20 23:33:30 +00:00
|
|
|
m_minText->Disconnect( wxEVT_KILL_FOCUS, wxFocusEventHandler( TUNER_SLIDER_BASE::onMinKillFocus ), NULL, this );
|
2016-08-11 12:41:44 +00:00
|
|
|
m_minText->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( TUNER_SLIDER_BASE::onMinTextEnter ), NULL, this );
|
|
|
|
m_saveBtn->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TUNER_SLIDER_BASE::onSave ), NULL, this );
|
2022-12-23 15:26:47 +00:00
|
|
|
m_closeBtn->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TUNER_SLIDER_BASE::onClose ), NULL, this );
|
2020-12-30 16:59:02 +00:00
|
|
|
|
2016-08-11 12:41:44 +00:00
|
|
|
}
|