1 | /****************************************************************************
|
---|
2 | **
|
---|
3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
---|
4 | ** Contact: Qt Software Information ([email protected])
|
---|
5 | **
|
---|
6 | ** This file is part of the QtGui module of the Qt Toolkit.
|
---|
7 | **
|
---|
8 | ** $QT_BEGIN_LICENSE:LGPL$
|
---|
9 | ** Commercial Usage
|
---|
10 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
---|
11 | ** accordance with the Qt Commercial License Agreement provided with the
|
---|
12 | ** Software or, alternatively, in accordance with the terms contained in
|
---|
13 | ** a written agreement between you and Nokia.
|
---|
14 | **
|
---|
15 | ** GNU Lesser General Public License Usage
|
---|
16 | ** Alternatively, this file may be used under the terms of the GNU Lesser
|
---|
17 | ** General Public License version 2.1 as published by the Free Software
|
---|
18 | ** Foundation and appearing in the file LICENSE.LGPL included in the
|
---|
19 | ** packaging of this file. Please review the following information to
|
---|
20 | ** ensure the GNU Lesser General Public License version 2.1 requirements
|
---|
21 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
---|
22 | **
|
---|
23 | ** In addition, as a special exception, Nokia gives you certain
|
---|
24 | ** additional rights. These rights are described in the Nokia Qt LGPL
|
---|
25 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
---|
26 | ** package.
|
---|
27 | **
|
---|
28 | ** GNU General Public License Usage
|
---|
29 | ** Alternatively, this file may be used under the terms of the GNU
|
---|
30 | ** General Public License version 3.0 as published by the Free Software
|
---|
31 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
---|
32 | ** packaging of this file. Please review the following information to
|
---|
33 | ** ensure the GNU General Public License version 3.0 requirements will be
|
---|
34 | ** met: http://www.gnu.org/copyleft/gpl.html.
|
---|
35 | **
|
---|
36 | ** If you are unsure which license is appropriate for your use, please
|
---|
37 | ** contact the sales department at [email protected].
|
---|
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 |
|
---|
81 | typedef void (*Ptr_gtk_init)(int *, char ***);
|
---|
82 | typedef GtkWidget* (*Ptr_gtk_window_new) (GtkWindowType);
|
---|
83 | typedef GtkStyle* (*Ptr_gtk_style_attach)(GtkStyle *, GdkWindow *);
|
---|
84 | typedef void (*Ptr_gtk_widget_destroy) (GtkWidget *);
|
---|
85 | typedef void (*Ptr_gtk_widget_realize) (GtkWidget *);
|
---|
86 | typedef void (*Ptr_gtk_widget_set_default_direction) (GtkTextDirection);
|
---|
87 | typedef void (*Ptr_gtk_widget_modify_color)(GtkWidget *widget, GtkStateType state, const GdkColor *color);
|
---|
88 | typedef GtkWidget* (*Ptr_gtk_arrow_new)(GtkArrowType, GtkShadowType);
|
---|
89 | typedef GtkWidget* (*Ptr_gtk_menu_item_new)(void);
|
---|
90 | typedef GtkWidget* (*Ptr_gtk_separator_menu_item_new)(void);
|
---|
91 | typedef GtkWidget* (*Ptr_gtk_check_menu_item_new)(void);
|
---|
92 | typedef GtkWidget* (*Ptr_gtk_menu_bar_new)(void);
|
---|
93 | typedef GtkWidget* (*Ptr_gtk_menu_new)(void);
|
---|
94 | typedef GtkWidget* (*Ptr_gtk_combo_box_entry_new)(void);
|
---|
95 | typedef GtkWidget* (*Ptr_gtk_toolbar_new)(void);
|
---|
96 | typedef GtkWidget* (*Ptr_gtk_spin_button_new)(GtkAdjustment*, double, int);
|
---|
97 | typedef GtkWidget* (*Ptr_gtk_button_new)(void);
|
---|
98 | typedef GtkWidget* (*Ptr_gtk_hbutton_box_new)(void);
|
---|
99 | typedef GtkWidget* (*Ptr_gtk_check_button_new)(void);
|
---|
100 | typedef GtkWidget* (*Ptr_gtk_radio_button_new)(GSList *);
|
---|
101 | typedef GtkWidget* (*Ptr_gtk_notebook_new)(void);
|
---|
102 | typedef GtkWidget* (*Ptr_gtk_progress_bar_new)(void);
|
---|
103 | typedef GtkWidget* (*Ptr_gtk_hscale_new)(GtkAdjustment*);
|
---|
104 | typedef GtkWidget* (*Ptr_gtk_vscale_new)(GtkAdjustment*);
|
---|
105 | typedef GtkWidget* (*Ptr_gtk_hscrollbar_new)(GtkAdjustment*);
|
---|
106 | typedef GtkWidget* (*Ptr_gtk_vscrollbar_new)(GtkAdjustment*);
|
---|
107 | typedef GtkWidget* (*Ptr_gtk_scrolled_window_new)(GtkAdjustment*, GtkAdjustment*);
|
---|
108 | typedef gchar* (*Ptr_gtk_check_version)(guint, guint, guint);
|
---|
109 | typedef GtkToolItem* (*Ptr_gtk_separator_tool_item_new) (void);
|
---|
110 | typedef GtkWidget* (*Ptr_gtk_entry_new)(void);
|
---|
111 | typedef GtkWidget* (*Ptr_gtk_tree_view_new)(void);
|
---|
112 | typedef GtkTreeViewColumn* (*Ptr_gtk_tree_view_get_column)(GtkTreeView *, gint);
|
---|
113 | typedef GtkWidget* (*Ptr_gtk_combo_box_new)(void);
|
---|
114 | typedef GtkWidget* (*Ptr_gtk_frame_new)(const gchar *);
|
---|
115 | typedef GtkWidget* (*Ptr_gtk_expander_new)(const gchar*);
|
---|
116 | typedef GtkWidget* (*Ptr_gtk_statusbar_new)(void);
|
---|
117 | typedef GtkSettings* (*Ptr_gtk_settings_get_default)(void);
|
---|
118 | typedef void (*Ptr_gtk_range_set_adjustment)(GtkRange *, GtkAdjustment *);
|
---|
119 | typedef void (*Ptr_gtk_progress_set_adjustment)(GtkProgress *, GtkAdjustment *);
|
---|
120 | typedef void (*Ptr_gtk_range_set_inverted)(GtkRange*, bool);
|
---|
121 | typedef void (*Ptr_gtk_container_add)(GtkContainer *container, GtkWidget *widget);
|
---|
122 | typedef GtkIconSet* (*Ptr_gtk_icon_factory_lookup_default) (const gchar*);
|
---|
123 | typedef void (*Ptr_gtk_widget_style_get)(GtkWidget *, const gchar *first_property_name, ...);
|
---|
124 | typedef GtkTreeViewColumn* (*Ptr_gtk_tree_view_column_new)(void);
|
---|
125 | typedef GtkWidget* (*Ptr_gtk_fixed_new)(void);
|
---|
126 | typedef GdkPixbuf* (*Ptr_gtk_icon_set_render_icon)(GtkIconSet *, GtkStyle *, GtkTextDirection, GtkStateType, GtkIconSize, GtkWidget *,const char *);
|
---|
127 | typedef void (*Ptr_gtk_tree_view_append_column) (GtkTreeView*, GtkTreeViewColumn*);
|
---|
128 | typedef void (*Ptr_gtk_paint_check) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
|
---|
129 | typedef void (*Ptr_gtk_paint_box) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
|
---|
130 | 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);
|
---|
131 | typedef void (*Ptr_gtk_paint_resize_grip) (GtkStyle*,GdkWindow*, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, GdkWindowEdge, gint , gint , gint , gint);
|
---|
132 | typedef void (*Ptr_gtk_paint_focus) (GtkStyle*,GdkWindow*, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
|
---|
133 | typedef void (*Ptr_gtk_paint_shadow) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
|
---|
134 | typedef void (*Ptr_gtk_paint_slider) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint, GtkOrientation);
|
---|
135 | typedef void (*Ptr_gtk_paint_expander) (GtkStyle*,GdkWindow*, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , GtkExpanderStyle );
|
---|
136 | typedef void (*Ptr_gtk_paint_handle) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint, GtkOrientation);
|
---|
137 | typedef void (*Ptr_gtk_paint_arrow) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, GtkArrowType, gboolean, gint , gint , gint , gint);
|
---|
138 | typedef void (*Ptr_gtk_paint_option) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
|
---|
139 | typedef void (*Ptr_gtk_paint_flat_box) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
|
---|
140 | typedef void (*Ptr_gtk_paint_extension) (GtkStyle *, GdkWindow *, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint, gint, GtkPositionType);
|
---|
141 | typedef GtkObject* (*Ptr_gtk_adjustment_new) (double, double, double, double, double, double);
|
---|
142 | typedef void (*Ptr_gtk_paint_hline) (GtkStyle *, GdkWindow *, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint y);
|
---|
143 | typedef void (*Ptr_gtk_paint_vline) (GtkStyle *, GdkWindow *, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint);
|
---|
144 | typedef void (*Ptr_gtk_menu_item_set_submenu) (GtkMenuItem *, GtkWidget *);
|
---|
145 | typedef void (*Ptr_gtk_container_forall) (GtkContainer *, GtkCallback, gpointer);
|
---|
146 | typedef void (*Ptr_gtk_widget_size_allocate) (GtkWidget *, GtkAllocation*);
|
---|
147 | typedef void (*Ptr_gtk_widget_set_direction) (GtkWidget *, GtkTextDirection);
|
---|
148 | typedef void (*Ptr_gtk_widget_path) (GtkWidget *, guint *, gchar **, gchar**);
|
---|
149 | typedef void (*Ptr_gtk_toolbar_insert) (GtkToolbar *toolbar, GtkToolItem *item, int pos);
|
---|
150 | typedef void (*Ptr_gtk_menu_shell_append)(GtkMenuShell *, GtkWidget *);
|
---|
151 | typedef GtkType (*Ptr_gtk_container_get_type) (void);
|
---|
152 | typedef GtkType (*Ptr_gtk_window_get_type) (void);
|
---|
153 | typedef GtkType (*Ptr_gtk_widget_get_type) (void);
|
---|
154 | typedef GtkStyle* (*Ptr_gtk_rc_get_style_by_paths) (GtkSettings *, const char *, const char *, GType);
|
---|
155 | typedef gint (*Ptr_pango_font_description_get_size) (const PangoFontDescription *);
|
---|
156 | typedef PangoWeight (*Ptr_pango_font_description_get_weight) (const PangoFontDescription *);
|
---|
157 | typedef const char* (*Ptr_pango_font_description_get_family) (const PangoFontDescription *);
|
---|
158 | typedef PangoStyle (*Ptr_pango_font_description_get_style) (const PangoFontDescription *desc);
|
---|
159 | typedef gboolean (*Ptr_gtk_file_chooser_set_current_folder)(GtkFileChooser *, const gchar *);
|
---|
160 | typedef GtkFileFilter* (*Ptr_gtk_file_filter_new)(void);
|
---|
161 | typedef void (*Ptr_gtk_file_filter_set_name)(GtkFileFilter *, const gchar *);
|
---|
162 | typedef void (*Ptr_gtk_file_filter_add_pattern)(GtkFileFilter *filter, const gchar *pattern);
|
---|
163 | typedef void (*Ptr_gtk_file_chooser_add_filter)(GtkFileChooser *chooser, GtkFileFilter *filter);
|
---|
164 | typedef void (*Ptr_gtk_file_chooser_set_filter)(GtkFileChooser *chooser, GtkFileFilter *filter);
|
---|
165 | typedef gchar* (*Ptr_gtk_file_chooser_get_filename)(GtkFileChooser *chooser);
|
---|
166 | typedef GSList* (*Ptr_gtk_file_chooser_get_filenames)(GtkFileChooser *chooser);
|
---|
167 | typedef GtkWidget* (*Ptr_gtk_file_chooser_dialog_new)(const gchar *title,
|
---|
168 | GtkWindow *parent,
|
---|
169 | GtkFileChooserAction action,
|
---|
170 | const gchar *first_button_text,
|
---|
171 | ...);
|
---|
172 | typedef void (*Ptr_gtk_file_chooser_set_current_name) (GtkFileChooser *, const gchar *);
|
---|
173 | typedef gboolean (*Ptr_gtk_file_chooser_set_filename) (GtkFileChooser *chooser, const gchar *name);
|
---|
174 | typedef gint (*Ptr_gtk_dialog_run) (GtkDialog*);
|
---|
175 |
|
---|
176 | typedef guchar* (*Ptr_gdk_pixbuf_get_pixels) (const GdkPixbuf *pixbuf);
|
---|
177 | typedef int (*Ptr_gdk_pixbuf_get_width) (const GdkPixbuf *pixbuf);
|
---|
178 | typedef void (*Ptr_gdk_color_free) (const GdkColor *);
|
---|
179 | typedef int (*Ptr_gdk_pixbuf_get_height) (const GdkPixbuf *pixbuf);
|
---|
180 | typedef GdkPixbuf* (*Ptr_gdk_pixbuf_get_from_drawable) (GdkPixbuf *dest, GdkDrawable *src,
|
---|
181 | GdkColormap *cmap, int src_x,
|
---|
182 | int src_y, int dest_x, int dest_y,
|
---|
183 | int width, int height);
|
---|
184 | typedef GdkPixmap* (*Ptr_gdk_pixmap_new) (GdkDrawable *drawable, gint width, gint height, gint depth);
|
---|
185 | typedef GdkPixbuf* (*Ptr_gdk_pixbuf_new) (GdkColorspace colorspace, gboolean has_alpha,
|
---|
186 | int bits_per_sample, int width, int height);
|
---|
187 | typedef void (*Ptr_gdk_draw_rectangle) (GdkDrawable *drawable, GdkGC *gc,
|
---|
188 | gboolean filled, gint x, gint y, gint width, gint height);
|
---|
189 | typedef void (*Ptr_gdk_pixbuf_unref)(GdkPixbuf *);
|
---|
190 | typedef void (*Ptr_gdk_drawable_unref)(GdkDrawable *);
|
---|
191 | typedef gint (*Ptr_gdk_drawable_get_depth)(GdkDrawable *);
|
---|
192 | typedef void (*Ptr_gdk_x11_window_set_user_time) (GdkWindow *window, guint32);
|
---|
193 | typedef XID (*Ptr_gdk_x11_drawable_get_xid) (GdkDrawable *);
|
---|
194 | typedef Display* (*Ptr_gdk_x11_drawable_get_xdisplay) ( GdkDrawable *);
|
---|
195 |
|
---|
196 | QT_BEGIN_NAMESPACE
|
---|
197 |
|
---|
198 | class QGtk
|
---|
199 | {
|
---|
200 | public:
|
---|
201 | static GtkWidget* gtkWidget(const QString &path);
|
---|
202 | static GtkStyle* gtkStyle(const QString &path = QLatin1String("GtkWindow"));
|
---|
203 |
|
---|
204 | static void cleanup_gtk_widgets();
|
---|
205 | static void initGtkWidgets();
|
---|
206 | static bool isKDE4Session();
|
---|
207 | static void applyCustomPaletteHash();
|
---|
208 | static QFont getThemeFont();
|
---|
209 | static bool isThemeAvailable() { return gtkStyle() != 0; }
|
---|
210 |
|
---|
211 | static QString openFilename(QWidget *parent, const QString &caption, const QString &dir, const QString &filter,
|
---|
212 | QString *selectedFilter, QFileDialog::Options options);
|
---|
213 | static QString saveFilename(QWidget *parent, const QString &caption, const QString &dir, const QString &filter,
|
---|
214 | QString *selectedFilter, QFileDialog::Options options);
|
---|
215 | static QString openDirectory(QWidget *parent, const QString &caption, const QString &dir, QFileDialog::Options options);
|
---|
216 | static QStringList openFilenames(QWidget *parent, const QString &caption, const QString &dir, const QString &filter,
|
---|
217 | QString *selectedFilter, QFileDialog::Options options);
|
---|
218 |
|
---|
219 | static Ptr_gtk_container_forall gtk_container_forall;
|
---|
220 | static Ptr_gtk_init gtk_init;
|
---|
221 | static Ptr_gtk_style_attach gtk_style_attach;
|
---|
222 | static Ptr_gtk_window_new gtk_window_new;
|
---|
223 | static Ptr_gtk_widget_destroy gtk_widget_destroy;
|
---|
224 | static Ptr_gtk_widget_realize gtk_widget_realize;
|
---|
225 | static Ptr_gtk_widget_set_default_direction gtk_widget_set_default_direction;
|
---|
226 | static Ptr_gtk_widget_modify_color gtk_widget_modify_fg;
|
---|
227 | static Ptr_gtk_widget_modify_color gtk_widget_modify_bg;
|
---|
228 | static Ptr_gtk_menu_item_new gtk_menu_item_new;
|
---|
229 | static Ptr_gtk_arrow_new gtk_arrow_new;
|
---|
230 | static Ptr_gtk_check_menu_item_new gtk_check_menu_item_new;
|
---|
231 | static Ptr_gtk_menu_bar_new gtk_menu_bar_new;
|
---|
232 | static Ptr_gtk_menu_new gtk_menu_new;
|
---|
233 | static Ptr_gtk_expander_new gtk_expander_new;
|
---|
234 | static Ptr_gtk_button_new gtk_button_new;
|
---|
235 | static Ptr_gtk_hbutton_box_new gtk_hbutton_box_new;
|
---|
236 | static Ptr_gtk_check_button_new gtk_check_button_new;
|
---|
237 | static Ptr_gtk_radio_button_new gtk_radio_button_new;
|
---|
238 | static Ptr_gtk_spin_button_new gtk_spin_button_new;
|
---|
239 | static Ptr_gtk_separator_tool_item_new gtk_separator_tool_item_new;
|
---|
240 | static Ptr_gtk_toolbar_insert gtk_toolbar_insert;
|
---|
241 | static Ptr_gtk_frame_new gtk_frame_new;
|
---|
242 | static Ptr_gtk_statusbar_new gtk_statusbar_new;
|
---|
243 | static Ptr_gtk_entry_new gtk_entry_new;
|
---|
244 | static Ptr_gtk_hscale_new gtk_hscale_new;
|
---|
245 | static Ptr_gtk_vscale_new gtk_vscale_new;
|
---|
246 | static Ptr_gtk_hscrollbar_new gtk_hscrollbar_new;
|
---|
247 | static Ptr_gtk_vscrollbar_new gtk_vscrollbar_new;
|
---|
248 | static Ptr_gtk_scrolled_window_new gtk_scrolled_window_new;
|
---|
249 | static Ptr_gtk_notebook_new gtk_notebook_new;
|
---|
250 | static Ptr_gtk_toolbar_new gtk_toolbar_new;
|
---|
251 | static Ptr_gtk_tree_view_new gtk_tree_view_new;
|
---|
252 | static Ptr_gtk_tree_view_get_column gtk_tree_view_get_column;
|
---|
253 | static Ptr_gtk_combo_box_new gtk_combo_box_new;
|
---|
254 | static Ptr_gtk_combo_box_entry_new gtk_combo_box_entry_new;
|
---|
255 | static Ptr_gtk_progress_bar_new gtk_progress_bar_new;
|
---|
256 | static Ptr_gtk_container_add gtk_container_add;
|
---|
257 | static Ptr_gtk_menu_shell_append gtk_menu_shell_append;
|
---|
258 | static Ptr_gtk_progress_set_adjustment gtk_progress_set_adjustment;
|
---|
259 | static Ptr_gtk_range_set_adjustment gtk_range_set_adjustment;
|
---|
260 | static Ptr_gtk_range_set_inverted gtk_range_set_inverted;
|
---|
261 | static Ptr_gtk_icon_factory_lookup_default gtk_icon_factory_lookup_default;
|
---|
262 | static Ptr_gtk_widget_style_get gtk_widget_style_get;
|
---|
263 | static Ptr_gtk_icon_set_render_icon gtk_icon_set_render_icon;
|
---|
264 | static Ptr_gtk_fixed_new gtk_fixed_new;
|
---|
265 | static Ptr_gtk_tree_view_column_new gtk_tree_view_column_new;
|
---|
266 | static Ptr_gtk_tree_view_append_column gtk_tree_view_append_column;
|
---|
267 | static Ptr_gtk_paint_check gtk_paint_check;
|
---|
268 | static Ptr_gtk_paint_box gtk_paint_box;
|
---|
269 | static Ptr_gtk_paint_box_gap gtk_paint_box_gap;
|
---|
270 | static Ptr_gtk_paint_flat_box gtk_paint_flat_box;
|
---|
271 | static Ptr_gtk_paint_option gtk_paint_option;
|
---|
272 | static Ptr_gtk_paint_extension gtk_paint_extension;
|
---|
273 | static Ptr_gtk_paint_slider gtk_paint_slider;
|
---|
274 | static Ptr_gtk_paint_shadow gtk_paint_shadow;
|
---|
275 | static Ptr_gtk_paint_resize_grip gtk_paint_resize_grip;
|
---|
276 | static Ptr_gtk_paint_focus gtk_paint_focus;
|
---|
277 | static Ptr_gtk_paint_arrow gtk_paint_arrow;
|
---|
278 | static Ptr_gtk_paint_handle gtk_paint_handle;
|
---|
279 | static Ptr_gtk_paint_expander gtk_paint_expander;
|
---|
280 | static Ptr_gtk_adjustment_new gtk_adjustment_new;
|
---|
281 | static Ptr_gtk_paint_vline gtk_paint_vline;
|
---|
282 | static Ptr_gtk_paint_hline gtk_paint_hline;
|
---|
283 | static Ptr_gtk_menu_item_set_submenu gtk_menu_item_set_submenu;
|
---|
284 | static Ptr_gtk_settings_get_default gtk_settings_get_default;
|
---|
285 | static Ptr_gtk_separator_menu_item_new gtk_separator_menu_item_new;
|
---|
286 | static Ptr_gtk_widget_size_allocate gtk_widget_size_allocate;
|
---|
287 | static Ptr_gtk_widget_set_direction gtk_widget_set_direction;
|
---|
288 | static Ptr_gtk_widget_path gtk_widget_path;
|
---|
289 | static Ptr_gtk_container_get_type gtk_container_get_type;
|
---|
290 | static Ptr_gtk_window_get_type gtk_window_get_type;
|
---|
291 | static Ptr_gtk_widget_get_type gtk_widget_get_type;
|
---|
292 | static Ptr_gtk_rc_get_style_by_paths gtk_rc_get_style_by_paths;
|
---|
293 | static Ptr_gtk_check_version gtk_check_version;
|
---|
294 |
|
---|
295 | static Ptr_pango_font_description_get_size pango_font_description_get_size;
|
---|
296 | static Ptr_pango_font_description_get_weight pango_font_description_get_weight;
|
---|
297 | static Ptr_pango_font_description_get_family pango_font_description_get_family;
|
---|
298 | static Ptr_pango_font_description_get_style pango_font_description_get_style;
|
---|
299 |
|
---|
300 | static Ptr_gtk_file_filter_new gtk_file_filter_new;
|
---|
301 | static Ptr_gtk_file_filter_set_name gtk_file_filter_set_name;
|
---|
302 | static Ptr_gtk_file_filter_add_pattern gtk_file_filter_add_pattern;
|
---|
303 | static Ptr_gtk_file_chooser_add_filter gtk_file_chooser_add_filter;
|
---|
304 | static Ptr_gtk_file_chooser_set_filter gtk_file_chooser_set_filter;
|
---|
305 | static Ptr_gtk_file_chooser_dialog_new gtk_file_chooser_dialog_new;
|
---|
306 | static Ptr_gtk_file_chooser_set_current_folder gtk_file_chooser_set_current_folder;
|
---|
307 | static Ptr_gtk_file_chooser_get_filename gtk_file_chooser_get_filename;
|
---|
308 | static Ptr_gtk_file_chooser_get_filenames gtk_file_chooser_get_filenames;
|
---|
309 | static Ptr_gtk_file_chooser_set_current_name gtk_file_chooser_set_current_name;
|
---|
310 | static Ptr_gtk_dialog_run gtk_dialog_run;
|
---|
311 | static Ptr_gtk_file_chooser_set_filename gtk_file_chooser_set_filename;
|
---|
312 |
|
---|
313 | static Ptr_gdk_pixbuf_get_pixels gdk_pixbuf_get_pixels;
|
---|
314 | static Ptr_gdk_pixbuf_get_width gdk_pixbuf_get_width;
|
---|
315 | static Ptr_gdk_pixbuf_get_height gdk_pixbuf_get_height;
|
---|
316 | static Ptr_gdk_pixmap_new gdk_pixmap_new;
|
---|
317 | static Ptr_gdk_pixbuf_new gdk_pixbuf_new;
|
---|
318 | static Ptr_gdk_pixbuf_get_from_drawable gdk_pixbuf_get_from_drawable;
|
---|
319 | static Ptr_gdk_draw_rectangle gdk_draw_rectangle;
|
---|
320 | static Ptr_gdk_pixbuf_unref gdk_pixbuf_unref;
|
---|
321 | static Ptr_gdk_drawable_unref gdk_drawable_unref;
|
---|
322 | static Ptr_gdk_drawable_get_depth gdk_drawable_get_depth;
|
---|
323 | static Ptr_gdk_color_free gdk_color_free;
|
---|
324 | static Ptr_gdk_x11_window_set_user_time gdk_x11_window_set_user_time;
|
---|
325 | static Ptr_gdk_x11_drawable_get_xid gdk_x11_drawable_get_xid;
|
---|
326 | static Ptr_gdk_x11_drawable_get_xdisplay gdk_x11_drawable_get_xdisplay;
|
---|
327 |
|
---|
328 | static Ptr_gconf_client_get_default gconf_client_get_default;
|
---|
329 | static Ptr_gconf_client_get_string gconf_client_get_string;
|
---|
330 | };
|
---|
331 |
|
---|
332 | // Helper to ensure that we have polished all our gtk widgets
|
---|
333 | // before updating our own palettes
|
---|
334 | class QGtkStyleUpdateScheduler : public QObject
|
---|
335 | {
|
---|
336 | Q_OBJECT
|
---|
337 | public slots:
|
---|
338 | void updateTheme();
|
---|
339 | };
|
---|
340 |
|
---|
341 | QT_END_NAMESPACE
|
---|
342 |
|
---|
343 | #endif // !QT_NO_STYLE_GTK
|
---|
344 | #endif // GTKSYMBOLS_H
|
---|