Added comment of to-be theme name variable to IrrecoStyleBrowserDlg struct.
[irreco.git] / irreco / trunk / src / core / irreco_style_browser_dlg.h
blobadc445ff7f4dc2fb3aab7df1fbbf28193ca9a16f
1 /*
2 * irreco - Ir Remote Control
3 * Copyright (C) 2007 Arto Karppinen (arto.karppinen@iki.fi)
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
22 /* Typedef */
23 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
25 * Make sure that typedefs are available before we include anything elese.
27 * This makes sure that whatever other structures that depend on structures
28 * defined in this file will compile OK recardles of header inclusion order.
31 #ifndef __IRRECO_STYLE_BROWSER_DLG_H_TYPEDEF__
32 #define __IRRECO_STYLE_BROWSER_DLG_H_TYPEDEF__
34 typedef struct _IrrecoStyleBrowserDlg IrrecoStyleBrowserDlg;
35 typedef struct _IrrecoStyleBrowserDlgLoading IrrecoStyleBrowserDlgLoading;
36 typedef struct _IrrecoStyleBrowserDlgClass IrrecoStyleBrowserDlgClass;
38 #define IRRECO_TYPE_STYLE_BROWSER_DLG irreco_style_browser_dlg_get_type()
40 #define IRRECO_STYLE_BROWSER_DLG(obj) \
41 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
42 IRRECO_TYPE_STYLE_BROWSER_DLG, IrrecoStyleBrowserDlg))
44 #define IRRECO_STYLE_BROWSER_DLG_CLASS(klass) \
45 (G_TYPE_CHECK_CLASS_CAST ((klass), \
46 IRRECO_TYPE_STYLE_BROWSER_DLG, IrrecoStyleBrowserDlgClass))
48 #define IRRECO_IS_STYLE_BROWSER_DLG(obj) \
49 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
50 IRRECO_TYPE_STYLE_BROWSER_DLG))
52 #define IRRECO_IS_STYLE_BROWSER_DLG_CLASS(klass) \
53 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
54 IRRECO_TYPE_STYLE_BROWSER_DLG))
56 #define IRRECO_STYLE_BROWSER_DLG_GET_CLASS(obj) \
57 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
58 IRRECO_TYPE_STYLE_BROWSER_DLG, IrrecoStyleBrowserDlgClass))
60 #endif /* __IRRECO_STYLE_BROWSER_DLG_H_TYPEDEF__ */
64 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
65 /* Include */
66 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
67 #ifndef __IRRECO_STYLE_BROWSER_DLG_H__
68 #define __IRRECO_STYLE_BROWSER_DLG_H__
69 #include "irreco.h"
70 #include "irreco_dlg.h"
71 #include "irreco_data.h"
75 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
76 /* Datatypes */
77 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
79 struct _IrrecoStyleBrowserDlg{
80 IrrecoDlg parent;
82 IrrecoData *irreco_data;
83 GtkWidget *vbox;
84 IrrecoButtonStyle *style;
85 GHashTable *layout_array;
86 /* TODO Insert GString? that holds theme name
87 will be passed on to loading loop that loads button images
88 GString *theme_name
90 IrrecoStyleBrowserDlgLoading *loading;
92 gboolean once;
95 struct _IrrecoStyleBrowserDlgLoading {
96 IrrecoStyleBrowserDlg *self;
97 GtkWidget *banner;
98 gint pos;
99 gint len;
102 struct _IrrecoStyleBrowserDlgClass{
103 IrrecoDlgClass parent_class;
108 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
109 /* Macro */
110 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
114 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
115 /* Prototypes */
116 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
117 GType irreco_style_browser_dlg_get_type (void);
118 GtkWidget* irreco_style_browser_dlg_new(IrrecoData *irreco_data,
119 GtkWindow *parent);
120 void irreco_style_browser_dlg_set_irreco_data(IrrecoStyleBrowserDlg *self,
121 IrrecoData *irreco_data);
122 gboolean irreco_show_style_browser_dlg(IrrecoData *irreco_data,
123 GtkWindow *parent,
124 IrrecoButtonStyle ** style);
126 #endif /* __IRRECO_STYLE_BROWSER_DLG_H__ */