KiCad PCB EDA Suite
Loading...
Searching...
No Matches
printout.cpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 CERN
3 * Author: Maciej Suminski <[email protected]>
4 *
5 * This program is free software: you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation, either version 3 of the License, or (at your
8 * option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#include <pcbplot.h>
20#include <printout.h>
22
23
25{
28 aConfig->m_Printing.scale = m_scale;
29}
30
31
33{
36 m_scale = aConfig->m_Printing.scale;
37}
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
Definition: app_settings.h:92
bool monochrome
Whether or not to print in monochrome.
Definition: app_settings.h:141
double scale
Printout scale.
Definition: app_settings.h:142
bool title_block
Whether or not to print title block.
Definition: app_settings.h:145
virtual void Save(APP_SETTINGS_BASE *aConfig)
Definition: printout.cpp:24
bool m_titleBlock
Print frame and title block.
Definition: printout.h:59
bool m_blackWhite
Print in B&W or Color.
Definition: printout.h:60
virtual void Load(APP_SETTINGS_BASE *aConfig)
Definition: printout.cpp:32
double m_scale
Printing scale.
Definition: printout.h:58