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
8#include "widgets/wx_grid.h"
9
11
13
14DIALOG_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 )
15{
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
17
18 wxBoxSizer* bSizerMain;
19 bSizerMain = new wxBoxSizer( wxVERTICAL );
20
21 wxFlexGridSizer* fgSizer1;
22 fgSizer1 = new wxFlexGridSizer( 0, 2, 5, 5 );
23 fgSizer1->AddGrowableCol( 1 );
24 fgSizer1->AddGrowableRow( 0 );
25 fgSizer1->SetFlexibleDirection( wxBOTH );
26 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
27
28 m_textCommand = new wxStaticText( this, wxID_ANY, _("Command:"), wxDefaultPosition, wxDefaultSize, 0 );
29 m_textCommand->Wrap( -1 );
30 fgSizer1->Add( m_textCommand, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
31
32 m_textCtrlCommand = new wxStyledTextCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, wxEmptyString );
33 m_textCtrlCommand->SetUseTabs( false );
34 m_textCtrlCommand->SetTabWidth( 4 );
35 m_textCtrlCommand->SetIndent( 4 );
36 m_textCtrlCommand->SetTabIndents( false );
37 m_textCtrlCommand->SetBackSpaceUnIndents( false );
38 m_textCtrlCommand->SetViewEOL( false );
39 m_textCtrlCommand->SetViewWhiteSpace( false );
40 m_textCtrlCommand->SetMarginWidth( 2, 0 );
41 m_textCtrlCommand->SetIndentationGuides( false );
42 m_textCtrlCommand->SetReadOnly( false );
43 m_textCtrlCommand->SetMarginWidth( 1, 0 );
44 m_textCtrlCommand->SetMarginWidth( 0, 0 );
45 m_textCtrlCommand->MarkerDefine( wxSTC_MARKNUM_FOLDER, wxSTC_MARK_BOXPLUS );
46 m_textCtrlCommand->MarkerSetBackground( wxSTC_MARKNUM_FOLDER, wxColour( wxT("BLACK") ) );
47 m_textCtrlCommand->MarkerSetForeground( wxSTC_MARKNUM_FOLDER, wxColour( wxT("WHITE") ) );
48 m_textCtrlCommand->MarkerDefine( wxSTC_MARKNUM_FOLDEROPEN, wxSTC_MARK_BOXMINUS );
49 m_textCtrlCommand->MarkerSetBackground( wxSTC_MARKNUM_FOLDEROPEN, wxColour( wxT("BLACK") ) );
50 m_textCtrlCommand->MarkerSetForeground( wxSTC_MARKNUM_FOLDEROPEN, wxColour( wxT("WHITE") ) );
51 m_textCtrlCommand->MarkerDefine( wxSTC_MARKNUM_FOLDERSUB, wxSTC_MARK_EMPTY );
52 m_textCtrlCommand->MarkerDefine( wxSTC_MARKNUM_FOLDEREND, wxSTC_MARK_BOXPLUS );
53 m_textCtrlCommand->MarkerSetBackground( wxSTC_MARKNUM_FOLDEREND, wxColour( wxT("BLACK") ) );
54 m_textCtrlCommand->MarkerSetForeground( wxSTC_MARKNUM_FOLDEREND, wxColour( wxT("WHITE") ) );
55 m_textCtrlCommand->MarkerDefine( wxSTC_MARKNUM_FOLDEROPENMID, wxSTC_MARK_BOXMINUS );
56 m_textCtrlCommand->MarkerSetBackground( wxSTC_MARKNUM_FOLDEROPENMID, wxColour( wxT("BLACK") ) );
57 m_textCtrlCommand->MarkerSetForeground( wxSTC_MARKNUM_FOLDEROPENMID, wxColour( wxT("WHITE") ) );
58 m_textCtrlCommand->MarkerDefine( wxSTC_MARKNUM_FOLDERMIDTAIL, wxSTC_MARK_EMPTY );
59 m_textCtrlCommand->MarkerDefine( wxSTC_MARKNUM_FOLDERTAIL, wxSTC_MARK_EMPTY );
60 m_textCtrlCommand->SetSelBackground( true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) );
61 m_textCtrlCommand->SetSelForeground( true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) );
62 fgSizer1->Add( m_textCtrlCommand, 1, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
63
64 m_textOutputPath = new wxStaticText( this, wxID_ANY, _("Output path:"), wxDefaultPosition, wxDefaultSize, 0 );
65 m_textOutputPath->Wrap( -1 );
66 fgSizer1->Add( m_textOutputPath, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
67
68 m_textCtrlOutputPath = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
69 m_textCtrlOutputPath->SetMinSize( wxSize( 350,-1 ) );
70
71 fgSizer1->Add( m_textCtrlOutputPath, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
72
73
74 bSizerMain->Add( fgSizer1, 1, wxALL|wxEXPAND, 5 );
75
76 wxBoxSizer* bSizerBottom;
77 bSizerBottom = new wxBoxSizer( wxVERTICAL );
78
79 m_cbRecordOutput = new wxCheckBox( this, wxID_ANY, _("Record output messages"), wxDefaultPosition, wxDefaultSize, 0 );
80 bSizerBottom->Add( m_cbRecordOutput, 0, wxLEFT, 5 );
81
82 m_cbIgnoreExitCode = new wxCheckBox( this, wxID_ANY, _("Ignore non-zero exit code"), wxDefaultPosition, wxDefaultSize, 0 );
83 bSizerBottom->Add( m_cbIgnoreExitCode, 0, wxLEFT|wxTOP, 5 );
84
85
86 bSizerMain->Add( bSizerBottom, 0, wxALL|wxEXPAND, 5 );
87
88
89 bSizerMain->Add( 0, 10, 0, wxEXPAND, 5 );
90
91 wxStaticText* stPathsLabel;
92 stPathsLabel = new wxStaticText( this, wxID_ANY, _("Available text variables:"), wxDefaultPosition, wxDefaultSize, 0 );
93 stPathsLabel->Wrap( -1 );
94 bSizerMain->Add( stPathsLabel, 0, wxTOP|wxRIGHT|wxLEFT, 10 );
95
96
97 bSizerMain->Add( 0, 2, 0, wxEXPAND, 5 );
98
99 m_path_subs_grid = new WX_GRID( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
100
101 // Grid
102 m_path_subs_grid->CreateGrid( 1, 2 );
103 m_path_subs_grid->EnableEditing( false );
104 m_path_subs_grid->EnableGridLines( true );
105 m_path_subs_grid->EnableDragGridSize( false );
106 m_path_subs_grid->SetMargins( 0, 0 );
107
108 // Columns
109 m_path_subs_grid->SetColSize( 0, 200 );
110 m_path_subs_grid->SetColSize( 1, 300 );
111 m_path_subs_grid->AutoSizeColumns();
112 m_path_subs_grid->EnableDragColMove( false );
113 m_path_subs_grid->EnableDragColSize( true );
115 m_path_subs_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
116
117 // Rows
118 m_path_subs_grid->EnableDragRowSize( true );
119 m_path_subs_grid->SetRowLabelSize( 0 );
120 m_path_subs_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
121
122 // Label Appearance
123
124 // Cell Defaults
125 m_path_subs_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
126 m_path_subs_grid->SetToolTip( _("This is a read-only table which shows pertinent environment variables.") );
127
128 bSizerMain->Add( m_path_subs_grid, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
129
130 m_sdbSizer1 = new wxStdDialogButtonSizer();
131 m_sdbSizer1OK = new wxButton( this, wxID_OK );
132 m_sdbSizer1->AddButton( m_sdbSizer1OK );
133 m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
134 m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
135 m_sdbSizer1->Realize();
136
137 bSizerMain->Add( m_sdbSizer1, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
138
139
140 this->SetSizer( bSizerMain );
141 this->Layout();
142 bSizerMain->Fit( this );
143
144 this->Centre( wxBOTH );
145
146 // Connect Events
147 m_cbRecordOutput->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXECUTECOMMAND_JOB_SETTINGS_BASE::OnRecordOutputClicked ), NULL, this );
148 m_path_subs_grid->Connect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_EXECUTECOMMAND_JOB_SETTINGS_BASE::onSizeGrid ), NULL, this );
149}
150
152{
153 // Disconnect Events
154 m_cbRecordOutput->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXECUTECOMMAND_JOB_SETTINGS_BASE::OnRecordOutputClicked ), NULL, this );
155 m_path_subs_grid->Disconnect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_EXECUTECOMMAND_JOB_SETTINGS_BASE::onSizeGrid ), NULL, this );
156
157}
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:61
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...
Definition: wx_grid.cpp:252
#define _(s)