blob: 3a9a3573c9b30cb737d8d02685c66ffb97d30baa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#ifndef __GLADE_H__
#define __GLADE_H__
#include <gtk/gtk.h>
/* Borrow from libgnome/libgnome.h */
#ifdef ENABLE_NLS
# include <libintl.h>
# ifdef GNOME_EXPLICIT_TRANSLATION_DOMAIN
# undef _
# define _(String) dgettext (GNOME_EXPLICIT_TRANSLATION_DOMAIN, String)
# else
# define _(String) gettext (String)
# endif
# ifdef gettext_noop
# define N_(String) gettext_noop (String)
# else
# define N_(String) (String)
# endif
#else
/* Stubs that do something close enough. */
# define textdomain(String) (String)
# define gettext(String) (String)
# define dgettext(Domain,Message) (Message)
# define dcgettext(Domain,Message,Type) (Message)
# define bindtextdomain(Domain,Directory) (Domain)
# define _(String) (String)
# define N_(String) (String)
#endif
#define g_ok_print g_print
/* I always grep for g_print to find left over debuging print's
* so for now, use g_ok_print on the code that is ment to do a g_print
* (like --dump GtkWindow). Later rename to g_print. Chema
*/
#include "glade-types.h"
#include "glade-utils.h"
#include "glade-xml-utils.h"
#define GLADE_PATH_SEP_STR "/"
#define GLADE_TAG_GLADE_WIDGET_CLASS "GladeWidgetClass"
#define GLADE_TAG_GET_TYPE_FUNCTION "GetTypeFunction"
#define GLADE_TAG_GENERIC_NAME "GenericName"
#define GLADE_TAG_NAME "Name"
#define GLADE_TAG_ID "Id"
#define GLADE_TAG_KEY "Key"
#define GLADE_TAG_VALUE "Value"
#define GLADE_TAG_TOPLEVEL "Toplevel"
#define GLADE_TAG_PLACEHOLDER "Placeholder"
#define GLADE_TAG_ICON "Icon"
#define GLADE_TAG_PROPERTIES "Properties"
#define GLADE_TAG_CHILD_PROPERTIES "ChildProperties"
#define GLADE_TAG_CONTAINER "Container"
#define GLADE_TAG_PROPERTY "Property"
#define GLADE_TAG_COMMON "Common"
#define GLADE_TAG_OPTIONAL "Optional"
#define GLADE_TAG_OPTIONAL_DEFAULT "OptionalDefault"
#define GLADE_TAG_TYPE "Type"
#define GLADE_TAG_SPEC "Spec"
#define GLADE_TAG_TOOLTIP "Tooltip"
#define GLADE_TAG_GTKARG "GtkArg"
#define GLADE_TAG_PARAMETERS "Parameters"
#define GLADE_TAG_PARAMETER "Parameter"
#define GLADE_TAG_SYMBOL "Symbol"
#define GLADE_TAG_ENUM "Enum"
#define GLADE_TAG_ENUMS "Enums"
#define GLADE_TAG_FLAGS "Flags"
#define GLADE_TAG_FALSE "False"
#define GLADE_TAG_TRUE "True"
#define GLADE_TAG_YES "Yes"
#define GLADE_TAG_NO "No"
#define GLADE_TAG_STRING "String"
#define GLADE_TAG_BOOLEAN "Boolean"
#define GLADE_TAG_UNICHAR "Unichar"
#define GLADE_TAG_FLOAT "Float"
#define GLADE_TAG_INTEGER "Integer"
#define GLADE_TAG_DOUBLE "Double"
#define GLADE_TAG_CHOICE "Choice"
#define GLADE_TAG_OTHER_WIDGETS "OtherWidgets"
#define GLADE_TAG_OBJECT "Object"
#define GLADE_TAG_SET_FUNCTION "SetFunction"
#define GLADE_TAG_GET_FUNCTION "GetFunction"
#define GLADE_TAG_VERIFY_FUNCTION "VerifyFunction"
#define GLADE_TAG_QUERY "Query"
#define GLADE_TAG_QUESTION "Question"
#define GLADE_TAG_VISIBLE_LINES "VisibleLines"
#define GLADE_ENUM_DATA_TAG "GladeEnumDataTag"
#define GLADE_FLAGS_DATA_TAG "GladeFlagsDataTag"
#define GLADE_TAG_SIGNAL_NAME "SignalName"
#define GLADE_TAG_DEFAULT "Default"
#define GLADE_TAG_DISABLED "Disabled"
#define GLADE_TAG_REPLACE_CHILD_FUNCTION "ReplaceChildFunction"
#define GLADE_TAG_POST_CREATE_FUNCTION "PostCreateFunction"
#define GLADE_TAG_PRE_CREATE_FUNCTION "PreCreateFunction"
#define GLADE_TAG_FILL_EMPTY_FUNCTION "FillEmptyFunction"
#define GLADE_TAG_GET_INTERNAL_CHILD_FUNCTION "GetInternalChildFunction"
#define GLADE_TAG_IN_PALETTE "InPalette"
#define GLADE_TAG_CATALOG "GladeCatalog"
#define GLADE_TAG_GLADE_WIDGET "GladeWidget"
#define GLADE_TAG_CHILD_PROPERTY_APPLIES_FUNCTION "ChildPropertyApplies"
#define GLADE_TAG_EVENT_HANDLER_CONNECTED "EventHandlerConnected"
#define GLADE_MODIFY_PROPERTY_DATA "GladeModifyPropertyData"
#define GLADE_XML_TAG_PROJECT "glade-interface"
#define GLADE_XML_TAG_REQUIRES "requires"
#define GLADE_XML_TAG_WIDGET "widget"
#define GLADE_XML_TAG_PROPERTY "property"
#define GLADE_XML_TAG_CLASS "class"
#define GLADE_XML_TAG_ID "id"
#define GLADE_XML_TAG_SIGNAL "signal"
#define GLADE_XML_TAG_HANDLER "handler"
#define GLADE_XML_TAG_NAME "name"
#define GLADE_XML_TAG_CHILD "child"
#define GLADE_XML_TAG_SIGNAL "signal"
#define GLADE_XML_TAG_AFTER "after"
#define GLADE_XML_TAG_PACKING "packing"
#define GLADE_XML_TAG_PLACEHOLDER "placeholder"
#define GLADE_XML_TAG_INTERNAL_CHILD "internal-child"
extern gboolean verbose;
extern gchar* glade_data_dir;
extern gchar* glade_pixmaps_dir;
extern gchar* glade_widgets_dir;
extern gchar* glade_catalogs_dir;
extern gchar* glade_modules_dir;
extern gchar* glade_locale_dir;
extern gchar* glade_icon_dir;
#endif /* __GLADE_H__ */
|