2 * irreco - Ir Remote Control
3 * Copyright (C) 2008 Joni Kokko (t5kojo01@students.oamk.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 * @addtogroup IrrecoButtonBrowserWidget
28 * Header file of @ref IrrecoButtonBrowserWidget.
33 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
35 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
37 * Make sure that typedefs are available before we include anything elese.
39 * This makes sure that whatever other structures that depend on structures
40 * defined in this file will compile OK recardles of header inclusion order.
42 #ifndef __IRRECO_BUTTON_BROWSER_WIDGET_H_TYPEDEF__
43 #define __IRRECO_BUTTON_BROWSER_WIDGET_H_TYPEDEF__
45 typedef struct _IrrecoButtonBrowserWidget IrrecoButtonBrowserWidget
;
46 typedef struct _IrrecoButtonBrowserWidgetClass IrrecoButtonBrowserWidgetClass
;
48 #define IRRECO_TYPE_BUTTON_BROWSER_WIDGET irreco_button_browser_widget_get_type()
50 #define IRRECO_BUTTON_BROWSER_WIDGET(obj) \
51 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
52 IRRECO_TYPE_BUTTON_BROWSER_WIDGET, IrrecoButtonBrowserWidget))
54 #define IRRECO_BUTTON_BROWSER_WIDGET_CLASS(klass) \
55 (G_TYPE_CHECK_CLASS_CAST ((klass), \
56 IRRECO_TYPE_BUTTON_BROWSER_WIDGET, IrrecoButtonBrowserWidgetClass))
58 #define IRRECO_IS_BUTTON_BROWSER_WIDGET(obj) \
59 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
60 IRRECO_TYPE_BUTTON_BROWSER_WIDGET))
62 #define IRRECO_IS_BUTTON_BROWSER_WIDGET_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE ((klass), IRRECO_TYPE_BUTTON_BROWSER_WIDGET))
65 #define IRRECO_BUTTON_BROWSER_WIDGET_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 IRRECO_TYPE_BUTTON_BROWSER_WIDGET, IrrecoButtonBrowserWidgetClass))
69 #endif /* __IRRECO_BUTTON_BROWSER_WIDGET_H_TYPEDEF__ */
73 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
75 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
76 #ifndef __IRRECO_BUTTON_BROWSER_WIDGET_H__
77 #define __IRRECO_BUTTON_BROWSER_WIDGET_H__
79 #include "irreco_data.h"
80 #include "irreco_listbox_text.h"
81 #include "irreco_listbox_image.h"
82 #include <glib-object.h>
86 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
88 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
90 struct _IrrecoButtonBrowserWidget
{
92 IrrecoData
*irreco_data
;
93 IrrecoListboxText
*themes
;
94 IrrecoListboxImage
*images
;
95 GString
*current_theme
;
96 IrrecoThemeButton
*current_image
;
105 struct _IrrecoButtonBrowserWidgetClass
{
106 GtkVBoxClass parent_class
;
110 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
112 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
116 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
118 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
120 GType
irreco_button_browser_widget_get_type(void);
121 IrrecoButtonBrowserWidget
*irreco_button_browser_widget_new(IrrecoData
*irreco_data
);
122 void irreco_button_browser_widget_destroy(IrrecoButtonBrowserWidget
* self
);
124 #endif /* __IRRECO_BUTTON_BROWSER_WIDGET_H__ */