X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-window.h;h=b80f79d699af04d14a647be6d817830ff9a5b65b;hb=469d8b86585375cc9d3566d0b35daf1d063bcaf5;hp=441e12af3f2454eaa7c3aae16e5fba181e9343b7;hpb=410d0c590c9ce4892cf79c9eec8b01249229dfc4;p=pspp diff --git a/src/ui/gui/psppire-window.h b/src/ui/gui/psppire-window.h index 441e12af3f..b80f79d699 100644 --- a/src/ui/gui/psppire-window.h +++ b/src/ui/gui/psppire-window.h @@ -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 @@ -21,10 +21,7 @@ #include #include -#include -#include -#include -#include +#include G_BEGIN_DECLS @@ -63,9 +60,11 @@ struct _PsppireWindow GtkWindow parent; /* */ - 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,8 +109,12 @@ 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); +void add_most_recent (const char *file_name, const char *mime_type); G_END_DECLS