0
|
1 |
/****************************************************************************
|
|
2 |
**
|
|
3 |
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
4 |
** All rights reserved.
|
|
5 |
** Contact: Nokia Corporation (qt-info@nokia.com)
|
|
6 |
**
|
|
7 |
** This file is part of the QtGui module of the Qt Toolkit.
|
|
8 |
**
|
|
9 |
** $QT_BEGIN_LICENSE:LGPL$
|
|
10 |
** No Commercial Usage
|
|
11 |
** This file contains pre-release code and may not be distributed.
|
|
12 |
** You may use this file in accordance with the terms and conditions
|
|
13 |
** contained in the Technology Preview License Agreement accompanying
|
|
14 |
** this package.
|
|
15 |
**
|
|
16 |
** GNU Lesser General Public License Usage
|
|
17 |
** Alternatively, this file may be used under the terms of the GNU Lesser
|
|
18 |
** General Public License version 2.1 as published by the Free Software
|
|
19 |
** Foundation and appearing in the file LICENSE.LGPL included in the
|
|
20 |
** packaging of this file. Please review the following information to
|
|
21 |
** ensure the GNU Lesser General Public License version 2.1 requirements
|
|
22 |
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|
23 |
**
|
|
24 |
** In addition, as a special exception, Nokia gives you certain additional
|
|
25 |
** rights. These rights are described in the Nokia Qt LGPL Exception
|
|
26 |
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
27 |
**
|
|
28 |
** If you have questions regarding the use of this file, please contact
|
|
29 |
** Nokia at qt-info@nokia.com.
|
|
30 |
**
|
|
31 |
**
|
|
32 |
**
|
|
33 |
**
|
|
34 |
**
|
|
35 |
**
|
|
36 |
**
|
|
37 |
**
|
|
38 |
** $QT_END_LICENSE$
|
|
39 |
**
|
|
40 |
****************************************************************************/
|
|
41 |
|
|
42 |
#ifndef GTKSYMBOLS_H
|
|
43 |
#define GTKSYMBOLS_H
|
|
44 |
|
|
45 |
//
|
|
46 |
// W A R N I N G
|
|
47 |
// -------------
|
|
48 |
//
|
|
49 |
// This file is not part of the Qt API. It exists purely as an
|
|
50 |
// implementation detail. This header file may change from version to
|
|
51 |
// version without notice, or even be removed.
|
|
52 |
//
|
|
53 |
// We mean it.
|
|
54 |
//
|
|
55 |
|
|
56 |
#include <QtCore/qglobal.h>
|
|
57 |
#if !defined(QT_NO_STYLE_GTK)
|
|
58 |
|
|
59 |
#undef signals // Collides with GTK stymbols
|
|
60 |
#include <gtk/gtk.h>
|
|
61 |
#include <QtCore/QLibrary>
|
|
62 |
#include <QtGui/QFont>
|
|
63 |
#include <QtGui/QFileDialog>
|
|
64 |
typedef unsigned long XID;
|
|
65 |
|
|
66 |
#undef GTK_OBJECT_FLAGS
|
|
67 |
#define GTK_OBJECT_FLAGS(obj)(((GtkObject*)(obj))->flags)
|
|
68 |
#define Q_GTK_TYPE_WIDGET QGtk::gtk_widget_get_type()
|
|
69 |
#define Q_GTK_IS_WIDGET(widget) widget && GTK_CHECK_TYPE ((widget), Q_GTK_TYPE_WIDGET)
|
|
70 |
#define Q_GTK_TYPE_WINDOW QGtk::gtk_window_get_type()
|
|
71 |
#define Q_GTK_TYPE_CONTAINER QGtk::gtk_container_get_type()
|
|
72 |
|
|
73 |
#define QLS(x) QLatin1String(x)
|
|
74 |
|
|
75 |
class GConf;
|
|
76 |
class GConfClient;
|
|
77 |
|
|
78 |
typedef GConfClient* (*Ptr_gconf_client_get_default)();
|
|
79 |
typedef char* (*Ptr_gconf_client_get_string)(GConfClient*, const char*, GError **);
|
|
80 |
typedef bool (*Ptr_gconf_client_get_bool)(GConfClient*, const char*, GError **);
|
|
81 |
|
|
82 |
typedef void (*Ptr_gtk_init)(int *, char ***);
|
|
83 |
typedef GtkWidget* (*Ptr_gtk_window_new) (GtkWindowType);
|
|
84 |
typedef GtkStyle* (*Ptr_gtk_style_attach)(GtkStyle *, GdkWindow *);
|
|
85 |
typedef void (*Ptr_gtk_widget_destroy) (GtkWidget *);
|
|
86 |
typedef void (*Ptr_gtk_widget_realize) (GtkWidget *);
|
|
87 |
typedef void (*Ptr_gtk_widget_set_default_direction) (GtkTextDirection);
|
|
88 |
typedef void (*Ptr_gtk_widget_modify_color)(GtkWidget *widget, GtkStateType state, const GdkColor *color);
|
|
89 |
typedef GtkWidget* (*Ptr_gtk_arrow_new)(GtkArrowType, GtkShadowType);
|
|
90 |
typedef GtkWidget* (*Ptr_gtk_menu_item_new)(void);
|
|
91 |
typedef GtkWidget* (*Ptr_gtk_separator_menu_item_new)(void);
|
|
92 |
typedef GtkWidget* (*Ptr_gtk_check_menu_item_new)(void);
|
|
93 |
typedef GtkWidget* (*Ptr_gtk_menu_bar_new)(void);
|
|
94 |
typedef GtkWidget* (*Ptr_gtk_menu_new)(void);
|
|
95 |
typedef GtkWidget* (*Ptr_gtk_combo_box_entry_new)(void);
|
|
96 |
typedef GtkWidget* (*Ptr_gtk_toolbar_new)(void);
|
|
97 |
typedef GtkWidget* (*Ptr_gtk_spin_button_new)(GtkAdjustment*, double, int);
|
|
98 |
typedef GtkWidget* (*Ptr_gtk_button_new)(void);
|
|
99 |
typedef GtkWidget* (*Ptr_gtk_hbutton_box_new)(void);
|
|
100 |
typedef GtkWidget* (*Ptr_gtk_check_button_new)(void);
|
|
101 |
typedef GtkWidget* (*Ptr_gtk_radio_button_new)(GSList *);
|
|
102 |
typedef GtkWidget* (*Ptr_gtk_notebook_new)(void);
|
|
103 |
typedef GtkWidget* (*Ptr_gtk_progress_bar_new)(void);
|
|
104 |
typedef GtkWidget* (*Ptr_gtk_hscale_new)(GtkAdjustment*);
|
|
105 |
typedef GtkWidget* (*Ptr_gtk_vscale_new)(GtkAdjustment*);
|
|
106 |
typedef GtkWidget* (*Ptr_gtk_hscrollbar_new)(GtkAdjustment*);
|
|
107 |
typedef GtkWidget* (*Ptr_gtk_vscrollbar_new)(GtkAdjustment*);
|
|
108 |
typedef GtkWidget* (*Ptr_gtk_scrolled_window_new)(GtkAdjustment*, GtkAdjustment*);
|
|
109 |
typedef gchar* (*Ptr_gtk_check_version)(guint, guint, guint);
|
|
110 |
typedef GtkToolItem* (*Ptr_gtk_separator_tool_item_new) (void);
|
|
111 |
typedef GtkWidget* (*Ptr_gtk_entry_new)(void);
|
|
112 |
typedef GtkWidget* (*Ptr_gtk_tree_view_new)(void);
|
|
113 |
typedef GtkTreeViewColumn* (*Ptr_gtk_tree_view_get_column)(GtkTreeView *, gint);
|
|
114 |
typedef GtkWidget* (*Ptr_gtk_combo_box_new)(void);
|
|
115 |
typedef GtkWidget* (*Ptr_gtk_frame_new)(const gchar *);
|
|
116 |
typedef GtkWidget* (*Ptr_gtk_expander_new)(const gchar*);
|
|
117 |
typedef GtkWidget* (*Ptr_gtk_statusbar_new)(void);
|
|
118 |
typedef GtkSettings* (*Ptr_gtk_settings_get_default)(void);
|
|
119 |
typedef void (*Ptr_gtk_range_set_adjustment)(GtkRange *, GtkAdjustment *);
|
|
120 |
typedef void (*Ptr_gtk_progress_set_adjustment)(GtkProgress *, GtkAdjustment *);
|
|
121 |
typedef void (*Ptr_gtk_range_set_inverted)(GtkRange*, bool);
|
|
122 |
typedef void (*Ptr_gtk_container_add)(GtkContainer *container, GtkWidget *widget);
|
|
123 |
typedef GtkIconSet* (*Ptr_gtk_icon_factory_lookup_default) (const gchar*);
|
|
124 |
typedef GtkIconTheme* (*Ptr_gtk_icon_theme_get_default) (void);
|
|
125 |
typedef void (*Ptr_gtk_widget_style_get)(GtkWidget *, const gchar *first_property_name, ...);
|
|
126 |
typedef GtkTreeViewColumn* (*Ptr_gtk_tree_view_column_new)(void);
|
|
127 |
typedef GtkWidget* (*Ptr_gtk_fixed_new)(void);
|
|
128 |
typedef GdkPixbuf* (*Ptr_gtk_icon_set_render_icon)(GtkIconSet *, GtkStyle *, GtkTextDirection, GtkStateType, GtkIconSize, GtkWidget *,const char *);
|
|
129 |
typedef void (*Ptr_gtk_tree_view_append_column) (GtkTreeView*, GtkTreeViewColumn*);
|
|
130 |
typedef void (*Ptr_gtk_paint_check) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
|
|
131 |
typedef void (*Ptr_gtk_paint_box) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
|
|
132 |
typedef void (*Ptr_gtk_paint_box_gap) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint , gint, GtkPositionType, gint gap_x, gint gap_width);
|
|
133 |
typedef void (*Ptr_gtk_paint_resize_grip) (GtkStyle*,GdkWindow*, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, GdkWindowEdge, gint , gint , gint , gint);
|
|
134 |
typedef void (*Ptr_gtk_paint_focus) (GtkStyle*,GdkWindow*, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
|
|
135 |
typedef void (*Ptr_gtk_paint_shadow) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
|
|
136 |
typedef void (*Ptr_gtk_paint_slider) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint, GtkOrientation);
|
|
137 |
typedef void (*Ptr_gtk_paint_expander) (GtkStyle*,GdkWindow*, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , GtkExpanderStyle );
|
|
138 |
typedef void (*Ptr_gtk_paint_handle) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint, GtkOrientation);
|
|
139 |
typedef void (*Ptr_gtk_paint_arrow) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, GtkArrowType, gboolean, gint , gint , gint , gint);
|
|
140 |
typedef void (*Ptr_gtk_paint_option) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
|
|
141 |
typedef void (*Ptr_gtk_paint_flat_box) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
|
|
142 |
typedef void (*Ptr_gtk_paint_extension) (GtkStyle *, GdkWindow *, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint, gint, GtkPositionType);
|
|
143 |
typedef GtkObject* (*Ptr_gtk_adjustment_new) (double, double, double, double, double, double);
|
|
144 |
typedef void (*Ptr_gtk_paint_hline) (GtkStyle *, GdkWindow *, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint y);
|
|
145 |
typedef void (*Ptr_gtk_paint_vline) (GtkStyle *, GdkWindow *, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint);
|
|
146 |
typedef void (*Ptr_gtk_menu_item_set_submenu) (GtkMenuItem *, GtkWidget *);
|
|
147 |
typedef void (*Ptr_gtk_container_forall) (GtkContainer *, GtkCallback, gpointer);
|
|
148 |
typedef void (*Ptr_gtk_widget_size_allocate) (GtkWidget *, GtkAllocation*);
|
|
149 |
typedef void (*Ptr_gtk_widget_set_direction) (GtkWidget *, GtkTextDirection);
|
|
150 |
typedef void (*Ptr_gtk_widget_path) (GtkWidget *, guint *, gchar **, gchar**);
|
|
151 |
typedef void (*Ptr_gtk_toolbar_insert) (GtkToolbar *toolbar, GtkToolItem *item, int pos);
|
|
152 |
typedef void (*Ptr_gtk_menu_shell_append)(GtkMenuShell *, GtkWidget *);
|
|
153 |
typedef GtkType (*Ptr_gtk_container_get_type) (void);
|
|
154 |
typedef GtkType (*Ptr_gtk_window_get_type) (void);
|
|
155 |
typedef GtkType (*Ptr_gtk_widget_get_type) (void);
|
|
156 |
typedef GtkStyle* (*Ptr_gtk_rc_get_style_by_paths) (GtkSettings *, const char *, const char *, GType);
|
|
157 |
typedef gint (*Ptr_pango_font_description_get_size) (const PangoFontDescription *);
|
|
158 |
typedef PangoWeight (*Ptr_pango_font_description_get_weight) (const PangoFontDescription *);
|
|
159 |
typedef const char* (*Ptr_pango_font_description_get_family) (const PangoFontDescription *);
|
|
160 |
typedef PangoStyle (*Ptr_pango_font_description_get_style) (const PangoFontDescription *desc);
|
|
161 |
typedef gboolean (*Ptr_gtk_file_chooser_set_current_folder)(GtkFileChooser *, const gchar *);
|
|
162 |
typedef GtkFileFilter* (*Ptr_gtk_file_filter_new)(void);
|
|
163 |
typedef void (*Ptr_gtk_file_filter_set_name)(GtkFileFilter *, const gchar *);
|
|
164 |
typedef void (*Ptr_gtk_file_filter_add_pattern)(GtkFileFilter *filter, const gchar *pattern);
|
|
165 |
typedef void (*Ptr_gtk_file_chooser_add_filter)(GtkFileChooser *chooser, GtkFileFilter *filter);
|
|
166 |
typedef void (*Ptr_gtk_file_chooser_set_filter)(GtkFileChooser *chooser, GtkFileFilter *filter);
|
|
167 |
typedef GtkFileFilter* (*Ptr_gtk_file_chooser_get_filter)(GtkFileChooser *chooser);
|
|
168 |
typedef gchar* (*Ptr_gtk_file_chooser_get_filename)(GtkFileChooser *chooser);
|
|
169 |
typedef GSList* (*Ptr_gtk_file_chooser_get_filenames)(GtkFileChooser *chooser);
|
|
170 |
typedef GtkWidget* (*Ptr_gtk_file_chooser_dialog_new)(const gchar *title,
|
|
171 |
GtkWindow *parent,
|
|
172 |
GtkFileChooserAction action,
|
|
173 |
const gchar *first_button_text,
|
|
174 |
...);
|
|
175 |
typedef void (*Ptr_gtk_file_chooser_set_current_name) (GtkFileChooser *, const gchar *);
|
|
176 |
typedef gboolean (*Ptr_gtk_file_chooser_set_filename) (GtkFileChooser *chooser, const gchar *name);
|
|
177 |
typedef gint (*Ptr_gtk_dialog_run) (GtkDialog*);
|
|
178 |
|
|
179 |
typedef guchar* (*Ptr_gdk_pixbuf_get_pixels) (const GdkPixbuf *pixbuf);
|
|
180 |
typedef int (*Ptr_gdk_pixbuf_get_width) (const GdkPixbuf *pixbuf);
|
|
181 |
typedef void (*Ptr_gdk_color_free) (const GdkColor *);
|
|
182 |
typedef int (*Ptr_gdk_pixbuf_get_height) (const GdkPixbuf *pixbuf);
|
|
183 |
typedef GdkPixbuf* (*Ptr_gdk_pixbuf_get_from_drawable) (GdkPixbuf *dest, GdkDrawable *src,
|
|
184 |
GdkColormap *cmap, int src_x,
|
|
185 |
int src_y, int dest_x, int dest_y,
|
|
186 |
int width, int height);
|
|
187 |
typedef GdkPixmap* (*Ptr_gdk_pixmap_new) (GdkDrawable *drawable, gint width, gint height, gint depth);
|
|
188 |
typedef GdkPixbuf* (*Ptr_gdk_pixbuf_new) (GdkColorspace colorspace, gboolean has_alpha,
|
|
189 |
int bits_per_sample, int width, int height);
|
|
190 |
typedef void (*Ptr_gdk_draw_rectangle) (GdkDrawable *drawable, GdkGC *gc,
|
|
191 |
gboolean filled, gint x, gint y, gint width, gint height);
|
|
192 |
typedef void (*Ptr_gdk_pixbuf_unref)(GdkPixbuf *);
|
|
193 |
typedef void (*Ptr_gdk_drawable_unref)(GdkDrawable *);
|
|
194 |
typedef gint (*Ptr_gdk_drawable_get_depth)(GdkDrawable *);
|
|
195 |
typedef void (*Ptr_gdk_x11_window_set_user_time) (GdkWindow *window, guint32);
|
|
196 |
typedef XID (*Ptr_gdk_x11_drawable_get_xid) (GdkDrawable *);
|
|
197 |
typedef Display* (*Ptr_gdk_x11_drawable_get_xdisplay) ( GdkDrawable *);
|
|
198 |
|
|
199 |
|
|
200 |
typedef enum {
|
|
201 |
GNOME_ICON_LOOKUP_FLAGS_NONE = 0,
|
|
202 |
GNOME_ICON_LOOKUP_FLAGS_EMBEDDING_TEXT = 1<<0,
|
|
203 |
GNOME_ICON_LOOKUP_FLAGS_SHOW_SMALL_IMAGES_AS_THEMSELVES = 1<<1,
|
|
204 |
GNOME_ICON_LOOKUP_FLAGS_ALLOW_SVG_AS_THEMSELVES = 1<<2
|
|
205 |
} GnomeIconLookupFlags;
|
|
206 |
|
|
207 |
typedef enum {
|
|
208 |
GNOME_ICON_LOOKUP_RESULT_FLAGS_NONE = 0,
|
|
209 |
GNOME_ICON_LOOKUP_RESULT_FLAGS_THUMBNAIL = 1<<0
|
|
210 |
} GnomeIconLookupResultFlags;
|
|
211 |
|
|
212 |
struct GnomeThumbnailFactory;
|
|
213 |
typedef gboolean (*Ptr_gnome_vfs_init) (void);
|
|
214 |
typedef char* (*Ptr_gnome_icon_lookup_sync) (
|
|
215 |
GtkIconTheme *icon_theme,
|
|
216 |
GnomeThumbnailFactory *,
|
|
217 |
const char *file_uri,
|
|
218 |
const char *custom_icon,
|
|
219 |
GnomeIconLookupFlags flags,
|
|
220 |
GnomeIconLookupResultFlags *result);
|
|
221 |
|
|
222 |
QT_BEGIN_NAMESPACE
|
|
223 |
|
|
224 |
class QGtk
|
|
225 |
{
|
|
226 |
public:
|
|
227 |
static GtkWidget* gtkWidget(const QString &path);
|
|
228 |
static GtkStyle* gtkStyle(const QString &path = QLatin1String("GtkWindow"));
|
|
229 |
|
|
230 |
static void cleanup_gtk_widgets();
|
|
231 |
static void initGtkWidgets();
|
|
232 |
static bool isKDE4Session();
|
|
233 |
static void applyCustomPaletteHash();
|
|
234 |
static QFont getThemeFont();
|
|
235 |
static bool isThemeAvailable() { return gtkStyle() != 0; }
|
|
236 |
|
|
237 |
static QString openFilename(QWidget *parent, const QString &caption, const QString &dir, const QString &filter,
|
|
238 |
QString *selectedFilter, QFileDialog::Options options);
|
|
239 |
static QString saveFilename(QWidget *parent, const QString &caption, const QString &dir, const QString &filter,
|
|
240 |
QString *selectedFilter, QFileDialog::Options options);
|
|
241 |
static QString openDirectory(QWidget *parent, const QString &caption, const QString &dir, QFileDialog::Options options);
|
|
242 |
static QStringList openFilenames(QWidget *parent, const QString &caption, const QString &dir, const QString &filter,
|
|
243 |
QString *selectedFilter, QFileDialog::Options options);
|
|
244 |
static QString getGConfString(const QString &key, const QString &fallback = QString());
|
|
245 |
static bool getGConfBool(const QString &key, bool fallback = 0);
|
|
246 |
static QIcon getFilesystemIcon(const QFileInfo &);
|
|
247 |
|
|
248 |
static Ptr_gtk_container_forall gtk_container_forall;
|
|
249 |
static Ptr_gtk_init gtk_init;
|
|
250 |
static Ptr_gtk_style_attach gtk_style_attach;
|
|
251 |
static Ptr_gtk_window_new gtk_window_new;
|
|
252 |
static Ptr_gtk_widget_destroy gtk_widget_destroy;
|
|
253 |
static Ptr_gtk_widget_realize gtk_widget_realize;
|
|
254 |
static Ptr_gtk_widget_set_default_direction gtk_widget_set_default_direction;
|
|
255 |
static Ptr_gtk_widget_modify_color gtk_widget_modify_fg;
|
|
256 |
static Ptr_gtk_widget_modify_color gtk_widget_modify_bg;
|
|
257 |
static Ptr_gtk_menu_item_new gtk_menu_item_new;
|
|
258 |
static Ptr_gtk_arrow_new gtk_arrow_new;
|
|
259 |
static Ptr_gtk_check_menu_item_new gtk_check_menu_item_new;
|
|
260 |
static Ptr_gtk_menu_bar_new gtk_menu_bar_new;
|
|
261 |
static Ptr_gtk_menu_new gtk_menu_new;
|
|
262 |
static Ptr_gtk_expander_new gtk_expander_new;
|
|
263 |
static Ptr_gtk_button_new gtk_button_new;
|
|
264 |
static Ptr_gtk_hbutton_box_new gtk_hbutton_box_new;
|
|
265 |
static Ptr_gtk_check_button_new gtk_check_button_new;
|
|
266 |
static Ptr_gtk_radio_button_new gtk_radio_button_new;
|
|
267 |
static Ptr_gtk_spin_button_new gtk_spin_button_new;
|
|
268 |
static Ptr_gtk_separator_tool_item_new gtk_separator_tool_item_new;
|
|
269 |
static Ptr_gtk_toolbar_insert gtk_toolbar_insert;
|
|
270 |
static Ptr_gtk_frame_new gtk_frame_new;
|
|
271 |
static Ptr_gtk_statusbar_new gtk_statusbar_new;
|
|
272 |
static Ptr_gtk_entry_new gtk_entry_new;
|
|
273 |
static Ptr_gtk_hscale_new gtk_hscale_new;
|
|
274 |
static Ptr_gtk_vscale_new gtk_vscale_new;
|
|
275 |
static Ptr_gtk_hscrollbar_new gtk_hscrollbar_new;
|
|
276 |
static Ptr_gtk_vscrollbar_new gtk_vscrollbar_new;
|
|
277 |
static Ptr_gtk_scrolled_window_new gtk_scrolled_window_new;
|
|
278 |
static Ptr_gtk_notebook_new gtk_notebook_new;
|
|
279 |
static Ptr_gtk_toolbar_new gtk_toolbar_new;
|
|
280 |
static Ptr_gtk_tree_view_new gtk_tree_view_new;
|
|
281 |
static Ptr_gtk_tree_view_get_column gtk_tree_view_get_column;
|
|
282 |
static Ptr_gtk_combo_box_new gtk_combo_box_new;
|
|
283 |
static Ptr_gtk_combo_box_entry_new gtk_combo_box_entry_new;
|
|
284 |
static Ptr_gtk_progress_bar_new gtk_progress_bar_new;
|
|
285 |
static Ptr_gtk_container_add gtk_container_add;
|
|
286 |
static Ptr_gtk_menu_shell_append gtk_menu_shell_append;
|
|
287 |
static Ptr_gtk_progress_set_adjustment gtk_progress_set_adjustment;
|
|
288 |
static Ptr_gtk_range_set_adjustment gtk_range_set_adjustment;
|
|
289 |
static Ptr_gtk_range_set_inverted gtk_range_set_inverted;
|
|
290 |
static Ptr_gtk_icon_factory_lookup_default gtk_icon_factory_lookup_default;
|
|
291 |
static Ptr_gtk_icon_theme_get_default gtk_icon_theme_get_default;
|
|
292 |
static Ptr_gtk_widget_style_get gtk_widget_style_get;
|
|
293 |
static Ptr_gtk_icon_set_render_icon gtk_icon_set_render_icon;
|
|
294 |
static Ptr_gtk_fixed_new gtk_fixed_new;
|
|
295 |
static Ptr_gtk_tree_view_column_new gtk_tree_view_column_new;
|
|
296 |
static Ptr_gtk_tree_view_append_column gtk_tree_view_append_column;
|
|
297 |
static Ptr_gtk_paint_check gtk_paint_check;
|
|
298 |
static Ptr_gtk_paint_box gtk_paint_box;
|
|
299 |
static Ptr_gtk_paint_box_gap gtk_paint_box_gap;
|
|
300 |
static Ptr_gtk_paint_flat_box gtk_paint_flat_box;
|
|
301 |
static Ptr_gtk_paint_option gtk_paint_option;
|
|
302 |
static Ptr_gtk_paint_extension gtk_paint_extension;
|
|
303 |
static Ptr_gtk_paint_slider gtk_paint_slider;
|
|
304 |
static Ptr_gtk_paint_shadow gtk_paint_shadow;
|
|
305 |
static Ptr_gtk_paint_resize_grip gtk_paint_resize_grip;
|
|
306 |
static Ptr_gtk_paint_focus gtk_paint_focus;
|
|
307 |
static Ptr_gtk_paint_arrow gtk_paint_arrow;
|
|
308 |
static Ptr_gtk_paint_handle gtk_paint_handle;
|
|
309 |
static Ptr_gtk_paint_expander gtk_paint_expander;
|
|
310 |
static Ptr_gtk_adjustment_new gtk_adjustment_new;
|
|
311 |
static Ptr_gtk_paint_vline gtk_paint_vline;
|
|
312 |
static Ptr_gtk_paint_hline gtk_paint_hline;
|
|
313 |
static Ptr_gtk_menu_item_set_submenu gtk_menu_item_set_submenu;
|
|
314 |
static Ptr_gtk_settings_get_default gtk_settings_get_default;
|
|
315 |
static Ptr_gtk_separator_menu_item_new gtk_separator_menu_item_new;
|
|
316 |
static Ptr_gtk_widget_size_allocate gtk_widget_size_allocate;
|
|
317 |
static Ptr_gtk_widget_set_direction gtk_widget_set_direction;
|
|
318 |
static Ptr_gtk_widget_path gtk_widget_path;
|
|
319 |
static Ptr_gtk_container_get_type gtk_container_get_type;
|
|
320 |
static Ptr_gtk_window_get_type gtk_window_get_type;
|
|
321 |
static Ptr_gtk_widget_get_type gtk_widget_get_type;
|
|
322 |
static Ptr_gtk_rc_get_style_by_paths gtk_rc_get_style_by_paths;
|
|
323 |
static Ptr_gtk_check_version gtk_check_version;
|
|
324 |
|
|
325 |
static Ptr_pango_font_description_get_size pango_font_description_get_size;
|
|
326 |
static Ptr_pango_font_description_get_weight pango_font_description_get_weight;
|
|
327 |
static Ptr_pango_font_description_get_family pango_font_description_get_family;
|
|
328 |
static Ptr_pango_font_description_get_style pango_font_description_get_style;
|
|
329 |
|
|
330 |
static Ptr_gtk_file_filter_new gtk_file_filter_new;
|
|
331 |
static Ptr_gtk_file_filter_set_name gtk_file_filter_set_name;
|
|
332 |
static Ptr_gtk_file_filter_add_pattern gtk_file_filter_add_pattern;
|
|
333 |
static Ptr_gtk_file_chooser_add_filter gtk_file_chooser_add_filter;
|
|
334 |
static Ptr_gtk_file_chooser_set_filter gtk_file_chooser_set_filter;
|
|
335 |
static Ptr_gtk_file_chooser_get_filter gtk_file_chooser_get_filter;
|
|
336 |
static Ptr_gtk_file_chooser_dialog_new gtk_file_chooser_dialog_new;
|
|
337 |
static Ptr_gtk_file_chooser_set_current_folder gtk_file_chooser_set_current_folder;
|
|
338 |
static Ptr_gtk_file_chooser_get_filename gtk_file_chooser_get_filename;
|
|
339 |
static Ptr_gtk_file_chooser_get_filenames gtk_file_chooser_get_filenames;
|
|
340 |
static Ptr_gtk_file_chooser_set_current_name gtk_file_chooser_set_current_name;
|
|
341 |
static Ptr_gtk_dialog_run gtk_dialog_run;
|
|
342 |
static Ptr_gtk_file_chooser_set_filename gtk_file_chooser_set_filename;
|
|
343 |
|
|
344 |
static Ptr_gdk_pixbuf_get_pixels gdk_pixbuf_get_pixels;
|
|
345 |
static Ptr_gdk_pixbuf_get_width gdk_pixbuf_get_width;
|
|
346 |
static Ptr_gdk_pixbuf_get_height gdk_pixbuf_get_height;
|
|
347 |
static Ptr_gdk_pixmap_new gdk_pixmap_new;
|
|
348 |
static Ptr_gdk_pixbuf_new gdk_pixbuf_new;
|
|
349 |
static Ptr_gdk_pixbuf_get_from_drawable gdk_pixbuf_get_from_drawable;
|
|
350 |
static Ptr_gdk_draw_rectangle gdk_draw_rectangle;
|
|
351 |
static Ptr_gdk_pixbuf_unref gdk_pixbuf_unref;
|
|
352 |
static Ptr_gdk_drawable_unref gdk_drawable_unref;
|
|
353 |
static Ptr_gdk_drawable_get_depth gdk_drawable_get_depth;
|
|
354 |
static Ptr_gdk_color_free gdk_color_free;
|
|
355 |
static Ptr_gdk_x11_window_set_user_time gdk_x11_window_set_user_time;
|
|
356 |
static Ptr_gdk_x11_drawable_get_xid gdk_x11_drawable_get_xid;
|
|
357 |
static Ptr_gdk_x11_drawable_get_xdisplay gdk_x11_drawable_get_xdisplay;
|
|
358 |
|
|
359 |
static Ptr_gconf_client_get_default gconf_client_get_default;
|
|
360 |
static Ptr_gconf_client_get_string gconf_client_get_string;
|
|
361 |
static Ptr_gconf_client_get_bool gconf_client_get_bool;
|
|
362 |
|
|
363 |
static Ptr_gnome_icon_lookup_sync gnome_icon_lookup_sync;
|
|
364 |
static Ptr_gnome_vfs_init gnome_vfs_init;
|
|
365 |
};
|
|
366 |
|
|
367 |
// Helper to ensure that we have polished all our gtk widgets
|
|
368 |
// before updating our own palettes
|
|
369 |
class QGtkStyleUpdateScheduler : public QObject
|
|
370 |
{
|
|
371 |
Q_OBJECT
|
|
372 |
public slots:
|
|
373 |
void updateTheme();
|
|
374 |
};
|
|
375 |
|
|
376 |
QT_END_NAMESPACE
|
|
377 |
|
|
378 |
#endif // !QT_NO_STYLE_GTK
|
|
379 |
#endif // GTKSYMBOLS_H
|