contrib/gmk_sym: Fix missing break
[geda-gaf.git] / gschem / include / gschem_defines.h
blob1e2a85ec09965384cc0cb67d3835b938935fc5b9
1 /* gEDA - GPL Electronic Design Automation
2 * gschem - gEDA Schematic Capture
3 * Copyright (C) 1998-2010 Ales Hvezda
4 * Copyright (C) 1998-2019 gEDA Contributors (see ChangeLog for details)
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
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.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef _GSCHEM_DEFINES_H_INCL
22 #define _GSCHEM_DEFINES_H_INCL
24 #define ZOOM_OUT 0
25 #define ZOOM_IN 1
26 #define ZOOM_FULL 2
28 #define ZOOM_EXTENTS_PADDING_PX 5
30 /* For grip size in pixels (i.e. device units) */
31 #define GRIP_SIZE 10.0
33 /* for bus_ripper_type */
34 #define COMP_BUS_RIPPER 0
35 #define NET_BUS_RIPPER 1
37 #define FREE 1
38 #define CONSTRAINED 2
40 /* for attrib_edit_dialog invocation flag */
41 #define FROM_MENU 0
42 #define FROM_HOTKEY 1
44 /* for text cap style */
45 #define LOWER 0
46 #define UPPER 1
47 #define BOTH 2
49 /* These modes are for actionfeedback_mode */
50 /* there's a hack in i_keypress.c dealing with the 0 and 1 (has to be these */
51 /* values */
52 #define OUTLINE 0
53 #define BOUNDINGBOX 1
55 /* This is an additional mode for last_drawb_mode, to indicate there was no
56 * last bounding box drawn. last_drawb_mode also takes actionfeedback_mode
57 * constants, so be sure not to clash with those */
58 #define LAST_DRAWB_MODE_NONE -1
60 /* used in o_undo_callback */
61 #define UNDO_ACTION 0
62 #define REDO_ACTION 1
64 /* used for undo_type */
65 #define UNDO_DISK 0
66 #define UNDO_MEMORY 1
68 /* selection types */
69 /* used in o_select_object */
70 #define SINGLE 0
71 #define MULTIPLE 1
73 /* for grid */
74 typedef enum
76 GRID_MODE_NONE,
77 GRID_MODE_DOTS,
78 GRID_MODE_MESH,
79 GRID_MODE_COUNT
80 } GRID_MODE;
82 /* for dots_grid_mode */
83 #define DOTS_GRID_VARIABLE_MODE 0
84 #define DOTS_GRID_FIXED_MODE 1
86 /* for log-window keyword */
87 #define MAP_LATER 0
88 #define MAP_ON_STARTUP 1
90 /* for log-window-type */
91 #define DECORATED 0
92 #define TRANSIENT 1
94 /* for third-mouse */
95 #define POPUP_ENABLED 0
96 #define MOUSEPAN_ENABLED 1
98 /* for middle-mouse */
99 #define STROKE 0
100 #define REPEAT 1
101 #define ACTION 2
102 #define MID_MOUSEPAN_ENABLED 3
104 /* for scroll-wheel */
105 #define SCROLL_WHEEL_CLASSIC 0
106 #define SCROLL_WHEEL_GTK 1
108 /* for selected_from */
109 #define DONTCARE 0
110 #define MENU 1
111 #define HOTKEY 2
113 #endif /* !_GSCHEM_DEFINES_H_INCL */