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:
|
|
|
|
PCB_BASE_FRAME* m_Parent;
|
|
|
|
wxConfig* m_Config;
|
|
|
|
long m_PrintMaskLayer;
|
|
|
|
wxCheckBox* m_BoxSelectLayer[32];
|
2012-09-20 18:58:41 +00:00
|
|
|
bool m_printBW;
|
|
|
|
// 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 );
|
|
|
|
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_
|