KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_grid_settings_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf-dirty)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
13
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 )
15{
16 wxBoxSizer* bSizerMain;
17 bSizerMain = new wxBoxSizer( wxVERTICAL );
18
19 wxBoxSizer* bSizerColumns;
20 bSizerColumns = new wxBoxSizer( wxHORIZONTAL );
21
22 wxBoxSizer* bSizerLeftCol;
23 bSizerLeftCol = new wxBoxSizer( wxVERTICAL );
24
25 m_gridsLabel = new wxStaticText( this, wxID_ANY, _("Grids:"), wxDefaultPosition, wxDefaultSize, 0 );
26 m_gridsLabel->Wrap( -1 );
27 bSizerLeftCol->Add( m_gridsLabel, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
28
29 m_currentGridCtrl = new wxListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
30 m_currentGridCtrl->SetMinSize( wxSize( 240,-1 ) );
31
32 bSizerLeftCol->Add( m_currentGridCtrl, 1, wxEXPAND|wxBOTTOM|wxLEFT, 3 );
33
34 wxBoxSizer* bSizerGridButtons;
35 bSizerGridButtons = new wxBoxSizer( wxHORIZONTAL );
36
37 m_addGridButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
38 bSizerGridButtons->Add( m_addGridButton, 0, wxRIGHT|wxLEFT, 5 );
39
40 m_editGridButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
41 bSizerGridButtons->Add( m_editGridButton, 0, wxRIGHT, 5 );
42
43 m_moveUpButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
44 bSizerGridButtons->Add( m_moveUpButton, 0, wxRIGHT, 5 );
45
46 m_moveDownButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
47 bSizerGridButtons->Add( m_moveDownButton, 0, 0, 5 );
48
49
50 bSizerGridButtons->Add( 25, 0, 0, wxEXPAND, 5 );
51
52 m_removeGridButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
53 bSizerGridButtons->Add( m_removeGridButton, 0, 0, 5 );
54
55
56 bSizerLeftCol->Add( bSizerGridButtons, 0, wxEXPAND|wxBOTTOM|wxRIGHT, 5 );
57
58
59 bSizerColumns->Add( bSizerLeftCol, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
60
61
62 bSizerColumns->Add( 16, 0, 0, wxEXPAND, 5 );
63
64 wxBoxSizer* bSizerRightCol;
65 bSizerRightCol = new wxBoxSizer( wxVERTICAL );
66
67 m_staticText21 = new wxStaticText( this, wxID_ANY, _("Fast Grid Switching"), wxDefaultPosition, wxDefaultSize, 0 );
68 m_staticText21->Wrap( -1 );
69 bSizerRightCol->Add( m_staticText21, 0, wxRIGHT|wxLEFT, 12 );
70
71 m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
72 bSizerRightCol->Add( m_staticline2, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
73
74 wxFlexGridSizer* fgSizer3;
75 fgSizer3 = new wxFlexGridSizer( 2, 3, 6, 5 );
76 fgSizer3->AddGrowableCol( 1 );
77 fgSizer3->SetFlexibleDirection( wxBOTH );
78 fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
79
80 m_staticTextGrid1 = new wxStaticText( this, wxID_ANY, _("Grid 1:"), wxDefaultPosition, wxDefaultSize, 0 );
81 m_staticTextGrid1->Wrap( -1 );
82 fgSizer3->Add( m_staticTextGrid1, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 8 );
83
84 wxArrayString m_grid1CtrlChoices;
85 m_grid1Ctrl = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_grid1CtrlChoices, 0 );
86 m_grid1Ctrl->SetSelection( 0 );
87 fgSizer3->Add( m_grid1Ctrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
88
89 m_grid1HotKey = new wxStaticText( this, wxID_ANY, _("(hotkey)"), wxDefaultPosition, wxDefaultSize, 0 );
90 m_grid1HotKey->Wrap( -1 );
91 fgSizer3->Add( m_grid1HotKey, 0, wxALIGN_CENTER_VERTICAL, 5 );
92
93 m_staticTextGrid2 = new wxStaticText( this, wxID_ANY, _("Grid 2:"), wxDefaultPosition, wxDefaultSize, 0 );
94 m_staticTextGrid2->Wrap( -1 );
95 fgSizer3->Add( m_staticTextGrid2, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxLEFT, 8 );
96
97 wxArrayString m_grid2CtrlChoices;
98 m_grid2Ctrl = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_grid2CtrlChoices, 0 );
99 m_grid2Ctrl->SetSelection( 0 );
100 fgSizer3->Add( m_grid2Ctrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
101
102 m_grid2HotKey = new wxStaticText( this, wxID_ANY, _("(hotkey)"), wxDefaultPosition, wxDefaultSize, 0 );
103 m_grid2HotKey->Wrap( -1 );
104 fgSizer3->Add( m_grid2HotKey, 0, wxALIGN_CENTER_VERTICAL, 5 );
105
106
107 bSizerRightCol->Add( fgSizer3, 0, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 10 );
108
109 m_overridesLabel = new wxStaticText( this, wxID_ANY, _("Grid Overrides"), wxDefaultPosition, wxDefaultSize, 0 );
110 m_overridesLabel->Wrap( -1 );
111 bSizerRightCol->Add( m_overridesLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
112
113 m_staticline3 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
114 bSizerRightCol->Add( m_staticline3, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
115
116 wxFlexGridSizer* fgGridOverrides;
117 fgGridOverrides = new wxFlexGridSizer( 0, 2, 4, 0 );
118 fgGridOverrides->AddGrowableCol( 1 );
119 fgGridOverrides->SetFlexibleDirection( wxBOTH );
120 fgGridOverrides->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
121
122 m_checkGridOverrideConnected = new wxCheckBox( this, wxID_ANY, _("Connected items:"), wxDefaultPosition, wxDefaultSize, 0 );
123 fgGridOverrides->Add( m_checkGridOverrideConnected, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT, 8 );
124
125 wxArrayString m_gridOverrideConnectedChoiceChoices;
126 m_gridOverrideConnectedChoice = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_gridOverrideConnectedChoiceChoices, 0 );
127 m_gridOverrideConnectedChoice->SetSelection( 0 );
128 fgGridOverrides->Add( m_gridOverrideConnectedChoice, 0, wxALL, 5 );
129
130 m_checkGridOverrideWires = new wxCheckBox( this, wxID_ANY, _("Wires:"), wxDefaultPosition, wxDefaultSize, 0 );
131 fgGridOverrides->Add( m_checkGridOverrideWires, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT, 8 );
132
133 wxArrayString m_gridOverrideWiresChoiceChoices;
134 m_gridOverrideWiresChoice = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_gridOverrideWiresChoiceChoices, 0 );
135 m_gridOverrideWiresChoice->SetSelection( 0 );
136 fgGridOverrides->Add( m_gridOverrideWiresChoice, 0, wxALL, 5 );
137
138 m_checkGridOverrideVias = new wxCheckBox( this, wxID_ANY, _("Vias:"), wxDefaultPosition, wxDefaultSize, 0 );
139 fgGridOverrides->Add( m_checkGridOverrideVias, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT, 8 );
140
141 wxArrayString m_gridOverrideViasChoiceChoices;
142 m_gridOverrideViasChoice = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_gridOverrideViasChoiceChoices, 0 );
143 m_gridOverrideViasChoice->SetSelection( 0 );
144 fgGridOverrides->Add( m_gridOverrideViasChoice, 0, wxALL, 5 );
145
146 m_checkGridOverrideText = new wxCheckBox( this, wxID_ANY, _("Text:"), wxDefaultPosition, wxDefaultSize, 0 );
147 fgGridOverrides->Add( m_checkGridOverrideText, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT, 8 );
148
149 wxArrayString m_gridOverrideTextChoiceChoices;
150 m_gridOverrideTextChoice = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_gridOverrideTextChoiceChoices, 0 );
151 m_gridOverrideTextChoice->SetSelection( 0 );
152 fgGridOverrides->Add( m_gridOverrideTextChoice, 0, wxALL, 5 );
153
154 m_checkGridOverrideGraphics = new wxCheckBox( this, wxID_ANY, _("Graphics:"), wxDefaultPosition, wxDefaultSize, 0 );
155 fgGridOverrides->Add( m_checkGridOverrideGraphics, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT, 8 );
156
157 wxArrayString m_gridOverrideGraphicsChoiceChoices;
158 m_gridOverrideGraphicsChoice = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_gridOverrideGraphicsChoiceChoices, 0 );
159 m_gridOverrideGraphicsChoice->SetSelection( 0 );
160 fgGridOverrides->Add( m_gridOverrideGraphicsChoice, 0, wxALL, 5 );
161
162
163 bSizerRightCol->Add( fgGridOverrides, 0, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 10 );
164
165
166 bSizerColumns->Add( bSizerRightCol, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
167
168
169 bSizerMain->Add( bSizerColumns, 1, wxEXPAND|wxTOP, 8 );
170
171
172 this->SetSizer( bSizerMain );
173 this->Layout();
174 bSizerMain->Fit( this );
175
176 // Connect Events
177 m_currentGridCtrl->Connect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( PANEL_GRID_SETTINGS_BASE::OnEditGrid ), NULL, this );
178 m_addGridButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_GRID_SETTINGS_BASE::OnAddGrid ), NULL, this );
179 m_editGridButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_GRID_SETTINGS_BASE::OnEditGrid ), NULL, this );
180 m_editGridButton->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_GRID_SETTINGS_BASE::OnUpdateEditGrid ), NULL, this );
181 m_moveUpButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_GRID_SETTINGS_BASE::OnMoveGridUp ), NULL, this );
182 m_moveUpButton->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_GRID_SETTINGS_BASE::OnUpdateMoveUp ), NULL, this );
183 m_moveDownButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_GRID_SETTINGS_BASE::OnMoveGridDown ), NULL, this );
184 m_moveDownButton->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_GRID_SETTINGS_BASE::OnUpdateMoveDown ), NULL, this );
185 m_removeGridButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_GRID_SETTINGS_BASE::OnRemoveGrid ), NULL, this );
186 m_removeGridButton->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_GRID_SETTINGS_BASE::OnUpdateRemove ), NULL, this );
187}
188
190{
191 // Disconnect Events
192 m_currentGridCtrl->Disconnect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( PANEL_GRID_SETTINGS_BASE::OnEditGrid ), NULL, this );
193 m_addGridButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_GRID_SETTINGS_BASE::OnAddGrid ), NULL, this );
194 m_editGridButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_GRID_SETTINGS_BASE::OnEditGrid ), NULL, this );
195 m_editGridButton->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_GRID_SETTINGS_BASE::OnUpdateEditGrid ), NULL, this );
196 m_moveUpButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_GRID_SETTINGS_BASE::OnMoveGridUp ), NULL, this );
197 m_moveUpButton->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_GRID_SETTINGS_BASE::OnUpdateMoveUp ), NULL, this );
198 m_moveDownButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_GRID_SETTINGS_BASE::OnMoveGridDown ), NULL, this );
199 m_moveDownButton->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_GRID_SETTINGS_BASE::OnUpdateMoveDown ), NULL, this );
200 m_removeGridButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_GRID_SETTINGS_BASE::OnRemoveGrid ), NULL, this );
201 m_removeGridButton->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_GRID_SETTINGS_BASE::OnUpdateRemove ), NULL, this );
202
203}
const char * name
Definition: DXF_plotter.cpp:57
virtual void OnUpdateMoveDown(wxUpdateUIEvent &event)
STD_BITMAP_BUTTON * m_removeGridButton
STD_BITMAP_BUTTON * m_editGridButton
virtual void OnRemoveGrid(wxCommandEvent &event)
virtual void OnUpdateEditGrid(wxUpdateUIEvent &event)
virtual void OnMoveGridDown(wxCommandEvent &event)
virtual void OnMoveGridUp(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_moveDownButton
virtual void OnAddGrid(wxCommandEvent &event)
virtual void OnEditGrid(wxCommandEvent &event)
virtual void OnUpdateMoveUp(wxUpdateUIEvent &event)
virtual void OnUpdateRemove(wxUpdateUIEvent &event)
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
STD_BITMAP_BUTTON * m_moveUpButton
A wxPanel that is designed to be reset in a standard manner.
A bitmap button widget that behaves like a standard dialog button except with an icon.
#define _(s)