321 wxWindow *parent,
bool call_fit,
bool set_sizer) {
323 wxBoxSizer *item0 =
new wxBoxSizer( wxVERTICAL );
325 wxGridSizer *item1 =
new wxGridSizer( 2, 0, 0 );
327 wxStaticText *item2 =
new wxStaticText( parent,
ID_LABEL_NAME, wxT(
"Function Unit Name:"), wxDefaultPosition, wxDefaultSize, 0 );
328 item1->Add( item2, 0, wxALL, 5 );
330 wxString *strs3 = (wxString*) NULL;
331 wxChoice *item3 =
new wxChoice( parent,
ID_FU_NAME, wxDefaultPosition, wxSize(100,-1), 0, strs3, 0 );
332 item1->Add( item3, 0, wxGROW|wxALL, 5 );
334 wxStaticText *item4 =
new wxStaticText( parent,
ID_LABEL_PORT, wxT(
"Port Name:"), wxDefaultPosition, wxDefaultSize, 0 );
335 item1->Add( item4, 0, wxALL, 5 );
337 wxString *strs5 = (wxString*) NULL;
338 wxChoice *item5 =
new wxChoice( parent,
ID_FU_PORT, wxDefaultPosition, wxSize(100,-1), 0, strs5, 0 );
339 item1->Add( item5, 0, wxGROW|wxALL, 5 );
341 item0->Add( item1, 0, wxALIGN_CENTER|wxALL, 5 );
343 wxCheckBox *item6 =
new wxCheckBox( parent,
ID_INVERTED, wxT(
"Inverted"), wxDefaultPosition, wxDefaultSize, 0 );
344 item0->Add( item6, 0, wxALL, 5 );
346 wxStaticLine *item7 =
new wxStaticLine( parent,
ID_LINE, wxDefaultPosition, wxSize(20,-1), wxLI_HORIZONTAL );
347 item0->Add( item7, 0, wxGROW|wxALL, 5 );
349 wxBoxSizer *item8 =
new wxBoxSizer( wxHORIZONTAL );
351 wxButton *item9 =
new wxButton( parent,
ID_HELP, wxT(
"&Help"), wxDefaultPosition, wxDefaultSize, 0 );
352 item8->Add( item9, 0, wxALIGN_CENTER|wxALL, 5 );
354 wxButton *item10 =
new wxButton( parent, wxID_OK, wxT(
"&OK"), wxDefaultPosition, wxDefaultSize, 0 );
355 item8->Add( item10, 0, wxALIGN_CENTER|wxALL, 5 );
357 wxButton *item11 =
new wxButton( parent, wxID_CANCEL, wxT(
"&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
358 item8->Add( item11, 0, wxALIGN_CENTER|wxALL, 5 );
360 item0->Add( item8, 0, wxALIGN_CENTER|wxALL, 5 );
364 parent->SetSizer( item0 );
366 item0->SetSizeHints( parent );
static GUITextGenerator * instance()
static ProDeTextGenerator * instance()
@ TXT_FU_GUARD_DIALOG_TITLE
Function unit guard dialog title.
@ MSG_ERROR_GUARD_EXISTS
Error: Equal guard exists.
@ TXT_LABEL_FU_NAME
Label for function unit name.
@ TXT_LABEL_INVERTED
Label for inverted checkbox.
@ MSG_ERROR
Text 'Error' and new line.
virtual boost::format text(int textId)