1 /* PSPPIRE - a graphical user interface for PSPP.
2 Copyright (C) 2012 Free Software Foundation
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
18 This is an abstract base class upon which all (well almost all) windows in
19 psppire are based. The exceptions are transient windows such as the
20 splash screen and popups.
23 #ifndef __PSPPIRE_WINDOW_BASE_H__
24 #define __PSPPIRE_WINDOW_BASE_H__
28 #include <glib-object.h>
34 #define PSPPIRE_TYPE_WINDOW_BASE (psppire_window_base_get_type ())
36 #define PSPPIRE_WINDOW_BASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
37 PSPPIRE_TYPE_WINDOW_BASE, PsppireWindowBase))
39 #define PSPPIRE_WINDOW_BASE_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
40 PSPPIRE_TYPE_WINDOW_BASE, PsppireWindowBaseClass))
42 #define PSPPIRE_IS_WINDOW_BASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
43 PSPPIRE_TYPE_WINDOW_BASE))
45 #define PSPPIRE_IS_WINDOW_BASE_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
46 PSPPIRE_TYPE_WINDOW_BASE))
49 typedef struct _PsppireWindowBase PsppireWindowBase;
50 typedef struct _PsppireWindowBaseClass PsppireWindowBaseClass;
53 struct _PsppireWindowBase
61 struct _PsppireWindowBaseClass
63 GtkWindowClass parent_class;
68 GType psppire_window_base_get_type (void);
69 GType psppire_window_base_model_get_type (void);
73 #endif /* __PSPPIRE_WINDOW_BASE_H__ */