KiCad PCB EDA Suite
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
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, wxALL, 5 );
29
30 m_textCtrlCommand = new wxStyledTextCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, wxEmptyString );
31 m_textCtrlCommand->SetUseTabs( false );
32 m_textCtrlCommand->SetTabWidth( 4 );
33 m_textCtrlCommand->SetIndent( 4 );
34 m_textCtrlCommand->SetTabIndents( false );
35 m_textCtrlCommand->SetBackSpaceUnIndents( false );
36 m_textCtrlCommand->SetViewEOL( false );
37 m_textCtrlCommand->SetViewWhiteSpace( false );
38 m_textCtrlCommand->SetMarginWidth( 2, 0 );
39 m_textCtrlCommand->SetIndentationGuides( false );
40 m_textCtrlCommand->SetReadOnly( false );
41 m_textCtrlCommand->SetMarginWidth( 1, 0 );
42 m_textCtrlCommand->SetMarginWidth( 0, 0 );
43 m_textCtrlCommand->MarkerDefine( wxSTC_MARKNUM_FOLDER, wxSTC_MARK_BOXPLUS );
44 m_textCtrlCommand->MarkerSetBackground( wxSTC_MARKNUM_FOLDER, wxColour( wxT("BLACK") ) );
45 m_textCtrlCommand->MarkerSetForeground( wxSTC_MARKNUM_FOLDER, wxColour( wxT("WHITE") ) );
46 m_textCtrlCommand->MarkerDefine( wxSTC_MARKNUM_FOLDEROPEN, wxSTC_MARK_BOXMINUS );
47 m_textCtrlCommand->MarkerSetBackground( wxSTC_MARKNUM_FOLDEROPEN, wxColour( wxT("BLACK") ) );
48 m_textCtrlCommand->MarkerSetForeground( wxSTC_MARKNUM_FOLDEROPEN, wxColour( wxT("WHITE") ) );
49 m_textCtrlCommand->MarkerDefine( wxSTC_MARKNUM_FOLDERSUB, wxSTC_MARK_EMPTY );
50 m_textCtrlCommand->MarkerDefine( wxSTC_MARKNUM_FOLDEREND, wxSTC_MARK_BOXPLUS );
51 m_textCtrlCommand->MarkerSetBackground( wxSTC_MARKNUM_FOLDEREND, wxColour( wxT("BLACK") ) );
52 m_textCtrlCommand->MarkerSetForeground( wxSTC_MARKNUM_FOLDEREND, wxColour( wxT("WHITE") ) );
53 m_textCtrlCommand->MarkerDefine( wxSTC_MARKNUM_FOLDEROPENMID, wxSTC_MARK_BOXMINUS );
54 m_textCtrlCommand->MarkerSetBackground( wxSTC_MARKNUM_FOLDEROPENMID, wxColour( wxT("BLACK") ) );
55 m_textCtrlCommand->MarkerSetForeground( wxSTC_MARKNUM_FOLDEROPENMID, wxColour( wxT("WHITE") ) );
56 m_textCtrlCommand->MarkerDefine( wxSTC_MARKNUM_FOLDERMIDTAIL, wxSTC_MARK_EMPTY );
57 m_textCtrlCommand->MarkerDefine( wxSTC_MARKNUM_FOLDERTAIL, wxSTC_MARK_EMPTY );
58 m_textCtrlCommand->SetSelBackground( true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) );
59 m_textCtrlCommand->SetSelForeground( true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) );
60 fgSizer1->Add( m_textCtrlCommand, 1, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
61
62 m_textOutputPath = new wxStaticText( this, wxID_ANY, _("Output path:"), wxDefaultPosition, wxDefaultSize, 0 );
63 m_textOutputPath->Wrap( -1 );
64 fgSizer1->Add( m_textOutputPath, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
65
66 m_textCtrlOutputPath = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
67 m_textCtrlOutputPath->SetMinSize( wxSize( 350,-1 ) );
68
69 fgSizer1->Add( m_textCtrlOutputPath, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
70
71
72 bSizerMain->Add( fgSizer1, 1, wxALL|wxEXPAND, 5 );
73
74 wxBoxSizer* bSizerBottom;
75 bSizerBottom = new wxBoxSizer( wxVERTICAL );
76
77 m_cbRecordOutput = new wxCheckBox( this, wxID_ANY, _("Record output messages"), wxDefaultPosition, wxDefaultSize, 0 );
78 bSizerBottom->Add( m_cbRecordOutput, 0, wxLEFT, 5 );
79
80 m_cbIgnoreExitCode = new wxCheckBox( this, wxID_ANY, _("Ignore non-zero exit code"), wxDefaultPosition, wxDefaultSize, 0 );
81 bSizerBottom->Add( m_cbIgnoreExitCode, 0, wxLEFT|wxTOP, 5 );
82
83
84 bSizerMain->Add( bSizerBottom, 0, wxALL|wxEXPAND, 5 );
85
86 m_sdbSizer1 = new wxStdDialogButtonSizer();
87 m_sdbSizer1OK = new wxButton( this, wxID_OK );
88 m_sdbSizer1->AddButton( m_sdbSizer1OK );
89 m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
90 m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
91 m_sdbSizer1->Realize();
92
93 bSizerMain->Add( m_sdbSizer1, 0, wxALL|wxEXPAND, 5 );
94
95
96 this->SetSizer( bSizerMain );
97 this->Layout();
98 bSizerMain->Fit( this );
99
100 this->Centre( wxBOTH );
101
102 // Connect Events
103 m_cbRecordOutput->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXECUTECOMMAND_JOB_SETTINGS_BASE::OnRecordOutputClicked ), NULL, this );
104}
105
107{
108 // Disconnect Events
109 m_cbRecordOutput->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXECUTECOMMAND_JOB_SETTINGS_BASE::OnRecordOutputClicked ), NULL, this );
110
111}
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:52
#define _(s)