X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-window-base.h;fp=src%2Fui%2Fgui%2Fpsppire-window-base.h;h=5453bb78f8674f467d297a89246ed67f00dc11d6;hb=b367f5ac49aa1b4f0ea7d76e322e40b824f607b9;hp=0000000000000000000000000000000000000000;hpb=5cdb1f83c37674ee6d588bb0104729d564012ecb;p=pspp
diff --git a/src/ui/gui/psppire-window-base.h b/src/ui/gui/psppire-window-base.h
new file mode 100644
index 0000000000..5453bb78f8
--- /dev/null
+++ b/src/ui/gui/psppire-window-base.h
@@ -0,0 +1,73 @@
+/* PSPPIRE - a graphical user interface for PSPP.
+ Copyright (C) 2012 Free Software Foundation
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see . */
+
+/*
+ This is an abstract base class upon which all (well almost all) windows in
+ psppire are based. The exceptions are transient windows such as the
+ splash screen and popups.
+*/
+
+#ifndef __PSPPIRE_WINDOW_BASE_H__
+#define __PSPPIRE_WINDOW_BASE_H__
+
+
+#include
+#include
+#include
+
+G_BEGIN_DECLS
+
+
+#define PSPPIRE_TYPE_WINDOW_BASE (psppire_window_base_get_type ())
+
+#define PSPPIRE_WINDOW_BASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ PSPPIRE_TYPE_WINDOW_BASE, PsppireWindowBase))
+
+#define PSPPIRE_WINDOW_BASE_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
+ PSPPIRE_TYPE_WINDOW_BASE, PsppireWindowBaseClass))
+
+#define PSPPIRE_IS_WINDOW_BASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ PSPPIRE_TYPE_WINDOW_BASE))
+
+#define PSPPIRE_IS_WINDOW_BASE_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
+ PSPPIRE_TYPE_WINDOW_BASE))
+
+
+typedef struct _PsppireWindowBase PsppireWindowBase;
+typedef struct _PsppireWindowBaseClass PsppireWindowBaseClass;
+
+
+struct _PsppireWindowBase
+{
+ GtkWindow parent;
+
+ /* */
+};
+
+
+struct _PsppireWindowBaseClass
+{
+ GtkWindowClass parent_class;
+};
+
+
+
+GType psppire_window_base_get_type (void);
+GType psppire_window_base_model_get_type (void);
+
+G_END_DECLS
+
+#endif /* __PSPPIRE_WINDOW_BASE_H__ */