35 #include <wx/statline.h>
36 #include <wx/valgen.h>
37 #include <wx/spinctrl.h>
38 #include <boost/format.hpp>
75 wxDialog(parent, -1, _T(""), wxDefaultPosition), parameter_(parameter)
77 createContents(
this,
true,
true);
79 paramName_ =
dynamic_cast<wxStaticText*
>(
FindWindow(ID_NAME));
80 paramType_ =
dynamic_cast<wxStaticText*
>(
FindWindow(ID_TYPE));
81 paramValue_ =
dynamic_cast<wxTextCtrl*
>(
FindWindow(ID_VALUE));
86 TransferDataToWindow();
105 format fmt = prodeTexts->
text(
111 paramValue_->Clear();
123 return wxWindow::TransferDataToWindow();
144 parameter_->setValue(value);
167 wxBoxSizer *item0 =
new wxBoxSizer( wxVERTICAL );
169 wxBoxSizer *item1 =
new wxBoxSizer( wxHORIZONTAL );
171 wxStaticText *item2 =
new wxStaticText( parent, ID_TEXT, wxT(
"Parameter Name:"), wxDefaultPosition, wxDefaultSize, 0 );
172 item1->Add( item2, 0, wxALIGN_CENTER|wxALL, 5 );
174 wxStaticText *item3 =
new wxStaticText( parent, ID_NAME, wxT(
"xxxxxxxxxxxxxxx"), wxDefaultPosition, wxSize(150,-1), 0 );
175 item1->Add( item3, 0, wxALIGN_CENTER|wxALL, 5 );
177 item0->Add( item1, 0, wxALL, 5 );
179 wxBoxSizer *item4 =
new wxBoxSizer( wxHORIZONTAL );
181 wxStaticText *item5 =
new wxStaticText( parent, ID_TEXT, wxT(
"Parameter Type:"), wxDefaultPosition, wxDefaultSize, 0 );
182 item4->Add( item5, 0, wxALIGN_CENTER|wxALL, 5 );
184 wxStaticText *item6 =
new wxStaticText( parent, ID_TYPE, wxT(
"xxxxxxxxxxxx"), wxDefaultPosition, wxSize(150,-1), 0 );
185 item4->Add( item6, 0, wxALIGN_CENTER|wxALL, 5 );
187 item0->Add( item4, 0, wxALL, 5 );
189 wxBoxSizer *item7 =
new wxBoxSizer( wxHORIZONTAL );
191 wxStaticText *item8 =
new wxStaticText( parent, ID_TEXT, wxT(
"Value:"), wxDefaultPosition, wxDefaultSize, 0 );
192 item7->Add( item8, 0, wxALIGN_CENTER|wxALL, 5 );
194 wxTextCtrl *item9 =
new wxTextCtrl( parent, ID_VALUE, wxT(
""), wxDefaultPosition, wxSize(110,-1), 0 );
195 item7->Add( item9, 0, wxALIGN_CENTER|wxALL, 5 );
197 item0->Add( item7, 0, wxALIGN_CENTER|wxALL, 5 );
199 wxBoxSizer *item10 =
new wxBoxSizer( wxHORIZONTAL );
201 wxButton *item11 =
new wxButton( parent, ID_OK, wxT(
"&OK"), wxDefaultPosition, wxDefaultSize, 0 );
202 item10->Add( item11, 0, wxALIGN_CENTER|wxALL, 5 );
204 wxButton *item12 =
new wxButton( parent, ID_CANCEL, wxT(
"&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
205 item10->Add( item12, 0, wxALL, 5 );
207 item0->Add( item10, 0, wxALIGN_CENTER|wxALL, 5 );
211 parent->SetSizer( item0 );
213 item0->SetSizeHints( parent );