12DIALOG_GRID_SETTINGS_BASE::DIALOG_GRID_SETTINGS_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
16 wxBoxSizer* bMainSizer;
17 bMainSizer =
new wxBoxSizer( wxVERTICAL );
19 wxFlexGridSizer* m_fgGrid;
20 m_fgGrid =
new wxFlexGridSizer( 0, 3, 0, 0 );
21 m_fgGrid->AddGrowableCol( 1 );
22 m_fgGrid->SetFlexibleDirection( wxBOTH );
23 m_fgGrid->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
25 m_staticTextName =
new wxStaticText(
this, wxID_ANY,
_(
"Name:"), wxDefaultPosition, wxDefaultSize, 0 );
27 m_fgGrid->Add(
m_staticTextName, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
29 m_textName =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
30 m_fgGrid->Add(
m_textName, 1, wxALL|wxEXPAND, 5 );
32 m_staticTextOptional =
new wxStaticText(
this, wxID_ANY,
_(
"(optional)"), wxDefaultPosition, wxDefaultSize, 0 );
36 m_staticTextX =
new wxStaticText(
this, wxID_ANY,
_(
"X:"), wxDefaultPosition, wxDefaultSize, 0 );
38 m_fgGrid->Add(
m_staticTextX, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
40 m_textX =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
41 m_fgGrid->Add(
m_textX, 1, wxALL|wxEXPAND, 5 );
43 m_staticTextXUnits =
new wxStaticText(
this, wxID_ANY,
_(
"unit"), wxDefaultPosition, wxDefaultSize, 0 );
48 m_fgGrid->Add( 0, 0, 0, wxEXPAND, 5 );
50 m_checkLinked =
new wxCheckBox(
this, wxID_ANY,
_(
"Linked"), wxDefaultPosition, wxDefaultSize, 0 );
55 m_fgGrid->Add( 0, 0, 0, wxEXPAND, 5 );
57 m_staticTextY =
new wxStaticText(
this, wxID_ANY,
_(
"Y:"), wxDefaultPosition, wxDefaultSize, 0 );
59 m_fgGrid->Add(
m_staticTextY, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
61 m_textY =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
64 m_fgGrid->Add(
m_textY, 1, wxALL|wxEXPAND, 5 );
66 m_staticTextYUnits =
new wxStaticText(
this, wxID_ANY,
_(
"unit"), wxDefaultPosition, wxDefaultSize, 0 );
71 bMainSizer->Add( m_fgGrid, 0, wxEXPAND, 5 );
83 this->SetSizer( bMainSizer );
85 bMainSizer->Fit(
this );
87 this->Centre( wxBOTH );
wxStaticText * m_staticTextOptional
wxStaticText * m_staticTextYUnits
~DIALOG_GRID_SETTINGS_BASE()
wxStdDialogButtonSizer * m_stdButtons
wxStaticText * m_staticTextName
wxCheckBox * m_checkLinked
DIALOG_GRID_SETTINGS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Grid Settings"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE)
wxButton * m_stdButtonsOK
wxStaticText * m_staticTextX
wxStaticText * m_staticTextY
virtual void OnLinkedChecked(wxCommandEvent &event)
wxStaticText * m_staticTextXUnits
wxButton * m_stdButtonsCancel
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...