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 * @addtogroup IrrecoButtonBrowserDlg
28 * Header file of @ref IrrecoButtonBrowserDlg.
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_DLG_H_TYPEDEF__
43 #define __IRRECO_BUTTON_BROWSER_DLG_H_TYPEDEF__
45 #define IRRECO_TYPE_BUTTON_BROWSER_DLG (irreco_button_browser_dlg_get_type ())
46 #define IRRECO_BUTTON_BROWSER_DLG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IRRECO_TYPE_BUTTON_BROWSER_DLG, IrrecoButtonBrowserDlg))
47 #define IRRECO_BUTTON_BROWSER_DLG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IRRECO_TYPE_BUTTON_BROWSER_DLG, IrrecoButtonBrowserDlgClass))
48 #define IRRECO_IS_BUTTON_BROWSER_DLG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IRRECO_TYPE_BUTTON_BROWSER_DLG))
49 #define IRRECO_IS_BUTTON_BROWSER_DLG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IRRECO_TYPE_BUTTON_BROWSER_DLG))
50 #define IRRECO_BUTTON_BROWSER_DLG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IRRECO_TYPE_BUTTON_BROWSER_DLG, IrrecoButtonBrowserDlgClass))
52 typedef struct _IrrecoButtonBrowserDlgClass IrrecoButtonBrowserDlgClass
;
53 typedef struct _IrrecoButtonBrowserDlg IrrecoButtonBrowserDlg
;
55 #endif /* __IRRECO_BUTTON_BROWSER_DLG_H_TYPEDEF__ */
59 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
61 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
62 #ifndef __IRRECO_BUTTON_BROWSER_DLG_H__
63 #define __IRRECO_BUTTON_BROWSER_DLG_H__
65 #include "irreco_internal_dlg.h"
66 #include "irreco_button.h"
67 #include "irreco_listbox_image.h"
71 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
73 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
75 struct _IrrecoButtonBrowserDlgClass
77 IrrecoInternalDlgClass parent_class
;
80 struct _IrrecoButtonBrowserDlg
82 IrrecoInternalDlg parent_instance
;
84 IrrecoData
*irreco_data
;
85 IrrecoTheme
*theme
; /* teema */
86 IrrecoThemeButton
*current_image
; /* valittu buttoni tai NULL */
87 IrrecoListboxImage
*images
;
89 gint loader_index
; /* index of button */
94 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
96 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
100 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
102 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
104 GType
irreco_button_browser_dlg_get_type (void) G_GNUC_CONST
;
105 void irreco_button_browser_dlg_destroy(IrrecoButtonBrowserDlg
* theme_upload_dlg
);
106 IrrecoThemeButton
*irreco_button_browser_dlg_run(GtkWindow
*parent_window
,
107 IrrecoData
*irreco_data
,
108 IrrecoTheme
*irreco_theme
);
111 #endif /* __IRRECO_BUTTON_BROWSER_DLG_H__ */