1fdb75156752a61a85f3af066c0a5b7158fa8cc7
[rugen] / src / page.h
1 /*
2 * page.h -- Page handling
3 * Copyright (C) 2002-2003 Charles Yates <charles.yates@pandora.be>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
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.
14 *
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19
20 #ifndef _DV1394_PAGE_
21 #define _DV1394_PAGE_
22
23 #include "dv1394app.h"
24 #include <gtk/gtk.h>
25
26 /** Page structure.
27 */
28
29 struct page_t
30 {
31 GtkWidget *( *get_widget )( page );
32 void ( *get_toolbar_info )( page, GtkIconSize, GtkWidget **, char ** );
33 void ( *on_connect )( page );
34 void ( *on_disconnect )( page );
35 void ( *on_unit_change )( page, int );
36 void ( *show_status )( page, valerie_status );
37 void ( *close )( page );
38 };
39
40 /* page api */
41 extern GtkWidget *page_get_widget( page );
42 extern void page_get_toolbar_info( page, GtkIconSize, GtkWidget **, char ** );
43 extern void page_on_connect( page );
44 extern void page_on_disconnect( page );
45 extern void page_on_unit_change( page, int );
46 extern void page_show_status( page, valerie_status );
47 extern void page_close( page );
48
49 /* page factories */
50 extern page page_clips_init( dv1394app );
51 extern page page_command_init( dv1394app );
52 extern page page_status_init( dv1394app );
53 extern page page_units_init( dv1394app );
54
55 #endif