83
83
#define GERBVIEW_EXE wxT( "gerbview.exe" )
84
84
#define BITMAPCONVERTER_EXE wxT( "bitmap2component.exe" )
85
85
#define PCB_CALCULATOR_EXE wxT( "pcb_calculator.exe" )
86
#define PL_EDITOR_EXE wxT( "pl_editor.exe" )
88
89
#define CVPCB_EXE wxT( "cvpcb" )
91
92
#define GERBVIEW_EXE wxT( "gerbview" )
92
93
#define BITMAPCONVERTER_EXE wxT( "bitmap2component" )
93
94
#define PCB_CALCULATOR_EXE wxT( "pcb_calculator" )
95
#define PL_EDITOR_EXE wxT( "pl_editor" )
95
97
#define CVPCB_EXE wxT( "cvpcb.app/Contents/MacOS/cvpcb" )
96
98
#define PCBNEW_EXE wxT( "pcbnew.app/Contents/MacOS/pcbnew" )
98
100
#define GERBVIEW_EXE wxT( "gerbview.app/Contents/MacOS/gerbview" )
99
101
#define BITMAPCONVERTER_EXE wxT( "bitmap2component.app/Contents/MacOS/bitmap2component" )
100
102
#define PCB_CALCULATOR_EXE wxT( "pcb_calculator.app/Contents/MacOS/pcb_calculator" )
103
#define PL_EDITOR_EXE wxT( "pcb_calculator.app/Contents/MacOS/pl_editor" )
287
297
// Accessors returning "Internal Units (IU)". IUs are mils in EESCHEMA,
288
298
// and either deci-mils or nanometers in PCBNew.
289
#if defined(PCBNEW) || defined(EESCHEMA) || defined(GERBVIEW)
299
#if defined(PCBNEW) || defined(EESCHEMA) || defined(GERBVIEW) || defined(PL_EDITOR)
290
300
int GetWidthIU() const { return IU_PER_MILS * GetWidthMils(); }
291
301
int GetHeightIU() const { return IU_PER_MILS * GetHeightMils(); }
292
302
const wxSize GetSizeIU() const { return wxSize( GetWidthIU(), GetHeightIU() ); }
296
* Function GetLeftMarginMils.
297
* @return int - logical page left margin in mils.
299
int GetLeftMarginMils() const { return m_left_margin; }
302
* Function GetLeftMarginMils.
303
* @return int - logical page right margin in mils.
305
int GetRightMarginMils() const { return m_right_margin; }
308
* Function GetLeftMarginMils.
309
* @return int - logical page top margin in mils.
311
int GetTopMarginMils() const { return m_top_margin; }
314
* Function GetBottomMarginMils.
315
* @return int - logical page bottom margin in mils.
317
int GetBottomMarginMils() const { return m_bottom_margin; }
320
* Function SetLeftMarginMils
321
* sets left page margin to @a aMargin in mils.
323
void SetLeftMarginMils( int aMargin ) { m_left_margin = aMargin; }
326
* Function SetRightMarginMils
327
* sets right page margin to @a aMargin in mils.
329
void SetRightMarginMils( int aMargin ) { m_right_margin = aMargin; }
332
* Function SetTopMarginMils
333
* sets top page margin to @a aMargin in mils.
335
void SetTopMarginMils( int aMargin ) { m_top_margin = aMargin; }
338
* Function SetBottomMarginMils
339
* sets bottom page margin to @a aMargin in mils.
341
void SetBottomMarginMils( int aMargin ) { m_bottom_margin = aMargin; }
344
306
* Function SetCustomWidthMils
345
307
* sets the width of Custom page in mils, for any custom page
346
308
* constructed or made via SetType() after making this call.
419
381
#define MIN_PAGE_SIZE 4000
420
382
#define MAX_PAGE_SIZE 48000
428
384
bool m_portrait; ///< true if portrait, false if landscape
430
386
wxPaperSize m_paper_id; ///< wx' style paper id.