2 * irreco - Ir Remote Control
3 * Copyright (C) 2007 Arto Karppinen (arto.karppinen@iki.fi),
4 * Harri Vattulainen (t5vaha01@students.oamk.fi)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
24 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
26 * Make sure that typedefs are available before we include anything elese.
28 * This makes sure that whatever other structures that depend on structures
29 * defined in this file will compile OK recardles of header inclusion order.
32 #ifndef __IRRECO_STYLE_BROWSER_DLG_H_TYPEDEF__
33 #define __IRRECO_STYLE_BROWSER_DLG_H_TYPEDEF__
35 typedef struct _IrrecoStyleBrowserDlg IrrecoStyleBrowserDlg
;
36 typedef struct _IrrecoStyleBrowserDlgLoading IrrecoStyleBrowserDlgLoading
;
37 typedef struct _IrrecoStyleBrowserDlgClass IrrecoStyleBrowserDlgClass
;
39 #define IRRECO_TYPE_STYLE_BROWSER_DLG irreco_style_browser_dlg_get_type()
41 #define IRRECO_STYLE_BROWSER_DLG(obj) \
42 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
43 IRRECO_TYPE_STYLE_BROWSER_DLG, IrrecoStyleBrowserDlg))
45 #define IRRECO_STYLE_BROWSER_DLG_CLASS(klass) \
46 (G_TYPE_CHECK_CLASS_CAST ((klass), \
47 IRRECO_TYPE_STYLE_BROWSER_DLG, IrrecoStyleBrowserDlgClass))
49 #define IRRECO_IS_STYLE_BROWSER_DLG(obj) \
50 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
51 IRRECO_TYPE_STYLE_BROWSER_DLG))
53 #define IRRECO_IS_STYLE_BROWSER_DLG_CLASS(klass) \
54 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
55 IRRECO_TYPE_STYLE_BROWSER_DLG))
57 #define IRRECO_STYLE_BROWSER_DLG_GET_CLASS(obj) \
58 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
59 IRRECO_TYPE_STYLE_BROWSER_DLG, IrrecoStyleBrowserDlgClass))
61 #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"
72 #include "irreco_listbox.h"
73 #include "irreco_listbox_text.h"
74 #include "irreco_button_browser_widget.h"
77 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
79 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
81 struct _IrrecoStyleBrowserDlg
{
83 IrrecoData
*irreco_data
;
84 IrrecoThemeButton
*style
;
85 IrrecoButtonBrowserWidget
*button_widget
;
86 IrrecoStyleBrowserDlgLoading
*loading
;
90 struct _IrrecoStyleBrowserDlgLoading
{
91 IrrecoStyleBrowserDlg
*self
;
97 struct _IrrecoStyleBrowserDlgClass
{
98 IrrecoDlgClass parent_class
;
102 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
104 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
106 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
108 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
109 GType
irreco_style_browser_dlg_get_type (void);
110 GtkWidget
* irreco_style_browser_dlg_new(IrrecoData
*irreco_data
,
112 void irreco_style_browser_dlg_set_irreco_data(IrrecoStyleBrowserDlg
*self
,
113 IrrecoData
*irreco_data
);
114 gboolean
irreco_show_style_browser_dlg(IrrecoData
*irreco_data
,
116 IrrecoThemeButton
** style
);
118 #endif /* __IRRECO_STYLE_BROWSER_DLG_H__ */