KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_generated_table_properties_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6a)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
10
12
14
15DIALOG_GENERATED_TABLE_PROPERTIES_BASE::DIALOG_GENERATED_TABLE_PROPERTIES_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
16{
17 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
18
19 wxBoxSizer* bMain;
20 bMain = new wxBoxSizer( wxVERTICAL );
21
22 m_infoBar = new WX_INFOBAR( this );
23 m_infoBar->SetShowHideEffects( wxSHOW_EFFECT_NONE, wxSHOW_EFFECT_NONE );
24 m_infoBar->SetEffectDuration( 500 );
25 bMain->Add( m_infoBar, 0, wxEXPAND, 0 );
26
27 m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
28 m_generalPanel = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
29 wxBoxSizer* bGeneral;
30 bGeneral = new wxBoxSizer( wxVERTICAL );
31
32 wxFlexGridSizer* fgGeneral;
33 fgGeneral = new wxFlexGridSizer( 0, 2, 5, 5 );
34 fgGeneral->AddGrowableCol( 1 );
35 fgGeneral->SetFlexibleDirection( wxBOTH );
36 fgGeneral->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
37
38 m_layerLabel = new wxStaticText( m_generalPanel, wxID_ANY, _("Layer:"), wxDefaultPosition, wxDefaultSize, 0 );
39 m_layerLabel->Wrap( -1 );
40 fgGeneral->Add( m_layerLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
41
42 m_LayerSelectionCtrl = new PCB_LAYER_BOX_SELECTOR( m_generalPanel, wxID_ANY, _("Combo!"), wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
43 m_LayerSelectionCtrl->SetMinSize( wxSize( 175,-1 ) );
44
45 fgGeneral->Add( m_LayerSelectionCtrl, 0, wxEXPAND|wxRIGHT, 5 );
46
47 m_unitsLabel = new wxStaticText( m_generalPanel, wxID_ANY, _("Units:"), wxDefaultPosition, wxDefaultSize, 0 );
48 m_unitsLabel->Wrap( -1 );
49 fgGeneral->Add( m_unitsLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
50
51 wxString m_unitsCtrlChoices[] = { _("mm"), _("inch"), _("mils") };
52 int m_unitsCtrlNChoices = sizeof( m_unitsCtrlChoices ) / sizeof( wxString );
53 m_unitsCtrl = new wxChoice( m_generalPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_unitsCtrlNChoices, m_unitsCtrlChoices, 0 );
54 m_unitsCtrl->SetSelection( 0 );
55 fgGeneral->Add( m_unitsCtrl, 0, wxEXPAND|wxRIGHT, 5 );
56
57 m_precisionLabel = new wxStaticText( m_generalPanel, wxID_ANY, _("Decimal places:"), wxDefaultPosition, wxDefaultSize, 0 );
58 m_precisionLabel->Wrap( -1 );
59 fgGeneral->Add( m_precisionLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
60
61 m_precisionCtrl = new wxSpinCtrl( m_generalPanel, wxID_ANY, wxT("3"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 6, 0 );
62 fgGeneral->Add( m_precisionCtrl, 0, wxRIGHT, 5 );
63
64
65 bGeneral->Add( fgGeneral, 0, wxEXPAND|wxALL, 5 );
66
67 m_cbLocked = new wxCheckBox( m_generalPanel, wxID_ANY, _("Locked"), wxDefaultPosition, wxDefaultSize, 0 );
68 bGeneral->Add( m_cbLocked, 0, wxALL|wxEXPAND, 5 );
69
70
71 m_generalPanel->SetSizer( bGeneral );
72 m_generalPanel->Layout();
73 bGeneral->Fit( m_generalPanel );
74 m_notebook->AddPage( m_generalPanel, _("General"), false );
75 m_columnsPanel = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
76 wxBoxSizer* bColumns;
77 bColumns = new wxBoxSizer( wxVERTICAL );
78
79 wxBoxSizer* bColumnsTop;
80 bColumnsTop = new wxBoxSizer( wxHORIZONTAL );
81
82 m_columnGrid = new WX_GRID( m_columnsPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
83
84 // Grid
85 m_columnGrid->CreateGrid( 0, 5 );
86 m_columnGrid->EnableEditing( true );
87 m_columnGrid->EnableGridLines( true );
88 m_columnGrid->SetGridLineColour( wxSystemSettings::GetColour( wxSYS_COLOUR_ACTIVEBORDER ) );
89 m_columnGrid->EnableDragGridSize( false );
90 m_columnGrid->SetMargins( 0, 0 );
91
92 // Columns
93 m_columnGrid->EnableDragColMove( false );
94 m_columnGrid->EnableDragColSize( true );
95 m_columnGrid->SetColLabelSize( 22 );
96 m_columnGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
97
98 // Rows
99 m_columnGrid->EnableDragRowSize( false );
100 m_columnGrid->SetRowLabelSize( 0 );
101 m_columnGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
102
103 // Label Appearance
104
105 // Cell Defaults
106 m_columnGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
107 m_columnGrid->SetMinSize( wxSize( -1,220 ) );
108
109 bColumnsTop->Add( m_columnGrid, 1, wxEXPAND|wxALL, 5 );
110
111 wxBoxSizer* bColButtons;
112 bColButtons = new wxBoxSizer( wxVERTICAL );
113
114 m_moveUpButton = new wxButton( m_columnsPanel, wxID_ANY, _("Move Up"), wxDefaultPosition, wxDefaultSize, 0 );
115 bColButtons->Add( m_moveUpButton, 0, wxEXPAND|wxBOTTOM, 5 );
116
117 m_moveDownButton = new wxButton( m_columnsPanel, wxID_ANY, _("Move Down"), wxDefaultPosition, wxDefaultSize, 0 );
118 bColButtons->Add( m_moveDownButton, 0, wxEXPAND|wxBOTTOM, 5 );
119
120 m_resetColumnsButton = new wxButton( m_columnsPanel, wxID_ANY, _("Reset to Default"), wxDefaultPosition, wxDefaultSize, 0 );
121 bColButtons->Add( m_resetColumnsButton, 0, wxEXPAND|wxTOP, 5 );
122
123
124 bColumnsTop->Add( bColButtons, 0, wxALIGN_TOP|wxALL, 5 );
125
126
127 bColumns->Add( bColumnsTop, 1, wxEXPAND, 0 );
128
129 m_optionsSizer = new wxBoxSizer( wxVERTICAL );
130
131
132 bColumns->Add( m_optionsSizer, 0, wxEXPAND, 0 );
133
134
135 m_columnsPanel->SetSizer( bColumns );
136 m_columnsPanel->Layout();
137 bColumns->Fit( m_columnsPanel );
138 m_notebook->AddPage( m_columnsPanel, _("Columns"), false );
139 m_appearancePanel = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
140 wxBoxSizer* bAppearance;
141 bAppearance = new wxBoxSizer( wxVERTICAL );
142
143 m_borderCheckbox = new wxCheckBox( m_appearancePanel, wxID_ANY, _("External border"), wxDefaultPosition, wxDefaultSize, 0 );
144 m_borderCheckbox->SetValue(true);
145 bAppearance->Add( m_borderCheckbox, 0, wxALL|wxEXPAND, 5 );
146
147 m_headerBorder = new wxCheckBox( m_appearancePanel, wxID_ANY, _("Header separator"), wxDefaultPosition, wxDefaultSize, 0 );
148 m_headerBorder->SetValue(true);
149 bAppearance->Add( m_headerBorder, 0, wxALL|wxEXPAND, 5 );
150
151 m_rowSeparators = new wxCheckBox( m_appearancePanel, wxID_ANY, _("Row separators"), wxDefaultPosition, wxDefaultSize, 0 );
152 m_rowSeparators->SetValue(true);
153 bAppearance->Add( m_rowSeparators, 0, wxALL|wxEXPAND, 5 );
154
155 m_colSeparators = new wxCheckBox( m_appearancePanel, wxID_ANY, _("Column separators"), wxDefaultPosition, wxDefaultSize, 0 );
156 m_colSeparators->SetValue(true);
157 bAppearance->Add( m_colSeparators, 0, wxALL|wxEXPAND, 5 );
158
159 wxFlexGridSizer* fgAppearance;
160 fgAppearance = new wxFlexGridSizer( 0, 3, 5, 5 );
161 fgAppearance->AddGrowableCol( 1 );
162 fgAppearance->SetFlexibleDirection( wxBOTH );
163 fgAppearance->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
164
165 m_borderWidthLabel = new wxStaticText( m_appearancePanel, wxID_ANY, _("Border width:"), wxDefaultPosition, wxDefaultSize, 0 );
166 m_borderWidthLabel->Wrap( -1 );
167 fgAppearance->Add( m_borderWidthLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
168
169 m_borderWidthCtrl = new wxTextCtrl( m_appearancePanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
170 fgAppearance->Add( m_borderWidthCtrl, 0, wxEXPAND, 5 );
171
172 m_borderWidthUnits = new wxStaticText( m_appearancePanel, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
173 m_borderWidthUnits->Wrap( -1 );
174 fgAppearance->Add( m_borderWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
175
176 m_separatorsWidthLabel = new wxStaticText( m_appearancePanel, wxID_ANY, _("Separator width:"), wxDefaultPosition, wxDefaultSize, 0 );
177 m_separatorsWidthLabel->Wrap( -1 );
178 fgAppearance->Add( m_separatorsWidthLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
179
180 m_separatorsWidthCtrl = new wxTextCtrl( m_appearancePanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
181 fgAppearance->Add( m_separatorsWidthCtrl, 0, wxEXPAND, 5 );
182
183 m_separatorsWidthUnits = new wxStaticText( m_appearancePanel, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
184 m_separatorsWidthUnits->Wrap( -1 );
185 fgAppearance->Add( m_separatorsWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
186
187
188 bAppearance->Add( fgAppearance, 0, wxEXPAND|wxALL, 5 );
189
190
191 m_appearancePanel->SetSizer( bAppearance );
192 m_appearancePanel->Layout();
193 bAppearance->Fit( m_appearancePanel );
194 m_notebook->AddPage( m_appearancePanel, _("Appearance"), false );
195
196 bMain->Add( m_notebook, 1, wxEXPAND|wxALL, 5 );
197
198 m_sdbSizer = new wxStdDialogButtonSizer();
199 m_sdbSizerOK = new wxButton( this, wxID_OK );
200 m_sdbSizer->AddButton( m_sdbSizerOK );
201 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
202 m_sdbSizer->AddButton( m_sdbSizerCancel );
203 m_sdbSizer->Realize();
204
205 bMain->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
206
207
208 this->SetSizer( bMain );
209 this->Layout();
210 bMain->Fit( this );
211
212 this->Centre( wxBOTH );
213
214 // Connect Events
215 m_moveUpButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENERATED_TABLE_PROPERTIES_BASE::onMoveUp ), NULL, this );
216 m_moveDownButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENERATED_TABLE_PROPERTIES_BASE::onMoveDown ), NULL, this );
217 m_resetColumnsButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENERATED_TABLE_PROPERTIES_BASE::onResetColumns ), NULL, this );
218 m_borderCheckbox->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GENERATED_TABLE_PROPERTIES_BASE::onBorderChecked ), NULL, this );
219}
220
222{
223 // Disconnect Events
224 m_moveUpButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENERATED_TABLE_PROPERTIES_BASE::onMoveUp ), NULL, this );
225 m_moveDownButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENERATED_TABLE_PROPERTIES_BASE::onMoveDown ), NULL, this );
226 m_resetColumnsButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENERATED_TABLE_PROPERTIES_BASE::onResetColumns ), NULL, this );
227 m_borderCheckbox->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GENERATED_TABLE_PROPERTIES_BASE::onBorderChecked ), NULL, this );
228
229}
DIALOG_GENERATED_TABLE_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Table Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)
Class to display a pcb layer list in a wxBitmapComboBox.
A modified version of the wxInfoBar class that allows us to:
Definition wx_infobar.h:76
#define _(s)