12DIALOG_NEW_DATAITEM_BASE::DIALOG_NEW_DATAITEM_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 wxBoxSizer* bSizerPos;
23 bSizerPos =
new wxBoxSizer( wxHORIZONTAL );
25 wxFlexGridSizer* bSizerPosXY;
26 bSizerPosXY =
new wxFlexGridSizer( 0, 2, 0, 0 );
27 bSizerPosXY->SetFlexibleDirection( wxBOTH );
28 bSizerPosXY->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
30 m_staticTextPosY =
new wxStaticText(
this, wxID_ANY,
_(
"Y start:"), wxDefaultPosition, wxDefaultSize, 0 );
35 bSizerPosXY->Add( 0, 0, 0, 0, 5 );
37 m_textCtrlPosY =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
38 bSizerPosXY->Add(
m_textCtrlPosY, 1, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
40 m_units1 =
new wxStaticText(
this, wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
42 bSizerPosXY->Add(
m_units1, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 1 );
44 m_staticTextPosX =
new wxStaticText(
this, wxID_ANY,
_(
"X start:"), wxDefaultPosition, wxDefaultSize, 0 );
49 bSizerPosXY->Add( 0, 0, 0, 0, 0 );
51 m_textCtrlPosX =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
52 bSizerPosXY->Add(
m_textCtrlPosX, 1, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
54 m_units11 =
new wxStaticText(
this, wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
56 bSizerPosXY->Add(
m_units11, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 1 );
59 bSizerPos->Add( bSizerPosXY, 1, wxEXPAND, 5 );
62 bSizer6 =
new wxBoxSizer( wxVERTICAL );
64 m_staticTextOrgPos =
new wxStaticText(
this, wxID_ANY,
_(
"Origin"), wxDefaultPosition, wxDefaultSize, 0 );
68 wxString m_choiceCornerPosChoices[] = {
_(
"Upper Right"),
_(
"Upper Left"),
_(
"Lower Right"),
_(
"Lower Left") };
69 int m_choiceCornerPosNChoices =
sizeof( m_choiceCornerPosChoices ) /
sizeof( wxString );
70 m_choiceCornerPos =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceCornerPosNChoices, m_choiceCornerPosChoices, 0 );
75 bSizerPos->Add( bSizer6, 0, wxALIGN_CENTER_VERTICAL, 5 );
78 bSizerUpper->Add( bSizerPos, 1, wxEXPAND, 5 );
80 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
85 wxFlexGridSizer* fgSizer3;
86 fgSizer3 =
new wxFlexGridSizer( 0, 2, 0, 0 );
87 fgSizer3->SetFlexibleDirection( wxBOTH );
88 fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
90 m_staticTextEndX =
new wxStaticText(
this, wxID_ANY,
_(
"X end:"), wxDefaultPosition, wxDefaultSize, 0 );
95 fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
97 m_textCtrlEndX =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
98 fgSizer3->Add(
m_textCtrlEndX, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
100 m_units3 =
new wxStaticText(
this, wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
102 fgSizer3->Add(
m_units3, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
104 m_staticTextEndY =
new wxStaticText(
this, wxID_ANY,
_(
"Y end:"), wxDefaultPosition, wxDefaultSize, 0 );
109 fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
111 m_textCtrlEndY =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
112 fgSizer3->Add(
m_textCtrlEndY, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
114 m_units4 =
new wxStaticText(
this, wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
116 fgSizer3->Add(
m_units4, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
121 wxBoxSizer* bSizer61;
122 bSizer61 =
new wxBoxSizer( wxVERTICAL );
124 m_staticTextOrgPos1 =
new wxStaticText(
this, wxID_ANY,
_(
"Origin"), wxDefaultPosition, wxDefaultSize, 0 );
128 wxString m_choiceCornerEndChoices[] = {
_(
"Upper Right"),
_(
"Upper Left"),
_(
"Lower Right"),
_(
"Lower Left") };
129 int m_choiceCornerEndNChoices =
sizeof( m_choiceCornerEndChoices ) /
sizeof( wxString );
130 m_choiceCornerEnd =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceCornerEndNChoices, m_choiceCornerEndChoices, 0 );
142 m_staticTextTitle =
new wxStaticText(
this, wxID_ANY,
_(
"Text"), wxDefaultPosition, wxDefaultSize, 0 );
146 m_textCtrlText =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
155 bSizerMain->Add( bSizerUpper, 1, wxEXPAND, 5 );
167 this->SetSizer( bSizerMain );
169 bSizerMain->Fit(
this );
171 this->Centre( wxBOTH );
wxTextCtrl * m_textCtrlEndX
wxTextCtrl * m_textCtrlPosY
wxStdDialogButtonSizer * m_sdbSizerButtons
wxTextCtrl * m_textCtrlText
wxStaticText * m_staticTextTitle
wxTextCtrl * m_textCtrlPosX
wxBoxSizer * m_SizerEndPosition
wxTextCtrl * m_textCtrlEndY
wxChoice * m_choiceCornerEnd
wxStaticText * m_staticTextOrgPos
~DIALOG_NEW_DATAITEM_BASE()
wxButton * m_sdbSizerButtonsOK
wxStaticText * m_staticTextEndX
wxChoice * m_choiceCornerPos
wxStaticLine * m_staticline2
virtual void OnOKClick(wxCommandEvent &event)
wxStaticText * m_staticTextPosX
wxStaticText * m_staticTextOrgPos1
wxStaticText * m_staticTextPosY
DIALOG_NEW_DATAITEM_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("New Item"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStaticText * m_staticTextEndY
wxButton * m_sdbSizerButtonsCancel
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...