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 IrrecoWindowUser
27 * Header file of @ref IrrecoWindowUser.
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_WINDOW_USER_H_TYPEDEF__
40 #define __IRRECO_WINDOW_USER_H_TYPEDEF__
41 typedef struct _IrrecoWindowUser IrrecoWindowUser
;
42 #endif /* __IRRECO_WINDOW_USER_H_TYPEDEF__ */
46 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
48 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
49 #ifndef __IRRECO_WINDOW_USER_H__
50 #define __IRRECO_WINDOW_USER_H__
52 #include "irreco_data.h"
53 #include "irreco_button.h"
54 #include "irreco_window.h"
55 #include "irreco_window_manager.h"
59 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
61 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
64 * Remote user interface data.
66 struct _IrrecoWindowUser
{
69 IrrecoData
*irreco_data
;
70 IrrecoWindowManager
*manager
;
72 /* Buttonlayout being displayed. */
73 IrrecoButtonLayout
*irreco_layout
;
75 gboolean executing_cmd_chain
;
76 IrrecoButton
*execution_button
;
79 GtkWidget
*menu_new_remote
;
80 GtkWidget
*menu_edit_remote
;
81 GtkWidget
*menu_rename_remote
;
82 GtkWidget
*menu_upload_remote
;
83 GtkWidget
*menu_delete_remote
;
84 GtkWidget
*menu_show_remote
;
85 GtkWidget
*menu_fullscreen
;
86 GtkWidget
*menu_about
;
88 gulong menu_fullscreen_handler
;
93 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
95 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
96 IrrecoWindowUser
*irreco_window_user_create(IrrecoWindowManager
* manager
);
97 void irreco_window_user_destroy(IrrecoWindowUser
* user_window
);
98 void irreco_window_user_set_layout(IrrecoWindowUser
* user_window
,
99 IrrecoButtonLayout
* layout
);
100 gboolean
irreco_window_user_create_new_remote(IrrecoData
*irreco_data
,
104 #endif /* __IRRECO_WINDOW_USER_H__ */