Added README.
[irreco.git] / irreco / src / core / irreco_theme_creator_dlg.h
bloba73f407bd323a5e0bbdda7741a7d70809048c84f
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 *save_button;
92 GtkWidget *add_button;
93 GtkWidget *edit_button;
94 GtkWidget *delete_button;
96 GString *filename;
98 IrrecoThemeButton *preview_button;
100 GtkWidget *theme_bg;
102 /*ABOUT*/
103 GtkWidget *entry_author;
104 GtkWidget *entry_name;
105 GtkWidget *textview_comments;
106 GtkWidget *preview_image;
107 GtkTextBuffer *buffer_comments;
108 gchar *preview_name;
109 GtkWidget *preview_event_box;
111 /* BUTTONS */
112 GtkWidget *buttons;
113 GtkWidget *hbox_buttons;
114 /* BACKGROUNDS */
115 GtkWidget *backgrounds;
116 GtkWidget *hbox_backgrounds;
118 gint loader_state;
119 gint loader_func_id;
126 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
127 /* Macro */
128 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
132 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
133 /* Prototypes */
134 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
136 GType irreco_theme_creator_dlg_get_type (void);
137 gboolean irreco_theme_creator_dlg_run(GtkWindow *parent_window,
138 IrrecoData *irreco_data,
139 IrrecoTheme *irreco_theme);
141 #endif /* __IRRECO_THEME_CREATOR_DLG_H__ */
143 /** @} */