KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_export_svg_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
10
12
14
15DIALOG_EXPORT_SVG_BASE::DIALOG_EXPORT_SVG_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
16{
17 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
18
19 wxBoxSizer* bMainSizer;
20 bMainSizer = new wxBoxSizer( wxVERTICAL );
21
22 wxBoxSizer* bSizer4;
23 bSizer4 = new wxBoxSizer( wxHORIZONTAL );
24
25 m_staticTextDir = new wxStaticText( this, wxID_ANY, _("Output directory:"), wxDefaultPosition, wxDefaultSize, 0 );
26 m_staticTextDir->Wrap( -1 );
27 bSizer4->Add( m_staticTextDir, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
28
29 m_outputDirectoryName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
30 m_outputDirectoryName->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_outputDirectoryName->SetMinSize( wxSize( 450,-1 ) );
32
33 bSizer4->Add( m_outputDirectoryName, 1, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
34
35 m_browseButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( -1,-1 ), wxBU_AUTODRAW|0 );
36 bSizer4->Add( m_browseButton, 0, wxALIGN_CENTER_VERTICAL, 5 );
37
38
39 bMainSizer->Add( bSizer4, 0, wxEXPAND|wxALL, 10 );
40
41 wxBoxSizer* bUpperSizer;
42 bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
43
44 wxStaticBoxSizer* sbLayersSizer;
45 sbLayersSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Layers") ), wxHORIZONTAL );
46
47 wxBoxSizer* bSizerCopper;
48 bSizerCopper = new wxBoxSizer( wxVERTICAL );
49
50 m_staticTextCopperLayers = new wxStaticText( sbLayersSizer->GetStaticBox(), wxID_ANY, _("Copper layers:"), wxDefaultPosition, wxDefaultSize, 0 );
51 m_staticTextCopperLayers->Wrap( -1 );
52 bSizerCopper->Add( m_staticTextCopperLayers, 0, wxRIGHT|wxLEFT, 5 );
53
54 wxArrayString m_CopperLayersListChoices;
55 m_CopperLayersList = new wxCheckListBox( sbLayersSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_CopperLayersListChoices, 0 );
56 bSizerCopper->Add( m_CopperLayersList, 1, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
57
58
59 sbLayersSizer->Add( bSizerCopper, 1, wxEXPAND, 5 );
60
61 wxBoxSizer* bSizerTech;
62 bSizerTech = new wxBoxSizer( wxVERTICAL );
63
64 m_staticTextTechLayers = new wxStaticText( sbLayersSizer->GetStaticBox(), wxID_ANY, _("Technical layers:"), wxDefaultPosition, wxDefaultSize, 0 );
65 m_staticTextTechLayers->Wrap( -1 );
66 bSizerTech->Add( m_staticTextTechLayers, 0, wxRIGHT|wxLEFT, 5 );
67
68 wxArrayString m_TechnicalLayersListChoices;
69 m_TechnicalLayersList = new wxCheckListBox( sbLayersSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_TechnicalLayersListChoices, 0 );
70 bSizerTech->Add( m_TechnicalLayersList, 1, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
71
72
73 sbLayersSizer->Add( bSizerTech, 1, wxEXPAND, 5 );
74
75
76 bUpperSizer->Add( sbLayersSizer, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
77
78 wxStaticBoxSizer* sbOptionsSizer;
79 sbOptionsSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Options") ), wxVERTICAL );
80
81 wxString m_ModeColorOptionChoices[] = { _("Color"), _("Black and white") };
82 int m_ModeColorOptionNChoices = sizeof( m_ModeColorOptionChoices ) / sizeof( wxString );
83 m_ModeColorOption = new wxRadioBox( sbOptionsSizer->GetStaticBox(), wxID_ANY, _("Print Mode"), wxDefaultPosition, wxDefaultSize, m_ModeColorOptionNChoices, m_ModeColorOptionChoices, 1, wxRA_SPECIFY_COLS );
84 m_ModeColorOption->SetSelection( 1 );
85 m_ModeColorOption->SetToolTip( _("Export as black elements on a white background") );
86
87 sbOptionsSizer->Add( m_ModeColorOption, 0, wxEXPAND|wxALL, 5 );
88
89 m_cbUsedBoardTheme = new wxCheckBox( sbOptionsSizer->GetStaticBox(), wxID_ANY, _("Use current board theme"), wxDefaultPosition, wxDefaultSize, 0 );
90 m_cbUsedBoardTheme->SetValue(true);
91 sbOptionsSizer->Add( m_cbUsedBoardTheme, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
92
93 wxBoxSizer* bSizerTheme;
94 bSizerTheme = new wxBoxSizer( wxHORIZONTAL );
95
96 m_stColorTheme = new wxStaticText( sbOptionsSizer->GetStaticBox(), wxID_ANY, _("Color theme:"), wxDefaultPosition, wxDefaultSize, 0 );
97 m_stColorTheme->Wrap( -1 );
98 bSizerTheme->Add( m_stColorTheme, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
99
100 wxArrayString m_colorThemeChoices;
101 m_colorTheme = new wxChoice( sbOptionsSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_colorThemeChoices, 0 );
102 m_colorTheme->SetSelection( 0 );
103 bSizerTheme->Add( m_colorTheme, 0, wxALL|wxEXPAND, 5 );
104
105
106 sbOptionsSizer->Add( bSizerTheme, 0, wxEXPAND, 5 );
107
108 wxBoxSizer* bSizer8;
109 bSizer8 = new wxBoxSizer( wxVERTICAL );
110
111
112 sbOptionsSizer->Add( bSizer8, 1, wxEXPAND, 5 );
113
114 wxString m_rbSvgPageSizeOptChoices[] = { _("Page with frame and title block"), _("Current page size"), _("Board area only") };
115 int m_rbSvgPageSizeOptNChoices = sizeof( m_rbSvgPageSizeOptChoices ) / sizeof( wxString );
116 m_rbSvgPageSizeOpt = new wxRadioBox( sbOptionsSizer->GetStaticBox(), wxID_ANY, _("SVG Page Size"), wxDefaultPosition, wxDefaultSize, m_rbSvgPageSizeOptNChoices, m_rbSvgPageSizeOptChoices, 1, wxRA_SPECIFY_COLS );
117 m_rbSvgPageSizeOpt->SetSelection( 0 );
118 sbOptionsSizer->Add( m_rbSvgPageSizeOpt, 0, wxEXPAND|wxALL, 5 );
119
120 m_printMirrorOpt = new wxCheckBox( sbOptionsSizer->GetStaticBox(), wxID_ANY, _("Print mirrored"), wxDefaultPosition, wxDefaultSize, 0 );
121 m_printMirrorOpt->SetToolTip( _("Print the layer(s) horizontally mirrored") );
122
123 sbOptionsSizer->Add( m_printMirrorOpt, 0, wxALL, 5 );
124
125 m_checkboxPagePerLayer = new wxCheckBox( sbOptionsSizer->GetStaticBox(), wxID_ANY, _("Print one page per layer"), wxDefaultPosition, wxDefaultSize, 0 );
126 sbOptionsSizer->Add( m_checkboxPagePerLayer, 0, wxALL, 5 );
127
128 wxBoxSizer* bSizerBrdEdges;
129 bSizerBrdEdges = new wxBoxSizer( wxHORIZONTAL );
130
131
132 bSizerBrdEdges->Add( 20, 0, 0, wxEXPAND, 5 );
133
134 m_checkboxEdgesOnAllPages = new wxCheckBox( sbOptionsSizer->GetStaticBox(), wxID_ANY, _("Print board edges on all pages"), wxDefaultPosition, wxDefaultSize, 0 );
135 bSizerBrdEdges->Add( m_checkboxEdgesOnAllPages, 0, wxBOTTOM|wxLEFT, 5 );
136
137
138 sbOptionsSizer->Add( bSizerBrdEdges, 0, wxEXPAND, 5 );
139
140
141 bUpperSizer->Add( sbOptionsSizer, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
142
143
144 bMainSizer->Add( bUpperSizer, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
145
146 wxBoxSizer* bSizer5;
147 bSizer5 = new wxBoxSizer( wxVERTICAL );
148
149 m_messagesPanel = new WX_HTML_REPORT_PANEL( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
150 m_messagesPanel->SetMinSize( wxSize( 300,150 ) );
151
152 bSizer5->Add( m_messagesPanel, 1, wxEXPAND | wxALL, 5 );
153
154
155 bMainSizer->Add( bSizer5, 1, wxEXPAND, 5 );
156
157 m_sdbSizer1 = new wxStdDialogButtonSizer();
158 m_sdbSizer1OK = new wxButton( this, wxID_OK );
159 m_sdbSizer1->AddButton( m_sdbSizer1OK );
160 m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
161 m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
162 m_sdbSizer1->Realize();
163
164 bMainSizer->Add( m_sdbSizer1, 0, wxALL|wxEXPAND, 5 );
165
166
167 this->SetSizer( bMainSizer );
168 this->Layout();
169 bMainSizer->Fit( this );
170
171 // Connect Events
172 m_browseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_SVG_BASE::OnOutputDirectoryBrowseClicked ), NULL, this );
173 m_checkboxPagePerLayer->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_SVG_BASE::onPagePerLayerClicked ), NULL, this );
174 m_sdbSizer1OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_SVG_BASE::OnButtonPlot ), NULL, this );
175}
176
178{
179 // Disconnect Events
180 m_browseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_SVG_BASE::OnOutputDirectoryBrowseClicked ), NULL, this );
181 m_checkboxPagePerLayer->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_SVG_BASE::onPagePerLayerClicked ), NULL, this );
182 m_sdbSizer1OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_SVG_BASE::OnButtonPlot ), NULL, this );
183
184}
virtual void OnButtonPlot(wxCommandEvent &event)
wxStaticText * m_staticTextCopperLayers
virtual void OnOutputDirectoryBrowseClicked(wxCommandEvent &event)
wxCheckListBox * m_CopperLayersList
virtual void onPagePerLayerClicked(wxCommandEvent &event)
WX_HTML_REPORT_PANEL * m_messagesPanel
STD_BITMAP_BUTTON * m_browseButton
DIALOG_EXPORT_SVG_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Export SVG File"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxCheckListBox * m_TechnicalLayersList
wxStdDialogButtonSizer * m_sdbSizer1
wxStaticText * m_staticTextTechLayers
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.
A widget for browsing a rich text error/status report.
#define _(s)