12DIALOG_ROUTER_SAVE_TEST_CASE_BASE::DIALOG_ROUTER_SAVE_TEST_CASE_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( wxSize( 500,-1 ), wxDefaultSize );
17 bSizer10 =
new wxBoxSizer( wxVERTICAL );
19 wxFlexGridSizer* fgSizer2;
20 fgSizer2 =
new wxFlexGridSizer( 2, 2, 0, 0 );
21 fgSizer2->AddGrowableCol( 1 );
22 fgSizer2->SetFlexibleDirection( wxHORIZONTAL );
23 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_ALL );
25 dirLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Test cases directory:"), wxDefaultPosition, wxDefaultSize, 0 );
27 fgSizer2->Add(
dirLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
29 m_testCaseDirCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
32 nameLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Test case name:"), wxDefaultPosition, wxDefaultSize, 0 );
34 fgSizer2->Add(
nameLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
36 m_testCaseNameCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
40 bSizer10->Add( fgSizer2, 1, wxEXPAND|wxALL, 5 );
43 bSizer81 =
new wxBoxSizer( wxVERTICAL );
45 wxString m_rbTypeChoices[] = {
_(
"Testcase (strict geometry)"),
_(
"Testcase (connectivity only)"),
_(
"Testcase (expected fail)"),
_(
"Known bug") };
46 int m_rbTypeNChoices =
sizeof( m_rbTypeChoices ) /
sizeof( wxString );
47 m_rbType =
new wxRadioBox(
this, wxID_ANY,
_(
"Type"), wxDefaultPosition, wxDefaultSize, m_rbTypeNChoices, m_rbTypeChoices, 1, wxRA_SPECIFY_COLS );
49 bSizer81->Add(
m_rbType, 0, wxALL, 5 );
52 bSizer10->Add( bSizer81, 0, 0, 5 );
64 this->SetSizer( bSizer10 );
66 bSizer10->Fit(
this );
68 this->Centre( wxBOTH );
DIALOG_ROUTER_SAVE_TEST_CASE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Save Router Testcase"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)