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 IrrecoThemeUploadDlg
28 * Header file of @ref IrrecoThemeUploadDlg.
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_THEME_UPLOAD_DLG_H_TYPEDEF__
43 #define __IRRECO_THEME_UPLOAD_DLG_H_TYPEDEF__
45 #define IRRECO_TYPE_THEME_UPLOAD_DLG (irreco_theme_upload_dlg_get_type ())
46 #define IRRECO_THEME_UPLOAD_DLG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IRRECO_TYPE_THEME_UPLOAD_DLG, IrrecoThemeUploadDlg))
47 #define IRRECO_THEME_UPLOAD_DLG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IRRECO_TYPE_THEME_UPLOAD_DLG, IrrecoThemeUploadDlgClass))
48 #define IRRECO_IS_THEME_UPLOAD_DLG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IRRECO_TYPE_THEME_UPLOAD_DLG))
49 #define IRRECO_IS_THEME_UPLOAD_DLG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IRRECO_TYPE_THEME_UPLOAD_DLG))
50 #define IRRECO_THEME_UPLOAD_DLG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IRRECO_TYPE_THEME_UPLOAD_DLG, IrrecoThemeUploadDlgClass))
52 typedef struct _IrrecoThemeUploadDlgClass IrrecoThemeUploadDlgClass
;
53 typedef struct _IrrecoThemeUploadDlg IrrecoThemeUploadDlg
;
55 #endif /* __IRRECO_THEME_UPLOAD_DLG_H_TYPEDEF__ */
59 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
61 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
62 #ifndef __IRRECO_THEME_UPLOAD_DLG_H__
63 #define __IRRECO_THEME_UPLOAD_DLG_H__
65 #include "irreco_internal_dlg.h"
66 #include "irreco_button.h"
67 #include "irreco_bg_browser_widget.h"
68 #include "irreco_button_browser_widget.h"
69 #include "irreco_login_dlg.h"
70 #include "irreco_webdb_client.h"
74 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
76 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
78 struct _IrrecoThemeUploadDlgClass
80 IrrecoInternalDlgClass parent_class
;
83 struct _IrrecoThemeUploadDlg
85 IrrecoInternalDlg parent_instance
;
87 GtkWindow
*parent_window
;
88 IrrecoData
*irreco_data
;
89 const gchar
*theme_name
;
95 GtkWidget
*entry_name
;
96 GtkWidget
*textview_comments
;
97 GtkTextBuffer
*buffer_comments
;
98 IrrecoThemeButton
*preview_button
;
99 GtkWidget
*preview_image
;
100 GtkWidget
*preview_event_box
;
102 gboolean uploading_errors
;
104 gint banner_max
; /* num. of buttons and bg's */
105 gint banner_index
; /* num. of img curr. uploading */
108 gboolean uploading_started
; /* is theme being uploaded */
111 IrrecoWebdbClient
*client
;
118 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
120 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
124 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
126 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
128 GType
irreco_theme_upload_dlg_get_type (void) G_GNUC_CONST
;
129 void irreco_theme_upload_dlg_destroy(IrrecoThemeUploadDlg
* theme_upload_dlg
);
130 gboolean
irreco_theme_upload_dlg_run(GtkWindow
*parent_window
,
131 IrrecoData
*irreco_data
,
132 IrrecoTheme
*irreco_theme
);
135 #endif /* __IRRECO_THEME_UPLOAD_DLG_H__ */