2 * irreco - Ir Remote Control
3 * Copyright (C) 2007 Arto Karppinen (arto.karppinen@iki.fi)
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.
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 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
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 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
66 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
67 #ifndef __IRRECO_STYLE_BROWSER_DLG_H__
68 #define __IRRECO_STYLE_BROWSER_DLG_H__
70 #include "irreco_dlg.h"
71 #include "irreco_data.h"
75 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
77 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
79 struct _IrrecoStyleBrowserDlg
{
82 IrrecoData
*irreco_data
;
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
90 IrrecoStyleBrowserDlgLoading
*loading
;
95 struct _IrrecoStyleBrowserDlgLoading
{
96 IrrecoStyleBrowserDlg
*self
;
102 struct _IrrecoStyleBrowserDlgClass
{
103 IrrecoDlgClass parent_class
;
108 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
110 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
114 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
116 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
117 GType
irreco_style_browser_dlg_get_type (void);
118 GtkWidget
* irreco_style_browser_dlg_new(IrrecoData
*irreco_data
,
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
,
124 IrrecoButtonStyle
** style
);
126 #endif /* __IRRECO_STYLE_BROWSER_DLG_H__ */