More honesty about bug 144394, it's not quite fixed yet.
[dia.git] / app / interface.h
blob399bbb427e2687f4d15eed1f1b6e4a33526ca2db
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 void create_sheets(GtkWidget *parent);
54 extern GtkWidget *modify_tool_button;
56 typedef struct _ToolButton ToolButton;
58 typedef struct _ToolButtonData ToolButtonData;
60 struct _ToolButtonData
62 ToolType type;
63 gpointer extra_data;
64 gpointer user_data; /* Used by create_object_tool */
65 GtkWidget *widget;
68 struct _ToolButton
70 gchar **icon_data;
71 char *tool_desc;
72 char *tool_accelerator;
73 char *action_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 */