15DIALOG_LAYER_SELECTION_BASE::DIALOG_LAYER_SELECTION_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
17 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
19 wxBoxSizer* bSizerMain;
20 bSizerMain =
new wxBoxSizer( wxHORIZONTAL );
22 wxBoxSizer* bSizerUpper;
23 bSizerUpper =
new wxBoxSizer( wxHORIZONTAL );
25 m_leftGridLayers =
new wxGrid(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
54 m_rightGridLayers =
new wxGrid(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
84 bSizerMain->Add( bSizerUpper, 1, wxEXPAND|wxALL, 10 );
87 this->SetSizer( bSizerMain );
89 bSizerMain->Fit(
this );
91 this->Centre( wxBOTH );
112DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
114 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
116 wxBoxSizer* bSizerMain;
117 bSizerMain =
new wxBoxSizer( wxVERTICAL );
119 wxBoxSizer* bSizerUpper;
120 bSizerUpper =
new wxBoxSizer( wxHORIZONTAL );
122 wxBoxSizer* bSizerLeft;
123 bSizerLeft =
new wxBoxSizer( wxVERTICAL );
125 m_staticTextTopLayer =
new wxStaticText(
this, wxID_ANY,
_(
"Top/Front layer:"), wxDefaultPosition, wxDefaultSize, 0 );
129 m_leftGridLayers =
new wxGrid(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
159 bSizerUpper->Add( bSizerLeft, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
161 wxBoxSizer* bSizerRight;
162 bSizerRight =
new wxBoxSizer( wxVERTICAL );
164 m_staticTextBottomLayer =
new wxStaticText(
this, wxID_ANY,
_(
"Bottom/Back layer:"), wxDefaultPosition, wxDefaultSize, 0 );
168 m_rightGridLayers =
new wxGrid(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
198 bSizerUpper->Add( bSizerRight, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
201 bSizer7 =
new wxBoxSizer( wxVERTICAL );
203 m_addToPresetsButton =
new wxBitmapButton(
this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
207 bSizerUpper->Add( bSizer7, 0, wxALIGN_CENTER_VERTICAL, 5 );
209 wxStaticBoxSizer* m_presetsSizer;
210 m_presetsSizer =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Copper Layer Pair Presets") ), wxVERTICAL );
212 m_presetsGrid =
new WX_GRID( m_presetsSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
233 m_presetsGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
238 m_presetsGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
243 m_presetsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
250 bSizerUpper->Add( m_presetsSizer, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
253 bSizerMain->Add( bSizerUpper, 1, wxALL|wxEXPAND, 5 );
262 bSizerMain->Add(
m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 5 );
265 this->SetSizer( bSizerMain );
267 bSizerMain->Fit(
this );
269 this->Centre( wxBOTH );
DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Select Copper Layer Pair"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxGrid * m_rightGridLayers
wxButton * m_sdbSizerCancel
wxBitmapButton * m_addToPresetsButton
~DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE()
wxGrid * m_leftGridLayers
wxStdDialogButtonSizer * m_sdbSizer
STD_BITMAP_BUTTON * m_deleteRowButton
wxStaticText * m_staticTextBottomLayer
wxStaticText * m_staticTextTopLayer
virtual void OnMouseMove(wxUpdateUIEvent &event)
wxGrid * m_leftGridLayers
~DIALOG_LAYER_SELECTION_BASE()
virtual void OnRightGridCellClick(wxGridEvent &event)
DIALOG_LAYER_SELECTION_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Select Layer"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxGrid * m_rightGridLayers
virtual void OnLeftGridCellClick(wxGridEvent &event)
virtual void OnLeftButtonReleased(wxMouseEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...