Qt 4.8
qgtkstyle_p.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/legal
5 **
6 ** This file is part of the QtGui module of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia. For licensing terms and
14 ** conditions see http://qt.digia.com/licensing. For further information
15 ** use the contact form at http://qt.digia.com/contact-us.
16 **
17 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 **
25 ** In addition, as a special exception, Digia gives you certain additional
26 ** rights. These rights are described in the Digia Qt LGPL Exception
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 **
29 ** GNU General Public License Usage
30 ** Alternatively, this file may be used under the terms of the GNU
31 ** General Public License version 3.0 as published by the Free Software
32 ** Foundation and appearing in the file LICENSE.GPL included in the
33 ** packaging of this file. Please review the following information to
34 ** ensure the GNU General Public License version 3.0 requirements will be
35 ** met: http://www.gnu.org/copyleft/gpl.html.
36 **
37 **
38 ** $QT_END_LICENSE$
39 **
40 ****************************************************************************/
41 
42 #ifndef QGTKSTYLE_P_H
43 #define QGTKSTYLE_P_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 #include <QtCore/qstring.h>
60 #include <QtCore/qstringbuilder.h>
61 #include <QtCore/qcoreapplication.h>
62 
63 #include <QtGui/QFileDialog>
64 
65 #include <QtGui/QGtkStyle>
66 #include <private/qcleanlooksstyle_p.h>
67 
68 #undef signals // Collides with GTK stymbols
69 #include <gtk/gtk.h>
70 
71 typedef unsigned long XID;
72 
73 #undef GTK_OBJECT_FLAGS
74 #define GTK_OBJECT_FLAGS(obj)(((GtkObject*)(obj))->flags)
75 #define Q_GTK_IS_WIDGET(widget) widget && GTK_CHECK_TYPE ((widget), QGtkStylePrivate::gtk_widget_get_type())
76 
77 #define QLS(x) QLatin1String(x)
78 
80 
81 // ### Qt 4.7 - merge with QLatin1Literal
83 {
84 public:
85  int size() const { return m_size; }
86  const char *data() const { return m_data; }
87 
88 #ifdef __SUNPRO_CC
89  QHashableLatin1Literal(const char* str)
90  : m_size(strlen(str)), m_data(str) {}
91 #else
92  template <int N>
93  QHashableLatin1Literal(const char (&str)[N])
94  : m_size(N - 1), m_data(str) {}
95 #endif
96 
98  : m_size(other.m_size), m_data(other.m_data)
99  {}
100 
102  {
103  if (this == &other)
104  return *this;
105  *const_cast<int *>(&m_size) = other.m_size;
106  *const_cast<char **>(&m_data) = const_cast<char *>(other.m_data);
107  return *this;
108  }
109 
111 
112  static QHashableLatin1Literal fromData(const char *str)
113  {
114  return QHashableLatin1Literal(str, qstrlen(str));
115  }
116 
117 private:
118  QHashableLatin1Literal(const char *str, int length)
119  : m_size(length), m_data(str)
120  {}
121 
122  const int m_size;
123  const char *m_data;
124 };
125 
126 bool operator==(const QHashableLatin1Literal &l1, const QHashableLatin1Literal &l2);
127 inline bool operator!=(const QHashableLatin1Literal &l1, const QHashableLatin1Literal &l2) { return !operator==(l1, l2); }
129 
131 
132 class GConf;
133 class GConfClient;
134 
135 typedef GConfClient* (*Ptr_gconf_client_get_default)();
136 typedef char* (*Ptr_gconf_client_get_string)(GConfClient*, const char*, GError **);
137 typedef bool (*Ptr_gconf_client_get_bool)(GConfClient*, const char*, GError **);
138 
139 typedef void (*Ptr_gtk_init)(int *, char ***);
140 typedef GtkWidget* (*Ptr_gtk_window_new) (GtkWindowType);
141 typedef GtkStyle* (*Ptr_gtk_style_attach)(GtkStyle *, GdkWindow *);
142 typedef void (*Ptr_gtk_widget_destroy) (GtkWidget *);
143 typedef void (*Ptr_gtk_widget_realize) (GtkWidget *);
144 typedef void (*Ptr_gtk_widget_set_default_direction) (GtkTextDirection);
145 typedef void (*Ptr_gtk_widget_modify_color)(GtkWidget *widget, GtkStateType state, const GdkColor *color);
146 typedef GtkWidget* (*Ptr_gtk_arrow_new)(GtkArrowType, GtkShadowType);
147 typedef GtkWidget* (*Ptr_gtk_menu_item_new_with_label)(const gchar *);
148 typedef GtkWidget* (*Ptr_gtk_separator_menu_item_new)(void);
149 typedef GtkWidget* (*Ptr_gtk_check_menu_item_new_with_label)(const gchar *);
150 typedef GtkWidget* (*Ptr_gtk_menu_bar_new)(void);
151 typedef GtkWidget* (*Ptr_gtk_menu_new)(void);
152 typedef GtkWidget* (*Ptr_gtk_combo_box_entry_new)(void);
153 typedef GtkWidget* (*Ptr_gtk_toolbar_new)(void);
154 typedef GtkWidget* (*Ptr_gtk_spin_button_new)(GtkAdjustment*, double, int);
155 typedef GtkWidget* (*Ptr_gtk_button_new)(void);
156 typedef GtkWidget* (*Ptr_gtk_tool_button_new)(GtkWidget *, const gchar *);
157 typedef GtkWidget* (*Ptr_gtk_hbutton_box_new)(void);
158 typedef GtkWidget* (*Ptr_gtk_check_button_new)(void);
159 typedef GtkWidget* (*Ptr_gtk_radio_button_new)(GSList *);
160 typedef GtkWidget* (*Ptr_gtk_notebook_new)(void);
161 typedef GtkWidget* (*Ptr_gtk_progress_bar_new)(void);
162 typedef GtkWidget* (*Ptr_gtk_hscale_new)(GtkAdjustment*);
163 typedef GtkWidget* (*Ptr_gtk_vscale_new)(GtkAdjustment*);
164 typedef GtkWidget* (*Ptr_gtk_hscrollbar_new)(GtkAdjustment*);
165 typedef GtkWidget* (*Ptr_gtk_vscrollbar_new)(GtkAdjustment*);
166 typedef GtkWidget* (*Ptr_gtk_scrolled_window_new)(GtkAdjustment*, GtkAdjustment*);
167 typedef gchar* (*Ptr_gtk_check_version)(guint, guint, guint);
168 typedef GtkToolItem* (*Ptr_gtk_separator_tool_item_new) (void);
169 typedef GtkWidget* (*Ptr_gtk_entry_new)(void);
170 typedef GtkWidget* (*Ptr_gtk_tree_view_new)(void);
171 typedef GtkTreeViewColumn* (*Ptr_gtk_tree_view_get_column)(GtkTreeView *, gint);
172 typedef GtkWidget* (*Ptr_gtk_combo_box_new)(void);
173 typedef GtkWidget* (*Ptr_gtk_frame_new)(const gchar *);
174 typedef GtkWidget* (*Ptr_gtk_expander_new)(const gchar*);
175 typedef GtkWidget* (*Ptr_gtk_statusbar_new)(void);
176 typedef GtkSettings* (*Ptr_gtk_settings_get_default)(void);
177 typedef GtkAdjustment* (*Ptr_gtk_range_get_adjustment)(GtkRange *);
178 typedef void (*Ptr_gtk_range_set_adjustment)(GtkRange *, GtkAdjustment *);
179 typedef void (*Ptr_gtk_progress_configure)(GtkProgress *, double, double, double);
180 typedef void (*Ptr_gtk_range_set_inverted)(GtkRange*, bool);
181 typedef void (*Ptr_gtk_container_add)(GtkContainer *container, GtkWidget *widget);
182 typedef GtkIconSet* (*Ptr_gtk_icon_factory_lookup_default) (const gchar*);
183 typedef GtkIconTheme* (*Ptr_gtk_icon_theme_get_default) (void);
184 typedef void (*Ptr_gtk_widget_style_get)(GtkWidget *, const gchar *first_property_name, ...);
185 typedef GtkTreeViewColumn* (*Ptr_gtk_tree_view_column_new)(void);
186 typedef GtkWidget* (*Ptr_gtk_fixed_new)(void);
187 typedef GdkPixbuf* (*Ptr_gtk_icon_set_render_icon)(GtkIconSet *, GtkStyle *, GtkTextDirection, GtkStateType, GtkIconSize, GtkWidget *,const char *);
188 typedef void (*Ptr_gtk_tree_view_append_column) (GtkTreeView*, GtkTreeViewColumn*);
189 typedef void (*Ptr_gtk_paint_check) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
190 typedef void (*Ptr_gtk_paint_box) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
191 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);
192 typedef void (*Ptr_gtk_paint_resize_grip) (GtkStyle*,GdkWindow*, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, GdkWindowEdge, gint , gint , gint , gint);
193 typedef void (*Ptr_gtk_paint_focus) (GtkStyle*,GdkWindow*, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
194 typedef void (*Ptr_gtk_paint_shadow) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
195 typedef void (*Ptr_gtk_paint_slider) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint, GtkOrientation);
196 typedef void (*Ptr_gtk_paint_expander) (GtkStyle*,GdkWindow*, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , GtkExpanderStyle );
197 typedef void (*Ptr_gtk_paint_handle) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint, GtkOrientation);
198 typedef void (*Ptr_gtk_paint_arrow) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, GtkArrowType, gboolean, gint , gint , gint , gint);
199 typedef void (*Ptr_gtk_paint_option) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
200 typedef void (*Ptr_gtk_paint_flat_box) (GtkStyle*,GdkWindow*, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint , gint , gint , gint);
201 typedef void (*Ptr_gtk_paint_extension) (GtkStyle *, GdkWindow *, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint, gint, GtkPositionType);
202 typedef void (*Ptr_gtk_adjustment_configure) (GtkAdjustment *, double, double, double, double, double, double);
203 typedef GtkObject* (*Ptr_gtk_adjustment_new) (double, double, double, double, double, double);
204 typedef void (*Ptr_gtk_paint_hline) (GtkStyle *, GdkWindow *, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint y);
205 typedef void (*Ptr_gtk_paint_vline) (GtkStyle *, GdkWindow *, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint);
206 typedef void (*Ptr_gtk_menu_item_set_submenu) (GtkMenuItem *, GtkWidget *);
207 typedef void (*Ptr_gtk_container_forall) (GtkContainer *, GtkCallback, gpointer);
208 typedef void (*Ptr_gtk_widget_size_allocate) (GtkWidget *, GtkAllocation*);
209 typedef void (*Ptr_gtk_widget_size_request) (GtkWidget *widget, GtkRequisition *requisition);
210 typedef void (*Ptr_gtk_widget_set_direction) (GtkWidget *, GtkTextDirection);
211 typedef void (*Ptr_gtk_widget_path) (GtkWidget *, guint *, gchar **, gchar**);
212 
213 typedef void (*Ptr_gtk_toolbar_insert) (GtkToolbar *toolbar, GtkToolItem *item, int pos);
214 typedef void (*Ptr_gtk_menu_shell_append)(GtkMenuShell *, GtkWidget *);
215 typedef GtkType (*Ptr_gtk_container_get_type) (void);
216 typedef GtkType (*Ptr_gtk_window_get_type) (void);
217 typedef GtkType (*Ptr_gtk_widget_get_type) (void);
218 typedef GtkStyle* (*Ptr_gtk_rc_get_style_by_paths) (GtkSettings *, const char *, const char *, GType);
219 typedef gint (*Ptr_pango_font_description_get_size) (const PangoFontDescription *);
220 typedef PangoWeight (*Ptr_pango_font_description_get_weight) (const PangoFontDescription *);
221 typedef const char* (*Ptr_pango_font_description_get_family) (const PangoFontDescription *);
222 typedef PangoStyle (*Ptr_pango_font_description_get_style) (const PangoFontDescription *desc);
223 typedef gboolean (*Ptr_gtk_file_chooser_set_current_folder)(GtkFileChooser *, const gchar *);
224 typedef GtkFileFilter* (*Ptr_gtk_file_filter_new)(void);
225 typedef void (*Ptr_gtk_file_filter_set_name)(GtkFileFilter *, const gchar *);
226 typedef void (*Ptr_gtk_file_filter_add_pattern)(GtkFileFilter *filter, const gchar *pattern);
227 typedef void (*Ptr_gtk_file_chooser_add_filter)(GtkFileChooser *chooser, GtkFileFilter *filter);
228 typedef void (*Ptr_gtk_file_chooser_set_filter)(GtkFileChooser *chooser, GtkFileFilter *filter);
229 typedef GtkFileFilter* (*Ptr_gtk_file_chooser_get_filter)(GtkFileChooser *chooser);
230 typedef gchar* (*Ptr_gtk_file_chooser_get_filename)(GtkFileChooser *chooser);
231 typedef GSList* (*Ptr_gtk_file_chooser_get_filenames)(GtkFileChooser *chooser);
232 typedef GtkWidget* (*Ptr_gtk_file_chooser_dialog_new)(const gchar *title,
233  GtkWindow *parent,
234  GtkFileChooserAction action,
235  const gchar *first_button_text,
236  ...);
237 typedef void (*Ptr_gtk_file_chooser_set_current_name) (GtkFileChooser *, const gchar *);
238 typedef gboolean (*Ptr_gtk_file_chooser_set_filename) (GtkFileChooser *chooser, const gchar *name);
239 typedef gint (*Ptr_gtk_dialog_run) (GtkDialog*);
240 typedef void (*Ptr_gtk_border_free)(GtkBorder *);
241 
242 typedef guchar* (*Ptr_gdk_pixbuf_get_pixels) (const GdkPixbuf *pixbuf);
243 typedef int (*Ptr_gdk_pixbuf_get_width) (const GdkPixbuf *pixbuf);
244 typedef void (*Ptr_gdk_color_free) (const GdkColor *);
245 typedef int (*Ptr_gdk_pixbuf_get_height) (const GdkPixbuf *pixbuf);
246 typedef GdkPixbuf* (*Ptr_gdk_pixbuf_get_from_drawable) (GdkPixbuf *dest, GdkDrawable *src,
247  GdkColormap *cmap, int src_x,
248  int src_y, int dest_x, int dest_y,
249  int width, int height);
250 typedef GdkPixmap* (*Ptr_gdk_pixmap_new) (GdkDrawable *drawable, gint width, gint height, gint depth);
251 typedef GdkPixbuf* (*Ptr_gdk_pixbuf_new) (GdkColorspace colorspace, gboolean has_alpha,
252  int bits_per_sample, int width, int height);
253 typedef void (*Ptr_gdk_draw_rectangle) (GdkDrawable *drawable, GdkGC *gc,
254  gboolean filled, gint x, gint y, gint width, gint height);
255 typedef void (*Ptr_gdk_pixbuf_unref)(GdkPixbuf *);
256 typedef void (*Ptr_gdk_drawable_unref)(GdkDrawable *);
257 typedef gint (*Ptr_gdk_drawable_get_depth)(GdkDrawable *);
258 typedef void (*Ptr_gdk_x11_window_set_user_time) (GdkWindow *window, guint32);
259 typedef XID (*Ptr_gdk_x11_drawable_get_xid) (GdkDrawable *);
260 typedef Display* (*Ptr_gdk_x11_drawable_get_xdisplay) ( GdkDrawable *);
261 
262 
264 
265 typedef QStringList (*_qt_filedialog_open_filenames_hook)(QWidget * parent, const QString &caption, const QString &dir,
266  const QString &filter, QString *selectedFilter, QFileDialog::Options options);
267 typedef QString (*_qt_filedialog_open_filename_hook) (QWidget * parent, const QString &caption, const QString &dir,
268  const QString &filter, QString *selectedFilter, QFileDialog::Options options);
269 typedef QString (*_qt_filedialog_save_filename_hook) (QWidget * parent, const QString &caption, const QString &dir,
270  const QString &filter, QString *selectedFilter, QFileDialog::Options options);
271 typedef QString (*_qt_filedialog_existing_directory_hook)(QWidget *parent, const QString &caption, const QString &dir,
272  QFileDialog::Options options);
273 
278 
279 class QGtkStylePrivate;
280 
281 class QGtkStyleFilter : public QObject
282 {
283 public:
285  : stylePrivate(sp)
286  {}
287 private:
289  bool eventFilter(QObject *obj, QEvent *e);
290 };
291 
292 typedef enum {
298 
299 typedef enum {
303 
304 struct GnomeThumbnailFactory;
305 typedef gboolean (*Ptr_gnome_vfs_init) (void);
306 typedef char* (*Ptr_gnome_icon_lookup_sync) (
307  GtkIconTheme *icon_theme,
308  GnomeThumbnailFactory *,
309  const char *file_uri,
310  const char *custom_icon,
311  GnomeIconLookupFlags flags,
313 
315 {
317 public:
319  ~QGtkStylePrivate();
320 
322 
323  static GtkWidget* gtkWidget(const QHashableLatin1Literal &path);
324  static GtkStyle* gtkStyle(const QHashableLatin1Literal &path = QHashableLatin1Literal("GtkWindow"));
325 
326  virtual void resolveGtk() const;
327  virtual void initGtkMenu() const;
328  virtual void initGtkTreeview() const;
329  virtual void initGtkWidgets() const;
330 
331  static void cleanupGtkWidgets();
332 
333  static bool isKDE4Session();
334  void applyCustomPaletteHash();
335  static QFont getThemeFont();
336  static bool isThemeAvailable() { return gtkStyle() != 0; }
337 
338  static bool getGConfBool(const QString &key, bool fallback = 0);
339  static QString getGConfString(const QString &key, const QString &fallback = QString());
340 
341  static QString getThemeName();
342  static QString getIconThemeName();
343  virtual int getSpinboxArrowSize() const;
344 
345  static void setupGtkFileChooser(GtkWidget* gtkFileChooser, QWidget *parent,
346  const QString &dir, const QString &filter, QString *selectedFilter,
347  QFileDialog::Options options, bool isSaveDialog = false,
348  QMap<GtkFileFilter *, QString> *filterMap = 0);
349 
350  static QString openFilename(QWidget *parent, const QString &caption, const QString &dir, const QString &filter,
351  QString *selectedFilter, QFileDialog::Options options);
352  static QString saveFilename(QWidget *parent, const QString &caption, const QString &dir, const QString &filter,
353  QString *selectedFilter, QFileDialog::Options options);
354  static QString openDirectory(QWidget *parent, const QString &caption, const QString &dir, QFileDialog::Options options);
355  static QStringList openFilenames(QWidget *parent, const QString &caption, const QString &dir, const QString &filter,
356  QString *selectedFilter, QFileDialog::Options options);
357  static QIcon getFilesystemIcon(const QFileInfo &);
358 
440 
445 
459 
474 
478 
481 
482  virtual QPalette gtkWidgetPalette(const QHashableLatin1Literal &gtkWidgetName) const;
483 
484 protected:
486 
487  static inline void destroyWidgetMap()
488  {
489  cleanupGtkWidgets();
490  delete widgetMap;
491  widgetMap = 0;
492  }
493 
494  static inline WidgetMap *gtkWidgetMap()
495  {
496  if (!widgetMap) {
497  widgetMap = new WidgetMap();
498  qAddPostRoutine(destroyWidgetMap);
499  }
500  return widgetMap;
501  }
502 
503  static QStringList extract_filter(const QString &rawFilter);
504 
505  virtual GtkWidget* getTextColorWidget() const;
506  static void setupGtkWidget(GtkWidget* widget);
507  static void addWidgetToMap(GtkWidget* widget);
508  static void addAllSubWidgets(GtkWidget *widget, gpointer v = 0);
509  static void addWidget(GtkWidget *widget);
510  static void removeWidgetFromMap(const QHashableLatin1Literal &path);
511 
512  virtual void init();
513 
514 private:
516  static WidgetMap *widgetMap;
518 };
519 
520 // Helper to ensure that we have polished all our gtk widgets
521 // before updating our own palettes
523 {
524  Q_OBJECT
525 public slots:
526  void updateTheme();
527 };
528 
530 
531 #endif // !QT_NO_STYLE_GTK
532 #endif // QGTKSTYLE_P_H
Q_GUI_EXPORT _qt_filedialog_open_filenames_hook qt_filedialog_open_filenames_hook
Definition: qfiledialog.cpp:91
static Ptr_gdk_drawable_get_depth gdk_drawable_get_depth
Definition: qgtkstyle_p.h:469
static void destroyWidgetMap()
Definition: qgtkstyle_p.h:487
static Ptr_gtk_widget_path gtk_widget_path
Definition: qgtkstyle_p.h:433
static Ptr_gtk_window_new gtk_window_new
Definition: qgtkstyle_p.h:362
char *(* Ptr_gnome_icon_lookup_sync)(GtkIconTheme *icon_theme, GnomeThumbnailFactory *, const char *file_uri, const char *custom_icon, GnomeIconLookupFlags flags, GnomeIconLookupResultFlags *result)
Definition: qgtkstyle_p.h:306
int(* Ptr_gdk_pixbuf_get_height)(const GdkPixbuf *pixbuf)
Definition: qgtkstyle_p.h:245
GdkPixbuf *(* Ptr_gtk_icon_set_render_icon)(GtkIconSet *, GtkStyle *, GtkTextDirection, GtkStateType, GtkIconSize, GtkWidget *, const char *)
Definition: qgtkstyle_p.h:187
static Ptr_gtk_file_chooser_get_filter gtk_file_chooser_get_filter
Definition: qgtkstyle_p.h:451
PangoWeight(* Ptr_pango_font_description_get_weight)(const PangoFontDescription *)
Definition: qgtkstyle_p.h:220
static Ptr_gdk_draw_rectangle gdk_draw_rectangle
Definition: qgtkstyle_p.h:466
QString(* _qt_filedialog_existing_directory_hook)(QWidget *parent, const QString &caption, const QString &dir, QFileDialog::Options options)
Definition: qgtkstyle_p.h:271
void(* Ptr_gdk_draw_rectangle)(GdkDrawable *drawable, GdkGC *gc, gboolean filled, gint x, gint y, gint width, gint height)
Definition: qgtkstyle_p.h:253
static QList< QGtkStylePrivate * > instances
Definition: qgtkstyle_p.h:515
static Ptr_gtk_widget_get_type gtk_widget_get_type
Definition: qgtkstyle_p.h:436
static Ptr_gtk_entry_new gtk_entry_new
Definition: qgtkstyle_p.h:384
XID(* Ptr_gdk_x11_drawable_get_xid)(GdkDrawable *)
Definition: qgtkstyle_p.h:259
GtkStyle *(* Ptr_gtk_style_attach)(GtkStyle *, GdkWindow *)
Definition: qgtkstyle_p.h:141
static Ptr_pango_font_description_get_style pango_font_description_get_style
Definition: qgtkstyle_p.h:444
static Ptr_gconf_client_get_string gconf_client_get_string
Definition: qgtkstyle_p.h:476
#define QT_END_NAMESPACE
This macro expands to.
Definition: qglobal.h:90
QHashableLatin1Literal(const QHashableLatin1Literal &other)
Definition: qgtkstyle_p.h:97
GtkObject *(* Ptr_gtk_adjustment_new)(double, double, double, double, double, double)
Definition: qgtkstyle_p.h:203
static Ptr_gconf_client_get_default gconf_client_get_default
Definition: qgtkstyle_p.h:475
QPointer< QWidget > widget
void(* Ptr_gtk_paint_box)(GtkStyle *, GdkWindow *, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint, gint)
Definition: qgtkstyle_p.h:190
gchar *(* Ptr_gtk_check_version)(guint, guint, guint)
Definition: qgtkstyle_p.h:167
void(* Ptr_gtk_widget_size_allocate)(GtkWidget *, GtkAllocation *)
Definition: qgtkstyle_p.h:208
void(* Ptr_gtk_file_chooser_set_filter)(GtkFileChooser *chooser, GtkFileFilter *filter)
Definition: qgtkstyle_p.h:228
static Ptr_gtk_file_filter_new gtk_file_filter_new
Definition: qgtkstyle_p.h:446
static WidgetMap * widgetMap
Definition: qgtkstyle_p.h:516
static Ptr_gtk_combo_box_entry_new gtk_combo_box_entry_new
Definition: qgtkstyle_p.h:395
Q_GUI_EXPORT _qt_filedialog_existing_directory_hook qt_filedialog_existing_directory_hook
Definition: qfiledialog.cpp:85
static Ptr_gtk_scrolled_window_new gtk_scrolled_window_new
Definition: qgtkstyle_p.h:389
static Ptr_gdk_x11_drawable_get_xid gdk_x11_drawable_get_xid
Definition: qgtkstyle_p.h:472
void(* Ptr_gtk_paint_slider)(GtkStyle *, GdkWindow *, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint, gint, GtkOrientation)
Definition: qgtkstyle_p.h:195
static Ptr_gtk_style_attach gtk_style_attach
Definition: qgtkstyle_p.h:361
static Ptr_gtk_expander_new gtk_expander_new
Definition: qgtkstyle_p.h:373
static Ptr_gtk_paint_check gtk_paint_check
Definition: qgtkstyle_p.h:410
static Ptr_gtk_widget_set_direction gtk_widget_set_direction
Definition: qgtkstyle_p.h:432
void qAddPostRoutine(QtCleanUpFunction p)
GtkWidget *(* Ptr_gtk_vscale_new)(GtkAdjustment *)
Definition: qgtkstyle_p.h:163
GtkWidget *(* Ptr_gtk_arrow_new)(GtkArrowType, GtkShadowType)
Definition: qgtkstyle_p.h:146
static Ptr_gtk_range_set_inverted gtk_range_set_inverted
Definition: qgtkstyle_p.h:402
static Ptr_gtk_progress_bar_new gtk_progress_bar_new
Definition: qgtkstyle_p.h:396
void(* Ptr_gtk_file_filter_add_pattern)(GtkFileFilter *filter, const gchar *pattern)
Definition: qgtkstyle_p.h:226
GtkWidget *(* Ptr_gtk_combo_box_entry_new)(void)
Definition: qgtkstyle_p.h:152
static Ptr_gtk_menu_new gtk_menu_new
Definition: qgtkstyle_p.h:372
#define Q_GUI_EXPORT
Definition: qglobal.h:1450
QGtkStyleFilter(QGtkStylePrivate *sp)
Definition: qgtkstyle_p.h:284
void(* Ptr_gdk_drawable_unref)(GdkDrawable *)
Definition: qgtkstyle_p.h:256
static Ptr_gtk_widget_size_allocate gtk_widget_size_allocate
Definition: qgtkstyle_p.h:430
static Ptr_gtk_widget_destroy gtk_widget_destroy
Definition: qgtkstyle_p.h:363
PangoStyle(* Ptr_pango_font_description_get_style)(const PangoFontDescription *desc)
Definition: qgtkstyle_p.h:222
void(* Ptr_gtk_paint_option)(GtkStyle *, GdkWindow *, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint, gint)
Definition: qgtkstyle_p.h:199
GtkWidget *(* Ptr_gtk_tool_button_new)(GtkWidget *, const gchar *)
Definition: qgtkstyle_p.h:156
The QWidget class is the base class of all user interface objects.
Definition: qwidget.h:150
GtkWidget *(* Ptr_gtk_file_chooser_dialog_new)(const gchar *title, GtkWindow *parent, GtkFileChooserAction action, const gchar *first_button_text,...)
Definition: qgtkstyle_p.h:232
static QColor cmap[256]
Definition: qgl_mac.mm:760
static Ptr_gtk_file_chooser_get_filename gtk_file_chooser_get_filename
Definition: qgtkstyle_p.h:454
char *(* Ptr_gconf_client_get_string)(GConfClient *, const char *, GError **)
Definition: qgtkstyle_p.h:136
static Ptr_gdk_pixbuf_get_width gdk_pixbuf_get_width
Definition: qgtkstyle_p.h:461
static Ptr_gtk_fixed_new gtk_fixed_new
Definition: qgtkstyle_p.h:407
static Ptr_gtk_paint_vline gtk_paint_vline
Definition: qgtkstyle_p.h:425
static Ptr_gtk_range_get_adjustment gtk_range_get_adjustment
Definition: qgtkstyle_p.h:400
void(* Ptr_gdk_color_free)(const GdkColor *)
Definition: qgtkstyle_p.h:244
GtkWidget *(* Ptr_gtk_menu_item_new_with_label)(const gchar *)
Definition: qgtkstyle_p.h:147
static Ptr_gtk_separator_menu_item_new gtk_separator_menu_item_new
Definition: qgtkstyle_p.h:429
static Ptr_gtk_container_get_type gtk_container_get_type
Definition: qgtkstyle_p.h:434
static Ptr_gconf_client_get_bool gconf_client_get_bool
Definition: qgtkstyle_p.h:477
GtkFileFilter *(* Ptr_gtk_file_filter_new)(void)
Definition: qgtkstyle_p.h:224
static Ptr_gtk_widget_modify_color gtk_widget_modify_bg
Definition: qgtkstyle_p.h:367
static Ptr_gdk_pixmap_new gdk_pixmap_new
Definition: qgtkstyle_p.h:463
static Ptr_gtk_file_filter_set_name gtk_file_filter_set_name
Definition: qgtkstyle_p.h:447
GtkIconTheme *(* Ptr_gtk_icon_theme_get_default)(void)
Definition: qgtkstyle_p.h:183
void(* Ptr_gtk_file_chooser_add_filter)(GtkFileChooser *chooser, GtkFileFilter *filter)
Definition: qgtkstyle_p.h:227
static Ptr_gtk_paint_arrow gtk_paint_arrow
Definition: qgtkstyle_p.h:420
static Ptr_gtk_paint_option gtk_paint_option
Definition: qgtkstyle_p.h:414
static Ptr_gtk_menu_bar_new gtk_menu_bar_new
Definition: qgtkstyle_p.h:371
GtkWidget *(* Ptr_gtk_statusbar_new)(void)
Definition: qgtkstyle_p.h:175
static Ptr_gtk_menu_shell_append gtk_menu_shell_append
Definition: qgtkstyle_p.h:398
static Ptr_gtk_window_get_type gtk_window_get_type
Definition: qgtkstyle_p.h:435
const char * data() const
Definition: qgtkstyle_p.h:86
void(* Ptr_gtk_menu_shell_append)(GtkMenuShell *, GtkWidget *)
Definition: qgtkstyle_p.h:214
The QString class provides a Unicode character string.
Definition: qstring.h:83
QHashableLatin1Literal(const char *str, int length)
Definition: qgtkstyle_p.h:118
bool operator!=(const QHashableLatin1Literal &l1, const QHashableLatin1Literal &l2)
Definition: qgtkstyle_p.h:127
gint(* Ptr_pango_font_description_get_size)(const PangoFontDescription *)
Definition: qgtkstyle_p.h:219
The QHash class is a template class that provides a hash-table-based dictionary.
Definition: qdatastream.h:66
GtkAdjustment *(* Ptr_gtk_range_get_adjustment)(GtkRange *)
Definition: qgtkstyle_p.h:177
The QObject class is the base class of all Qt objects.
Definition: qobject.h:111
void(* Ptr_gtk_progress_configure)(GtkProgress *, double, double, double)
Definition: qgtkstyle_p.h:179
static Ptr_gtk_toolbar_insert gtk_toolbar_insert
Definition: qgtkstyle_p.h:381
void(* Ptr_gtk_paint_hline)(GtkStyle *, GdkWindow *, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint y)
Definition: qgtkstyle_p.h:204
GtkType(* Ptr_gtk_window_get_type)(void)
Definition: qgtkstyle_p.h:216
GtkType(* Ptr_gtk_container_get_type)(void)
Definition: qgtkstyle_p.h:215
static Ptr_gtk_paint_box gtk_paint_box
Definition: qgtkstyle_p.h:411
static Ptr_gtk_tree_view_column_new gtk_tree_view_column_new
Definition: qgtkstyle_p.h:408
QHash< QHashableLatin1Literal, GtkWidget * > WidgetMap
Definition: qgtkstyle_p.h:485
QGtkStylePrivate * stylePrivate
Definition: qgtkstyle_p.h:288
static Ptr_gtk_paint_handle gtk_paint_handle
Definition: qgtkstyle_p.h:421
static Ptr_gtk_file_filter_add_pattern gtk_file_filter_add_pattern
Definition: qgtkstyle_p.h:448
NSToolbar * toolbar
QGtkStyleFilter filter
Definition: qgtkstyle_p.h:321
static Ptr_gdk_x11_drawable_get_xdisplay gdk_x11_drawable_get_xdisplay
Definition: qgtkstyle_p.h:473
static QHashableLatin1Literal fromData(const char *str)
Definition: qgtkstyle_p.h:112
GtkTreeViewColumn *(* Ptr_gtk_tree_view_column_new)(void)
Definition: qgtkstyle_p.h:185
static Ptr_gtk_menu_item_new_with_label gtk_menu_item_new_with_label
Definition: qgtkstyle_p.h:368
Q_GUI_EXPORT _qt_filedialog_save_filename_hook qt_filedialog_save_filename_hook
Definition: qfiledialog.cpp:94
void(* Ptr_gtk_paint_shadow)(GtkStyle *, GdkWindow *, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint, gint)
Definition: qgtkstyle_p.h:194
static Ptr_gtk_widget_style_get gtk_widget_style_get
Definition: qgtkstyle_p.h:405
static Ptr_gtk_paint_extension gtk_paint_extension
Definition: qgtkstyle_p.h:415
GtkWidget *(* Ptr_gtk_hscrollbar_new)(GtkAdjustment *)
Definition: qgtkstyle_p.h:164
const char *(* Ptr_pango_font_description_get_family)(const PangoFontDescription *)
Definition: qgtkstyle_p.h:221
static Ptr_pango_font_description_get_size pango_font_description_get_size
Definition: qgtkstyle_p.h:441
GtkWidget *(* Ptr_gtk_menu_new)(void)
Definition: qgtkstyle_p.h:151
bool operator==(const QHashableLatin1Literal &l1, const QHashableLatin1Literal &l2)
static Ptr_gtk_combo_box_new gtk_combo_box_new
Definition: qgtkstyle_p.h:394
gboolean(* Ptr_gnome_vfs_init)(void)
Definition: qgtkstyle_p.h:305
void(* Ptr_gtk_file_chooser_set_current_name)(GtkFileChooser *, const gchar *)
Definition: qgtkstyle_p.h:237
static Ptr_gdk_pixbuf_get_height gdk_pixbuf_get_height
Definition: qgtkstyle_p.h:462
GtkWidget *(* Ptr_gtk_frame_new)(const gchar *)
Definition: qgtkstyle_p.h:173
GtkWidget *(* Ptr_gtk_expander_new)(const gchar *)
Definition: qgtkstyle_p.h:174
NSWindow * window
static Ptr_gtk_dialog_run gtk_dialog_run
Definition: qgtkstyle_p.h:457
static Ptr_gdk_pixbuf_new gdk_pixbuf_new
Definition: qgtkstyle_p.h:464
static Ptr_gtk_paint_expander gtk_paint_expander
Definition: qgtkstyle_p.h:422
GtkWidget *(* Ptr_gtk_radio_button_new)(GSList *)
Definition: qgtkstyle_p.h:159
#define QT_BEGIN_NAMESPACE
This macro expands to.
Definition: qglobal.h:89
static Ptr_gtk_file_chooser_set_filename gtk_file_chooser_set_filename
Definition: qgtkstyle_p.h:458
void(* Ptr_gtk_paint_vline)(GtkStyle *, GdkWindow *, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint)
Definition: qgtkstyle_p.h:205
static Ptr_gdk_color_free gdk_color_free
Definition: qgtkstyle_p.h:470
static Ptr_gtk_icon_set_render_icon gtk_icon_set_render_icon
Definition: qgtkstyle_p.h:406
void(* Ptr_gtk_paint_arrow)(GtkStyle *, GdkWindow *, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, GtkArrowType, gboolean, gint, gint, gint, gint)
Definition: qgtkstyle_p.h:198
static Ptr_gtk_tree_view_get_column gtk_tree_view_get_column
Definition: qgtkstyle_p.h:393
static Ptr_gtk_rc_get_style_by_paths gtk_rc_get_style_by_paths
Definition: qgtkstyle_p.h:437
GtkIconSet *(* Ptr_gtk_icon_factory_lookup_default)(const gchar *)
Definition: qgtkstyle_p.h:182
static Ptr_gtk_spin_button_new gtk_spin_button_new
Definition: qgtkstyle_p.h:379
static bool init
QHashableLatin1Literal(const char(&str)[N])
Definition: qgtkstyle_p.h:93
static Ptr_gtk_paint_focus gtk_paint_focus
Definition: qgtkstyle_p.h:419
void(* Ptr_gtk_widget_set_default_direction)(GtkTextDirection)
Definition: qgtkstyle_p.h:144
GtkSettings *(* Ptr_gtk_settings_get_default)(void)
Definition: qgtkstyle_p.h:176
void(* Ptr_gtk_paint_resize_grip)(GtkStyle *, GdkWindow *, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, GdkWindowEdge, gint, gint, gint, gint)
Definition: qgtkstyle_p.h:192
const char * name
static Ptr_gtk_hbutton_box_new gtk_hbutton_box_new
Definition: qgtkstyle_p.h:376
GtkWidget *(* Ptr_gtk_window_new)(GtkWindowType)
Definition: qgtkstyle_p.h:140
static Ptr_gtk_notebook_new gtk_notebook_new
Definition: qgtkstyle_p.h:390
void(* Ptr_gtk_border_free)(GtkBorder *)
Definition: qgtkstyle_p.h:240
GtkType(* Ptr_gtk_widget_get_type)(void)
Definition: qgtkstyle_p.h:217
The QStringList class provides a list of strings.
Definition: qstringlist.h:66
void(* Ptr_gdk_x11_window_set_user_time)(GdkWindow *window, guint32)
Definition: qgtkstyle_p.h:258
GtkWidget *(* Ptr_gtk_vscrollbar_new)(GtkAdjustment *)
Definition: qgtkstyle_p.h:165
void(* Ptr_gtk_paint_handle)(GtkStyle *, GdkWindow *, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint, gint, GtkOrientation)
Definition: qgtkstyle_p.h:197
static Ptr_gtk_button_new gtk_button_new
Definition: qgtkstyle_p.h:374
GtkWidget *(* Ptr_gtk_check_menu_item_new_with_label)(const gchar *)
Definition: qgtkstyle_p.h:149
GtkWidget *(* Ptr_gtk_progress_bar_new)(void)
Definition: qgtkstyle_p.h:161
unsigned int uint
Definition: qglobal.h:996
static Ptr_gdk_pixbuf_get_pixels gdk_pixbuf_get_pixels
Definition: qgtkstyle_p.h:460
static Ptr_gtk_paint_shadow gtk_paint_shadow
Definition: qgtkstyle_p.h:417
GSList *(* Ptr_gtk_file_chooser_get_filenames)(GtkFileChooser *chooser)
Definition: qgtkstyle_p.h:231
int(* Ptr_gdk_pixbuf_get_width)(const GdkPixbuf *pixbuf)
Definition: qgtkstyle_p.h:243
void(* Ptr_gtk_container_forall)(GtkContainer *, GtkCallback, gpointer)
Definition: qgtkstyle_p.h:207
static Ptr_gtk_adjustment_new gtk_adjustment_new
Definition: qgtkstyle_p.h:424
GdkPixbuf *(* Ptr_gdk_pixbuf_get_from_drawable)(GdkPixbuf *dest, GdkDrawable *src, GdkColormap *cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height)
Definition: qgtkstyle_p.h:246
void(* Ptr_gtk_tree_view_append_column)(GtkTreeView *, GtkTreeViewColumn *)
Definition: qgtkstyle_p.h:188
static Ptr_gdk_x11_window_set_user_time gdk_x11_window_set_user_time
Definition: qgtkstyle_p.h:471
void(* Ptr_gtk_menu_item_set_submenu)(GtkMenuItem *, GtkWidget *)
Definition: qgtkstyle_p.h:206
static Ptr_gtk_widget_realize gtk_widget_realize
Definition: qgtkstyle_p.h:364
bool(* Ptr_gconf_client_get_bool)(GConfClient *, const char *, GError **)
Definition: qgtkstyle_p.h:137
static Ptr_gtk_hscrollbar_new gtk_hscrollbar_new
Definition: qgtkstyle_p.h:387
static Ptr_gtk_tree_view_append_column gtk_tree_view_append_column
Definition: qgtkstyle_p.h:409
void(* Ptr_gtk_widget_style_get)(GtkWidget *, const gchar *first_property_name,...)
Definition: qgtkstyle_p.h:184
void(* Ptr_gtk_paint_check)(GtkStyle *, GdkWindow *, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint, gint)
Definition: qgtkstyle_p.h:189
gboolean(* Ptr_gtk_file_chooser_set_current_folder)(GtkFileChooser *, const gchar *)
Definition: qgtkstyle_p.h:223
static Ptr_gtk_widget_size_request gtk_widget_size_request
Definition: qgtkstyle_p.h:431
static Ptr_gtk_file_chooser_add_filter gtk_file_chooser_add_filter
Definition: qgtkstyle_p.h:449
QString(* _qt_filedialog_save_filename_hook)(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, QFileDialog::Options options)
Definition: qgtkstyle_p.h:269
static Ptr_gtk_radio_button_new gtk_radio_button_new
Definition: qgtkstyle_p.h:378
static Ptr_gtk_statusbar_new gtk_statusbar_new
Definition: qgtkstyle_p.h:383
static Ptr_gtk_check_version gtk_check_version
Definition: qgtkstyle_p.h:438
static Ptr_gtk_range_set_adjustment gtk_range_set_adjustment
Definition: qgtkstyle_p.h:401
#define Q_OBJECT
Definition: qobjectdefs.h:157
static Ptr_gtk_vscrollbar_new gtk_vscrollbar_new
Definition: qgtkstyle_p.h:388
static Ptr_gtk_paint_flat_box gtk_paint_flat_box
Definition: qgtkstyle_p.h:413
static Ptr_gtk_paint_box_gap gtk_paint_box_gap
Definition: qgtkstyle_p.h:412
static Ptr_gtk_paint_hline gtk_paint_hline
Definition: qgtkstyle_p.h:426
gboolean(* Ptr_gtk_file_chooser_set_filename)(GtkFileChooser *chooser, const gchar *name)
Definition: qgtkstyle_p.h:238
static Ptr_gtk_separator_tool_item_new gtk_separator_tool_item_new
Definition: qgtkstyle_p.h:380
GtkWidget *(* Ptr_gtk_separator_menu_item_new)(void)
Definition: qgtkstyle_p.h:148
static Ptr_gtk_border_free gtk_border_free
Definition: qgtkstyle_p.h:439
static Ptr_gtk_container_forall gtk_container_forall
Definition: qgtkstyle_p.h:359
void(* Ptr_gtk_range_set_adjustment)(GtkRange *, GtkAdjustment *)
Definition: qgtkstyle_p.h:178
static Ptr_gtk_icon_factory_lookup_default gtk_icon_factory_lookup_default
Definition: qgtkstyle_p.h:403
QHashableLatin1Literal & operator=(const QHashableLatin1Literal &other)
Definition: qgtkstyle_p.h:101
static Ptr_gtk_paint_resize_grip gtk_paint_resize_grip
Definition: qgtkstyle_p.h:418
GtkTreeViewColumn *(* Ptr_gtk_tree_view_get_column)(GtkTreeView *, gint)
Definition: qgtkstyle_p.h:171
static Ptr_gtk_widget_set_default_direction gtk_widget_set_default_direction
Definition: qgtkstyle_p.h:365
gchar *(* Ptr_gtk_file_chooser_get_filename)(GtkFileChooser *chooser)
Definition: qgtkstyle_p.h:230
void(* Ptr_gdk_pixbuf_unref)(GdkPixbuf *)
Definition: qgtkstyle_p.h:255
uint qstrlen(const char *str)
Definition: qbytearray.h:79
struct _XDisplay Display
Definition: qwindowdefs.h:115
static Ptr_gtk_check_menu_item_new_with_label gtk_check_menu_item_new_with_label
Definition: qgtkstyle_p.h:370
static Ptr_gtk_frame_new gtk_frame_new
Definition: qgtkstyle_p.h:382
GtkWidget *(* Ptr_gtk_hbutton_box_new)(void)
Definition: qgtkstyle_p.h:157
#define Q_DECLARE_PUBLIC(Class)
Definition: qglobal.h:2477
void(* Ptr_gtk_paint_flat_box)(GtkStyle *, GdkWindow *, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint, gint)
Definition: qgtkstyle_p.h:200
GtkWidget *(* Ptr_gtk_combo_box_new)(void)
Definition: qgtkstyle_p.h:172
GtkWidget *(* Ptr_gtk_spin_button_new)(GtkAdjustment *, double, int)
Definition: qgtkstyle_p.h:154
static Ptr_gtk_check_button_new gtk_check_button_new
Definition: qgtkstyle_p.h:377
static Ptr_gtk_settings_get_default gtk_settings_get_default
Definition: qgtkstyle_p.h:428
static Ptr_gtk_widget_modify_color gtk_widget_modify_fg
Definition: qgtkstyle_p.h:366
static Ptr_gtk_adjustment_configure gtk_adjustment_configure
Definition: qgtkstyle_p.h:423
static Ptr_gtk_file_chooser_set_filter gtk_file_chooser_set_filter
Definition: qgtkstyle_p.h:450
The QFont class specifies a font used for drawing text.
Definition: qfont.h:64
Q_GUI_EXPORT _qt_filedialog_open_filename_hook qt_filedialog_open_filename_hook
Definition: qfiledialog.cpp:88
static Ptr_gnome_icon_lookup_sync gnome_icon_lookup_sync
Definition: qgtkstyle_p.h:479
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
Definition: qstring.cpp:4188
void(* Ptr_gtk_paint_expander)(GtkStyle *, GdkWindow *, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, GtkExpanderStyle)
Definition: qgtkstyle_p.h:196
GtkStyle *(* Ptr_gtk_rc_get_style_by_paths)(GtkSettings *, const char *, const char *, GType)
Definition: qgtkstyle_p.h:218
GtkWidget *(* Ptr_gtk_tree_view_new)(void)
Definition: qgtkstyle_p.h:170
static Ptr_gtk_vscale_new gtk_vscale_new
Definition: qgtkstyle_p.h:386
GtkWidget *(* Ptr_gtk_scrolled_window_new)(GtkAdjustment *, GtkAdjustment *)
Definition: qgtkstyle_p.h:166
int key
static Ptr_gtk_progress_configure gtk_progress_configure
Definition: qgtkstyle_p.h:399
void(* Ptr_gtk_init)(int *, char ***)
Definition: qgtkstyle_p.h:139
gint(* Ptr_gtk_dialog_run)(GtkDialog *)
Definition: qgtkstyle_p.h:239
GtkWidget *(* Ptr_gtk_toolbar_new)(void)
Definition: qgtkstyle_p.h:153
void(* Ptr_gtk_paint_extension)(GtkStyle *, GdkWindow *, GtkStateType, GtkShadowType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint, gint, GtkPositionType)
Definition: qgtkstyle_p.h:201
static Ptr_gtk_file_chooser_set_current_folder gtk_file_chooser_set_current_folder
Definition: qgtkstyle_p.h:453
static Ptr_pango_font_description_get_weight pango_font_description_get_weight
Definition: qgtkstyle_p.h:442
GtkToolItem *(* Ptr_gtk_separator_tool_item_new)(void)
Definition: qgtkstyle_p.h:168
QFuture< void > filter(Sequence &sequence, FilterFunction filterFunction)
void(* Ptr_gtk_container_add)(GtkContainer *container, GtkWidget *widget)
Definition: qgtkstyle_p.h:181
static Ptr_gdk_pixbuf_unref gdk_pixbuf_unref
Definition: qgtkstyle_p.h:467
QString toString() const
Definition: qgtkstyle_p.h:110
static Ptr_gtk_file_chooser_get_filenames gtk_file_chooser_get_filenames
Definition: qgtkstyle_p.h:455
void(* Ptr_gtk_widget_modify_color)(GtkWidget *widget, GtkStateType state, const GdkColor *color)
Definition: qgtkstyle_p.h:145
Display *(* Ptr_gdk_x11_drawable_get_xdisplay)(GdkDrawable *)
Definition: qgtkstyle_p.h:260
uint qHash(const QHashableLatin1Literal &key)
GtkWidget *(* Ptr_gtk_entry_new)(void)
Definition: qgtkstyle_p.h:169
GtkWidget *(* Ptr_gtk_button_new)(void)
Definition: qgtkstyle_p.h:155
static Ptr_gtk_tool_button_new gtk_tool_button_new
Definition: qgtkstyle_p.h:375
static Ptr_gtk_menu_item_set_submenu gtk_menu_item_set_submenu
Definition: qgtkstyle_p.h:427
GtkFileFilter *(* Ptr_gtk_file_chooser_get_filter)(GtkFileChooser *chooser)
Definition: qgtkstyle_p.h:229
static Ptr_gdk_pixbuf_get_from_drawable gdk_pixbuf_get_from_drawable
Definition: qgtkstyle_p.h:465
static Ptr_gtk_hscale_new gtk_hscale_new
Definition: qgtkstyle_p.h:385
GnomeIconLookupFlags
Definition: qgtkstyle_p.h:292
GdkPixmap *(* Ptr_gdk_pixmap_new)(GdkDrawable *drawable, gint width, gint height, gint depth)
Definition: qgtkstyle_p.h:250
static Ptr_gdk_drawable_unref gdk_drawable_unref
Definition: qgtkstyle_p.h:468
static Ptr_gtk_toolbar_new gtk_toolbar_new
Definition: qgtkstyle_p.h:391
GtkWidget *(* Ptr_gtk_check_button_new)(void)
Definition: qgtkstyle_p.h:158
QString(* _qt_filedialog_open_filename_hook)(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, QFileDialog::Options options)
Definition: qgtkstyle_p.h:267
static Ptr_gtk_init gtk_init
Definition: qgtkstyle_p.h:360
static Ptr_gtk_paint_slider gtk_paint_slider
Definition: qgtkstyle_p.h:416
static Ptr_gnome_vfs_init gnome_vfs_init
Definition: qgtkstyle_p.h:480
void(* Ptr_gtk_widget_set_direction)(GtkWidget *, GtkTextDirection)
Definition: qgtkstyle_p.h:210
#define slots
Definition: qobjectdefs.h:68
QStringList(* _qt_filedialog_open_filenames_hook)(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, QFileDialog::Options options)
Definition: qgtkstyle_p.h:265
static Ptr_gtk_container_add gtk_container_add
Definition: qgtkstyle_p.h:397
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)
Definition: qgtkstyle_p.h:191
void(* Ptr_gtk_toolbar_insert)(GtkToolbar *toolbar, GtkToolItem *item, int pos)
Definition: qgtkstyle_p.h:213
The QFileInfo class provides system-independent file information.
Definition: qfileinfo.h:60
void(* Ptr_gtk_paint_focus)(GtkStyle *, GdkWindow *, GtkStateType, const GdkRectangle *, GtkWidget *, const gchar *, gint, gint, gint, gint)
Definition: qgtkstyle_p.h:193
static Ptr_gtk_arrow_new gtk_arrow_new
Definition: qgtkstyle_p.h:369
The QEvent class is the base class of all event classes.
Definition: qcoreevent.h:56
gint(* Ptr_gdk_drawable_get_depth)(GdkDrawable *)
Definition: qgtkstyle_p.h:257
GtkWidget *(* Ptr_gtk_fixed_new)(void)
Definition: qgtkstyle_p.h:186
GdkPixbuf *(* Ptr_gdk_pixbuf_new)(GdkColorspace colorspace, gboolean has_alpha, int bits_per_sample, int width, int height)
Definition: qgtkstyle_p.h:251
static WidgetMap * gtkWidgetMap()
Definition: qgtkstyle_p.h:494
GnomeIconLookupResultFlags
Definition: qgtkstyle_p.h:299
void(* Ptr_gtk_widget_size_request)(GtkWidget *widget, GtkRequisition *requisition)
Definition: qgtkstyle_p.h:209
static bool isThemeAvailable()
Definition: qgtkstyle_p.h:336
GtkWidget *(* Ptr_gtk_notebook_new)(void)
Definition: qgtkstyle_p.h:160
unsigned long XID
Definition: qgtkstyle_p.h:71
void(* Ptr_gtk_widget_destroy)(GtkWidget *)
Definition: qgtkstyle_p.h:142
static Ptr_gtk_icon_theme_get_default gtk_icon_theme_get_default
Definition: qgtkstyle_p.h:404
The QMap class is a template class that provides a skip-list-based dictionary.
Definition: qdatastream.h:67
void(* Ptr_gtk_range_set_inverted)(GtkRange *, bool)
Definition: qgtkstyle_p.h:180
static Ptr_gtk_file_chooser_set_current_name gtk_file_chooser_set_current_name
Definition: qgtkstyle_p.h:456
guchar *(* Ptr_gdk_pixbuf_get_pixels)(const GdkPixbuf *pixbuf)
Definition: qgtkstyle_p.h:242
void(* Ptr_gtk_widget_path)(GtkWidget *, guint *, gchar **, gchar **)
Definition: qgtkstyle_p.h:211
GConfClient *(* Ptr_gconf_client_get_default)()
Definition: qgtkstyle_p.h:135
GtkWidget *(* Ptr_gtk_hscale_new)(GtkAdjustment *)
Definition: qgtkstyle_p.h:162
static QMenuBar * fallback
Definition: qmenu_mac.mm:1617
The QList class is a template class that provides lists.
Definition: qdatastream.h:62
static Ptr_pango_font_description_get_family pango_font_description_get_family
Definition: qgtkstyle_p.h:443
static Ptr_gtk_tree_view_new gtk_tree_view_new
Definition: qgtkstyle_p.h:392
static Ptr_gtk_file_chooser_dialog_new gtk_file_chooser_dialog_new
Definition: qgtkstyle_p.h:452
The QGtkStyle class provides a widget style rendered by GTK+.
Definition: qgtkstyle.h:61
GtkWidget *(* Ptr_gtk_menu_bar_new)(void)
Definition: qgtkstyle_p.h:150
void(* Ptr_gtk_widget_realize)(GtkWidget *)
Definition: qgtkstyle_p.h:143
void(* Ptr_gtk_adjustment_configure)(GtkAdjustment *, double, double, double, double, double, double)
Definition: qgtkstyle_p.h:202
The QPalette class contains color groups for each widget state.
Definition: qpalette.h:61
The QIcon class provides scalable icons in different modes and states.
Definition: qicon.h:60
void(* Ptr_gtk_file_filter_set_name)(GtkFileFilter *, const gchar *)
Definition: qgtkstyle_p.h:225