2 * irreco - Ir Remote Control
3 * Copyright (C) 2008 Pekka Gehör (pegu6@msn.com)
4 * Joni Kokko (t5kojo01@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_THEME_MANAGER_DLG_H_TYPEDEF__
33 #define __IRRECO_THEME_MANAGER_DLG_H_TYPEDEF__
37 #define IRRECO_TYPE_THEME_MANAGER_DLG irreco_theme_manager_dlg_get_type()
38 #define IRRECO_THEME_MANAGER_DLG(obj) \
39 (G_TYPE_CHECK_INSTANCE_CAST ((obj), IRRECO_TYPE_THEME_MANAGER_DLG,\ IrrecoThemeManagerDlg))
40 #define IRRECO_THEME_MANAGER_DLG_CLASS(klass) \
41 (G_TYPE_CHECK_CLASS_CAST ((klass), IRRECO_TYPE_THEME_MANAGER_DLG,\ IrrecoThemeManagerDlgClass))
42 #define IRRECO_IS_THEME_MANAGER_DLG(obj) \
43 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IRRECO_TYPE_THEME_MANAGER_DLG))
44 #define IRRECO_IS_THEME_MANAGER_DLG_CLASS(klass) \
45 (G_TYPE_CHECK_CLASS_TYPE ((klass), IRRECO_TYPE_THEME_MANAGER_DLG))
46 #define IRRECO_THEME_MANAGER_DLG_GET_CLASS(obj) \
47 (G_TYPE_INSTANCE_GET_CLASS ((obj), IRRECO_TYPE_THEME_MANAGER_DLG, \ IrrecoThemeManagerDlgClass))
51 #define IRRECO_TYPE_THEME_MANAGER_DLG (irreco_theme_manager_dlg_get_type ())
52 #define IRRECO_THEME_MANAGER_DLG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
53 IRRECO_TYPE_THEME_MANAGER_DLG, IrrecoThemeManagerDlg))
54 #define IRRECO_THEME_MANAGER_DLG_CLASS(klass) \
55 (G_TYPE_CHECK_CLASS_CAST ((klass), IRRECO_TYPE_THEME_MANAGER_DLG, \
56 IrrecoThemeManagerDlgClass))
57 #define IRRECO_IS_THEME_MANAGER_DLG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
58 IRRECO_TYPE_THEME_MANAGER_DLG))
59 #define IRRECO_IS_THEME_MANAGER_DLG_CLASS(klass) \
60 (G_TYPE_CHECK_CLASS_TYPE ((klass), IRRECO_TYPE_THEME_MANAGER_DLG))
61 #define IRRECO_THEME_MANAGER_DLG_GET_CLASS(obj) \
62 (G_TYPE_INSTANCE_GET_CLASS ((obj), IRRECO_TYPE_THEME_MANAGER_DLG, \
63 IrrecoThemeManagerDlgClass))
69 typedef struct _IrrecoThemeManagerDlg IrrecoThemeManagerDlg
;
70 typedef struct _IrrecoThemeManagerDlgClass IrrecoThemeManagerDlgClass
;
72 #endif /* __IRRECO_THEME_MANAGER_DLG_H_TYPEDEF__ */
76 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
78 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
79 #ifndef __IRRECO_THEME_MANAGER_DLG_H__
80 #define __IRRECO_THEME_MANAGER_DLG_H__
82 /*#include "irreco_dlg.h"*/
83 #include "irreco_data.h"
84 #include "irreco_internal_dlg.h"
85 #include "irreco_internal_widget.h"
86 #include "irreco_theme_upload_dlg.h"
87 #include "irreco_webdb_cache.h"
89 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
91 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
93 struct _IrrecoThemeManagerDlg
{
96 IrrecoInternalDlg parent
;
98 IrrecoData
*irreco_data
;
99 GtkWidget
*theme_image
;
101 GtkTreeStore
*tree_store
;
102 GtkTreeView
*tree_view
;
104 GdkPixbuf
*preview_button
;
107 IrrecoWebdbTheme
*webdb_theme
;
108 GtkTreeStore
*version_store
;
109 gint selected_theme_id
;
111 GtkWidget
*download_dialog
;
112 gint theme_loader_index
;
114 GtkWidget
*theme_creator
;
115 GtkWidget
*label_creator
;
116 GtkWidget
*theme_name
;
117 GtkWidget
*theme_versions
;
118 GtkWidget
*theme_downloaded
;
119 GtkWidget
*label_download
;
120 GtkWidget
*theme_comment
;
121 GtkWidget
*config_uploaded
;
122 GtkWidget
*config_download_count
;
124 GtkWidget
*refresh_button
;
125 GtkWidget
*upload_button
;
126 GtkWidget
*download_button
;
127 GtkWidget
*clear_button
;
128 GtkWidget
*select_label
;
129 GtkWidget
*theme_info_alignment
;
134 gchar
*delete_theme_name
;
135 GtkWidget
*label_combobox
;
136 GtkWidget
*label_versio
;
137 /** The loaded items are childern of this iter.*/
138 GtkTreeIter
*loader_parent_iter
;
139 GtkTreeIter
*loader_iter
;
144 struct _IrrecoThemeManagerDlgClass
{
145 IrrecoInternalDlgClass parent_class
;
148 struct _IrrecoThemeManagerDlgClass {
149 IrrecoInternalDlgClass parent_class;
152 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
154 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
158 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
160 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
161 GType
irreco_theme_manager_dlg_get_type(void);
162 GtkWidget
*irreco_theme_manager_dlg_new(IrrecoData
*irreco_data
,
164 void irreco_theme_manager_dlg_set_irreco_data(IrrecoThemeManagerDlg
*self
,
165 IrrecoData
*irreco_data
);
166 void irreco_show_theme_manager_dlg(IrrecoData
*irreco_data
, GtkWindow
*parent
);
168 #endif /* __IRRECO_THEME_MANAGER_DLG_H__ */