KiCad PCB EDA Suite
Loading...
Searching...
No Matches
eeschema/dialogs/dialog_table_properties_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
10
12
14
15DIALOG_TABLE_PROPERTIES_BASE::DIALOG_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* bMainSizer;
20 bMainSizer = 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 m_infoBar->Hide();
26
27 bMainSizer->Add( m_infoBar, 0, wxEXPAND|wxBOTTOM, 5 );
28
29 wxBoxSizer* bColumns;
30 bColumns = new wxBoxSizer( wxHORIZONTAL );
31
32 m_gridSizer = new wxBoxSizer( wxVERTICAL );
33
34 m_gridSizer->SetMinSize( wxSize( 600,400 ) );
35 wxStaticText* cellContentsLabel;
36 cellContentsLabel = new wxStaticText( this, wxID_ANY, _("Cell contents:"), wxDefaultPosition, wxDefaultSize, 0 );
37 cellContentsLabel->Wrap( -1 );
38 m_gridSizer->Add( cellContentsLabel, 0, wxTOP|wxBOTTOM, 3 );
39
40
41 bColumns->Add( m_gridSizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
42
43
44 bColumns->Add( 10, 0, 0, wxEXPAND, 15 );
45
46 wxBoxSizer* bPropertiesMargins;
47 bPropertiesMargins = new wxBoxSizer( wxVERTICAL );
48
49 wxGridBagSizer* bPropertiesSizer;
50 bPropertiesSizer = new wxGridBagSizer( 3, 3 );
51 bPropertiesSizer->SetFlexibleDirection( wxBOTH );
52 bPropertiesSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
53 bPropertiesSizer->SetEmptyCellSize( wxSize( 0,2 ) );
54
55 m_borderCheckbox = new wxCheckBox( this, wxID_ANY, _("External border"), wxDefaultPosition, wxDefaultSize, 0 );
56 bPropertiesSizer->Add( m_borderCheckbox, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxBOTTOM, 2 );
57
58 m_headerBorder = new wxCheckBox( this, wxID_ANY, _("Header border"), wxDefaultPosition, wxDefaultSize, 0 );
59 bPropertiesSizer->Add( m_headerBorder, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxLEFT, 20 );
60
61 m_borderWidthLabel = new wxStaticText( this, wxID_ANY, _("Width:"), wxDefaultPosition, wxDefaultSize, 0 );
62 m_borderWidthLabel->Wrap( -1 );
63 bPropertiesSizer->Add( m_borderWidthLabel, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
64
65 wxBoxSizer* bSizer7;
66 bSizer7 = new wxBoxSizer( wxHORIZONTAL );
67
68 m_borderWidthCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
69 bSizer7->Add( m_borderWidthCtrl, 0, wxEXPAND, 5 );
70
71 m_borderWidthUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
72 m_borderWidthUnits->Wrap( -1 );
73 bSizer7->Add( m_borderWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 3 );
74
75 m_borderColorLabel = new wxStaticText( this, wxID_ANY, _("Color:"), wxDefaultPosition, wxDefaultSize, 0 );
76 m_borderColorLabel->Wrap( -1 );
77 bSizer7->Add( m_borderColorLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 15 );
78
79
80 bSizer7->Add( 5, 0, 0, 0, 5 );
81
82 m_panelBorderColor = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
83 wxBoxSizer* bSizer2;
84 bSizer2 = new wxBoxSizer( wxVERTICAL );
85
86 m_borderColorSwatch = new COLOR_SWATCH( m_panelBorderColor, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
87 bSizer2->Add( m_borderColorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
88
89
90 m_panelBorderColor->SetSizer( bSizer2 );
91 m_panelBorderColor->Layout();
92 bSizer2->Fit( m_panelBorderColor );
93 bSizer7->Add( m_panelBorderColor, 0, wxALIGN_CENTER_VERTICAL, 5 );
94
95
96 bPropertiesSizer->Add( bSizer7, wxGBPosition( 2, 1 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
97
98 m_borderStyleLabel = new wxStaticText( this, wxID_ANY, _("Style:"), wxDefaultPosition, wxDefaultSize, 0 );
99 m_borderStyleLabel->Wrap( -1 );
100 bPropertiesSizer->Add( m_borderStyleLabel, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
101
102 m_borderStyleCombo = new wxBitmapComboBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
103 m_borderStyleCombo->SetMinSize( wxSize( 200,-1 ) );
104
105 bPropertiesSizer->Add( m_borderStyleCombo, wxGBPosition( 3, 1 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
106
107
108 bPropertiesSizer->Add( 0, 20, wxGBPosition( 4, 0 ), wxGBSpan( 1, 1 ), wxEXPAND, 5 );
109
110 m_rowSeparators = new wxCheckBox( this, wxID_ANY, _("Row lines"), wxDefaultPosition, wxDefaultSize, 0 );
111 bPropertiesSizer->Add( m_rowSeparators, wxGBPosition( 5, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 15 );
112
113 m_colSeparators = new wxCheckBox( this, wxID_ANY, _("Column lines"), wxDefaultPosition, wxDefaultSize, 0 );
114 bPropertiesSizer->Add( m_colSeparators, wxGBPosition( 5, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 20 );
115
116 m_separatorsWidthLabel = new wxStaticText( this, wxID_ANY, _("Width:"), wxDefaultPosition, wxDefaultSize, 0 );
117 m_separatorsWidthLabel->Wrap( -1 );
118 bPropertiesSizer->Add( m_separatorsWidthLabel, wxGBPosition( 7, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
119
120 wxBoxSizer* bSizer71;
121 bSizer71 = new wxBoxSizer( wxHORIZONTAL );
122
123 m_separatorsWidthCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
124 bSizer71->Add( m_separatorsWidthCtrl, 0, wxEXPAND, 5 );
125
126 m_separatorsWidthUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
127 m_separatorsWidthUnits->Wrap( -1 );
128 bSizer71->Add( m_separatorsWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 3 );
129
130 m_separatorsColorLabel = new wxStaticText( this, wxID_ANY, _("Color:"), wxDefaultPosition, wxDefaultSize, 0 );
131 m_separatorsColorLabel->Wrap( -1 );
132 bSizer71->Add( m_separatorsColorLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 15 );
133
134
135 bSizer71->Add( 5, 0, 0, 0, 5 );
136
137 m_panelSeparatorsColor = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
138 wxBoxSizer* bSizer21;
139 bSizer21 = new wxBoxSizer( wxVERTICAL );
140
141 m_separatorsColorSwatch = new COLOR_SWATCH( m_panelSeparatorsColor, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
142 bSizer21->Add( m_separatorsColorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
143
144
145 m_panelSeparatorsColor->SetSizer( bSizer21 );
146 m_panelSeparatorsColor->Layout();
147 bSizer21->Fit( m_panelSeparatorsColor );
148 bSizer71->Add( m_panelSeparatorsColor, 0, wxALIGN_CENTER_VERTICAL, 5 );
149
150
151 bPropertiesSizer->Add( bSizer71, wxGBPosition( 7, 1 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
152
153 m_separatorsStyleLabel = new wxStaticText( this, wxID_ANY, _("Style:"), wxDefaultPosition, wxDefaultSize, 0 );
154 m_separatorsStyleLabel->Wrap( -1 );
155 bPropertiesSizer->Add( m_separatorsStyleLabel, wxGBPosition( 8, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
156
157 m_separatorsStyleCombo = new wxBitmapComboBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
158 m_separatorsStyleCombo->SetMinSize( wxSize( 200,-1 ) );
159
160 bPropertiesSizer->Add( m_separatorsStyleCombo, wxGBPosition( 8, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
161
162
163 bPropertiesSizer->AddGrowableCol( 1 );
164
165 bPropertiesMargins->Add( bPropertiesSizer, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
166
167
168 bColumns->Add( bPropertiesMargins, 0, wxEXPAND|wxTOP, 5 );
169
170
171 bMainSizer->Add( bColumns, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
172
173 wxBoxSizer* bButtons;
174 bButtons = new wxBoxSizer( wxHORIZONTAL );
175
176
177 bButtons->Add( 0, 0, 1, wxEXPAND, 5 );
178
179 m_sdbSizer1 = new wxStdDialogButtonSizer();
180 m_sdbSizer1OK = new wxButton( this, wxID_OK );
181 m_sdbSizer1->AddButton( m_sdbSizer1OK );
182 m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
183 m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
184 m_sdbSizer1->Realize();
185
186 bButtons->Add( m_sdbSizer1, 0, wxEXPAND|wxALL, 5 );
187
188
189 bMainSizer->Add( bButtons, 0, wxEXPAND, 5 );
190
191
192 this->SetSizer( bMainSizer );
193 this->Layout();
194 bMainSizer->Fit( this );
195
196 // Connect Events
197 this->Connect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_TABLE_PROPERTIES_BASE::onSize ) );
198 m_borderCheckbox->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_TABLE_PROPERTIES_BASE::onBorderChecked ), NULL, this );
199 m_rowSeparators->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_TABLE_PROPERTIES_BASE::onBorderChecked ), NULL, this );
200 m_colSeparators->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_TABLE_PROPERTIES_BASE::onBorderChecked ), NULL, this );
201}
202
204{
205 // Disconnect Events
206 this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_TABLE_PROPERTIES_BASE::onSize ) );
207 m_borderCheckbox->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_TABLE_PROPERTIES_BASE::onBorderChecked ), NULL, this );
208 m_rowSeparators->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_TABLE_PROPERTIES_BASE::onBorderChecked ), NULL, this );
209 m_colSeparators->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_TABLE_PROPERTIES_BASE::onBorderChecked ), NULL, this );
210
211}
A simple color swatch of the kind used to set layer colors.
Definition: color_swatch.h:57
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
DIALOG_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)
A modified version of the wxInfoBar class that allows us to:
Definition: wx_infobar.h:75
#define _(s)