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 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 * @addtogroup IrrecoInputDlg
27 * Header file of @ref IrrecoInputDlg.
32 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
34 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
36 * Make sure that typedefs are available before we include anything elese.
38 * This makes sure that whatever other structures that depend on structures
39 * defined in this file will compile OK recardles of header inclusion order.
41 #ifndef __IRRECO_INPUT_DLG_H_TYPEDEF__
42 #define __IRRECO_INPUT_DLG_H_TYPEDEF__
44 #define IRRECO_TYPE_INPUT_DLG irreco_input_dlg_get_type()
45 #define IRRECO_INPUT_DLG(obj) \
46 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
47 IRRECO_TYPE_INPUT_DLG, IrrecoInputDlg))
48 #define IRRECO_INPUT_DLG_CLASS(klass) \
49 (G_TYPE_CHECK_CLASS_CAST ((klass), \
50 IRRECO_TYPE_INPUT_DLG, IrrecoInputDlgClass))
51 #define IRRECO_IS_INPUT_DLG(obj) \
52 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
53 IRRECO_TYPE_INPUT_DLG))
54 #define IRRECO_IS_INPUT_DLG_CLASS(klass) \
55 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
56 IRRECO_TYPE_INPUT_DLG))
57 #define IRRECO_INPUT_DLG_GET_CLASS(obj) \
58 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
59 IRRECO_TYPE_INPUT_DLG, IrrecoInputDlgClass))
61 typedef struct _IrrecoInputDlg IrrecoInputDlg
;
62 typedef struct _IrrecoInputDlgClass IrrecoInputDlgClass
;
64 #endif /* __IRRECO_INPUT_DLG_H_TYPEDEF__ */
68 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
70 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
71 #ifndef __IRRECO_INPUT_DLG_H__
72 #define __IRRECO_INPUT_DLG_H__
74 #include "irreco_dlg.h"
78 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
80 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
81 struct _IrrecoInputDlg
{
88 struct _IrrecoInputDlgClass
{
89 IrrecoDlgClass parent_class
;
94 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
96 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
100 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
102 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
103 GType
irreco_input_dlg_get_type(void);
104 GtkWidget
* irreco_input_dlg_new(GtkWindow
*parent
,
105 const gchar
*window_title
);
106 void irreco_input_dlg_set_ok_button_text(IrrecoInputDlg
*self
,
108 void irreco_input_dlg_set_label(IrrecoInputDlg
*self
,
110 void irreco_input_dlg_set_entry(IrrecoInputDlg
*self
,
112 const gchar
* irreco_input_dlg_get_entry(IrrecoInputDlg
*self
);
113 gboolean
irreco_show_input_dlg(IrrecoInputDlg
*self
);
116 #endif /* __IRRECO_INPUT_DLG_H__ */