14PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) :
RESETTABLE_PANEL( parent, id, pos, size, style,
name )
16 wxBoxSizer* bSizerMain;
17 bSizerMain =
new wxBoxSizer( wxVERTICAL );
19 wxBoxSizer* bSizerColumns;
20 bSizerColumns =
new wxBoxSizer( wxHORIZONTAL );
22 wxBoxSizer* bSizerLeftCol;
23 bSizerLeftCol =
new wxBoxSizer( wxVERTICAL );
25 m_gridsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Grids:"), wxDefaultPosition, wxDefaultSize, 0 );
27 bSizerLeftCol->Add(
m_gridsLabel, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
29 m_currentGridCtrl =
new wxListBox(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
34 wxBoxSizer* bSizerGridButtons;
35 bSizerGridButtons =
new wxBoxSizer( wxHORIZONTAL );
47 bSizerGridButtons->Add( 25, 0, 0, wxEXPAND, 5 );
53 bSizerLeftCol->Add( bSizerGridButtons, 0, wxEXPAND|wxBOTTOM|wxRIGHT, 5 );
56 bSizerColumns->Add( bSizerLeftCol, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
59 bSizerColumns->Add( 16, 0, 0, wxEXPAND, 5 );
61 wxBoxSizer* bSizerRightCol;
62 bSizerRightCol =
new wxBoxSizer( wxVERTICAL );
64 m_staticText21 =
new wxStaticText(
this, wxID_ANY,
_(
"Fast Grid Switching"), wxDefaultPosition, wxDefaultSize, 0 );
68 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
69 bSizerRightCol->Add(
m_staticline2, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
71 wxFlexGridSizer* fgSizer3;
72 fgSizer3 =
new wxFlexGridSizer( 2, 3, 6, 5 );
73 fgSizer3->AddGrowableCol( 1 );
74 fgSizer3->SetFlexibleDirection( wxBOTH );
75 fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
77 m_staticTextGrid1 =
new wxStaticText(
this, wxID_ANY,
_(
"Grid 1:"), wxDefaultPosition, wxDefaultSize, 0 );
81 wxArrayString m_grid1CtrlChoices;
82 m_grid1Ctrl =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_grid1CtrlChoices, 0 );
84 fgSizer3->Add(
m_grid1Ctrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
86 m_grid1HotKey =
new wxStaticText(
this, wxID_ANY,
_(
"(hotkey)"), wxDefaultPosition, wxDefaultSize, 0 );
88 fgSizer3->Add(
m_grid1HotKey, 0, wxALIGN_CENTER_VERTICAL, 5 );
90 m_staticTextGrid2 =
new wxStaticText(
this, wxID_ANY,
_(
"Grid 2:"), wxDefaultPosition, wxDefaultSize, 0 );
92 fgSizer3->Add(
m_staticTextGrid2, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxLEFT, 8 );
94 wxArrayString m_grid2CtrlChoices;
95 m_grid2Ctrl =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_grid2CtrlChoices, 0 );
97 fgSizer3->Add(
m_grid2Ctrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
99 m_grid2HotKey =
new wxStaticText(
this, wxID_ANY,
_(
"(hotkey)"), wxDefaultPosition, wxDefaultSize, 0 );
101 fgSizer3->Add(
m_grid2HotKey, 0, wxALIGN_CENTER_VERTICAL, 5 );
104 bSizerRightCol->Add( fgSizer3, 0, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 10 );
106 m_overridesLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Grid Overrides"), wxDefaultPosition, wxDefaultSize, 0 );
110 m_staticline3 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
111 bSizerRightCol->Add(
m_staticline3, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
113 wxFlexGridSizer* fgGridOverrides;
114 fgGridOverrides =
new wxFlexGridSizer( 0, 2, 5, 0 );
115 fgGridOverrides->AddGrowableCol( 1 );
116 fgGridOverrides->SetFlexibleDirection( wxBOTH );
117 fgGridOverrides->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
122 wxArrayString m_gridOverrideConnectedChoiceChoices;
130 wxArrayString m_gridOverrideWiresChoiceChoices;
131 m_gridOverrideWiresChoice =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_gridOverrideWiresChoiceChoices, 0 );
138 wxArrayString m_gridOverrideViasChoiceChoices;
139 m_gridOverrideViasChoice =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_gridOverrideViasChoiceChoices, 0 );
146 wxArrayString m_gridOverrideTextChoiceChoices;
147 m_gridOverrideTextChoice =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_gridOverrideTextChoiceChoices, 0 );
154 wxArrayString m_gridOverrideGraphicsChoiceChoices;
155 m_gridOverrideGraphicsChoice =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_gridOverrideGraphicsChoiceChoices, 0 );
160 bSizerRightCol->Add( fgGridOverrides, 0, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 10 );
163 bSizerColumns->Add( bSizerRightCol, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
166 bSizerMain->Add( bSizerColumns, 1, wxEXPAND|wxTOP, 8 );
169 this->SetSizer( bSizerMain );
171 bSizerMain->Fit(
this );
~PANEL_GRID_SETTINGS_BASE()
wxStaticLine * m_staticline2
STD_BITMAP_BUTTON * m_removeGridButton
virtual void OnRemoveGrid(wxCommandEvent &event)
wxStaticLine * m_staticline3
wxCheckBox * m_checkGridOverrideConnected
wxCheckBox * m_checkGridOverrideText
wxChoice * m_gridOverrideConnectedChoice
virtual void OnMoveGridDown(wxCommandEvent &event)
wxCheckBox * m_checkGridOverrideGraphics
virtual void OnMoveGridUp(wxCommandEvent &event)
wxChoice * m_gridOverrideWiresChoice
wxStaticText * m_staticTextGrid1
STD_BITMAP_BUTTON * m_moveDownButton
virtual void OnAddGrid(wxCommandEvent &event)
wxStaticText * m_overridesLabel
wxChoice * m_gridOverrideTextChoice
wxCheckBox * m_checkGridOverrideVias
wxStaticText * m_grid2HotKey
wxStaticText * m_grid1HotKey
wxListBox * m_currentGridCtrl
wxChoice * m_gridOverrideGraphicsChoice
wxChoice * m_gridOverrideViasChoice
wxCheckBox * m_checkGridOverrideWires
PANEL_GRID_SETTINGS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
STD_BITMAP_BUTTON * m_addGridButton
wxStaticText * m_gridsLabel
wxStaticText * m_staticTextGrid2
STD_BITMAP_BUTTON * m_moveUpButton
wxStaticText * m_staticText21
A wxPanel that is designed to be reset in a standard manner.