KiCad PCB EDA Suite
PCBNEW_PRINTOUT_SETTINGS Struct Reference

#include <pcbnew_printout.h>

Inheritance diagram for PCBNEW_PRINTOUT_SETTINGS:
BOARD_PRINTOUT_SETTINGS PRINTOUT_SETTINGS

Public Types

enum  DRILL_MARK_SHAPE_T { NO_DRILL_SHAPE, SMALL_DRILL_SHAPE, FULL_DRILL_SHAPE }
 
enum  PAGINATION_T { LAYER_PER_PAGE, ALL_LAYERS }
 

Public Member Functions

 PCBNEW_PRINTOUT_SETTINGS (const PAGE_INFO &aPageInfo)
 
void Load (wxConfigBase *aConfig) override
 
void Save (wxConfigBase *aConfig) override
 
bool PrintBorderAndTitleBlock () const
 Returns true if the drawing border and title block should be printed. More...
 

Public Attributes

enum PCBNEW_PRINTOUT_SETTINGS::DRILL_MARK_SHAPE_T m_drillMarks
 Drill marks shape. More...
 
enum PCBNEW_PRINTOUT_SETTINGS::PAGINATION_T m_pagination
 Pagination. More...
 
bool m_noEdgeLayer
 Disable board outline on each page. More...
 
LSET m_layerSet
 Layers to print. More...
 
bool m_mirror
 Print mirrored. More...
 
double m_scale
 Printing scale. More...
 
bool m_titleBlock
 Print frame and title block. More...
 
bool m_blackWhite
 Print in B&W or Color. More...
 
int m_pageCount
 Number of pages to print. More...
 
const PAGE_INFOm_pageInfo
 

Detailed Description

Definition at line 28 of file pcbnew_printout.h.

Member Enumeration Documentation

Enumerator
NO_DRILL_SHAPE 
SMALL_DRILL_SHAPE 
FULL_DRILL_SHAPE 

Definition at line 32 of file pcbnew_printout.h.

Enumerator
LAYER_PER_PAGE 
ALL_LAYERS 

Definition at line 38 of file pcbnew_printout.h.

Constructor & Destructor Documentation

PCBNEW_PRINTOUT_SETTINGS::PCBNEW_PRINTOUT_SETTINGS ( const PAGE_INFO aPageInfo)

Definition at line 35 of file pcbnew_printout.cpp.

References ALL_LAYERS, m_drillMarks, m_noEdgeLayer, m_pagination, and SMALL_DRILL_SHAPE.

36  : BOARD_PRINTOUT_SETTINGS( aPageInfo )
37 {
40  m_noEdgeLayer = false;
41 }
bool m_noEdgeLayer
Disable board outline on each page.
BOARD_PRINTOUT_SETTINGS(const PAGE_INFO &aPageInfo)
enum PCBNEW_PRINTOUT_SETTINGS::PAGINATION_T m_pagination
Pagination.
enum PCBNEW_PRINTOUT_SETTINGS::DRILL_MARK_SHAPE_T m_drillMarks
Drill marks shape.

Member Function Documentation

void PCBNEW_PRINTOUT_SETTINGS::Load ( wxConfigBase *  aConfig)
overridevirtual

Reimplemented from PRINTOUT_SETTINGS.

Definition at line 44 of file pcbnew_printout.cpp.

References ALL_LAYERS, FULL_DRILL_SHAPE, BOARD_PRINTOUT_SETTINGS::Load(), m_drillMarks, m_pagination, OPTKEY_PRINT_PADS_DRILL, and OPTKEY_PRINT_PAGE_PER_LAYER.

45 {
47  aConfig->Read( OPTKEY_PRINT_PADS_DRILL, (int*) &m_drillMarks, FULL_DRILL_SHAPE );
48  aConfig->Read( OPTKEY_PRINT_PAGE_PER_LAYER, (int*) &m_pagination, ALL_LAYERS );
49 }
void Load(wxConfigBase *aConfig) override
#define OPTKEY_PRINT_PADS_DRILL
Definition: pcbplot.h:59
#define OPTKEY_PRINT_PAGE_PER_LAYER
Definition: pcbplot.h:58
enum PCBNEW_PRINTOUT_SETTINGS::PAGINATION_T m_pagination
Pagination.
enum PCBNEW_PRINTOUT_SETTINGS::DRILL_MARK_SHAPE_T m_drillMarks
Drill marks shape.
bool PRINTOUT_SETTINGS::PrintBorderAndTitleBlock ( ) const
inlineinherited

Returns true if the drawing border and title block should be printed.

For scale factors greater than one, the border is not printed because it will end up scaling off of the page.

Definition at line 56 of file printout.h.

References PRINTOUT_SETTINGS::m_titleBlock.

Referenced by BOARD_PRINTOUT::DrawPage().

57  {
58  return m_scale <= 1.0 && m_titleBlock;
59  }
double m_scale
Printing scale.
Definition: printout.h:44
bool m_titleBlock
Print frame and title block.
Definition: printout.h:45
void PCBNEW_PRINTOUT_SETTINGS::Save ( wxConfigBase *  aConfig)
overridevirtual

Reimplemented from PRINTOUT_SETTINGS.

Definition at line 52 of file pcbnew_printout.cpp.

References m_drillMarks, m_pagination, OPTKEY_PRINT_PADS_DRILL, OPTKEY_PRINT_PAGE_PER_LAYER, and BOARD_PRINTOUT_SETTINGS::Save().

53 {
55  aConfig->Write( OPTKEY_PRINT_PADS_DRILL, (int) m_drillMarks );
56  aConfig->Write( OPTKEY_PRINT_PAGE_PER_LAYER, (int) m_pagination );
57 }
#define OPTKEY_PRINT_PADS_DRILL
Definition: pcbplot.h:59
#define OPTKEY_PRINT_PAGE_PER_LAYER
Definition: pcbplot.h:58
enum PCBNEW_PRINTOUT_SETTINGS::PAGINATION_T m_pagination
Pagination.
enum PCBNEW_PRINTOUT_SETTINGS::DRILL_MARK_SHAPE_T m_drillMarks
Drill marks shape.
void Save(wxConfigBase *aConfig) override

Member Data Documentation

bool BOARD_PRINTOUT_SETTINGS::m_mirror
inherited
bool PCBNEW_PRINTOUT_SETTINGS::m_noEdgeLayer

Disable board outline on each page.

Definition at line 43 of file pcbnew_printout.h.

Referenced by PCBNEW_PRINTOUT::OnPrintPage(), PCBNEW_PRINTOUT_SETTINGS(), and DIALOG_PRINT_PCBNEW::setLayerSetFromList().

const PAGE_INFO& PRINTOUT_SETTINGS::m_pageInfo
inherited

Definition at line 48 of file printout.h.

Referenced by BOARD_PRINTOUT::DrawPage(), and DIALOG_PRINT_GENERIC::initPrintData().


The documentation for this struct was generated from the following files: