KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_export_2581_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6a)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
11
13
15
16DIALOG_EXPORT_2581_BASE::DIALOG_EXPORT_2581_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
17{
18 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
19
20 wxBoxSizer* bMainSizer;
21 bMainSizer = new wxBoxSizer( wxVERTICAL );
22
23 bSizerTop = new wxBoxSizer( wxHORIZONTAL );
24
25 m_lblBrdFile = new wxStaticText( this, wxID_ANY, _("File:"), wxDefaultPosition, wxDefaultSize, 0 );
26 m_lblBrdFile->Wrap( -1 );
27 bSizerTop->Add( m_lblBrdFile, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
28
29 m_outputFileName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
30 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") );
31 m_outputFileName->SetMinSize( wxSize( 350,-1 ) );
32
33 bSizerTop->Add( m_outputFileName, 1, wxALIGN_CENTER_VERTICAL, 5 );
34
35 m_browseButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( -1,-1 ), wxBU_AUTODRAW|0 );
36 bSizerTop->Add( m_browseButton, 0, wxALIGN_CENTER_VERTICAL, 10 );
37
38
39 bMainSizer->Add( bSizerTop, 0, wxEXPAND|wxALL, 10 );
40
41 wxBoxSizer* bSizerMiddle;
42 bSizerMiddle = new wxBoxSizer( wxHORIZONTAL );
43
44 wxBoxSizer* bSizerLeftCol;
45 bSizerLeftCol = new wxBoxSizer( wxVERTICAL );
46
47 m_fileFormatLabel = new wxStaticText( this, wxID_ANY, _("File Format"), wxDefaultPosition, wxDefaultSize, 0 );
48 m_fileFormatLabel->Wrap( -1 );
49 bSizerLeftCol->Add( m_fileFormatLabel, 0, wxTOP|wxRIGHT|wxLEFT, 8 );
50
51 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
52 bSizerLeftCol->Add( m_staticline1, 0, wxEXPAND|wxBOTTOM, 5 );
53
54 wxGridBagSizer* gbSizer1;
55 gbSizer1 = new wxGridBagSizer( 5, 5 );
56 gbSizer1->SetFlexibleDirection( wxBOTH );
57 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
58
59 m_lblUnits = new wxStaticText( this, wxID_ANY, _("Units:"), wxDefaultPosition, wxDefaultSize, 0 );
60 m_lblUnits->Wrap( -1 );
61 gbSizer1->Add( m_lblUnits, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
62
63 wxString m_choiceUnitsChoices[] = { _("Millimeters"), _("Inches") };
64 int m_choiceUnitsNChoices = sizeof( m_choiceUnitsChoices ) / sizeof( wxString );
65 m_choiceUnits = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnitsNChoices, m_choiceUnitsChoices, 0 );
66 m_choiceUnits->SetSelection( 0 );
67 gbSizer1->Add( m_choiceUnits, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 10 );
68
69 m_lblPrecision = new wxStaticText( this, wxID_ANY, _("Precision:"), wxDefaultPosition, wxDefaultSize, 0 );
70 m_lblPrecision->Wrap( -1 );
71 m_lblPrecision->SetToolTip( _("The number of values following the decimal separator") );
72
73 gbSizer1->Add( m_lblPrecision, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 15 );
74
75 m_precision = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 4, 10, 6 );
76 m_precision->SetToolTip( _("The number of values following the decimal separator") );
77
78 gbSizer1->Add( m_precision, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 10 );
79
80 m_lblVersion = new wxStaticText( this, wxID_ANY, _("Version:"), wxDefaultPosition, wxDefaultSize, 0 );
81 m_lblVersion->Wrap( -1 );
82 gbSizer1->Add( m_lblVersion, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
83
84 wxString m_versionChoiceChoices[] = { _("B"), _("C") };
85 int m_versionChoiceNChoices = sizeof( m_versionChoiceChoices ) / sizeof( wxString );
86 m_versionChoice = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_versionChoiceNChoices, m_versionChoiceChoices, 0 );
87 m_versionChoice->SetSelection( 1 );
88 gbSizer1->Add( m_versionChoice, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 10 );
89
90 m_cbCompress = new wxCheckBox( this, wxID_ANY, _("Compress output"), wxDefaultPosition, wxDefaultSize, 0 );
91 m_cbCompress->SetToolTip( _("Compress output into 'zip' file") );
92
93 gbSizer1->Add( m_cbCompress, wxGBPosition( 3, 0 ), wxGBSpan( 1, 2 ), wxTOP, 5 );
94
95
96 gbSizer1->AddGrowableCol( 1 );
97
98 bSizerLeftCol->Add( gbSizer1, 1, wxEXPAND|wxTOP|wxRIGHT, 5 );
99
100
101 bSizerMiddle->Add( bSizerLeftCol, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
102
103
104 bSizerMiddle->Add( 10, 0, 0, wxEXPAND, 5 );
105
106 m_contentPanel = new PANEL_FAB_EXPORT_CONTENT( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
107 bSizerMiddle->Add( m_contentPanel, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
108
109
110 bMainSizer->Add( bSizerMiddle, 0, wxEXPAND|wxBOTTOM, 5 );
111
112 m_messagesPanel = new WX_HTML_REPORT_PANEL( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
113 m_messagesPanel->SetMinSize( wxSize( -300,150 ) );
114
115 bMainSizer->Add( m_messagesPanel, 1, wxEXPAND|wxLEFT|wxRIGHT, 5 );
116
117 m_stdButtons = new wxStdDialogButtonSizer();
118 m_stdButtonsOK = new wxButton( this, wxID_OK );
119 m_stdButtons->AddButton( m_stdButtonsOK );
120 m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
121 m_stdButtons->AddButton( m_stdButtonsCancel );
122 m_stdButtons->Realize();
123
124 bMainSizer->Add( m_stdButtons, 0, wxALL|wxEXPAND, 5 );
125
126
127 this->SetSizer( bMainSizer );
128 this->Layout();
129 bMainSizer->Fit( this );
130
131 this->Centre( wxBOTH );
132
133 // Connect Events
134 m_browseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onBrowseClicked ), NULL, this );
135 m_cbCompress->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onCompressCheck ), NULL, this );
136 m_stdButtonsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onOKClick ), NULL, this );
137}
138
140{
141 // Disconnect Events
142 m_browseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onBrowseClicked ), NULL, this );
143 m_cbCompress->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onCompressCheck ), NULL, this );
144 m_stdButtonsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_2581_BASE::onOKClick ), NULL, this );
145
146}
wxStdDialogButtonSizer * m_stdButtons
PANEL_FAB_EXPORT_CONTENT * m_contentPanel
DIALOG_EXPORT_2581_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Export IPC-2581"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void onOKClick(wxCommandEvent &event)
WX_HTML_REPORT_PANEL * m_messagesPanel
STD_BITMAP_BUTTON * m_browseButton
virtual void onBrowseClicked(wxCommandEvent &event)
virtual void onCompressCheck(wxCommandEvent &event)
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)
A bitmap button widget that behaves like a standard dialog button except with an icon.
A widget for browsing a rich text error/status report.
#define _(s)