416 lines
18 KiB
C++
416 lines
18 KiB
C++
///////////////////////////////////////////////////////////////////////////
|
|
// C++ code generated with wxFormBuilder (version Jan 2 2018)
|
|
// http://www.wxformbuilder.org/
|
|
//
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
#include "dialog_eeschema_options_base.h"
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
BEGIN_EVENT_TABLE( DIALOG_EESCHEMA_OPTIONS_BASE, DIALOG_SHIM )
|
|
EVT_SIZE( DIALOG_EESCHEMA_OPTIONS_BASE::_wxFB_OnSize )
|
|
EVT_SCROLL( DIALOG_EESCHEMA_OPTIONS_BASE::_wxFB_OnScaleSlider )
|
|
EVT_CHECKBOX( wxID_ANY, DIALOG_EESCHEMA_OPTIONS_BASE::_wxFB_OnScaleAuto )
|
|
EVT_CHOICE( wxID_ANY, DIALOG_EESCHEMA_OPTIONS_BASE::_wxFB_OnChooseUnits )
|
|
EVT_BUTTON( wxID_ADD_FIELD, DIALOG_EESCHEMA_OPTIONS_BASE::_wxFB_OnAddButtonClick )
|
|
EVT_BUTTON( wxID_DELETE_FIELD, DIALOG_EESCHEMA_OPTIONS_BASE::_wxFB_OnDeleteButtonClick )
|
|
END_EVENT_TABLE()
|
|
|
|
DIALOG_EESCHEMA_OPTIONS_BASE::DIALOG_EESCHEMA_OPTIONS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
|
{
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
|
|
|
wxBoxSizer* mainSizer;
|
|
mainSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
wxBoxSizer* bOptionsSizer;
|
|
bOptionsSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_panel5 = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
wxBoxSizer* bSizer82;
|
|
bSizer82 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
wxFlexGridSizer* fgSizer32;
|
|
fgSizer32 = new wxFlexGridSizer( 0, 3, 0, 0 );
|
|
fgSizer32->AddGrowableCol( 0 );
|
|
fgSizer32->AddGrowableCol( 1 );
|
|
fgSizer32->AddGrowableCol( 2 );
|
|
fgSizer32->SetFlexibleDirection( wxBOTH );
|
|
fgSizer32->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
m_staticText3 = new wxStaticText( m_panel5, wxID_ANY, _("&Grid size:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticText3->Wrap( -1 );
|
|
fgSizer32->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
|
|
|
|
wxArrayString m_choiceGridSizeChoices;
|
|
m_choiceGridSize = new wxChoice( m_panel5, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceGridSizeChoices, 0 );
|
|
m_choiceGridSize->SetSelection( 0 );
|
|
fgSizer32->Add( m_choiceGridSize, 0, wxEXPAND|wxALL, 3 );
|
|
|
|
m_staticGridUnits = new wxStaticText( m_panel5, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticGridUnits->Wrap( -1 );
|
|
fgSizer32->Add( m_staticGridUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
|
|
|
|
m_staticText51 = new wxStaticText( m_panel5, wxID_ANY, _("&Bus thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticText51->Wrap( -1 );
|
|
fgSizer32->Add( m_staticText51, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
|
|
|
|
m_spinBusWidth = new wxSpinCtrl( m_panel5, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 1, 100, 1 );
|
|
fgSizer32->Add( m_spinBusWidth, 0, wxALL|wxEXPAND, 3 );
|
|
|
|
m_staticBusWidthUnits = new wxStaticText( m_panel5, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticBusWidthUnits->Wrap( -1 );
|
|
fgSizer32->Add( m_staticBusWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
|
|
|
|
m_staticText5 = new wxStaticText( m_panel5, wxID_ANY, _("&Line thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticText5->Wrap( -1 );
|
|
fgSizer32->Add( m_staticText5, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
|
|
|
|
m_spinLineWidth = new wxSpinCtrl( m_panel5, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 1, 100, 1 );
|
|
fgSizer32->Add( m_spinLineWidth, 0, wxALL|wxEXPAND, 3 );
|
|
|
|
m_staticLineWidthUnits = new wxStaticText( m_panel5, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticLineWidthUnits->Wrap( -1 );
|
|
fgSizer32->Add( m_staticLineWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
|
|
|
|
m_staticText26 = new wxStaticText( m_panel5, wxID_ANY, _("&Part ID notation:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticText26->Wrap( -1 );
|
|
fgSizer32->Add( m_staticText26, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 3 );
|
|
|
|
wxString m_choiceSeparatorRefIdChoices[] = { _("A"), _(".A"), _("-A"), _("_A"), _(".1"), _("-1"), _("_1") };
|
|
int m_choiceSeparatorRefIdNChoices = sizeof( m_choiceSeparatorRefIdChoices ) / sizeof( wxString );
|
|
m_choiceSeparatorRefId = new wxChoice( m_panel5, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceSeparatorRefIdNChoices, m_choiceSeparatorRefIdChoices, 0 );
|
|
m_choiceSeparatorRefId->SetSelection( 0 );
|
|
fgSizer32->Add( m_choiceSeparatorRefId, 0, wxALL|wxEXPAND, 3 );
|
|
|
|
|
|
fgSizer32->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
m_stIconScale = new wxStaticText( m_panel5, wxID_ANY, _("Icon scale:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_stIconScale->Wrap( -1 );
|
|
fgSizer32->Add( m_stIconScale, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 3 );
|
|
|
|
m_scaleSlider = new STEPPED_SLIDER( m_panel5, wxID_ANY, 50, 50, 275, wxDefaultPosition, wxDefaultSize, wxSL_AUTOTICKS|wxSL_HORIZONTAL|wxSL_LABELS );
|
|
fgSizer32->Add( m_scaleSlider, 0, wxALL|wxEXPAND, 3 );
|
|
|
|
m_staticText211 = new wxStaticText( m_panel5, wxID_ANY, _("%"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticText211->Wrap( -1 );
|
|
fgSizer32->Add( m_staticText211, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 3 );
|
|
|
|
|
|
fgSizer32->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
m_scaleAuto = new wxCheckBox( m_panel5, wxID_ANY, _("Auto"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
fgSizer32->Add( m_scaleAuto, 0, wxALL|wxEXPAND, 3 );
|
|
|
|
|
|
fgSizer32->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
bSizer82->Add( fgSizer32, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
wxBoxSizer* bSizer92;
|
|
bSizer92 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
m_staticline3 = new wxStaticLine( m_panel5, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
|
bSizer92->Add( m_staticline3, 0, wxEXPAND | wxALL, 5 );
|
|
|
|
m_checkShowGrid = new wxCheckBox( m_panel5, wxID_ANY, _("&Show grid"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
bSizer92->Add( m_checkShowGrid, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 3 );
|
|
|
|
m_checkHVOrientation = new wxCheckBox( m_panel5, wxID_ANY, _("&Restrict buses and wires to H and V orientation"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
bSizer92->Add( m_checkHVOrientation, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 3 );
|
|
|
|
m_checkShowHiddenPins = new wxCheckBox( m_panel5, wxID_ANY, _("S&how hidden pins"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
bSizer92->Add( m_checkShowHiddenPins, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 3 );
|
|
|
|
m_checkPageLimits = new wxCheckBox( m_panel5, wxID_ANY, _("Show page limi&ts"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_checkPageLimits->SetValue(true);
|
|
bSizer92->Add( m_checkPageLimits, 0, wxEXPAND|wxLEFT|wxTOP|wxRIGHT, 3 );
|
|
|
|
m_footprintPreview = new wxCheckBox( m_panel5, wxID_ANY, _("Footprint previews in symbol chooser (experimental)"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
bSizer92->Add( m_footprintPreview, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 3 );
|
|
|
|
|
|
bSizer82->Add( bSizer92, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
m_panel5->SetSizer( bSizer82 );
|
|
m_panel5->Layout();
|
|
bSizer82->Fit( m_panel5 );
|
|
m_notebook->AddPage( m_panel5, _("Display"), true );
|
|
m_panel3 = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
wxBoxSizer* bSizer8;
|
|
bSizer8 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
wxFlexGridSizer* fgSizer3;
|
|
fgSizer3 = new wxFlexGridSizer( 0, 3, 0, 0 );
|
|
fgSizer3->AddGrowableCol( 0 );
|
|
fgSizer3->AddGrowableCol( 1 );
|
|
fgSizer3->AddGrowableCol( 2 );
|
|
fgSizer3->SetFlexibleDirection( wxBOTH );
|
|
fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
m_staticText2 = new wxStaticText( m_panel3, wxID_ANY, _("&Measurement units:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticText2->Wrap( -1 );
|
|
fgSizer3->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
|
|
|
|
wxArrayString m_choiceUnitsChoices;
|
|
m_choiceUnits = new wxChoice( m_panel3, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnitsChoices, 0 );
|
|
m_choiceUnits->SetSelection( 0 );
|
|
fgSizer3->Add( m_choiceUnits, 0, wxALL|wxEXPAND, 3 );
|
|
|
|
|
|
fgSizer3->Add( 0, 0, 1, wxEXPAND, 3 );
|
|
|
|
m_staticTextHpitch = new wxStaticText( m_panel3, wxID_ANY, _("&Horizontal pitch of repeated items:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticTextHpitch->Wrap( -1 );
|
|
fgSizer3->Add( m_staticTextHpitch, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
|
|
|
|
m_spinRepeatHorizontal = new wxSpinCtrl( m_panel3, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, -5000, 5000, 0 );
|
|
fgSizer3->Add( m_spinRepeatHorizontal, 0, wxALL|wxEXPAND, 3 );
|
|
|
|
m_staticRepeatXUnits = new wxStaticText( m_panel3, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticRepeatXUnits->Wrap( -1 );
|
|
fgSizer3->Add( m_staticRepeatXUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
|
|
|
|
m_staticTextVpitch = new wxStaticText( m_panel3, wxID_ANY, _("&Vertical pitch of repeated items:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticTextVpitch->Wrap( -1 );
|
|
fgSizer3->Add( m_staticTextVpitch, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
|
|
|
|
m_spinRepeatVertical = new wxSpinCtrl( m_panel3, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, -5000, 5000, 100 );
|
|
fgSizer3->Add( m_spinRepeatVertical, 0, wxALL|wxEXPAND, 3 );
|
|
|
|
m_staticRepeatYUnits = new wxStaticText( m_panel3, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticRepeatYUnits->Wrap( -1 );
|
|
fgSizer3->Add( m_staticRepeatYUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
|
|
|
|
m_staticText16 = new wxStaticText( m_panel3, wxID_ANY, _("&Increment of repeated labels:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticText16->Wrap( -1 );
|
|
fgSizer3->Add( m_staticText16, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
|
|
|
|
m_spinRepeatLabel = new wxSpinCtrl( m_panel3, wxID_ANY, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, -10, 10, 1 );
|
|
fgSizer3->Add( m_spinRepeatLabel, 0, wxALL|wxEXPAND, 3 );
|
|
|
|
|
|
fgSizer3->Add( 0, 0, 1, wxEXPAND, 3 );
|
|
|
|
m_staticTextTsize = new wxStaticText( m_panel3, wxID_ANY, _("Def&ault text size:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticTextTsize->Wrap( -1 );
|
|
fgSizer3->Add( m_staticTextTsize, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
|
|
|
|
m_spinTextSize = new wxSpinCtrl( m_panel3, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 0, 1000, 0 );
|
|
fgSizer3->Add( m_spinTextSize, 0, wxALL|wxEXPAND, 3 );
|
|
|
|
m_staticTextSizeUnits = new wxStaticText( m_panel3, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticTextSizeUnits->Wrap( -1 );
|
|
fgSizer3->Add( m_staticTextSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
|
|
|
|
m_staticTextTimeInterval = new wxStaticText( m_panel3, wxID_ANY, _("&Auto-save time interval"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticTextTimeInterval->Wrap( -1 );
|
|
fgSizer3->Add( m_staticTextTimeInterval, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
|
|
|
|
m_spinAutoSaveInterval = new wxSpinCtrl( m_panel3, ID_M_SPINAUTOSAVEINTERVAL, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 1000, 10 );
|
|
m_spinAutoSaveInterval->SetToolTip( _("Delay after the first change to create a backup file of the board on disk.\nIf set to 0, auto backup is disabled") );
|
|
|
|
fgSizer3->Add( m_spinAutoSaveInterval, 0, wxALL|wxEXPAND, 3 );
|
|
|
|
m_staticText23 = new wxStaticText( m_panel3, wxID_ANY, _("minutes"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticText23->Wrap( -1 );
|
|
fgSizer3->Add( m_staticText23, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
|
|
|
|
|
|
bSizer8->Add( fgSizer3, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
wxBoxSizer* bSizer9;
|
|
bSizer9 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
m_staticline2 = new wxStaticLine( m_panel3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
|
bSizer9->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
|
|
|
|
m_checkAutoplaceFields = new wxCheckBox( m_panel3, wxID_ANY, _("A&utomatically place symbol fields"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
bSizer9->Add( m_checkAutoplaceFields, 0, wxEXPAND|wxLEFT|wxTOP|wxRIGHT, 3 );
|
|
|
|
m_checkAutoplaceJustify = new wxCheckBox( m_panel3, wxID_ANY, _("A&llow field autoplace to change justification"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
bSizer9->Add( m_checkAutoplaceJustify, 0, wxEXPAND|wxLEFT|wxTOP|wxRIGHT, 3 );
|
|
|
|
m_checkAutoplaceAlign = new wxCheckBox( m_panel3, wxID_ANY, _("Al&ways align autoplaced fields to the 50 mil grid"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
bSizer9->Add( m_checkAutoplaceAlign, 0, wxEXPAND|wxLEFT|wxTOP|wxRIGHT, 3 );
|
|
|
|
|
|
bSizer8->Add( bSizer9, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
m_panel3->SetSizer( bSizer8 );
|
|
m_panel3->Layout();
|
|
bSizer8->Fit( m_panel3 );
|
|
m_notebook->AddPage( m_panel3, _("Editing"), false );
|
|
m_tabControls = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
wxBoxSizer* bSizer81;
|
|
bSizer81 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
wxFlexGridSizer* fgSizer31;
|
|
fgSizer31 = new wxFlexGridSizer( 0, 3, 0, 0 );
|
|
fgSizer31->AddGrowableCol( 0 );
|
|
fgSizer31->AddGrowableCol( 1 );
|
|
fgSizer31->AddGrowableCol( 2 );
|
|
fgSizer31->SetFlexibleDirection( wxBOTH );
|
|
fgSizer31->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
|
|
bSizer81->Add( fgSizer31, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
m_controlsSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
wxBoxSizer* bSizer13;
|
|
bSizer13 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
m_staticText20 = new wxStaticText( m_tabControls, wxID_ANY, _("Hotkeys:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticText20->Wrap( -1 );
|
|
bSizer13->Add( m_staticText20, 1, wxALL, 5 );
|
|
|
|
m_staticText21 = new wxStaticText( m_tabControls, wxID_ANY, _("Double-click to edit"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_staticText21->Wrap( -1 );
|
|
bSizer13->Add( m_staticText21, 0, wxALL, 5 );
|
|
|
|
|
|
m_controlsSizer->Add( bSizer13, 0, wxEXPAND, 5 );
|
|
|
|
m_panelHotkeys = new wxPanel( m_tabControls, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
m_controlsSizer->Add( m_panelHotkeys, 1, wxEXPAND | wxALL, 5 );
|
|
|
|
m_checkEnableZoomCenter = new wxCheckBox( m_tabControls, wxID_ANY, _("Cen&ter and warp cursor on zoom"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_checkEnableZoomCenter->SetToolTip( _("Keep the cursor at its current location when zooming") );
|
|
|
|
m_controlsSizer->Add( m_checkEnableZoomCenter, 0, wxTOP|wxRIGHT|wxLEFT, 3 );
|
|
|
|
m_checkEnableMousewheelPan = new wxCheckBox( m_tabControls, xwID_ANY, _("Use touchpa&d to pan"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_checkEnableMousewheelPan->SetToolTip( _("Use touchpad to pan canvas") );
|
|
|
|
m_controlsSizer->Add( m_checkEnableMousewheelPan, 0, wxLEFT|wxRIGHT|wxTOP, 3 );
|
|
|
|
m_checkAutoPan = new wxCheckBox( m_tabControls, wxID_ANY, _("&Pan while moving object"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_controlsSizer->Add( m_checkAutoPan, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 3 );
|
|
|
|
|
|
bSizer81->Add( m_controlsSizer, 1, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
m_tabControls->SetSizer( bSizer81 );
|
|
m_tabControls->Layout();
|
|
bSizer81->Fit( m_tabControls );
|
|
m_notebook->AddPage( m_tabControls, _("Controls"), false );
|
|
m_tabColors = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
wxBoxSizer* bSizer14;
|
|
bSizer14 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
m_panelColors = new wxPanel( m_tabColors, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
bSizer14->Add( m_panelColors, 1, wxEXPAND | wxALL, 5 );
|
|
|
|
|
|
m_tabColors->SetSizer( bSizer14 );
|
|
m_tabColors->Layout();
|
|
bSizer14->Fit( m_tabColors );
|
|
m_notebook->AddPage( m_tabColors, _("Colors"), false );
|
|
m_panel2 = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
m_panel2->SetToolTip( _("User defined field names for schematic components. ") );
|
|
|
|
wxBoxSizer* bSizer6;
|
|
bSizer6 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
wxBoxSizer* bSizer11;
|
|
bSizer11 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
m_fieldGrid = new wxGrid( m_panel2, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
// Grid
|
|
m_fieldGrid->CreateGrid( 0, 3 );
|
|
m_fieldGrid->EnableEditing( true );
|
|
m_fieldGrid->EnableGridLines( true );
|
|
m_fieldGrid->EnableDragGridSize( false );
|
|
m_fieldGrid->SetMargins( 0, 0 );
|
|
|
|
// Columns
|
|
m_fieldGrid->SetColSize( 0, 150 );
|
|
m_fieldGrid->SetColSize( 1, 150 );
|
|
m_fieldGrid->SetColSize( 2, 75 );
|
|
m_fieldGrid->EnableDragColMove( false );
|
|
m_fieldGrid->EnableDragColSize( true );
|
|
m_fieldGrid->SetColLabelSize( 30 );
|
|
m_fieldGrid->SetColLabelValue( 0, _("Name") );
|
|
m_fieldGrid->SetColLabelValue( 1, _("Default Value") );
|
|
m_fieldGrid->SetColLabelValue( 2, _("Visible") );
|
|
m_fieldGrid->SetColLabelValue( 3, _("Name") );
|
|
m_fieldGrid->SetColLabelValue( 4, wxEmptyString );
|
|
m_fieldGrid->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
|
|
|
|
// Rows
|
|
m_fieldGrid->EnableDragRowSize( true );
|
|
m_fieldGrid->SetRowLabelSize( 80 );
|
|
m_fieldGrid->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
|
|
|
|
// Label Appearance
|
|
|
|
// Cell Defaults
|
|
m_fieldGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
|
|
bSizer11->Add( m_fieldGrid, 1, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
bSizer6->Add( bSizer11, 1, wxEXPAND, 5 );
|
|
|
|
wxBoxSizer* bSizer10;
|
|
bSizer10 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
addFieldButton = new wxButton( m_panel2, wxID_ADD_FIELD, _("&Add"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
bSizer10->Add( addFieldButton, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
deleteFieldButton = new wxButton( m_panel2, wxID_DELETE_FIELD, _("De&lete"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
bSizer10->Add( deleteFieldButton, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
bSizer10->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
bSizer6->Add( bSizer10, 0, wxEXPAND, 5 );
|
|
|
|
|
|
m_panel2->SetSizer( bSizer6 );
|
|
m_panel2->Layout();
|
|
bSizer6->Fit( m_panel2 );
|
|
m_notebook->AddPage( m_panel2, _("Default Fields"), false );
|
|
|
|
bOptionsSizer->Add( m_notebook, 1, wxALL|wxEXPAND, 5 );
|
|
|
|
wxBoxSizer* bSizer12;
|
|
bSizer12 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
m_sdbSizer = new wxStdDialogButtonSizer();
|
|
m_sdbSizerOK = new wxButton( this, wxID_OK );
|
|
m_sdbSizer->AddButton( m_sdbSizerOK );
|
|
m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
|
|
m_sdbSizer->AddButton( m_sdbSizerCancel );
|
|
m_sdbSizer->Realize();
|
|
|
|
bSizer12->Add( m_sdbSizer, 1, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
bOptionsSizer->Add( bSizer12, 0, wxBOTTOM|wxEXPAND, 5 );
|
|
|
|
|
|
mainSizer->Add( bOptionsSizer, 1, wxEXPAND, 12 );
|
|
|
|
|
|
this->SetSizer( mainSizer );
|
|
this->Layout();
|
|
mainSizer->Fit( this );
|
|
|
|
this->Centre( wxBOTH );
|
|
}
|
|
|
|
DIALOG_EESCHEMA_OPTIONS_BASE::~DIALOG_EESCHEMA_OPTIONS_BASE()
|
|
{
|
|
}
|