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 (APP_SETTINGS_BASE *aConfig) override
 
void Save (APP_SETTINGS_BASE *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
 
enum PCBNEW_PRINTOUT_SETTINGS::PAGINATION_T m_Pagination
 
bool m_PrintEdgeCutsOnAllPages
 Print board outline on each page. More...
 
bool m_AsItemCheckboxes
 Honor checkboxes in the Items tab of the Layers Manager. 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...
 
bool m_background
 Print background color. More...
 
const PAGE_INFOm_pageInfo
 
COLOR_SETTINGSm_colorSettings
 The color settings to be used for printing. More...
 

Detailed Description

Definition at line 29 of file pcbnew_printout.h.

Member Enumeration Documentation

◆ DRILL_MARK_SHAPE_T

Enumerator
NO_DRILL_SHAPE 
SMALL_DRILL_SHAPE 
FULL_DRILL_SHAPE 

Definition at line 33 of file pcbnew_printout.h.

◆ PAGINATION_T

Enumerator
LAYER_PER_PAGE 
ALL_LAYERS 

Definition at line 39 of file pcbnew_printout.h.

Constructor & Destructor Documentation

◆ PCBNEW_PRINTOUT_SETTINGS()

PCBNEW_PRINTOUT_SETTINGS::PCBNEW_PRINTOUT_SETTINGS ( const PAGE_INFO aPageInfo)

Definition at line 37 of file pcbnew_printout.cpp.

38  : BOARD_PRINTOUT_SETTINGS( aPageInfo )
39 {
43  m_AsItemCheckboxes = false;
44 }
enum PCBNEW_PRINTOUT_SETTINGS::DRILL_MARK_SHAPE_T m_DrillMarks
bool m_AsItemCheckboxes
Honor checkboxes in the Items tab of the Layers Manager.
bool m_PrintEdgeCutsOnAllPages
Print board outline on each page.
BOARD_PRINTOUT_SETTINGS(const PAGE_INFO &aPageInfo)
enum PCBNEW_PRINTOUT_SETTINGS::PAGINATION_T m_Pagination

References ALL_LAYERS, m_AsItemCheckboxes, m_DrillMarks, m_Pagination, m_PrintEdgeCutsOnAllPages, and SMALL_DRILL_SHAPE.

Member Function Documentation

◆ Load()

void PCBNEW_PRINTOUT_SETTINGS::Load ( APP_SETTINGS_BASE aConfig)
overridevirtual

Reimplemented from BOARD_PRINTOUT_SETTINGS.

Definition at line 47 of file pcbnew_printout.cpp.

48 {
50 
51  if( auto cfg = dynamic_cast<PCBNEW_SETTINGS*>( aConfig ) )
52  {
53  m_DrillMarks = static_cast<DRILL_MARK_SHAPE_T>( cfg->m_Plot.pads_drill_mode );
54  m_Pagination = static_cast<PAGINATION_T>( cfg->m_Plot.all_layers_on_one_page );
55  m_Mirror = cfg->m_Plot.mirror;
56  }
57 }
enum PCBNEW_PRINTOUT_SETTINGS::DRILL_MARK_SHAPE_T m_DrillMarks
void Load(APP_SETTINGS_BASE *aConfig) override
bool m_Mirror
Print mirrored.
enum PCBNEW_PRINTOUT_SETTINGS::PAGINATION_T m_Pagination

References BOARD_PRINTOUT_SETTINGS::Load(), m_DrillMarks, BOARD_PRINTOUT_SETTINGS::m_Mirror, and m_Pagination.

◆ PrintBorderAndTitleBlock()

bool PRINTOUT_SETTINGS::PrintBorderAndTitleBlock ( ) const
inlineinherited

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

Definition at line 55 of file printout.h.

55 { return m_titleBlock; }
bool m_titleBlock
Print frame and title block.
Definition: printout.h:59

References PRINTOUT_SETTINGS::m_titleBlock.

Referenced by BOARD_PRINTOUT::DrawPage().

◆ Save()

void PCBNEW_PRINTOUT_SETTINGS::Save ( APP_SETTINGS_BASE aConfig)
overridevirtual

Reimplemented from BOARD_PRINTOUT_SETTINGS.

Definition at line 60 of file pcbnew_printout.cpp.

61 {
63 
64  if( auto cfg = dynamic_cast<PCBNEW_SETTINGS*>( aConfig ) )
65  {
66  cfg->m_Plot.pads_drill_mode = m_DrillMarks;
67  cfg->m_Plot.all_layers_on_one_page = m_Pagination;
68  cfg->m_Plot.mirror = m_Mirror;
69  }
70 }
void Save(APP_SETTINGS_BASE *aConfig) override
enum PCBNEW_PRINTOUT_SETTINGS::DRILL_MARK_SHAPE_T m_DrillMarks
bool m_Mirror
Print mirrored.
enum PCBNEW_PRINTOUT_SETTINGS::PAGINATION_T m_Pagination

References m_DrillMarks, BOARD_PRINTOUT_SETTINGS::m_Mirror, m_Pagination, and BOARD_PRINTOUT_SETTINGS::Save().

Member Data Documentation

◆ m_AsItemCheckboxes

bool PCBNEW_PRINTOUT_SETTINGS::m_AsItemCheckboxes

Honor checkboxes in the Items tab of the Layers Manager.

Definition at line 45 of file pcbnew_printout.h.

Referenced by PCBNEW_PRINTOUT_SETTINGS(), DIALOG_PRINT_PCBNEW::saveSettings(), and PCBNEW_PRINTOUT::setupViewLayers().

◆ m_background

bool PRINTOUT_SETTINGS::m_background
inherited

Print background color.

Definition at line 62 of file printout.h.

Referenced by PRINTOUT_SETTINGS::PRINTOUT_SETTINGS(), DIALOG_PRINT_PCBNEW::saveSettings(), and BOARD_PRINTOUT::setupPainter().

◆ m_blackWhite

◆ m_colorSettings

COLOR_SETTINGS* PRINTOUT_SETTINGS::m_colorSettings
inherited

The color settings to be used for printing.

Definition at line 66 of file printout.h.

Referenced by BOARD_PRINTOUT::DrawPage(), GERBVIEW_CONTROL::Print(), PRINTOUT_SETTINGS::PRINTOUT_SETTINGS(), and DIALOG_PRINT_PCBNEW::saveSettings().

◆ m_DrillMarks

◆ m_LayerSet

◆ m_Mirror

bool BOARD_PRINTOUT_SETTINGS::m_Mirror
inherited

◆ m_pageCount

◆ m_pageInfo

const PAGE_INFO& PRINTOUT_SETTINGS::m_pageInfo
inherited

Definition at line 63 of file printout.h.

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

◆ m_Pagination

◆ m_PrintEdgeCutsOnAllPages

bool PCBNEW_PRINTOUT_SETTINGS::m_PrintEdgeCutsOnAllPages

◆ m_scale

◆ m_titleBlock


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