re-adding .pngs as binary
[dia.git] / app / interface.h
blobf63e4de86cc76760293cd0679d4432285b862edc
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 "lineprops_area.h"
38 #include "attributes.h"
40 void create_display_shell(DDisplay *ddisp,
41 int width, int height,
42 char *title, int use_mbar, int top_level_window);
44 void create_toolbox (void);
45 void toolbox_show(void);
46 void toolbox_hide(void);
48 GtkWidget *interface_get_toolbox_shell(void);
50 void tool_select_callback(GtkWidget *widget, gpointer data);
52 void create_tree_window(void);
54 GtkWidget *popup_shell;
55 void create_sheets(GtkWidget *parent);
56 GtkWidget *modify_tool_button;
58 typedef struct _ToolButton ToolButton;
60 typedef struct _ToolButtonData ToolButtonData;
62 struct _ToolButtonData
64 ToolType type;
65 gpointer extra_data;
66 gpointer user_data; /* Used by create_object_tool */
67 GtkWidget *widget;
70 struct _ToolButton
72 gchar **icon_data;
73 char *tool_desc;
74 char *menuitem_name;
75 ToolButtonData callback_data;
78 extern const int num_tools;
79 extern ToolButton tool_data[];
80 extern gchar *interface_current_sheet_name;
82 void tool_select_update (GtkWidget *w, gpointer data);
83 void fill_sheet_menu(void);
85 extern GtkTooltips *tool_tips;
87 #endif /* INTERFACE_H */