Implement DATASET commands.
[pspp-builds.git] / src / ui / gui / psppire-window.h
index 441e12af3f2454eaa7c3aae16e5fba181e9343b7..0aa913c1f99edffcc23e51b59dbab1016dc574b9 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPPIRE - a graphical user interface for PSPP.
-   Copyright (C) 2008, 2009  Free Software Foundation
+   Copyright (C) 2008, 2009, 2010, 2011  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
 
 #include <glib.h>
 #include <glib-object.h>
-#include <gtk/gtkwindow.h>
-#include <gtk/gtkaction.h>
-#include <gtk/gtkmenushell.h>
-#include <gtk/gtkrecentmanager.h>
+#include <gtk/gtk.h>
 
 G_BEGIN_DECLS
 
@@ -63,9 +60,11 @@ struct _PsppireWindow
   GtkWindow parent;
 
   /* <private> */
-  gchar *name;
-  gchar *description;
-  gchar *basename;
+  gchar *filename;             /* File name, in file name encoding, or NULL. */
+  gchar *basename;             /* Last component of filename, in UTF-8 */
+  gchar *id;                   /* Dataset name, or NULL.  */
+  gchar *description;          /* e.g. "Data Editor" */
+  gchar *list_name;            /* Name for "Windows" menu list. */
 
   GHashTable *menuitem_table;
   GtkMenuShell *menu;
@@ -89,6 +88,7 @@ struct _PsppireWindowIface
   GTypeInterface g_iface;
 
   void (*save) (PsppireWindow *w);
+  void (*pick_filename) (PsppireWindow *);
   gboolean (*load) (PsppireWindow *w, const gchar *);
 };
 
@@ -109,7 +109,10 @@ gboolean psppire_window_get_unsaved (PsppireWindow *);
 gint psppire_window_query_save (PsppireWindow *);
 
 void psppire_window_save (PsppireWindow *w);
+void psppire_window_save_as (PsppireWindow *w);
 gboolean psppire_window_load (PsppireWindow *w, const gchar *file);
+void psppire_window_open (PsppireWindow *de);
+GtkWidget *psppire_window_file_chooser_dialog (PsppireWindow *toplevel);
 
 
 G_END_DECLS