/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2008 Free Software Foundation
+ Copyright (C) 2008, 2009 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
G_BEGIN_DECLS
-typedef enum {
- PSPPIRE_WINDOW_USAGE_SYNTAX,
- PSPPIRE_WINDOW_USAGE_OUTPUT,
- PSPPIRE_WINDOW_USAGE_DATA
-} PsppireWindowUsage;
-
-
-GType psppire_window_usage_get_type (void);
-
-
-#define G_TYPE_PSPPIRE_WINDOW_USAGE \
- (psppire_window_usage_get_type())
-
-\f
-
#define PSPPIRE_WINDOW_TYPE (psppire_window_get_type ())
#define PSPPIRE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PSPPIRE_WINDOW_TYPE, PsppireWindow))
/* <private> */
gchar *name;
- PsppireWindowUsage usage;
+ gchar *description;
+ gchar *basename;
GHashTable *menuitem_table;
GtkMenuShell *menu;
guint insert_handler;
guint remove_handler;
+ gboolean unsaved;
};
struct _PsppireWindowClass
};
GType psppire_window_get_type (void);
-GtkWidget* psppire_window_new (PsppireWindowUsage usage);
const gchar * psppire_window_get_filename (PsppireWindow *);
void psppire_window_minimise_all (void);
+void psppire_window_set_unsaved (PsppireWindow *, gboolean );
+
+gboolean psppire_window_get_unsaved (PsppireWindow *);
G_END_DECLS