clean code and changed version nro.
[irreco.git] / irreco / src / core / irreco_background_creator_dlg.h
blobb6ab29e11be38b9089a2d19405be24695c2b6101
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)
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"
46 #include "irreco_theme_creator_backgrounds.h"
48 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
49 /* Datatypes */
50 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
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;
64 GtkWidget *entry_name;
65 GtkWidget *select_button;
66 GtkWidget *preview_image;
67 GtkWidget *label_size;
68 /* Buttons */
69 GtkWidget *cancel_button;
70 GtkWidget *add_button;
72 GtkWidget *preview;
73 IrrecoBgBrowserWidget *theme_bg_browser;
74 GString *filename;
76 gint loader_state;
77 gint loader_func_id;
81 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
82 /* Macro */
83 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
85 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
86 /* Prototypes */
87 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
89 GType irreco_background_creator_dlg_get_type (void) G_GNUC_CONST;
90 gboolean irreco_background_creator_dlg_run(IrrecoData *irreco_data,
91 IrrecoTheme *irreco_theme,
92 GtkWindow *parent_window,
93 IrrecoThemeBg *bg);
95 #endif /* __IRRECO_BACKGROUND_CREATOR_DLG_H__ */
96 /** @} */