~pierre-parent-k/kicad/length-tunning

« back to all changes in this revision

Viewing changes to pcbnew/dialogs/dialog_SVG_print.h

  • Committer: Pierre Parent
  • Date: 2014-07-06 10:32:13 UTC
  • mfrom: (4798.1.179 kicad)
  • Revision ID: pierre.parent@insa-rouen.fr-20140706103213-wjsdy0hc9q6wbz5v
Merge with lp:kicad 4977

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
#ifndef _DIALOG_SVG_PRINT_H_
3
 
#define _DIALOG_SVG_PRINT_H_
4
 
 
5
 
 
6
 
#include <dialog_SVG_print_base.h>
7
 
 
8
 
 
9
 
class BASE_SCREEN;
10
 
class PCB_BASE_FRAME;
11
 
class wxConfig;
12
 
 
13
 
 
14
 
class DIALOG_SVG_PRINT : public DIALOG_SVG_PRINT_base
15
 
{
16
 
private:
17
 
    PCB_BASE_FRAME* m_parent;
18
 
    BOARD*          m_board;
19
 
    wxConfigBase*       m_config;
20
 
    LAYER_MSK       m_printMaskLayer;
21
 
    wxCheckBox*     m_boxSelectLayer[32];
22
 
    bool            m_printBW;
23
 
    wxString        m_outputDirectory;
24
 
 
25
 
    // Static member to store options
26
 
    static bool     m_printMirror;
27
 
    static bool     m_oneFileOnly;
28
 
 
29
 
public:
30
 
    DIALOG_SVG_PRINT( EDA_DRAW_FRAME* parent );
31
 
    ~DIALOG_SVG_PRINT() {}
32
 
 
33
 
private:
34
 
    void OnCloseWindow( wxCloseEvent& event );
35
 
    void initDialog( );
36
 
    void OnButtonPlot( wxCommandEvent& event );
37
 
    void OnButtonCancelClick( wxCommandEvent& event );
38
 
    void OnOutputDirectoryBrowseClicked( wxCommandEvent& event );
39
 
    void SetPenWidth();
40
 
    void ExportSVGFile( bool aOnlyOneFile );
41
 
    bool PageIsBoardBoundarySize()
42
 
    {
43
 
        return m_rbSvgPageSizeOpt->GetSelection() == 2;
44
 
    }
45
 
    bool PrintPageRef()
46
 
    {
47
 
        return m_rbSvgPageSizeOpt->GetSelection() == 0;
48
 
    }
49
 
    bool CreateSVGFile( const wxString& FullFileName );
50
 
};
51
 
 
52
 
 
53
 
#endif    // _DIALOG_SVG_PRINT_H_