]> git.sur5r.net Git - glabels/blob - glabels2/src/mdi.h
Initial revision
[glabels] / glabels2 / src / mdi.h
1 /*
2  *  (GLABELS) Label and Business Card Creation program for GNOME
3  *
4  *  mdi.h:  gLabels MDI module header file
5  *
6  *  Copyright (C) 2001-2002  Jim Evins <evins@snaught.com>.
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21  */
22
23 /*
24  * This file is based on gedit-mdi.h from gedit2:
25  *
26  * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence
27  * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi 
28  * Copyright (C) 2002  Paolo Maggi 
29  *
30  */
31 #ifndef __MDI_H__
32 #define __MDI_H__
33
34 #include <bonobo-mdi.h>
35
36 #define GL_TYPE_MDI                     (gl_mdi_get_type ())
37 #define GL_MDI(obj)                     (GTK_CHECK_CAST ((obj), GL_TYPE_MDI, glMDI))
38 #define GL_MDI_CLASS(klass)             (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_MDI, glMDIClass))
39 #define GL_IS_MDI(obj)          (GTK_CHECK_TYPE ((obj), GL_TYPE_MDI))
40 #define GL_IS_MDI_CLASS(klass)          (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_MDI))
41 #define GL_MDI_GET_CLASS(obj)   (GTK_CHECK_GET_CLASS ((obj), GL_TYPE_MDI, glMdiClass))
42
43
44 typedef struct _glMDI                   glMDI;
45 typedef struct _glMDIClass              glMDIClass;
46
47 typedef struct _glMDIPrivate            glMDIPrivate;
48
49 struct _glMDI
50 {
51         BonoboMDI mdi;
52         
53         glMDIPrivate *priv;
54 };
55
56 struct _glMDIClass
57 {
58         BonoboMDIClass parent_class;
59 };
60
61
62 GtkType         gl_mdi_get_type                            (void) G_GNUC_CONST;
63
64 glMDI*          gl_mdi_new                                 (void);
65
66 void            gl_mdi_set_active_window_title             (BonoboMDI *mdi);
67
68 void            gl_mdi_update_ui_according_to_preferences  (glMDI *mdi);
69
70 void            gl_mdi_set_active_window_verbs_sensitivity (BonoboMDI *mdi);
71
72 #endif /* __MDI_H__ */
73