clean code and changed version nro.
[irreco.git] / irreco / src / core / irreco_theme_creator_dlg.h
blob46b37bd5b87c51f28bdd995e5c925110ddb5f2e8
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_theme_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_theme_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 /**
21 * @addtogroup IrrecoThemeCreatorDlg
22 * @{
25 /**
26 * @file
27 * Header file of @ref IrrecoThemeCreatorDlg.
30 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
31 /* Typedef */
32 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
34 * Make sure that typedefs are available before we include anything elese.
36 * This makes sure that whatever other structures that depend on structures
37 * defined in this file will compile OK recardles of header inclusion order.
39 #ifndef __IRRECO_THEME_CREATOR_DLG_H_TYPEDEF__
40 #define __IRRECO_THEME_CREATOR_DLG_H_TYPEDEF__
42 #define IRRECO_TYPE_THEME_CREATOR_DLG (irreco_theme_creator_dlg_get_type ())
43 #define IRRECO_THEME_CREATOR_DLG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IRRECO_TYPE_THEME_CREATOR_DLG, IrrecoThemeCreatorDlg))
44 #define IRRECO_THEME_CREATOR_DLG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IRRECO_TYPE_THEME_CREATOR_DLG, IrrecoThemeCreatorDlgClass))
45 #define IRRECO_IS_THEME_CREATOR_DLG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IRRECO_TYPE_THEME_CREATOR_DLG))
46 #define IRRECO_IS_THEME_CREATOR_DLG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IRRECO_TYPE_THEME_CREATOR_DLG))
47 #define IRRECO_THEME_CREATOR_DLG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IRRECO_TYPE_THEME_CREATOR_DLG, IrrecoThemeCreatorDlgClass))
49 typedef struct _IrrecoThemeCreatorDlgClass IrrecoThemeCreatorDlgClass;
50 typedef struct _IrrecoThemeCreatorDlg IrrecoThemeCreatorDlg;
52 #endif /* __IRRECO_THEME_CREATOR_DLG_H_TYPEDEF__ */
55 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
56 /* Include */
57 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
58 #ifndef __IRRECO_THEME_CREATOR_DLG_H__
59 #define __IRRECO_THEME_CREATOR_DLG_H__
60 #include "irreco.h"
61 #include "irreco_internal_dlg.h"
62 #include "irreco_button.h"
63 #include "irreco_bg_browser_widget.h"
64 #include "irreco_button_browser_widget.h"
65 #include "irreco_background_creator_dlg.h"
66 #include "irreco_button_creator_dlg.h"
67 #include "irreco_theme_creator_backgrounds.h"
68 #include "irreco_theme_save_dlg.h"
69 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
70 /* Datatypes */
71 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
75 struct _IrrecoThemeCreatorDlgClass
77 IrrecoInternalDlgClass parent_class;
81 struct _IrrecoThemeCreatorDlg
84 IrrecoInternalDlg parent_instance;
85 GtkWindow *parent_window;
86 IrrecoTheme *theme;
87 IrrecoData *irreco_data;
88 GtkWidget *notebook;
90 /*Buttons*/
91 GtkWidget *cancel_button;
92 GtkWidget *save_button;
93 GtkWidget *add_button;
94 GtkWidget *edit_button;
95 GtkWidget *delete_button;
97 GString *filename;
99 IrrecoThemeButton *preview_button;
101 GtkWidget *theme_bg;
103 /*ABOUT*/
104 GtkWidget *entry_author;
105 GtkWidget *entry_name;
106 GtkWidget *textview_comments;
107 GtkWidget *preview_image;
108 GtkTextBuffer *buffer_comments;
109 gchar *preview_name;
110 GtkWidget *preview_event_box;
112 /* BUTTONS */
113 GtkWidget *buttons;
114 GtkWidget *hbox_buttons;
115 /* BACKGROUNDS */
116 GtkWidget *backgrounds;
117 GtkWidget *hbox_backgrounds;
119 gint loader_state;
120 gint loader_func_id;
127 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
128 /* Macro */
129 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
133 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
134 /* Prototypes */
135 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
137 GType irreco_theme_creator_dlg_get_type (void);
138 gboolean irreco_theme_creator_dlg_run(GtkWindow *parent_window,
139 IrrecoData *irreco_data,
140 IrrecoTheme *irreco_theme);
142 #endif /* __IRRECO_THEME_CREATOR_DLG_H__ */
144 /** @} */