12DIALOG_TARGET_PROPERTIES_BASE::DIALOG_TARGET_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 )
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
16 wxBoxSizer* bSizerMain;
17 bSizerMain =
new wxBoxSizer( wxVERTICAL );
19 wxBoxSizer* bSizerUpper;
20 bSizerUpper =
new wxBoxSizer( wxVERTICAL );
22 wxFlexGridSizer* fgSizer;
23 fgSizer =
new wxFlexGridSizer( 0, 3, 0, 0 );
24 fgSizer->AddGrowableCol( 1 );
25 fgSizer->SetFlexibleDirection( wxBOTH );
26 fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
28 m_sizeLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Size:"), wxDefaultPosition, wxDefaultSize, 0 );
30 fgSizer->Add(
m_sizeLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
32 m_sizeCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
33 fgSizer->Add(
m_sizeCtrl, 0, wxALL|wxEXPAND, 5 );
35 m_sizeUnits =
new wxStaticText(
this, wxID_ANY,
_(
"unit"), wxDefaultPosition, wxDefaultSize, 0 );
37 fgSizer->Add(
m_sizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
39 m_thicknessLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
41 fgSizer->Add(
m_thicknessLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
43 m_thicknessCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
44 fgSizer->Add(
m_thicknessCtrl, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
46 m_thicknessUnits =
new wxStaticText(
this, wxID_ANY,
_(
"unit"), wxDefaultPosition, wxDefaultSize, 0 );
48 fgSizer->Add(
m_thicknessUnits, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
50 m_staticTextShape =
new wxStaticText(
this, wxID_ANY,
_(
"Shape:"), wxDefaultPosition, wxDefaultSize, 0 );
52 fgSizer->Add(
m_staticTextShape, 0, wxTOP|wxBOTTOM|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
54 wxString m_TargetShapeChoices[] = {
_(
"+"),
_(
"X") };
55 int m_TargetShapeNChoices =
sizeof( m_TargetShapeChoices ) /
sizeof( wxString );
56 m_TargetShape =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_TargetShapeNChoices, m_TargetShapeChoices, 0 );
61 fgSizer->Add( 0, 0, 1, wxEXPAND, 5 );
64 bSizerUpper->Add( fgSizer, 1, wxBOTTOM|wxEXPAND, 5 );
67 bSizerMain->Add( bSizerUpper, 1, wxALL|wxEXPAND, 5 );
79 this->SetSizer( bSizerMain );
81 bSizerMain->Fit(
this );
83 this->Centre( wxBOTH );
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
~DIALOG_TARGET_PROPERTIES_BASE()
wxButton * m_sdbSizerButtsOK
wxButton * m_sdbSizerButtsCancel
wxStaticText * m_thicknessUnits
wxStaticText * m_sizeLabel
wxStaticText * m_sizeUnits
wxStaticText * m_staticTextShape
wxStaticText * m_thicknessLabel
DIALOG_TARGET_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Target Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStdDialogButtonSizer * m_sdbSizerButts
wxTextCtrl * m_thicknessCtrl