14
14
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
17
bSizer24 = new wxBoxSizer( wxVERTICAL );
16
wxBoxSizer* mainSizer;
17
mainSizer = new wxBoxSizer( wxVERTICAL );
19
m_staticText1 = new wxStaticText( this, wxID_ANY, _("You can enter command line options or check the options you need (select an option for help)"), wxDefaultPosition, wxDefaultSize, 0 );
19
m_staticText1 = new wxStaticText( this, wxID_ANY, _("Check the command line options you need"), wxDefaultPosition, wxDefaultSize, 0 );
20
20
m_staticText1->Wrap( -1 );
21
bSizer24->Add( m_staticText1, 0, wxALL, 5 );
24
bSizer25 = new wxBoxSizer( wxHORIZONTAL );
27
bSizer26 = new wxBoxSizer( wxVERTICAL );
21
mainSizer->Add( m_staticText1, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
23
wxBoxSizer* optionsSizer;
24
optionsSizer = new wxBoxSizer( wxVERTICAL );
29
26
wxArrayString m_checkListOptionsChoices;
30
m_checkListOptions = new wxCheckListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_checkListOptionsChoices, wxLB_EXTENDED );
31
bSizer26->Add( m_checkListOptions, 2, wxALL|wxEXPAND, 5 );
33
m_textHelp = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
34
bSizer26->Add( m_textHelp, 1, wxALL|wxEXPAND, 5 );
36
bSizer25->Add( bSizer26, 1, wxEXPAND, 5 );
27
m_checkListOptions = new wxCheckListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_checkListOptionsChoices, wxLB_EXTENDED|wxLB_MULTIPLE|wxLB_NEEDED_SB|wxLB_SORT );
28
optionsSizer->Add( m_checkListOptions, 2, wxALL|wxEXPAND, 5 );
30
m_staticText4 = new wxStaticText( this, wxID_ANY, _("Enter other options"), wxDefaultPosition, wxDefaultSize, 0 );
31
m_staticText4->Wrap( -1 );
32
optionsSizer->Add( m_staticText4, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
38
34
m_textOptions = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
39
bSizer25->Add( m_textOptions, 2, wxALL|wxEXPAND, 5 );
41
bSizer24->Add( bSizer25, 1, wxEXPAND, 5 );
35
optionsSizer->Add( m_textOptions, 1, wxALL|wxEXPAND, 5 );
37
wxStaticBoxSizer* cmdlnSizer;
38
cmdlnSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Command line") ), wxVERTICAL );
40
m_textCmdLn = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,50 ), wxTE_MULTILINE|wxTE_NO_VSCROLL|wxTE_READONLY|wxNO_BORDER );
41
m_textCmdLn->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
42
m_textCmdLn->SetMinSize( wxSize( -1,50 ) );
44
cmdlnSizer->Add( m_textCmdLn, 0, wxEXPAND, 5 );
46
optionsSizer->Add( cmdlnSizer, 0, wxEXPAND|wxALL, 5 );
48
mainSizer->Add( optionsSizer, 1, wxEXPAND, 5 );
43
50
m_staticline5 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
44
bSizer24->Add( m_staticline5, 0, wxEXPAND | wxALL, 5 );
47
bSizer4 = new wxBoxSizer( wxHORIZONTAL );
49
m_buttonOK = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxDefaultSize, 0 );
50
m_buttonOK->SetDefault();
51
bSizer4->Add( m_buttonOK, 0, wxALL, 5 );
53
m_buttonCancel = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
54
bSizer4->Add( m_buttonCancel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
56
bSizer24->Add( bSizer4, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
58
this->SetSizer( bSizer24 );
51
mainSizer->Add( m_staticline5, 0, wxEXPAND | wxALL, 5 );
53
m_sdbSizer = new wxStdDialogButtonSizer();
54
m_sdbSizerOK = new wxButton( this, wxID_OK );
55
m_sdbSizer->AddButton( m_sdbSizerOK );
56
m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
57
m_sdbSizer->AddButton( m_sdbSizerCancel );
58
m_sdbSizer->Realize();
59
mainSizer->Add( m_sdbSizer, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );
61
this->SetSizer( mainSizer );
62
m_checkListOptions->Connect( wxEVT_COMMAND_LISTBOX_SELECTED, wxCommandEventHandler( AddOptionCheckDialogBase::OnOptionSelected ), NULL, this );
63
65
m_checkListOptions->Connect( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, wxCommandEventHandler( AddOptionCheckDialogBase::OnOptionToggled ), NULL, this );
64
66
m_textOptions->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( AddOptionCheckDialogBase::OnOptionsText ), NULL, this );