KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_export_odbpp_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
13
14DIALOG_EXPORT_ODBPP_BASE::DIALOG_EXPORT_ODBPP_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* bMainSizer;
19 bMainSizer = new wxBoxSizer( wxVERTICAL );
20
21 bSizerTop = new wxBoxSizer( wxHORIZONTAL );
22
23 m_lblBrdFile = new wxStaticText( this, wxID_ANY, _("Folder:"), wxDefaultPosition, wxDefaultSize, 0 );
24 m_lblBrdFile->Wrap( -1 );
25 bSizerTop->Add( m_lblBrdFile, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
26
27 m_outputFileName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
28 m_outputFileName->SetToolTip( _("Enter a filename if you do not want to use default file names\nCan be used only when printing the current sheet") );
29 m_outputFileName->SetMinSize( wxSize( 350,-1 ) );
30
31 bSizerTop->Add( m_outputFileName, 1, wxALIGN_CENTER_VERTICAL, 5 );
32
33 m_browseButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( -1,-1 ), wxBU_AUTODRAW|0 );
34 bSizerTop->Add( m_browseButton, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
35
36
37 bMainSizer->Add( bSizerTop, 0, wxBOTTOM|wxEXPAND|wxTOP, 15 );
38
39 wxBoxSizer* bSizer3;
40 bSizer3 = new wxBoxSizer( wxHORIZONTAL );
41
42 wxStaticBoxSizer* sbSizer1;
43 sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("File Format") ), wxVERTICAL );
44
45 wxFlexGridSizer* fgSizer;
46 fgSizer = new wxFlexGridSizer( 0, 2, 0, 0 );
47 fgSizer->AddGrowableCol( 1 );
48 fgSizer->SetFlexibleDirection( wxBOTH );
49 fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
50
51 m_lblUnits = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Units:"), wxDefaultPosition, wxDefaultSize, 0 );
52 m_lblUnits->Wrap( -1 );
53 fgSizer->Add( m_lblUnits, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
54
55 wxString m_choiceUnitsChoices[] = { _("Millimeters"), _("Inches") };
56 int m_choiceUnitsNChoices = sizeof( m_choiceUnitsChoices ) / sizeof( wxString );
57 m_choiceUnits = new wxChoice( sbSizer1->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxSize( 130,30 ), m_choiceUnitsNChoices, m_choiceUnitsChoices, 0 );
58 m_choiceUnits->SetSelection( 0 );
59 fgSizer->Add( m_choiceUnits, 0, wxALIGN_RIGHT|wxALL, 5 );
60
61 m_lblPrecision = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Precision:"), wxDefaultPosition, wxDefaultSize, 0 );
62 m_lblPrecision->Wrap( -1 );
63 m_lblPrecision->SetToolTip( _("The number of values following the decimal separator") );
64
65 fgSizer->Add( m_lblPrecision, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
66
67 m_precision = new wxSpinCtrl( sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 130,30 ), wxSP_ARROW_KEYS, 2, 16, 7 );
68 m_precision->SetToolTip( _("The number of values following the decimal separator") );
69
70 fgSizer->Add( m_precision, 0, wxALIGN_RIGHT|wxALL, 5 );
71
72 m_cbCompress = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Compress output"), wxDefaultPosition, wxDefaultSize, 0 );
73 m_cbCompress->SetToolTip( _("Compress output into 'zip' file") );
74
75 fgSizer->Add( m_cbCompress, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
76
77
78 sbSizer1->Add( fgSizer, 3, wxEXPAND|wxALL, 5 );
79
80
81 bSizer3->Add( sbSizer1, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 10 );
82
83
84 bMainSizer->Add( bSizer3, 0, wxEXPAND, 5 );
85
86
87 bMainSizer->Add( 0, 0, 1, wxEXPAND, 5 );
88
89 m_stdButtons = new wxStdDialogButtonSizer();
90 m_stdButtonsOK = new wxButton( this, wxID_OK );
91 m_stdButtons->AddButton( m_stdButtonsOK );
92 m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
93 m_stdButtons->AddButton( m_stdButtonsCancel );
94 m_stdButtons->Realize();
95
96 bMainSizer->Add( m_stdButtons, 0, wxALL|wxEXPAND, 5 );
97
98
99 this->SetSizer( bMainSizer );
100 this->Layout();
101
102 this->Centre( wxBOTH );
103
104 // Connect Events
105 m_browseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_ODBPP_BASE::onBrowseClicked ), NULL, this );
106 m_cbCompress->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_ODBPP_BASE::onCompressCheck ), NULL, this );
107 m_stdButtonsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_ODBPP_BASE::onOKClick ), NULL, this );
108}
109
111{
112 // Disconnect Events
113 m_browseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_ODBPP_BASE::onBrowseClicked ), NULL, this );
114 m_cbCompress->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_ODBPP_BASE::onCompressCheck ), NULL, this );
115 m_stdButtonsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_ODBPP_BASE::onOKClick ), NULL, this );
116
117}
virtual void onBrowseClicked(wxCommandEvent &event)
DIALOG_EXPORT_ODBPP_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Export ODB++"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(380, 300), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
STD_BITMAP_BUTTON * m_browseButton
virtual void onCompressCheck(wxCommandEvent &event)
wxStdDialogButtonSizer * m_stdButtons
virtual void onOKClick(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
A bitmap button widget that behaves like a standard dialog button except with an icon.
#define _(s)