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 )
17 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
19 wxBoxSizer* bMainSizer;
20 bMainSizer =
new wxBoxSizer( wxVERTICAL );
23 bSizer4 =
new wxBoxSizer( wxHORIZONTAL );
25 m_staticTextDir =
new wxStaticText(
this, wxID_ANY,
_(
"Output directory:"), wxDefaultPosition, wxDefaultSize, 0 );
27 bSizer4->Add(
m_staticTextDir, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
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") );
39 bMainSizer->Add( bSizer4, 0, wxEXPAND|wxALL, 10 );
41 wxBoxSizer* bUpperSizer;
42 bUpperSizer =
new wxBoxSizer( wxHORIZONTAL );
44 wxStaticBoxSizer* sbLayersSizer;
45 sbLayersSizer =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Layers") ), wxHORIZONTAL );
47 wxBoxSizer* bSizerCopper;
48 bSizerCopper =
new wxBoxSizer( wxVERTICAL );
50 m_staticTextCopperLayers =
new wxStaticText( sbLayersSizer->GetStaticBox(), wxID_ANY,
_(
"Copper layers:"), wxDefaultPosition, wxDefaultSize, 0 );
54 wxArrayString m_CopperLayersListChoices;
55 m_CopperLayersList =
new wxCheckListBox( sbLayersSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_CopperLayersListChoices, 0 );
59 sbLayersSizer->Add( bSizerCopper, 1, wxEXPAND, 5 );
61 wxBoxSizer* bSizerTech;
62 bSizerTech =
new wxBoxSizer( wxVERTICAL );
64 m_staticTextTechLayers =
new wxStaticText( sbLayersSizer->GetStaticBox(), wxID_ANY,
_(
"Technical layers:"), wxDefaultPosition, wxDefaultSize, 0 );
68 wxArrayString m_TechnicalLayersListChoices;
69 m_TechnicalLayersList =
new wxCheckListBox( sbLayersSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_TechnicalLayersListChoices, 0 );
73 sbLayersSizer->Add( bSizerTech, 1, wxEXPAND, 5 );
76 bUpperSizer->Add( sbLayersSizer, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
78 wxStaticBoxSizer* sbOptionsSizer;
79 sbOptionsSizer =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Options") ), wxVERTICAL );
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 );
89 m_cbUsedBoardTheme =
new wxCheckBox( sbOptionsSizer->GetStaticBox(), wxID_ANY,
_(
"Use current board theme"), wxDefaultPosition, wxDefaultSize, 0 );
93 wxBoxSizer* bSizerTheme;
94 bSizerTheme =
new wxBoxSizer( wxHORIZONTAL );
96 m_stColorTheme =
new wxStaticText( sbOptionsSizer->GetStaticBox(), wxID_ANY,
_(
"Color theme:"), wxDefaultPosition, wxDefaultSize, 0 );
98 bSizerTheme->Add(
m_stColorTheme, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
100 wxArrayString m_colorThemeChoices;
101 m_colorTheme =
new wxChoice( sbOptionsSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_colorThemeChoices, 0 );
106 sbOptionsSizer->Add( bSizerTheme, 0, wxEXPAND, 5 );
109 bSizer8 =
new wxBoxSizer( wxVERTICAL );
112 sbOptionsSizer->Add( bSizer8, 1, wxEXPAND, 5 );
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 );
120 m_printMirrorOpt =
new wxCheckBox( sbOptionsSizer->GetStaticBox(), wxID_ANY,
_(
"Print mirrored"), wxDefaultPosition, wxDefaultSize, 0 );
125 m_checkboxPagePerLayer =
new wxCheckBox( sbOptionsSizer->GetStaticBox(), wxID_ANY,
_(
"Print one page per layer"), wxDefaultPosition, wxDefaultSize, 0 );
128 wxBoxSizer* bSizerBrdEdges;
129 bSizerBrdEdges =
new wxBoxSizer( wxHORIZONTAL );
132 bSizerBrdEdges->Add( 20, 0, 0, wxEXPAND, 5 );
134 m_checkboxEdgesOnAllPages =
new wxCheckBox( sbOptionsSizer->GetStaticBox(), wxID_ANY,
_(
"Print board edges on all pages"), wxDefaultPosition, wxDefaultSize, 0 );
138 sbOptionsSizer->Add( bSizerBrdEdges, 0, wxEXPAND, 5 );
141 bUpperSizer->Add( sbOptionsSizer, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
144 bMainSizer->Add( bUpperSizer, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
147 bSizer5 =
new wxBoxSizer( wxVERTICAL );
155 bMainSizer->Add( bSizer5, 1, wxEXPAND, 5 );
164 bMainSizer->Add(
m_sdbSizer1, 0, wxALL|wxEXPAND, 5 );
167 this->SetSizer( bMainSizer );
169 bMainSizer->Fit(
this );
wxCheckBox * m_cbUsedBoardTheme
wxCheckBox * m_checkboxPagePerLayer
virtual void OnButtonPlot(wxCommandEvent &event)
wxStaticText * m_staticTextCopperLayers
virtual void OnOutputDirectoryBrowseClicked(wxCommandEvent &event)
wxStaticText * m_staticTextDir
wxCheckListBox * m_CopperLayersList
wxRadioBox * m_ModeColorOption
wxRadioBox * m_rbSvgPageSizeOpt
virtual void onPagePerLayerClicked(wxCommandEvent &event)
WX_HTML_REPORT_PANEL * m_messagesPanel
STD_BITMAP_BUTTON * m_browseButton
~DIALOG_EXPORT_SVG_BASE()
wxCheckBox * m_checkboxEdgesOnAllPages
wxCheckBox * m_printMirrorOpt
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)
wxButton * m_sdbSizer1Cancel
wxStaticText * m_stColorTheme
wxCheckListBox * m_TechnicalLayersList
wxStdDialogButtonSizer * m_sdbSizer1
wxTextCtrl * m_outputDirectoryName
wxStaticText * m_staticTextTechLayers
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
A widget for browsing a rich text error/status report.