New menu: Edit|Options
[pspp] / src / ui / gui / psppire-conf.h
index a7415b2451010b081b0774c9b014c8b205c34613..5f4b283af5c2cf0f87bc9ccdd0d2d27aa8ff2902 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPPIRE - a graphical user interface for PSPP.
-   Copyright (C) 2009  Free Software Foundation
+   Copyright (C) 2009, 2010  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
@@ -18,7 +18,7 @@
 #include <glib-object.h>
 #include <glib.h>
 
-#include <gtk/gtkwindow.h>
+#include <gtk/gtk.h>
 
 #ifndef __PSPPIRE_CONF_H__
 #define __PSPPIRE_CONF_H__
@@ -62,6 +62,7 @@ struct _PsppireConf
 
   GKeyFile *keyfile;
   gchar *filename;
+  guint idle;
 };
 
 
@@ -78,9 +79,22 @@ PsppireConf * psppire_conf_new (void);
 gboolean psppire_conf_get_int (PsppireConf *,
                               const gchar *, const gchar *, int *);
 
+gboolean psppire_conf_get_string (PsppireConf *,
+                              const gchar *, const gchar *, gchar **);
+
 gboolean psppire_conf_get_boolean (PsppireConf *,
                                   const gchar *, const gchar *, gboolean *);
 
+
+gboolean psppire_conf_get_variant (PsppireConf *,
+                                  const gchar *, const gchar *, GVariant **);
+
+
+gboolean psppire_conf_get_enum (PsppireConf *conf, const gchar *base,
+                               const gchar *name,
+                               GType t,
+                               int *v);
+
 void psppire_conf_set_int (PsppireConf *conf,
                           const gchar *base, const gchar *name,
                           gint value);
@@ -89,6 +103,20 @@ void psppire_conf_set_boolean (PsppireConf *conf,
                               const gchar *base, const gchar *name,
                               gboolean value);
 
+void psppire_conf_set_string (PsppireConf *conf,
+                              const gchar *base, const gchar *name,
+                             const gchar *value);
+
+
+void psppire_conf_set_variant (PsppireConf *conf,
+                              const gchar *base, const gchar *name,
+                              GVariant *value);
+
+
+void psppire_conf_set_enum (PsppireConf *conf,
+                           const gchar *base, const gchar *name,
+                           GType enum_type,
+                           int value);
 
 void psppire_conf_set_window_geometry (PsppireConf *conf,
                                       const gchar *base,
@@ -96,7 +124,7 @@ void psppire_conf_set_window_geometry (PsppireConf *conf,
 
 void psppire_conf_save_window_geometry (PsppireConf *,
                                        const gchar *,
-                                       GdkEvent *);
+                                       GtkWindow *);
 
 
 G_END_DECLS