gschem
|
00001 /* gEDA - GPL Electronic Design Automation 00002 * gschem - gEDA Schematic Capture 00003 * Copyright (C) 1998-2010 Ales Hvezda 00004 * Copyright (C) 1998-2010 gEDA Contributors (see ChangeLog for details) 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Library General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Library General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00019 * MA 02111-1301 USA. 00020 */ 00021 00022 #ifndef _GSCHEM_DEFINES_H_INCL 00023 #define _GSCHEM_DEFINES_H_INCL 00024 00025 #define ZOOM_OUT 0 00026 #define ZOOM_IN 1 00027 #define ZOOM_FULL 2 00028 00029 /* For grip size */ 00030 #define GRIP_SIZE1 25 00031 #define GRIP_SIZE2 50 00032 #define GRIP_SIZE3 80 00033 #define SMALL_ZOOMFACTOR1 150 00034 #define SMALL_ZOOMFACTOR2 30 00035 #define MAXIMUM_GRIP_PIXELS 30 00036 00037 /* for bus_ripper_type */ 00038 #define COMP_BUS_RIPPER 0 00039 #define NET_BUS_RIPPER 1 00040 00041 /* for bus_ripper_rotation */ 00042 #define SYMMETRIC 0 00043 #define NON_SYMMETRIC 1 00044 00045 #define FREE 1 00046 #define CONSTRAINED 2 00047 00048 /* for attrib_edit_dialog invocation flag */ 00049 #define FROM_MENU 0 00050 #define FROM_HOTKEY 1 00051 00052 /* for text cap style */ 00053 #define LOWER 0 00054 #define UPPER 1 00055 #define BOTH 2 00056 00057 /* These modes are for net_endpoint_mode */ 00058 #define NONE 0 00059 #define FILLEDBOX 1 00060 #define EMPTYBOX 2 00061 #define X 3 00062 00063 /* These modes are for net_midpoint_mode */ 00064 /* NONE also applies here */ 00065 #define FILLED 3 00066 #define EMPTY 4 00067 00068 /* These modes are for actionfeedback_mode */ 00069 /* there's a hack in i_keypress.c dealing with the 0 and 1 (has to be these */ 00070 /* values */ 00071 #define OUTLINE 0 00072 #define BOUNDINGBOX 1 00073 00074 /* This is an additional mode for last_drawb_mode, to indicate there was no 00075 * last bounding box drawn. last_drawb_mode also takes actionfeedback_mode 00076 * constants, so be sure not to clash with those */ 00077 #define LAST_DRAWB_MODE_NONE -1 00078 00079 /* there are modes for text-feedback */ 00080 #define ONLY_WHEN_READABLE 0 00081 #define ALWAYS 1 00082 00083 /* used in o_undo_callback */ 00084 #define UNDO_ACTION 0 00085 #define REDO_ACTION 1 00086 00087 /* used for undo_type */ 00088 #define UNDO_DISK 0 00089 #define UNDO_MEMORY 1 00090 00091 /* selection types */ 00092 /* used in o_select_object */ 00093 #define SINGLE 0 00094 #define MULTIPLE 1 00095 00096 /* for grid */ 00097 #define GRID_NONE 0 00098 #define GRID_DOTS 1 00099 #define GRID_MESH 2 00100 00101 /* for dots_grid_mode */ 00102 #define DOTS_GRID_VARIABLE_MODE 0 00103 #define DOTS_GRID_FIXED_MODE 1 00104 00105 /* for log-window keyword */ 00106 #define MAP_LATER 0 00107 #define MAP_ON_STARTUP 1 00108 00109 /* for log-window-type */ 00110 #define DECORATED 0 00111 #define TRANSIENT 1 00112 00113 /* for third-mouse */ 00114 #define POPUP_ENABLED 0 00115 #define MOUSEPAN_ENABLED 1 00116 00117 /* for middle-mouse */ 00118 #define STROKE 0 00119 #define REPEAT 1 00120 #define ACTION 2 00121 #define MID_MOUSEPAN_ENABLED 3 00122 00123 /* for scroll-wheel */ 00124 #define SCROLL_WHEEL_CLASSIC 0 00125 #define SCROLL_WHEEL_GTK 1 00126 00127 /* for selected_from */ 00128 #define DONTCARE 0 00129 #define MENU 1 00130 #define HOTKEY 2 00131 00132 /* for a_pan_general and a_zoom */ 00133 #define A_PAN_IGNORE_BORDERS 1 00134 #define A_PAN_DONT_REDRAW 2 00135 00136 #endif /* !_GSCHEM_DEFINES_H_INCL */