gattrib

globals.h

Go to the documentation of this file.
00001 /* gEDA - GPL Electronic Design Automation
00002  * gattrib -- gEDA component and net attribute manipulation using spreadsheet.
00003  * Copyright (C) 2003-2010 Stuart D. Brorson.
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00018  */
00019 
00020 
00066 /* ------------------------------------------------------------------ */
00067 
00068 #ifndef __GLOBALS__
00069 #define __GLOBALS__
00070 
00071 
00072 /*------------------------------------------------------------------*/
00078 /*------------------------------------------------------------------*/
00079 TOPLEVEL *pr_current;
00080 
00081 /*------------------------------------------------------------------*/
00087 /*------------------------------------------------------------------*/
00088 SHEET_DATA *sheet_head;
00089 
00090 /*------------------------------------------------------------------
00091  * GTKsheet includes: stuff for dealing with windows.
00092  *------------------------------------------------------------------*/
00093 #define DEFAULT_PRECISION 2
00094 #define DEFAULT_SPACE 8
00095 #define NUM_SHEETS 3            /* Components, Nets, and Pins */
00096 
00097 GtkWidget *window;              /* Main window */
00098 GtkWidget *notebook;
00099 
00100 GtkSheet **sheets;             /* These are the spreadsheet widgets themselves */
00101 
00102 GtkWidget **scrolled_windows;
00103 GtkWidget *entry;
00104 GtkWidget *location;
00105 GtkWidget *left_button;
00106 GtkWidget *center_button;
00107 GtkWidget *right_button;
00108 GtkWidget *label;
00109 
00110 /* command line switch settings */
00111 extern int verbose_mode;
00112 extern int quiet_mode;
00113 
00114 /* Used to identify colors */
00115 #define BLACK           0
00116 #define WHITE           1
00117 #define RED             2
00118 #define GREEN           3
00119 #define BLUE            4
00120 #define YELLOW          5
00121 #define CYAN            6
00122 #define GREY            7
00123 
00124 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines