1 /* gEDA - GPL Electronic Design Automation
2 * gschem - gEDA Schematic Capture
3 * Copyright (C) 1998-2010 Ales Hvezda
4 * Copyright (C) 1998-2010 gEDA Contributors (see ChangeLog for details)
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library 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 GNU
14 * Library 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., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef _GSCHEM_DEFINES_H_INCL
22 #define _GSCHEM_DEFINES_H_INCL
32 #define SMALL_ZOOMFACTOR1 150
33 #define SMALL_ZOOMFACTOR2 30
34 #define MAXIMUM_GRIP_PIXELS 30
36 /* for bus_ripper_type */
37 #define COMP_BUS_RIPPER 0
38 #define NET_BUS_RIPPER 1
40 /* for bus_ripper_rotation */
42 #define NON_SYMMETRIC 1
47 /* for attrib_edit_dialog invocation flag */
51 /* for text cap style */
56 /* These modes are for net_endpoint_mode */
62 /* These modes are for net_midpoint_mode */
63 /* NONE also applies here */
67 /* These modes are for actionfeedback_mode */
68 /* there's a hack in i_keypress.c dealing with the 0 and 1 (has to be these */
73 /* This is an additional mode for last_drawb_mode, to indicate there was no
74 * last bounding box drawn. last_drawb_mode also takes actionfeedback_mode
75 * constants, so be sure not to clash with those */
76 #define LAST_DRAWB_MODE_NONE -1
78 /* there are modes for text-feedback */
79 #define ONLY_WHEN_READABLE 0
82 /* used in o_undo_callback */
86 /* used for undo_type */
91 /* used in o_select_object */
100 /* for dots_grid_mode */
101 #define DOTS_GRID_VARIABLE_MODE 0
102 #define DOTS_GRID_FIXED_MODE 1
104 /* for log-window keyword */
106 #define MAP_ON_STARTUP 1
108 /* for log-window-type */
112 /* for third-mouse */
113 #define POPUP_ENABLED 0
114 #define MOUSEPAN_ENABLED 1
116 /* for middle-mouse */
120 #define MID_MOUSEPAN_ENABLED 3
122 /* for scroll-wheel */
123 #define SCROLL_WHEEL_CLASSIC 0
124 #define SCROLL_WHEEL_GTK 1
126 /* for selected_from */
131 /* for a_pan_general and a_zoom */
132 #define A_PAN_IGNORE_BORDERS 1
133 #define A_PAN_DONT_REDRAW 2
135 #endif /* !_GSCHEM_DEFINES_H_INCL */