2012-08-31 07:43:37 +00:00
|
|
|
|
|
|
|
#ifndef _DIALOG_SVG_PRINT_H_
|
|
|
|
#define _DIALOG_SVG_PRINT_H_
|
|
|
|
|
|
|
|
|
|
|
|
#include <dialog_SVG_print_base.h>
|
|
|
|
|
|
|
|
|
|
|
|
class BASE_SCREEN;
|
|
|
|
class PCB_BASE_FRAME;
|
|
|
|
class wxConfig;
|
|
|
|
|
|
|
|
|
|
|
|
class DIALOG_SVG_PRINT : public DIALOG_SVG_PRINT_base
|
|
|
|
{
|
|
|
|
private:
|
2012-11-16 14:13:31 +00:00
|
|
|
PCB_BASE_FRAME* m_parent;
|
|
|
|
BOARD* m_board;
|
|
|
|
wxConfig* m_config;
|
|
|
|
long m_printMaskLayer;
|
|
|
|
wxCheckBox* m_boxSelectLayer[32];
|
|
|
|
bool m_printBW;
|
|
|
|
wxString m_outputDirectory;
|
|
|
|
|
2012-09-20 18:58:41 +00:00
|
|
|
// Static member to store options
|
|
|
|
static bool m_printMirror;
|
|
|
|
static bool m_oneFileOnly;
|
2012-08-31 07:43:37 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
DIALOG_SVG_PRINT( EDA_DRAW_FRAME* parent );
|
|
|
|
~DIALOG_SVG_PRINT() {}
|
|
|
|
|
|
|
|
private:
|
|
|
|
void OnCloseWindow( wxCloseEvent& event );
|
|
|
|
void initDialog( );
|
2012-09-20 18:58:41 +00:00
|
|
|
void OnButtonPlot( wxCommandEvent& event );
|
2012-08-31 07:43:37 +00:00
|
|
|
void OnButtonCancelClick( wxCommandEvent& event );
|
2012-11-16 14:13:31 +00:00
|
|
|
void OnOutputDirectoryBrowseClicked( wxCommandEvent& event );
|
2012-08-31 07:43:37 +00:00
|
|
|
void SetPenWidth();
|
2012-09-20 18:58:41 +00:00
|
|
|
void ExportSVGFile( bool aOnlyOneFile );
|
2012-08-31 07:43:37 +00:00
|
|
|
bool PageIsBoardBoundarySize()
|
|
|
|
{
|
|
|
|
return m_rbSvgPageSizeOpt->GetSelection() == 2;
|
|
|
|
}
|
|
|
|
bool PrintPageRef()
|
|
|
|
{
|
|
|
|
return m_rbSvgPageSizeOpt->GetSelection() == 0;
|
|
|
|
}
|
2012-09-20 18:58:41 +00:00
|
|
|
bool CreateSVGFile( const wxString& FullFileName );
|
2012-08-31 07:43:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _DIALOG_SVG_PRINT_H_
|