Added "embed/unembed all components/schematics" functionality to gschlas
[geda-gaf/whiteaudio.git] / utils / gschlas / globals.c
blobe4a0bb4017ac38f3d83cd9c9a0b53c5fd28a381c
1 /* gEDA - GPL Electronic Design Automation
2 * gschlas - gEDA Load and Save
3 * Copyright (C) 2002 Ales V. Hvezda
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
20 #include <config.h>
22 #include <stdio.h>
24 #include <libgeda/libgeda.h>
26 #include "../include/globals.h"
27 #include "../include/prototype.h"
29 #ifdef HAVE_LIBDMALLOC
30 #include <dmalloc.h>
31 #endif
33 char *rc_filename = NULL;
35 #if 0
36 /* color stuff */
37 GdkColormap *colormap;
38 GdkVisual *visual;
40 /* colors */
41 GdkColor white;
42 GdkColor black;
43 #endif
45 int logfile_fd=-1;
46 int do_logging=TRUE;
47 int logging_dest=LOG_WINDOW;
49 /* these are required by libgeda */
50 void (*arc_draw_func)() = o_arc_recalc;
51 void (*box_draw_func)() = o_box_recalc;
52 void (*picture_draw_func)() = o_picture_recalc;
53 void (*circle_draw_func)() = o_circle_recalc;
54 void (*complex_draw_func)() = o_complex_recalc;
55 void (*line_draw_func)() = o_line_recalc;
56 void (*net_draw_func)() = o_net_recalc;
57 void (*bus_draw_func)() = o_bus_recalc;
58 void (*text_draw_func)() = o_text_recalc;
59 void (*pin_draw_func)() = o_pin_recalc;
60 void (*select_func)() = o_select_dummy;
61 void (*x_log_update_func)() = NULL;
62 void (*quit_func)() = gschlas_quit;
63 /* void (*variable_set_func)() = i_vars_set; */
64 void (*variable_set_func)() = NULL;
65 int (*load_newer_backup_func)() = NULL;
67 /* this is just a dummy function, so that compoments are saved properly */
68 void
69 o_select_dummy(TOPLEVEL * w_current, OBJECT * o_current,
70 int type, int count)
72 // nop
76 /* command line arguments */
77 int verbose_mode=FALSE;
78 int interactive_mode=FALSE;
79 int quiet_mode=FALSE;
80 int embed_mode=FALSE;
81 int unembed_mode=FALSE;