Mostly minor fixes up until version 0.8.10.
[irreco.git] / irreco / src / core / irreco_window_user.h
blob89c432a5354dc9c0d76060272801fd04f524bdaf
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"
56 #include "irreco_remote_download_dlg.h"
57 #include "irreco_remote_upload_dlg.h"
61 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
62 /* Datatypes */
63 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
66 * Remote user interface data.
68 struct _IrrecoWindowUser {
70 IrrecoWindow *window;
71 IrrecoData *irreco_data;
72 IrrecoWindowManager *manager;
74 /* Buttonlayout being displayed. */
75 IrrecoButtonLayout *irreco_layout;
77 gboolean executing_cmd_chain;
78 IrrecoButton *execution_button;
80 GtkWidget *menu;
81 GtkWidget *menu_new_remote;
82 GtkWidget *menu_download_remote;
83 GtkWidget *menu_edit_remote;
84 GtkWidget *menu_rename_remote;
85 GtkWidget *menu_upload_remote;
86 GtkWidget *menu_delete_remote;
87 GtkWidget *menu_show_remote;
88 GtkWidget *menu_fullscreen;
89 GtkWidget *menu_about;
91 gulong menu_fullscreen_handler;
96 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
97 /* Prototypes */
98 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
99 IrrecoWindowUser *irreco_window_user_create(IrrecoWindowManager * manager);
100 void irreco_window_user_destroy(IrrecoWindowUser * user_window);
101 void irreco_window_user_set_layout(IrrecoWindowUser * user_window,
102 IrrecoButtonLayout * layout);
103 gboolean irreco_window_user_create_new_remote(IrrecoData *irreco_data,
104 GtkWindow *parent);
107 #endif /* __IRRECO_WINDOW_USER_H__ */
109 /** @} */