KiCad PCB EDA Suite
Loading...
Searching...
No Matches
printout.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018 CERN
3
* Copyright (C) 2020 KiCad Developers, see AUTHORS.txt for contributors.
4
* Author: Maciej Suminski <
[email protected]
>
5
*
6
* This program is free software: you can redistribute it and/or modify it
7
* under the terms of the GNU General Public License as published by the
8
* Free Software Foundation, either version 3 of the License, or (at your
9
* option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License along
17
* with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef PRINTOUT_H
21
#define PRINTOUT_H
22
23
#include <
page_info.h
>
24
25
class
APP_SETTINGS_BASE
;
26
class
COLOR_SETTINGS
;
27
31
struct
PRINTOUT_SETTINGS
32
{
33
PRINTOUT_SETTINGS
(
const
PAGE_INFO
& aPageInfo )
34
:
m_pageInfo
( aPageInfo )
35
{
36
m_scale
= 1.0;
37
m_titleBlock
=
false
;
38
m_blackWhite
=
true
;
39
m_pageCount
= 0;
40
m_background
=
false
;
41
m_colorSettings
=
nullptr
;
42
}
43
44
virtual
~PRINTOUT_SETTINGS
()
45
{
46
}
47
48
virtual
void
Save
(
APP_SETTINGS_BASE
* aConfig );
49
50
virtual
void
Load
(
APP_SETTINGS_BASE
* aConfig );
51
55
bool
PrintBorderAndTitleBlock
()
const
{
return
m_titleBlock
; }
56
57
58
double
m_scale
;
59
bool
m_titleBlock
;
60
bool
m_blackWhite
;
61
int
m_pageCount
;
62
bool
m_background
;
63
const
PAGE_INFO
&
m_pageInfo
;
64
66
COLOR_SETTINGS
*
m_colorSettings
;
67
};
68
69
#endif
/* PRINTOUT_H */
APP_SETTINGS_BASE
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
Definition:
app_settings.h:92
COLOR_SETTINGS
Color settings are a bit different than most of the settings objects in that there can be more than o...
Definition:
color_settings.h:52
PAGE_INFO
Describe the page size and margins of a paper page on which to eventually print or plot.
Definition:
page_info.h:59
page_info.h
PRINTOUT_SETTINGS
Handle the parameters used to print a board drawing.
Definition:
printout.h:32
PRINTOUT_SETTINGS::PrintBorderAndTitleBlock
bool PrintBorderAndTitleBlock() const
Returns true if the drawing border and title block should be printed.
Definition:
printout.h:55
PRINTOUT_SETTINGS::m_colorSettings
COLOR_SETTINGS * m_colorSettings
The color settings to be used for printing.
Definition:
printout.h:66
PRINTOUT_SETTINGS::Save
virtual void Save(APP_SETTINGS_BASE *aConfig)
Definition:
printout.cpp:24
PRINTOUT_SETTINGS::m_titleBlock
bool m_titleBlock
Print frame and title block.
Definition:
printout.h:59
PRINTOUT_SETTINGS::m_blackWhite
bool m_blackWhite
Print in B&W or Color.
Definition:
printout.h:60
PRINTOUT_SETTINGS::m_pageCount
int m_pageCount
Number of pages to print.
Definition:
printout.h:61
PRINTOUT_SETTINGS::m_pageInfo
const PAGE_INFO & m_pageInfo
Definition:
printout.h:63
PRINTOUT_SETTINGS::PRINTOUT_SETTINGS
PRINTOUT_SETTINGS(const PAGE_INFO &aPageInfo)
Definition:
printout.h:33
PRINTOUT_SETTINGS::m_background
bool m_background
Print background color.
Definition:
printout.h:62
PRINTOUT_SETTINGS::Load
virtual void Load(APP_SETTINGS_BASE *aConfig)
Definition:
printout.cpp:32
PRINTOUT_SETTINGS::m_scale
double m_scale
Printing scale.
Definition:
printout.h:58
PRINTOUT_SETTINGS::~PRINTOUT_SETTINGS
virtual ~PRINTOUT_SETTINGS()
Definition:
printout.h:44
src
include
printout.h
Generated on Thu Nov 21 2024 00:06:43 for KiCad PCB EDA Suite by
1.9.6