KiCad PCB EDA Suite
Loading...
Searching...
No Matches
easypc_design_settings.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
21
22#ifndef EASYPC_DESIGN_SETTINGS_H
23#define EASYPC_DESIGN_SETTINGS_H
24
25#include <math/box2.h>
26#include <page_info.h>
27
28class TITLE_BLOCK;
29
30
31namespace EASYPC
32{
33
34struct DESIGN_DOCUMENT;
35
36
41void FillTitleBlock( const DESIGN_DOCUMENT& aDoc, TITLE_BLOCK& aTitleBlock );
42
43
45constexpr double PAGE_MARGIN_MM = 10.0;
46
47
52PAGE_INFO PageForExtents( const BOX2L& aExtentsNm );
53
54} // namespace EASYPC
55
56#endif // EASYPC_DESIGN_SETTINGS_H
BOX2< VECTOR2L > BOX2L
Definition box2.h:916
Describe the page size and margins of a paper page on which to eventually print or plot.
Definition page_info.h:75
Hold the information shown in the lower right corner of a plot, printout, or editing view.
Definition title_block.h:38
PAGE_INFO PageForExtents(const BOX2L &aExtentsNm)
Easy-PC stores no page size, so the first of A4 to A0 then A to E, landscape before portrait,...
constexpr double PAGE_MARGIN_MM
Margin added on every side of the drawn extents before choosing a page, in millimetres.
void FillTitleBlock(const DESIGN_DOCUMENT &aDoc, TITLE_BLOCK &aTitleBlock)
Fill a title block from the design's SummaryInformation property set: title from Title,...