14DIALOG_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 )
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
18 wxBoxSizer* bSizerMain;
19 bSizerMain =
new wxBoxSizer( wxHORIZONTAL );
21 wxBoxSizer* bSizerUpper;
22 bSizerUpper =
new wxBoxSizer( wxHORIZONTAL );
83 bSizerMain->Add( bSizerUpper, 1, wxEXPAND|wxALL, 10 );
86 this->SetSizer( bSizerMain );
88 bSizerMain->Fit(
this );
90 this->Centre( wxBOTH );
111DIALOG_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 )
113 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
115 wxBoxSizer* bSizerMain;
116 bSizerMain =
new wxBoxSizer( wxVERTICAL );
118 wxBoxSizer* bSizerUpper;
119 bSizerUpper =
new wxBoxSizer( wxHORIZONTAL );
121 wxBoxSizer* bSizerLeft;
122 bSizerLeft =
new wxBoxSizer( wxVERTICAL );
124 m_staticTextTopLayer =
new wxStaticText(
this, wxID_ANY,
_(
"Top/Front layer:"), wxDefaultPosition, wxDefaultSize, 0 );
158 bSizerUpper->Add( bSizerLeft, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
160 wxBoxSizer* bSizerRight;
161 bSizerRight =
new wxBoxSizer( wxVERTICAL );
163 m_staticTextBottomLayer =
new wxStaticText(
this, wxID_ANY,
_(
"Bottom/Back layer:"), wxDefaultPosition, wxDefaultSize, 0 );
197 bSizerUpper->Add( bSizerRight, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
200 bSizer7 =
new wxBoxSizer( wxVERTICAL );
202 m_addToPresetsButton =
new wxBitmapButton(
this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
206 bSizerUpper->Add( bSizer7, 0, wxALIGN_CENTER_VERTICAL, 5 );
208 wxStaticBoxSizer* m_presetsSizer;
209 m_presetsSizer =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Copper layer pair presets") ), wxVERTICAL );
232 m_presetsGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
237 m_presetsGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
242 m_presetsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
245 m_deleteRowButton =
new wxBitmapButton( m_presetsSizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
249 bSizerUpper->Add( m_presetsSizer, 1, wxEXPAND, 5 );
252 bSizerMain->Add( bSizerUpper, 1, wxALL|wxEXPAND, 5 );
261 bSizerMain->Add(
m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 5 );
264 this->SetSizer( bSizerMain );
267 this->Centre( wxBOTH );
wxGrid * m_rightGridLayers
wxButton * m_sdbSizerCancel
wxBitmapButton * m_deleteRowButton
wxBitmapButton * m_addToPresetsButton
~DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE()
wxGrid * m_leftGridLayers
wxStdDialogButtonSizer * m_sdbSizer
wxStaticText * m_staticTextBottomLayer
wxStaticText * m_staticTextTopLayer
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(744, 217), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
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...