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( wxSize( -1,-1 ), 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, _("Output file:"), wxDefaultPosition, wxDefaultSize, 0 );
24 m_lblBrdFile->Wrap( -1 );
25 bSizerTop->Add( m_lblBrdFile, 0, wxALIGN_CENTER_VERTICAL|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, wxALL|wxEXPAND, 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, wxALL|wxEXPAND, 5 );
38
39 wxBoxSizer* bSizer3;
40 bSizer3 = new wxBoxSizer( wxHORIZONTAL );
41
42 wxFlexGridSizer* fgSizer;
43 fgSizer = new wxFlexGridSizer( 0, 2, 5, 5 );
44 fgSizer->AddGrowableCol( 1 );
45 fgSizer->SetFlexibleDirection( wxBOTH );
46 fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
47
48 m_lblUnits = new wxStaticText( this, wxID_ANY, _("Units:"), wxDefaultPosition, wxDefaultSize, 0 );
49 m_lblUnits->Wrap( -1 );
50 fgSizer->Add( m_lblUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
51
52 wxString m_choiceUnitsChoices[] = { _("Millimeters"), _("Inches") };
53 int m_choiceUnitsNChoices = sizeof( m_choiceUnitsChoices ) / sizeof( wxString );
54 m_choiceUnits = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), m_choiceUnitsNChoices, m_choiceUnitsChoices, 0 );
55 m_choiceUnits->SetSelection( 0 );
56 fgSizer->Add( m_choiceUnits, 0, wxEXPAND, 5 );
57
58 m_lblPrecision = new wxStaticText( this, wxID_ANY, _("Precision:"), wxDefaultPosition, wxDefaultSize, 0 );
59 m_lblPrecision->Wrap( -1 );
60 m_lblPrecision->SetToolTip( _("The number of values following the decimal separator") );
61
62 fgSizer->Add( m_lblPrecision, 0, wxALIGN_CENTER_VERTICAL, 5 );
63
64 m_precision = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), wxSP_ARROW_KEYS, 2, 16, 6 );
65 m_precision->SetToolTip( _("The number of values following the decimal separator") );
66
67 fgSizer->Add( m_precision, 0, wxEXPAND, 5 );
68
69 m_lblCompress = new wxStaticText( this, wxID_ANY, _("Compression format:"), wxDefaultPosition, wxDefaultSize, 0 );
70 m_lblCompress->Wrap( -1 );
71 m_lblCompress->SetToolTip( _("Select the format to compress the output ODB++ files") );
72
73 fgSizer->Add( m_lblCompress, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
74
75 wxString m_choiceCompressChoices[] = { _("None"), _("ZIP"), _("TGZ") };
76 int m_choiceCompressNChoices = sizeof( m_choiceCompressChoices ) / sizeof( wxString );
77 m_choiceCompress = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), m_choiceCompressNChoices, m_choiceCompressChoices, 0 );
78 m_choiceCompress->SetSelection( 1 );
79 fgSizer->Add( m_choiceCompress, 0, wxEXPAND, 5 );
80
81
82 bSizer3->Add( fgSizer, 3, wxEXPAND|wxRIGHT|wxLEFT, 5 );
83
84 wxBoxSizer* bSizer4;
85 bSizer4 = new wxBoxSizer( wxVERTICAL );
86
87
88 bSizer4->Add( 0, 0, 1, wxEXPAND, 5 );
89
90
91 bSizer3->Add( bSizer4, 2, wxEXPAND, 5 );
92
93
94 bMainSizer->Add( bSizer3, 0, wxEXPAND|wxALL, 5 );
95
96 m_stdButtons = new wxStdDialogButtonSizer();
97 m_stdButtonsOK = new wxButton( this, wxID_OK );
98 m_stdButtons->AddButton( m_stdButtonsOK );
99 m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
100 m_stdButtons->AddButton( m_stdButtonsCancel );
101 m_stdButtons->Realize();
102
103 bMainSizer->Add( m_stdButtons, 0, wxALL|wxEXPAND, 5 );
104
105
106 this->SetSizer( bMainSizer );
107 this->Layout();
108 bMainSizer->Fit( this );
109
110 this->Centre( wxBOTH );
111
112 // Connect Events
113 m_browseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_ODBPP_BASE::onBrowseClicked ), NULL, this );
114 m_choiceCompress->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_ODBPP_BASE::onFormatChoice ), NULL, this );
115 m_stdButtonsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_ODBPP_BASE::onOKClick ), NULL, this );
116}
117
119{
120 // Disconnect Events
121 m_browseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_ODBPP_BASE::onBrowseClicked ), NULL, this );
122 m_choiceCompress->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_ODBPP_BASE::onFormatChoice ), NULL, this );
123 m_stdButtonsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_ODBPP_BASE::onOKClick ), NULL, this );
124
125}
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(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxBORDER_DEFAULT)
STD_BITMAP_BUTTON * m_browseButton
wxStdDialogButtonSizer * m_stdButtons
virtual void onOKClick(wxCommandEvent &event)
virtual void onFormatChoice(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)