2 * irreco - Ir Remote Control
3 * Copyright (C) 2007 Arto Karppinen (arto.karppinen@iki.fi)
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 * @addtogroup IrrecoHardkeyDlg
26 * Header file of @ref IrrecoHardkeyDlg.
31 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
33 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
35 * Make sure that typedefs are available before we include anything elese.
37 * This makes sure that whatever other structures that depend on structures
38 * defined in this file will compile OK recardles of header inclusion order.
40 #ifndef __IRRECO_HARDKEY_DLG_H_TYPEDEF__
41 #define __IRRECO_HARDKEY_DLG_H_TYPEDEF__
43 typedef struct _IrrecoHardkeyDlg IrrecoHardkeyDlg
;
44 typedef struct _IrrecoHardkeyDlgClass IrrecoHardkeyDlgClass
;
46 #define IRRECO_TYPE_HARDKEY_DLG irreco_hardkey_dlg_get_type()
48 #define IRRECO_HARDKEY_DLG(obj) \
49 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
50 IRRECO_TYPE_HARDKEY_DLG, IrrecoHardkeyDlg))
52 #define IRRECO_HARDKEY_DLG_CLASS(klass) \
53 (G_TYPE_CHECK_CLASS_CAST ((klass), \
54 IRRECO_TYPE_HARDKEY_DLG, IrrecoHardkeyDlgClass))
56 #define IRRECO_IS_HARDKEY_DLG(obj) \
57 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
58 IRRECO_TYPE_HARDKEY_DLG))
60 #define IRRECO_IS_HARDKEY_DLG_CLASS(klass) \
61 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
62 IRRECO_TYPE_HARDKEY_DLG))
64 #define IRRECO_HARDKEY_DLG_GET_CLASS(obj) \
65 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
66 IRRECO_TYPE_HARDKEY_DLG, IrrecoHardkeyDlgClass))
68 #endif /* __IRRECO_HARDKEY_DLG_H_TYPEDEF__ */
72 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
74 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
75 #ifndef __IRRECO_HARDKEY_DLG_H__
76 #define __IRRECO_HARDKEY_DLG_H__
78 #include "irreco_internal_dlg.h"
79 #include "irreco_data.h"
83 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
85 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
87 struct _IrrecoHardkeyDlg
{
88 IrrecoInternalDlg parent
;
93 IrrecoHardkeyMap
*old_hardkey_map
;
95 /* The modified copies command chains are stored here until
96 the user clicks OK. If user click CANCEL, these will be
98 IrrecoHardkeyMap
*new_hardkey_map
;
101 struct _IrrecoHardkeyDlgClass
{
102 IrrecoInternalDlgClass parent_class
;
107 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
109 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
113 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
115 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
116 GtkWidget
* irreco_hardkey_dlg_new( GtkWindow
*parent
,
117 IrrecoData
*irreco_data
,
118 IrrecoHardkeyMap
*hardkey_map
);
119 void irreco_hardkey_dlg_set_hardkey_map(
120 IrrecoHardkeyDlg
*self
,
121 IrrecoHardkeyMap
*hardkey_map
);
122 void irreco_hardkey_dlg_apply_changes(
123 IrrecoHardkeyDlg
*self
);
127 #endif /* __IRRECO_HARDKEY_DLG_H__ */