Merge commit 'origin/stable'
[pspp-builds.git] / src / ui / gui / sort-cases-dialog.h
index 9d551c2a24fe3b660ef722aa4f4dd579d4d13023..000d2c00810634bbecc07a921b8dbca26afe7477 100644 (file)
@@ -1,65 +1,25 @@
-/*
-    PSPPIRE --- A Graphical User Interface for PSPP
-    Copyright (C) 2006  Free Software Foundation
+/* PSPPIRE - a graphical user interface for PSPP.
+   Copyright (C) 2007  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
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
+   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
+   the Free Software Foundation, either version 3 of the License, or
+   (at your option) any later version.
 
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
 
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-    02110-1301, USA. */
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 
 #ifndef __SORT_CASES_DIALOG_H
 #define __SORT_CASES_DIALOG_H
 
 
 #include <gtk/gtk.h>
-#include <glade/glade.h>
-#include "psppire-dict.h"
 
-struct sort_criteria;
-
-struct sort_cases_dialog
-{
-  GtkWidget *window;
-  GMainLoop *loop;
-
-  GtkTreeView *dict_view;
-
-  
-  GtkTreeView *criteria_view;
-  GtkTreeViewColumn *crit_col;
-  GtkCellRenderer *crit_renderer;
-
-  GtkListStore *criteria_list;
-
-  struct sort_criteria *sc;
-
-  GtkArrow *arrow;
-  GtkButton *button;
-
-  GtkToggleButton *ascending_button;
-  
-  /* FIXME: Could this be done better with a GtkToggleAction ?? */
-  enum {VAR_SELECT, VAR_DESELECT} button_state;
-
-  gint response;
-};
-
-struct sort_cases_dialog * sort_cases_dialog_create(GladeXML *xml);
-
-
-gint sort_cases_dialog_run(struct sort_cases_dialog *dialog, 
-                          PsppireDict *dict, 
-                          struct sort_criteria *criteria
-                          );
+void sort_cases_dialog (GObject *o, gpointer data);
 
 #endif