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_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/>.
21 * @addtogroup IrrecoThemeCreatorDlg
27 * Header file of @ref IrrecoThemeCreatorDlg.
30 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
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 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
57 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
58 #ifndef __IRRECO_THEME_CREATOR_DLG_H__
59 #define __IRRECO_THEME_CREATOR_DLG_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 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
71 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
75 struct _IrrecoThemeCreatorDlgClass
77 IrrecoInternalDlgClass parent_class
;
81 struct _IrrecoThemeCreatorDlg
84 IrrecoInternalDlg parent_instance
;
85 GtkWindow
*parent_window
;
87 IrrecoData
*irreco_data
;
91 GtkWidget
*cancel_button
;
92 GtkWidget
*save_button
;
93 GtkWidget
*add_button
;
94 GtkWidget
*edit_button
;
95 GtkWidget
*delete_button
;
99 IrrecoThemeButton
*preview_button
;
104 GtkWidget
*entry_author
;
105 GtkWidget
*entry_name
;
106 GtkWidget
*textview_comments
;
107 GtkWidget
*preview_image
;
108 GtkTextBuffer
*buffer_comments
;
110 GtkWidget
*preview_event_box
;
114 GtkWidget
*hbox_buttons
;
116 GtkWidget
*backgrounds
;
117 GtkWidget
*hbox_backgrounds
;
127 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
129 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
133 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
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__ */