KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_copyfiles_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_COPYFILES_JOB_SETTINGS_BASE::DIALOG_COPYFILES_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->SetFlexibleDirection( wxBOTH );
22 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
23
24 m_textSource = new wxStaticText( this, wxID_ANY, _("Source:"), wxDefaultPosition, wxDefaultSize, 0 );
25 m_textSource->Wrap( -1 );
26 fgSizer1->Add( m_textSource, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
27
28 m_textCtrlSource = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
29 m_textCtrlSource->SetMinSize( wxSize( 350,-1 ) );
30
31 fgSizer1->Add( m_textCtrlSource, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
32
33 m_textDest = new wxStaticText( this, wxID_ANY, _("Destination:"), wxDefaultPosition, wxDefaultSize, 0 );
34 m_textDest->Wrap( -1 );
35 fgSizer1->Add( m_textDest, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
36
37 m_textCtrlDest = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
38 m_textCtrlDest->SetMinSize( wxSize( 350,-1 ) );
39
40 fgSizer1->Add( m_textCtrlDest, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
41
42
43 bSizerMain->Add( fgSizer1, 1, wxALL|wxEXPAND, 5 );
44
45 wxBoxSizer* bSizerBottom;
46 bSizerBottom = new wxBoxSizer( wxVERTICAL );
47
48 m_cbGenerateError = new wxCheckBox( this, wxID_ANY, _("Generate error if no files copied"), wxDefaultPosition, wxDefaultSize, 0 );
49 bSizerBottom->Add( m_cbGenerateError, 0, wxLEFT, 5 );
50
51 m_cbOverwrite = new wxCheckBox( this, wxID_ANY, _("Overwrite files in destination"), wxDefaultPosition, wxDefaultSize, 0 );
52 m_cbOverwrite->SetValue(true);
53 bSizerBottom->Add( m_cbOverwrite, 0, wxLEFT|wxTOP, 5 );
54
55
56 bSizerMain->Add( bSizerBottom, 0, wxALL|wxEXPAND, 5 );
57
58 m_sdbSizer1 = new wxStdDialogButtonSizer();
59 m_sdbSizer1OK = new wxButton( this, wxID_OK );
60 m_sdbSizer1->AddButton( m_sdbSizer1OK );
61 m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
62 m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
63 m_sdbSizer1->Realize();
64
65 bSizerMain->Add( m_sdbSizer1, 0, wxALL|wxEXPAND, 5 );
66
67
68 this->SetSizer( bSizerMain );
69 this->Layout();
70 bSizerMain->Fit( this );
71
72 this->Centre( wxBOTH );
73
74 // Connect Events
75 m_cbGenerateError->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_COPYFILES_JOB_SETTINGS_BASE::OnRecordOutputClicked ), NULL, this );
76}
77
79{
80 // Disconnect Events
81 m_cbGenerateError->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_COPYFILES_JOB_SETTINGS_BASE::OnRecordOutputClicked ), NULL, this );
82
83}
DIALOG_COPYFILES_JOB_SETTINGS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Copy Files Job Settings"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE)
virtual void OnRecordOutputClicked(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
#define _(s)