12WX_UNIT_ENTRY_DIALOG_BASE::WX_UNIT_ENTRY_DIALOG_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 );
18 wxBoxSizer* bSizerContent;
19 bSizerContent =
new wxBoxSizer( wxHORIZONTAL );
21 m_label =
new wxStaticText(
this, wxID_ANY,
_(
"MyLabel"), wxDefaultPosition, wxDefaultSize, 0 );
23 bSizerContent->Add(
m_label, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
25 m_textCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
26 bSizerContent->Add(
m_textCtrl, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
28 m_unit_label =
new wxStaticText(
this, wxID_ANY,
_(
"unit"), wxDefaultPosition, wxDefaultSize, 0 );
30 bSizerContent->Add(
m_unit_label, 0, wxTOP|wxBOTTOM|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
33 bSizerMain->Add( bSizerContent, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
35 wxBoxSizer* bSizerButtons;
36 bSizerButtons =
new wxBoxSizer( wxHORIZONTAL );
39 bSizerButtons->Add( 100, 0, 1, 0, 5 );
51 bSizerMain->Add( bSizerButtons, 1, wxEXPAND, 5 );
58 this->Centre( wxBOTH );
65WX_PT_ENTRY_DIALOG_BASE::WX_PT_ENTRY_DIALOG_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
67 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
71 wxFlexGridSizer* fgSizer;
72 fgSizer =
new wxFlexGridSizer( 0, 3, 5, 0 );
73 fgSizer->AddGrowableCol( 1 );
74 fgSizer->SetFlexibleDirection( wxBOTH );
75 fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
77 m_labelX =
new wxStaticText(
this, wxID_ANY,
_(
"X label:"), wxDefaultPosition, wxDefaultSize, 0 );
79 fgSizer->Add(
m_labelX, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
81 m_textCtrlX =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
82 fgSizer->Add(
m_textCtrlX, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND, 5 );
84 m_unitsX =
new wxStaticText(
this, wxID_ANY,
_(
"unit"), wxDefaultPosition, wxDefaultSize, 0 );
86 fgSizer->Add(
m_unitsX, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
88 m_labelY =
new wxStaticText(
this, wxID_ANY,
_(
"Y label:"), wxDefaultPosition, wxDefaultSize, 0 );
90 fgSizer->Add(
m_labelY, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
92 m_textCtrlY =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
93 fgSizer->Add(
m_textCtrlY, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND, 5 );
95 m_unitsY =
new wxStaticText(
this, wxID_ANY,
_(
"unit"), wxDefaultPosition, wxDefaultSize, 0 );
97 fgSizer->Add(
m_unitsY, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
100 bSizerMain->Add( fgSizer, 1, wxEXPAND|wxALL, 5 );
102 wxBoxSizer* bSizerButtons;
103 bSizerButtons =
new wxBoxSizer( wxHORIZONTAL );
106 bSizerButtons->Add( 100, 0, 1, wxALIGN_CENTER_VERTICAL, 5 );
118 bSizerMain->Add( bSizerButtons, 0, wxEXPAND, 5 );
125 this->Centre( wxBOTH );
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
WX_PT_ENTRY_DIALOG_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Move Point to Location"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
~WX_PT_ENTRY_DIALOG_BASE()
wxButton * m_sdbSizer1Cancel
wxStdDialogButtonSizer * m_sdbSizer1
~WX_UNIT_ENTRY_DIALOG_BASE()
wxStaticText * m_unit_label
WX_UNIT_ENTRY_DIALOG_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Title"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxButton * m_sdbSizer1Cancel
wxStdDialogButtonSizer * m_sdbSizer1