New cisco icons, and a fix in element.h
[dia.git] / app / interface.h
blob521816067a3fe67fee877797e07b9548423a6832
1 /* Dia -- an diagram creation/manipulation program
2 * Copyright (C) 1998 Alexander Larsson
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 #ifndef INTERFACE_H
19 #define INTERFACE_H
21 #include "display.h"
23 #ifdef GNOME
24 #include <gnome.h>
25 #endif
26 #include "gtkhwrapbox.h"
27 #include "intl.h"
28 #include "interface.h"
29 #include "menus.h"
30 #include "disp_callbacks.h"
31 #include "tool.h"
32 #include "sheet.h"
33 #include "app_procs.h"
34 #include "arrows.h"
35 #include "color_area.h"
36 #include "linewidth_area.h"
37 #include "attributes.h"
39 void create_display_shell(DDisplay *ddisp,
40 int width, int height,
41 char *title, int use_mbar, int top_level_window);
43 void create_toolbox (void);
44 void toolbox_show(void);
45 void toolbox_hide(void);
47 GtkWidget *interface_get_toolbox_shell(void);
49 void tool_select_callback(GtkWidget *widget, gpointer data);
51 void create_tree_window(void);
53 extern GtkWidget *popup_shell;
54 void create_sheets(GtkWidget *parent);
55 extern GtkWidget *modify_tool_button;
57 typedef struct _ToolButton ToolButton;
59 typedef struct _ToolButtonData ToolButtonData;
61 struct _ToolButtonData
63 ToolType type;
64 gpointer extra_data;
65 gpointer user_data; /* Used by create_object_tool */
66 GtkWidget *widget;
69 struct _ToolButton
71 gchar **icon_data;
72 char *tool_desc;
73 char *menuitem_name;
74 ToolButtonData callback_data;
77 extern const int num_tools;
78 extern ToolButton tool_data[];
79 extern gchar *interface_current_sheet_name;
81 void tool_select_update (GtkWidget *w, gpointer data);
82 void fill_sheet_menu(void);
84 extern GtkTooltips *tool_tips;
86 #endif /* INTERFACE_H */