Added README.
[irreco.git] / irreco / src / core / irreco_background_dlg.h
blobad3a1cff86fc269a914ebd12f8377aa981b5281b
1 /*
2 * irreco - Ir Remote Control
3 * Copyright (C) 2007 Arto Karppinen (arto.karppinen@iki.fi),
4 * Harri Vattulainen (t5vaha01@students.oamk.fi)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 /**
22 * @addtogroup IrrecoBackgroundDlg
23 * @{
26 /**
27 * @file
28 * Header file of @ref IrrecoBackgroundDlg.
33 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
34 /* Typedef */
35 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
37 * Make sure that typedefs are available before we include anything elese.
39 * This makes sure that whatever other structures that depend on structures
40 * defined in this file will compile OK recardles of header inclusion order.
42 #ifndef __IRRECO_BACKGROUND_DLG_H_TYPEDEF__
43 #define __IRRECO_BACKGROUND_DLG_H_TYPEDEF__
45 #define IRRECO_TYPE_BACKGROUND_DLG (irreco_background_dlg_get_type ())
46 #define IRRECO_BACKGROUND_DLG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IRRECO_TYPE_BACKGROUND_DLG, IrrecoBackgroundDlg))
47 #define IRRECO_BACKGROUND_DLG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IRRECO_TYPE_BACKGROUND_DLG, IrrecoBackgroundDlgClass))
48 #define IRRECO_IS_BACKGROUND_DLG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IRRECO_TYPE_BACKGROUND_DLG))
49 #define IRRECO_IS_BACKGROUND_DLG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IRRECO_TYPE_BACKGROUND_DLG))
50 #define IRRECO_BACKGROUND_DLG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IRRECO_TYPE_BACKGROUND_DLG, IrrecoBackgroundDlgClass))
52 typedef struct _IrrecoBackgroundDlgClass IrrecoBackgroundDlgClass;
53 typedef struct _IrrecoBackgroundDlg IrrecoBackgroundDlg;
55 #endif /* __IRRECO_BACKGROUND_DLG_H_TYPEDEF__ */
59 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
60 /* Include */
61 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
62 #ifndef __IRRECO_BACKGROUND_DLG_H__
63 #define __IRRECO_BACKGROUND_DLG_H__
64 #include "irreco.h"
65 #include "irreco_internal_dlg.h"
66 #include "irreco_button.h"
67 #include "irreco_bg_browser_widget.h"
68 #include "irreco_button_browser_widget.h"
71 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
72 /* Datatypes */
73 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
75 struct _IrrecoBackgroundDlgClass
77 IrrecoInternalDlgClass parent_class;
80 struct _IrrecoBackgroundDlg
82 IrrecoInternalDlg parent_instance;
84 GtkWidget *preview;
85 GtkWidget *color_button;
86 GtkWidget *radio_default;
87 GtkWidget *radio_color;
88 GtkWidget *radio_image;
89 GtkWidget *notebook;
90 IrrecoBgBrowserWidget *theme_bg_browser;
91 IrrecoButtonLayoutBgType type;
92 GString *filename;
97 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
98 /* Macro */
99 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
103 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
104 /* Prototypes */
105 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
107 GType irreco_background_dlg_get_type (void) G_GNUC_CONST;
108 IrrecoBackgroundDlg *irreco_background_dlg_create(IrrecoData *irreco_data,
109 GtkWindow *parent_window);
110 void irreco_background_dlg_destroy(IrrecoBackgroundDlg * background_dlg);
111 gboolean irreco_background_dlg_run(IrrecoBackgroundDlg * background_dlg,
112 IrrecoButtonLayout * irreco_layout);
115 #endif /* __IRRECO_BACKGROUND_DLG_H__ */
117 /** @} */