2018-05-14 17:34:18 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2019-01-09 22:35:12 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Jan 5 2019)
|
2018-05-14 17:34:18 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "panel_common_settings_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2018-01-04 12:13:00 +00:00
|
|
|
PANEL_COMMON_SETTINGS_BASE::PANEL_COMMON_SETTINGS_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
|
2018-05-14 17:34:18 +00:00
|
|
|
{
|
|
|
|
wxBoxSizer* bPanelSizer;
|
|
|
|
bPanelSizer = new wxBoxSizer( wxVERTICAL );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
wxBoxSizer* bLeftSizer;
|
|
|
|
bLeftSizer = new wxBoxSizer( wxVERTICAL );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
wxGridBagSizer* gbSizer1;
|
2019-01-09 22:35:12 +00:00
|
|
|
gbSizer1 = new wxGridBagSizer( 4, 4 );
|
2018-05-14 17:34:18 +00:00
|
|
|
gbSizer1->SetFlexibleDirection( wxBOTH );
|
|
|
|
gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
2018-09-04 00:00:17 +00:00
|
|
|
gbSizer1->SetEmptyCellSize( wxSize( -1,2 ) );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
m_staticTextautosave = new wxStaticText( this, wxID_ANY, _("&Auto save:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticTextautosave->Wrap( -1 );
|
2019-01-09 22:35:12 +00:00
|
|
|
gbSizer1->Add( m_staticTextautosave, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
wxBoxSizer* bSizer6;
|
|
|
|
bSizer6 = new wxBoxSizer( wxHORIZONTAL );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
m_SaveTime = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 10, 0 );
|
2018-11-11 07:29:13 +00:00
|
|
|
m_SaveTime->SetToolTip( _("Delay after the first change to create a backup file of the board on disk.\nIf set to 0, auto backup is disabled") );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2019-01-09 22:35:12 +00:00
|
|
|
bSizer6->Add( m_SaveTime, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
wxStaticText* minutesLabel;
|
|
|
|
minutesLabel = new wxStaticText( this, wxID_ANY, _("minutes"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
minutesLabel->Wrap( -1 );
|
2018-10-27 11:40:38 +00:00
|
|
|
bSizer6->Add( minutesLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
gbSizer1->Add( bSizer6, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxEXPAND, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-08-06 01:36:56 +00:00
|
|
|
m_staticTextFileHistorySize = new wxStaticText( this, wxID_ANY, _("File history size:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticTextFileHistorySize->Wrap( -1 );
|
2019-01-09 22:35:12 +00:00
|
|
|
gbSizer1->Add( m_staticTextFileHistorySize, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-08-06 01:36:56 +00:00
|
|
|
m_fileHistorySize = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 100, 0 );
|
2019-01-09 22:35:12 +00:00
|
|
|
gbSizer1->Add( m_fileHistorySize, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-09-04 00:00:17 +00:00
|
|
|
wxStaticText* antialiasingLabel;
|
2018-01-04 12:13:00 +00:00
|
|
|
antialiasingLabel = new wxStaticText( this, wxID_ANY, _("Graphics (Accelerated):"), wxDefaultPosition, wxDefaultSize, 0 );
|
2018-09-04 00:00:17 +00:00
|
|
|
antialiasingLabel->Wrap( -1 );
|
2019-01-09 22:35:12 +00:00
|
|
|
gbSizer1->Add( antialiasingLabel, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-09-04 00:00:17 +00:00
|
|
|
wxString m_antialiasingChoices[] = { _("No Antialiasing"), _("Subpixel Antialiasing (High Quality)"), _("Subpixel Antialiasing (Ultra Quality)"), _("Supersampling (2x)"), _("Supersampling (4x)") };
|
|
|
|
int m_antialiasingNChoices = sizeof( m_antialiasingChoices ) / sizeof( wxString );
|
|
|
|
m_antialiasing = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_antialiasingNChoices, m_antialiasingChoices, 0 );
|
|
|
|
m_antialiasing->SetSelection( 0 );
|
2019-01-09 22:35:12 +00:00
|
|
|
gbSizer1->Add( m_antialiasing, wxGBPosition( 3, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
|
|
|
wxStaticText* antialiasingLabel1;
|
|
|
|
antialiasingLabel1 = new wxStaticText( this, wxID_ANY, _("Graphics (Fallback):"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
antialiasingLabel1->Wrap( -1 );
|
2019-01-09 22:35:12 +00:00
|
|
|
gbSizer1->Add( antialiasingLabel1, wxGBPosition( 4, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
|
|
|
wxString m_antialiasingFallbackChoices[] = { _("No Antialiasing"), _("Fast Antialiasing"), _("Balanced Antialiasing"), _("High Quality Antialiasing") };
|
|
|
|
int m_antialiasingFallbackNChoices = sizeof( m_antialiasingFallbackChoices ) / sizeof( wxString );
|
|
|
|
m_antialiasingFallback = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_antialiasingFallbackNChoices, m_antialiasingFallbackChoices, 0 );
|
|
|
|
m_antialiasingFallback->SetSelection( 0 );
|
2019-01-09 22:35:12 +00:00
|
|
|
gbSizer1->Add( m_antialiasingFallback, wxGBPosition( 4, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
|
|
|
|
2018-09-04 00:00:17 +00:00
|
|
|
gbSizer1->AddGrowableCol( 1 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-09-04 00:00:17 +00:00
|
|
|
bLeftSizer->Add( gbSizer1, 1, wxEXPAND|wxALL, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-09-04 00:00:17 +00:00
|
|
|
wxStaticBoxSizer* sizerHelperApps;
|
|
|
|
sizerHelperApps = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Helper Applications") ), wxVERTICAL );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-09-04 00:00:17 +00:00
|
|
|
wxGridBagSizer* gridHelperApps;
|
2019-01-09 22:35:12 +00:00
|
|
|
gridHelperApps = new wxGridBagSizer( 3, 3 );
|
2018-09-04 00:00:17 +00:00
|
|
|
gridHelperApps->SetFlexibleDirection( wxBOTH );
|
|
|
|
gridHelperApps->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
gridHelperApps->SetEmptyCellSize( wxSize( -1,5 ) );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
wxStaticText* textEditorLabel;
|
2018-09-04 00:00:17 +00:00
|
|
|
textEditorLabel = new wxStaticText( sizerHelperApps->GetStaticBox(), wxID_ANY, _("Text editor:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2018-05-14 17:34:18 +00:00
|
|
|
textEditorLabel->Wrap( -1 );
|
2019-01-09 22:35:12 +00:00
|
|
|
gridHelperApps->Add( textEditorLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 4 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-09-04 00:00:17 +00:00
|
|
|
m_textEditorPath = new wxTextCtrl( sizerHelperApps->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_textEditorPath->SetMinSize( wxSize( 360,-1 ) );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2019-01-09 22:35:12 +00:00
|
|
|
gridHelperApps->Add( m_textEditorPath, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
|
|
|
m_textEditorBtn = new wxBitmapButton( sizerHelperApps->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2018-05-14 17:34:18 +00:00
|
|
|
m_textEditorBtn->SetMinSize( wxSize( 29,29 ) );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-09-04 00:00:17 +00:00
|
|
|
gridHelperApps->Add( m_textEditorBtn, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-09-04 00:00:17 +00:00
|
|
|
m_defaultPDFViewer = new wxRadioButton( sizerHelperApps->GetStaticBox(), wxID_ANY, _("System default PDF viewer"), wxDefaultPosition, wxDefaultSize, 0 );
|
2019-01-09 22:35:12 +00:00
|
|
|
gridHelperApps->Add( m_defaultPDFViewer, wxGBPosition( 2, 0 ), wxGBSpan( 1, 3 ), 0, 4 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-09-04 00:00:17 +00:00
|
|
|
m_otherPDFViewer = new wxRadioButton( sizerHelperApps->GetStaticBox(), wxID_ANY, _("Other:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2019-01-09 22:35:12 +00:00
|
|
|
gridHelperApps->Add( m_otherPDFViewer, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 4 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-09-04 00:00:17 +00:00
|
|
|
m_PDFViewerPath = new wxTextCtrl( sizerHelperApps->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_PDFViewerPath->SetMinSize( wxSize( 360,-1 ) );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2019-01-09 22:35:12 +00:00
|
|
|
gridHelperApps->Add( m_PDFViewerPath, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
|
|
|
m_pdfViewerBtn = new wxBitmapButton( sizerHelperApps->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2018-05-14 17:34:18 +00:00
|
|
|
m_pdfViewerBtn->SetMinSize( wxSize( 29,29 ) );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-09-04 00:00:17 +00:00
|
|
|
gridHelperApps->Add( m_pdfViewerBtn, wxGBPosition( 3, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
|
|
|
|
2018-09-04 00:00:17 +00:00
|
|
|
gridHelperApps->AddGrowableCol( 1 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2019-01-09 22:35:12 +00:00
|
|
|
sizerHelperApps->Add( gridHelperApps, 0, wxALL|wxEXPAND, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
|
|
|
|
2018-09-04 00:00:17 +00:00
|
|
|
bLeftSizer->Add( sizerHelperApps, 0, wxEXPAND|wxALL, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-11-22 16:11:49 +00:00
|
|
|
wxStaticBoxSizer* sbSizerIconsOpts;
|
|
|
|
sbSizerIconsOpts = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("User Interface") ), wxVERTICAL );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
wxFlexGridSizer* fgSizer11;
|
|
|
|
fgSizer11 = new wxFlexGridSizer( 0, 3, 0, 0 );
|
|
|
|
fgSizer11->AddGrowableCol( 1 );
|
|
|
|
fgSizer11->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgSizer11->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-11-22 16:11:49 +00:00
|
|
|
m_staticTexticonscale = new wxStaticText( sbSizerIconsOpts->GetStaticBox(), wxID_ANY, _("Icon scale:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticTexticonscale->Wrap( -1 );
|
|
|
|
fgSizer11->Add( m_staticTexticonscale, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 4 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-09-04 00:00:17 +00:00
|
|
|
wxBoxSizer* bSizer4;
|
|
|
|
bSizer4 = new wxBoxSizer( wxHORIZONTAL );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-11-22 16:11:49 +00:00
|
|
|
m_scaleSlider = new STEPPED_SLIDER( sbSizerIconsOpts->GetStaticBox(), wxID_ANY, 50, 50, 275, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
|
2018-09-04 00:00:17 +00:00
|
|
|
m_scaleSlider->SetMinSize( wxSize( 240,-1 ) );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-10-27 11:40:38 +00:00
|
|
|
bSizer4->Add( m_scaleSlider, 1, wxBOTTOM|wxEXPAND, 4 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-11-22 16:11:49 +00:00
|
|
|
m_staticTextPerCent = new wxStaticText( sbSizerIconsOpts->GetStaticBox(), wxID_ANY, _("%"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticTextPerCent->Wrap( -1 );
|
|
|
|
bSizer4->Add( m_staticTextPerCent, 0, wxALIGN_CENTER_VERTICAL|wxALL, 2 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
|
|
|
|
2018-09-04 00:00:17 +00:00
|
|
|
fgSizer11->Add( bSizer4, 1, wxEXPAND, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-11-22 16:11:49 +00:00
|
|
|
m_scaleAuto = new wxCheckBox( sbSizerIconsOpts->GetStaticBox(), wxID_ANY, _("Automatic"), wxDefaultPosition, wxDefaultSize, 0 );
|
2018-09-04 00:00:17 +00:00
|
|
|
fgSizer11->Add( m_scaleAuto, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 25 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
fgSizer11->Add( 0, 0, 0, wxEXPAND, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
|
|
|
|
2018-11-22 16:11:49 +00:00
|
|
|
sbSizerIconsOpts->Add( fgSizer11, 0, wxEXPAND|wxBOTTOM|wxRIGHT, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-11-22 16:11:49 +00:00
|
|
|
m_checkBoxIconsInMenus = new wxCheckBox( sbSizerIconsOpts->GetStaticBox(), wxID_ANY, _("Show icons in menus"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbSizerIconsOpts->Add( m_checkBoxIconsInMenus, 0, wxALL, 4 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
|
|
|
|
2018-11-22 16:11:49 +00:00
|
|
|
bLeftSizer->Add( sbSizerIconsOpts, 0, wxEXPAND|wxALL, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
wxStaticBoxSizer* sbSizer51;
|
|
|
|
sbSizer51 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Pan and Zoom") ), wxVERTICAL );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
m_ZoomCenterOpt = new wxCheckBox( sbSizer51->GetStaticBox(), wxID_ANY, _("Ce&nter and warp cursor on zoom"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_ZoomCenterOpt->SetToolTip( _("Center the cursor on screen when zooming.") );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-11-22 16:11:49 +00:00
|
|
|
sbSizer51->Add( m_ZoomCenterOpt, 0, wxTOP|wxRIGHT|wxLEFT, 4 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
m_MousewheelPANOpt = new wxCheckBox( sbSizer51->GetStaticBox(), wxID_ANY, _("Use touchpad to pan"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_MousewheelPANOpt->SetToolTip( _("Enable touchpad-friendly controls (pan with scroll action, zoom with Ctrl+scroll).") );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-09-04 00:00:17 +00:00
|
|
|
sbSizer51->Add( m_MousewheelPANOpt, 0, wxALL, 4 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
m_AutoPANOpt = new wxCheckBox( sbSizer51->GetStaticBox(), wxID_AUTOPAN, _("&Pan while moving object"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_AutoPANOpt->SetToolTip( _("When drawing a track or moving an item, pan when approaching the edge of the display.") );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-09-04 00:00:17 +00:00
|
|
|
sbSizer51->Add( m_AutoPANOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT, 4 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
|
|
|
|
2018-11-22 16:11:49 +00:00
|
|
|
bLeftSizer->Add( sbSizer51, 0, wxEXPAND|wxALL, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
|
|
|
|
2018-07-16 06:25:27 +00:00
|
|
|
bPanelSizer->Add( bLeftSizer, 0, 0, 5 );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
this->SetSizer( bPanelSizer );
|
|
|
|
this->Layout();
|
|
|
|
bPanelSizer->Fit( this );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
// Connect Events
|
|
|
|
m_textEditorBtn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_COMMON_SETTINGS_BASE::OnTextEditorClick ), NULL, this );
|
2018-11-22 16:11:49 +00:00
|
|
|
m_PDFViewerPath->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_COMMON_SETTINGS_BASE::onUpdateUIPdfPath ), NULL, this );
|
2018-05-14 17:34:18 +00:00
|
|
|
m_pdfViewerBtn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_COMMON_SETTINGS_BASE::OnPDFViewerClick ), NULL, this );
|
2018-11-22 16:11:49 +00:00
|
|
|
m_pdfViewerBtn->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_COMMON_SETTINGS_BASE::onUpdateUIPdfPath ), NULL, this );
|
2018-05-14 17:34:18 +00:00
|
|
|
m_scaleSlider->Connect( wxEVT_SCROLL_TOP, wxScrollEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleSlider ), NULL, this );
|
|
|
|
m_scaleSlider->Connect( wxEVT_SCROLL_BOTTOM, wxScrollEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleSlider ), NULL, this );
|
|
|
|
m_scaleSlider->Connect( wxEVT_SCROLL_LINEUP, wxScrollEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleSlider ), NULL, this );
|
|
|
|
m_scaleSlider->Connect( wxEVT_SCROLL_LINEDOWN, wxScrollEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleSlider ), NULL, this );
|
|
|
|
m_scaleSlider->Connect( wxEVT_SCROLL_PAGEUP, wxScrollEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleSlider ), NULL, this );
|
|
|
|
m_scaleSlider->Connect( wxEVT_SCROLL_PAGEDOWN, wxScrollEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleSlider ), NULL, this );
|
|
|
|
m_scaleSlider->Connect( wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleSlider ), NULL, this );
|
|
|
|
m_scaleSlider->Connect( wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleSlider ), NULL, this );
|
|
|
|
m_scaleSlider->Connect( wxEVT_SCROLL_CHANGED, wxScrollEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleSlider ), NULL, this );
|
|
|
|
m_scaleAuto->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleAuto ), NULL, this );
|
|
|
|
}
|
|
|
|
|
|
|
|
PANEL_COMMON_SETTINGS_BASE::~PANEL_COMMON_SETTINGS_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
|
|
|
m_textEditorBtn->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_COMMON_SETTINGS_BASE::OnTextEditorClick ), NULL, this );
|
2018-11-22 16:11:49 +00:00
|
|
|
m_PDFViewerPath->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_COMMON_SETTINGS_BASE::onUpdateUIPdfPath ), NULL, this );
|
2018-05-14 17:34:18 +00:00
|
|
|
m_pdfViewerBtn->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_COMMON_SETTINGS_BASE::OnPDFViewerClick ), NULL, this );
|
2018-11-22 16:11:49 +00:00
|
|
|
m_pdfViewerBtn->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_COMMON_SETTINGS_BASE::onUpdateUIPdfPath ), NULL, this );
|
2018-05-14 17:34:18 +00:00
|
|
|
m_scaleSlider->Disconnect( wxEVT_SCROLL_TOP, wxScrollEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleSlider ), NULL, this );
|
|
|
|
m_scaleSlider->Disconnect( wxEVT_SCROLL_BOTTOM, wxScrollEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleSlider ), NULL, this );
|
|
|
|
m_scaleSlider->Disconnect( wxEVT_SCROLL_LINEUP, wxScrollEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleSlider ), NULL, this );
|
|
|
|
m_scaleSlider->Disconnect( wxEVT_SCROLL_LINEDOWN, wxScrollEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleSlider ), NULL, this );
|
|
|
|
m_scaleSlider->Disconnect( wxEVT_SCROLL_PAGEUP, wxScrollEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleSlider ), NULL, this );
|
|
|
|
m_scaleSlider->Disconnect( wxEVT_SCROLL_PAGEDOWN, wxScrollEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleSlider ), NULL, this );
|
|
|
|
m_scaleSlider->Disconnect( wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleSlider ), NULL, this );
|
|
|
|
m_scaleSlider->Disconnect( wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleSlider ), NULL, this );
|
|
|
|
m_scaleSlider->Disconnect( wxEVT_SCROLL_CHANGED, wxScrollEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleSlider ), NULL, this );
|
|
|
|
m_scaleAuto->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_COMMON_SETTINGS_BASE::OnScaleAuto ), NULL, this );
|
2018-01-04 12:13:00 +00:00
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
}
|