1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
3 * irreco - Ir Remote Control
4 * Copyright (C) 2008 Pekka Gehör (pegu6@msn.com)
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 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
37 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
38 #ifndef __IRRECO_BACKGROUND_CREATOR_DLG_H__
39 #define __IRRECO_BACKGROUND_CREATOR_DLG_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 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
49 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
52 struct _IrrecoBackgroundCreatorDlgClass
54 IrrecoInternalDlgClass parent_class
;
57 struct _IrrecoBackgroundCreatorDlg
59 IrrecoInternalDlg parent_instance
;
61 IrrecoData
*irreco_data
;
62 GtkWindow
*parent_window
;
64 GtkWidget
*entry_name
;
65 GtkWidget
*select_button
;
66 GtkWidget
*preview_image
;
67 GtkWidget
*label_size
;
69 GtkWidget
*cancel_button
;
70 GtkWidget
*add_button
;
73 IrrecoBgBrowserWidget
*theme_bg_browser
;
81 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
83 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
87 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
89 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
93 GType
irreco_background_creator_dlg_get_type (void) G_GNUC_CONST
;
94 gboolean
irreco_background_creator_dlg_run(IrrecoData
*irreco_data
,
95 IrrecoTheme
*irreco_theme
,
96 GtkWindow
*parent_window
,
99 #endif /* __IRRECO_BACKGROUND_CREATOR_DLG_H__ */