Added display sort feature to PsppireDictView
[pspp] / src / ui / gui / psppire-dictview.h
index dd08d78f125ce2f735dc2b10193b4b9c637e5296..622ed6135cb9670f7be3c19a594bad12298c4366 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPPIRE - a graphical user interface for PSPP.
-   Copyright (C) 2009  Free Software Foundation
+   Copyright (C) 2009, 2010, 2013  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,8 +21,9 @@
 
 #include <glib.h>
 #include <glib-object.h>
-#include <gtk/gtktreeview.h>
+#include <gtk/gtk.h>
 
+#include "data/format.h"
 #include "psppire-dict.h"
 #include "dict-display.h"
 
@@ -51,6 +52,7 @@ struct _PsppireDictView
   var_predicate_func *predicate;
   GtkWidget *menu;
   gboolean prefer_labels;
+  GtkTreeModel *sorted_model;
 };
 
 struct _PsppireDictViewClass
@@ -60,8 +62,12 @@ struct _PsppireDictViewClass
 };
 
 GType      psppire_dict_view_get_type        (void);
+void psppire_dict_view_get_selected_variables (PsppireDictView *,
+                                               struct variable ***vars,
+                                               size_t *n_varsp);
 struct variable * psppire_dict_view_get_selected_variable (PsppireDictView *);
 
+const char *get_var_measurement_stock_id (enum fmt_type, enum measure);
 
 G_END_DECLS