KiCad PCB EDA Suite
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-2020 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_PL_EDITOR 0.022, 0.035, 0.05, 0.08, 0.13, 0.22, 0.35, 0.6, 1.0, 2.2,\
36  3.5, 5.0, 8.0, 13.0, 22.0, 35.0, 50.0, 80.0, 130.0, 220.0
37 
38 #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,\
39  3.0, 4.5, 6.5, 10.0, 15.0, 20.0, 30.0, 45.0, 65.0, 100.0
40 
41 // Zoom scale limits for zoom (especially mouse wheel)
42 // the limits can differ from zoom list because the zoom list cannot be as long as
43 // we want because the zoom list is displayed in menus.
44 // But zoom by mouse wheel is limited mainly by the usability
45 
46 // Scale limits for zoom for Eeschema
47 #define ZOOM_MAX_LIMIT_EESCHEMA 100
48 #define ZOOM_MIN_LIMIT_EESCHEMA 0.01
49 
50 #define ZOOM_MAX_LIMIT_EESCHEMA_PREVIEW 20
51 #define ZOOM_MIN_LIMIT_EESCHEMA_PREVIEW 0.5
52 
53 // Scale limits for zoom for pl_editor
54 #define ZOOM_MAX_LIMIT_PLEDITOR 20
55 #define ZOOM_MIN_LIMIT_PLEDITOR 0.05
56 
57 // Scale limits for zoom for gerbview
58 #define ZOOM_MAX_LIMIT_GERBVIEW 220
59 #define ZOOM_MIN_LIMIT_GERBVIEW 0.02
60 
61 // Scale limits for zoom (especially mouse wheel) for Pcbnew
62 #define ZOOM_MAX_LIMIT_PCBNEW 5000
63 #define ZOOM_MIN_LIMIT_PCBNEW 0.1