KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_executecommand_job_settings_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_EXECUTECOMMAND_JOB_SETTINGS_BASE::DIALOG_EXECUTECOMMAND_JOB_SETTINGS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
13{
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15
16 wxBoxSizer* bSizerMain;
17 bSizerMain = new wxBoxSizer( wxVERTICAL );
18
19 wxFlexGridSizer* fgSizer1;
20 fgSizer1 = new wxFlexGridSizer( 0, 2, 5, 5 );
21 fgSizer1->AddGrowableCol( 1 );
22 fgSizer1->AddGrowableRow( 0 );
23 fgSizer1->SetFlexibleDirection( wxBOTH );
24 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
25
26 m_textCommand = new wxStaticText( this, wxID_ANY, _("Command:"), wxDefaultPosition, wxDefaultSize, 0 );
27 m_textCommand->Wrap( -1 );
28 fgSizer1->Add( m_textCommand, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
29
30 m_textCtrlCommand = new wxTextCtrl( this, wxID_ANY, _("Enter the command line to run SPICE\nUsually '<path to SPICE binary> \"%I\"'\n%I will be replaced by the netlist filepath"), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
31 m_textCtrlCommand->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
32 m_textCtrlCommand->SetMinSize( wxSize( 400,-1 ) );
33
34 fgSizer1->Add( m_textCtrlCommand, 1, wxEXPAND|wxRIGHT, 5 );
35
36 m_textOutputPath = new wxStaticText( this, wxID_ANY, _("Output path:"), wxDefaultPosition, wxDefaultSize, 0 );
37 m_textOutputPath->Wrap( -1 );
38 fgSizer1->Add( m_textOutputPath, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
39
40 m_textCtrlOutputPath = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
41 m_textCtrlOutputPath->SetMinSize( wxSize( 350,-1 ) );
42
43 fgSizer1->Add( m_textCtrlOutputPath, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
44
45
46 bSizerMain->Add( fgSizer1, 1, wxALL|wxEXPAND, 5 );
47
48 wxBoxSizer* bSizerBottom;
49 bSizerBottom = new wxBoxSizer( wxVERTICAL );
50
51 m_cbRecordOutput = new wxCheckBox( this, wxID_ANY, _("Record output messages"), wxDefaultPosition, wxDefaultSize, 0 );
52 bSizerBottom->Add( m_cbRecordOutput, 0, wxLEFT, 5 );
53
54 m_cbIgnoreExitCode = new wxCheckBox( this, wxID_ANY, _("Ignore non-zero exit code"), wxDefaultPosition, wxDefaultSize, 0 );
55 bSizerBottom->Add( m_cbIgnoreExitCode, 0, wxLEFT|wxTOP, 5 );
56
57
58 bSizerMain->Add( bSizerBottom, 0, wxALL|wxEXPAND, 5 );
59
60 m_sdbSizer1 = new wxStdDialogButtonSizer();
61 m_sdbSizer1OK = new wxButton( this, wxID_OK );
62 m_sdbSizer1->AddButton( m_sdbSizer1OK );
63 m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
64 m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
65 m_sdbSizer1->Realize();
66
67 bSizerMain->Add( m_sdbSizer1, 0, wxALL|wxEXPAND, 5 );
68
69
70 this->SetSizer( bSizerMain );
71 this->Layout();
72 bSizerMain->Fit( this );
73
74 this->Centre( wxBOTH );
75
76 // Connect Events
77 m_cbRecordOutput->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXECUTECOMMAND_JOB_SETTINGS_BASE::OnRecordOutputClicked ), NULL, this );
78}
79
81{
82 // Disconnect Events
83 m_cbRecordOutput->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXECUTECOMMAND_JOB_SETTINGS_BASE::OnRecordOutputClicked ), NULL, this );
84
85}
DIALOG_EXECUTECOMMAND_JOB_SETTINGS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Execute Command Job Settings"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
#define _(s)