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 (C) 1992-2023 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, you may find one here:
19 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20 * or you may search the http://www.gnu.org website for the version 2 license,
21 * or you may write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
25#pragma once
26
27// List of predefined zooms used in zoom in/out from hotkeys, context menu and toolbar
28// Zooming using mouse wheel can have different limits
29#define ZOOM_LIST_GERBVIEW 0.022, 0.035, 0.05, 0.08, 0.13, 0.22, 0.35, 0.6, 1.0,\
30 2.2, 3.5, 5.0, 8.0, 13.0, 22.0, 35.0, 50.0, 80.0, 130.0, 220.0
31
32#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,\
33 20.0, 35.0, 50.0, 80.0, 130.0, 220.0, 300.0
34
35#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,\
36 80.0, 130.0, 220.0, 350.0, 600.0, 900.0, 1500.0
37
38#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,\
39 3.5, 5.0, 8.0, 13.0, 22.0, 35.0, 50.0, 80.0, 130.0, 220.0
40
41#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,\
42 3.0, 4.5, 6.5, 10.0, 15.0, 20.0, 30.0, 45.0, 65.0, 100.0
43
44// Zoom scale limits for zoom (especially mouse wheel)
45// the limits can differ from zoom list because the zoom list cannot be as long as
46// we want because the zoom list is displayed in menus.
47// But zoom by mouse wheel is limited mainly by the usability
48
49// Scale limits for zoom for Eeschema
50#define ZOOM_MAX_LIMIT_EESCHEMA 100
51#define ZOOM_MIN_LIMIT_EESCHEMA 0.01
52
53#define ZOOM_MAX_LIMIT_EESCHEMA_PREVIEW 20
54#define ZOOM_MIN_LIMIT_EESCHEMA_PREVIEW 0.5
55
56// Scale limits for zoom for pl_editor
57#define ZOOM_MAX_LIMIT_PLEDITOR 20
58#define ZOOM_MIN_LIMIT_PLEDITOR 0.05
59
60// Scale limits for zoom for gerbview
61#define ZOOM_MAX_LIMIT_GERBVIEW 5000
62#define ZOOM_MIN_LIMIT_GERBVIEW 0.02
63
64// Scale limits for zoom (especially mouse wheel) for Pcbnew
65#define ZOOM_MAX_LIMIT_PCBNEW 50000
66#define ZOOM_MIN_LIMIT_PCBNEW 0.1