Merge branch 'master' of ssh://pege77@mercury.wipsl.com/var/git/irreco-theme-editor
[irreco.git] / irreco / src / core / irreco_window_user.h
blob88dea5676bc465f396e07512b08d2e7a272c8e59
1 /*
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.
20 /**
21 * @addtogroup IrrecoWindowUser
22 * @{
25 /**
26 * @file
27 * Header file of @ref IrrecoWindowUser.
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_WINDOW_USER_H_TYPEDEF__
40 #define __IRRECO_WINDOW_USER_H_TYPEDEF__
41 typedef struct _IrrecoWindowUser IrrecoWindowUser;
42 #endif /* __IRRECO_WINDOW_USER_H_TYPEDEF__ */
46 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
47 /* Include */
48 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
49 #ifndef __IRRECO_WINDOW_USER_H__
50 #define __IRRECO_WINDOW_USER_H__
51 #include "irreco.h"
52 #include "irreco_data.h"
53 #include "irreco_button.h"
54 #include "irreco_window.h"
55 #include "irreco_window_manager.h"
59 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
60 /* Datatypes */
61 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
64 * Remote user interface data.
66 struct _IrrecoWindowUser {
68 IrrecoWindow *window;
69 IrrecoData *irreco_data;
70 IrrecoWindowManager *manager;
72 /* Buttonlayout being displayed. */
73 IrrecoButtonLayout *irreco_layout;
75 gboolean executing_cmd_chain;
76 IrrecoButton *execution_button;
78 GtkWidget *menu;
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 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
94 /* Prototypes */
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,
101 GtkWindow *parent);
104 #endif /* __IRRECO_WINDOW_USER_H__ */
106 /** @} */