KiCad PCB EDA Suite
Loading...
Searching...
No Matches
zoom_defines.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 (C) 2012-2016 Jean-Pierre Charras, jp.charras at wanadoo.fr
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20
21#pragma once
22
23// List of predefined zooms used in zoom in/out from hotkeys, context menu and toolbar
24// Zooming using mouse wheel can have different limits
25#define ZOOM_LIST_GERBVIEW 0.022, 0.035, 0.05, 0.08, 0.13, 0.22, 0.35, 0.6, 1.0,\
26 2.2, 3.5, 5.0, 8.0, 13.0, 22.0, 35.0, 50.0, 80.0, 130.0, 220.0
27
28#define ZOOM_LIST_PCBNEW 0.13, 0.22, 0.35, 0.6, 1.0, 1.5, 2.2, 3.5, 5.0, 8.0, 13.0,\
29 20.0, 35.0, 50.0, 80.0, 130.0, 220.0, 300.0
30
31#define ZOOM_LIST_PCBNEW_HYPER 0.6, 1.0, 1.5, 2.2, 3.5, 5.0, 8.0, 13.0, 20.0, 35.0, 50.0,\
32 80.0, 130.0, 220.0, 350.0, 600.0, 900.0, 1500.0
33
34#define ZOOM_LIST_PL_EDITOR 0.022, 0.035, 0.05, 0.08, 0.13, 0.22, 0.35, 0.6, 1.0, 2.2,\
35 3.5, 5.0, 8.0, 13.0, 22.0, 35.0, 50.0, 80.0, 130.0, 220.0
36
37#define ZOOM_LIST_EESCHEMA 0.05, 0.07, 0.1, 0.15, 0.2, 0.3, 0.5, 0.7, 1.0, 1.5, 2.0,\
38 3.0, 4.5, 6.5, 10.0, 15.0, 20.0, 30.0, 45.0, 65.0, 100.0
39
40// Zoom scale limits for zoom (especially mouse wheel)
41// the limits can differ from zoom list because the zoom list cannot be as long as
42// we want because the zoom list is displayed in menus.
43// But zoom by mouse wheel is limited mainly by the usability
44
45// Scale limits for zoom for Eeschema
46#define ZOOM_MAX_LIMIT_EESCHEMA 100
47#define ZOOM_MIN_LIMIT_EESCHEMA 0.01
48
49#define ZOOM_MAX_LIMIT_EESCHEMA_PREVIEW 20
50#define ZOOM_MIN_LIMIT_EESCHEMA_PREVIEW 0.5
51
52// Scale limits for zoom for pl_editor
53#define ZOOM_MAX_LIMIT_PLEDITOR 20
54#define ZOOM_MIN_LIMIT_PLEDITOR 0.05
55
56// Scale limits for zoom for gerbview
57#define ZOOM_MAX_LIMIT_GERBVIEW 5000
58#define ZOOM_MIN_LIMIT_GERBVIEW 0.02
59
60// Scale limits for zoom (especially mouse wheel) for Pcbnew
61#define ZOOM_MAX_LIMIT_PCBNEW 50000
62#define ZOOM_MIN_LIMIT_PCBNEW 0.1
63
64// Scale limits for zoom in WIDGET_DIFF_CANVAS. Document bboxes can span PCB
65// (nm-scale) or schematic (mil-scale) coordinates, so the limits sit between
66// the two document type extremes.
67#define ZOOM_MAX_LIMIT_DIFF 200.0
68#define ZOOM_MIN_LIMIT_DIFF 0.001