KiCad PCB EDA Suite
|
Handle the parameters used to print a board drawing. More...
#include <printout.h>
Public Member Functions | |
PRINTOUT_SETTINGS (const PAGE_INFO &aPageInfo) | |
virtual | ~PRINTOUT_SETTINGS () |
virtual void | Save (APP_SETTINGS_BASE *aConfig) |
virtual void | Load (APP_SETTINGS_BASE *aConfig) |
bool | PrintBorderAndTitleBlock () const |
Returns true if the drawing border and title block should be printed. | |
Public Attributes | |
double | m_scale |
Printing scale. | |
bool | m_titleBlock |
Print frame and title block. | |
bool | m_blackWhite |
Print in B&W or Color. | |
int | m_pageCount |
Number of pages to print. | |
bool | m_background |
Print background color. | |
const PAGE_INFO & | m_pageInfo |
COLOR_SETTINGS * | m_colorSettings |
The color settings to be used for printing. | |
Handle the parameters used to print a board drawing.
Definition at line 31 of file printout.h.
|
inline |
Definition at line 33 of file printout.h.
References m_background, m_blackWhite, m_colorSettings, m_pageCount, m_scale, and m_titleBlock.
|
inlinevirtual |
Definition at line 44 of file printout.h.
|
virtual |
Reimplemented in BOARD_PRINTOUT_SETTINGS, and PCBNEW_PRINTOUT_SETTINGS.
Definition at line 32 of file printout.cpp.
References m_blackWhite, APP_SETTINGS_BASE::m_Printing, m_scale, m_titleBlock, APP_SETTINGS_BASE::PRINTING::monochrome, APP_SETTINGS_BASE::PRINTING::scale, and APP_SETTINGS_BASE::PRINTING::title_block.
Referenced by DIALOG_PRINT_GENERIC::ForcePrintBorder(), BOARD_PRINTOUT_SETTINGS::Load(), and DIALOG_PRINT_GENERIC::TransferDataToWindow().
|
inline |
Returns true if the drawing border and title block should be printed.
Definition at line 55 of file printout.h.
References m_titleBlock.
Referenced by BOARD_PRINTOUT::DrawPage().
|
virtual |
Reimplemented in BOARD_PRINTOUT_SETTINGS, and PCBNEW_PRINTOUT_SETTINGS.
Definition at line 24 of file printout.cpp.
References m_blackWhite, APP_SETTINGS_BASE::m_Printing, m_scale, m_titleBlock, APP_SETTINGS_BASE::PRINTING::monochrome, APP_SETTINGS_BASE::PRINTING::scale, and APP_SETTINGS_BASE::PRINTING::title_block.
Referenced by DIALOG_PRINT_GENERIC::ForcePrintBorder(), BOARD_PRINTOUT_SETTINGS::Save(), and DIALOG_PRINT_GENERIC::saveSettings().
bool PRINTOUT_SETTINGS::m_background |
Print background color.
Definition at line 62 of file printout.h.
Referenced by PRINTOUT_SETTINGS(), DIALOG_PRINT_PCBNEW::saveSettings(), and BOARD_PRINTOUT::setupPainter().
bool PRINTOUT_SETTINGS::m_blackWhite |
Print in B&W or Color.
Definition at line 60 of file printout.h.
Referenced by BOARD_PRINTOUT::DrawPage(), Load(), DIALOG_PRINT_PCBNEW::onColorModeClicked(), PRINTOUT_SETTINGS(), Save(), DIALOG_PRINT_GENERIC::saveSettings(), PCBNEW_PRINTOUT::setupViewLayers(), and DIALOG_PRINT_GENERIC::TransferDataToWindow().
COLOR_SETTINGS* PRINTOUT_SETTINGS::m_colorSettings |
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(), and DIALOG_PRINT_PCBNEW::saveSettings().
int PRINTOUT_SETTINGS::m_pageCount |
Number of pages to print.
Definition at line 61 of file printout.h.
Referenced by BOARD_PRINTOUT::GetPageInfo(), BOARD_PRINTOUT::HasPage(), DIALOG_PRINT_GENERIC::onPrintButtonClick(), GERBVIEW_PRINTOUT::OnPrintPage(), DIALOG_PRINT_GENERIC::onPrintPreview(), PRINTOUT_SETTINGS(), DIALOG_PRINT_GERBVIEW::setLayerSetFromList(), and DIALOG_PRINT_PCBNEW::setLayerSetFromList().
const PAGE_INFO& PRINTOUT_SETTINGS::m_pageInfo |
Definition at line 63 of file printout.h.
Referenced by BOARD_PRINTOUT::DrawPage(), and DIALOG_PRINT_GENERIC::initPrintData().
double PRINTOUT_SETTINGS::m_scale |
Printing scale.
Definition at line 58 of file printout.h.
Referenced by BOARD_PRINTOUT::DrawPage(), Load(), PRINTOUT_SETTINGS(), Save(), DIALOG_PRINT_GENERIC::saveSettings(), and DIALOG_PRINT_GENERIC::TransferDataToWindow().
bool PRINTOUT_SETTINGS::m_titleBlock |
Print frame and title block.
Definition at line 59 of file printout.h.
Referenced by DIALOG_PRINT_GENERIC::ForcePrintBorder(), Load(), PrintBorderAndTitleBlock(), PRINTOUT_SETTINGS(), Save(), DIALOG_PRINT_GENERIC::saveSettings(), and DIALOG_PRINT_GENERIC::TransferDataToWindow().