Added button image data transmission from
[irreco.git] / irreco / src / core / irreco_background_creator_dlg.h
blob8ff136282c6235f418c6842844a87ee1aa0321d9
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * irreco - Ir Remote Control
4 * Copyright (C) 2008 Pekka Gehör (pegu6@msn.com)
5 *
6 * irreco_background_creator_dlg.c is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * irreco_background_creator_dlg.c is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef __IRRECO_BACKGROUND_CREATOR_DLG_H_TYPEDEF__
21 #define __IRRECO_BACKGROUND_CREATOR_DLG_H_TYPEDEF__
23 #define IRRECO_TYPE_BACKGROUND_CREATOR_DLG (irreco_background_creator_dlg_get_type ())
24 #define IRRECO_BACKGROUND_CREATOR_DLG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IRRECO_TYPE_BACKGROUND_CREATOR_DLG, IrrecoBackgroundCreatorDlg))
25 #define IRRECO_BACKGROUND_CREATOR_DLG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IRRECO_TYPE_BACKGROUND_CREATOR_DLG, IrrecoBackgroundCreatorDlgClass))
26 #define IRRECO_IS_BACKGROUND_CREATOR_DLG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IRRECO_TYPE_BACKGROUND_CREATOR_DLG))
27 #define IRRECO_IS_BACKGROUND_CREATOR_DLG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IRRECO_TYPE_BACKGROUND_CREATOR_DLG))
28 #define IRRECO_BACKGROUND_CREATOR_DLG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IRRECO_TYPE_BACKGROUND_CREATOR_DLG, IrrecoBackgroundCreatorDlgClass))
30 typedef struct _IrrecoBackgroundCreatorDlgClass IrrecoBackgroundCreatorDlgClass;
31 typedef struct _IrrecoBackgroundCreatorDlg IrrecoBackgroundCreatorDlg;
33 #endif /* __IRRECO_BACKGROUND_CREATOR_DLG_H_TYPEDEF__ */
35 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
36 /* Include */
37 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
38 #ifndef __IRRECO_BACKGROUND_CREATOR_DLG_H__
39 #define __IRRECO_BACKGROUND_CREATOR_DLG_H__
40 #include "irreco.h"
41 #include "irreco_internal_dlg.h"
42 #include "irreco_bg_browser_widget.h"
43 #include "irreco_theme_creator_dlg.h"
44 #include "irreco_button.h"
45 #include "irreco_button_browser_widget.h"
47 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
48 /* Datatypes */
49 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
52 struct _IrrecoBackgroundCreatorDlgClass
54 IrrecoInternalDlgClass parent_class;
57 struct _IrrecoBackgroundCreatorDlg
59 IrrecoInternalDlg parent_instance;
60 IrrecoTheme *theme;
61 IrrecoData *irreco_data;
62 GtkWindow *parent_window;
63 GtkWidget *entry_name;
64 GtkWidget *select_button;
65 GtkWidget *preview_image;
67 GtkWidget *cancel_button;
68 GtkWidget *add_button;
70 GtkWidget *preview;
71 IrrecoBgBrowserWidget *theme_bg_browser;
72 GString *filename;
75 gint loader_state;
76 gint loader_func_id;
80 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
81 /* Macro */
82 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
86 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
87 /* Prototypes */
88 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
92 GType irreco_background_creator_dlg_get_type (void) G_GNUC_CONST;
93 IrrecoThemeBg *irreco_background_creator_dlg_run(IrrecoData *irreco_data,
94 IrrecoTheme * irreco_theme,
95 GtkWindow *parent_window,
96 IrrecoThemeBg *bg);
98 #endif /* __IRRECO_BACKGROUND_CREATOR_DLG_H__ */
99 /** @} */