2 PSPPIRE --- A Graphical User Interface for PSPP
3 Copyright (C) 2006 Free Software Foundation
4 Written by John Darrington
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 #ifndef __SORT_CASES_DIALOG_H
22 #define __SORT_CASES_DIALOG_H
26 #include <glade/glade.h>
27 #include "psppire-dict.h"
31 struct sort_cases_dialog
36 GtkTreeView *dict_view;
39 GtkTreeView *criteria_view;
40 GtkTreeViewColumn *crit_col;
41 GtkCellRenderer *crit_renderer;
43 GtkListStore *criteria_list;
45 struct sort_criteria *sc;
50 GtkToggleButton *ascending_button;
52 /* FIXME: Could this be done better with a GtkToggleAction ?? */
53 enum {VAR_SELECT, VAR_DESELECT} button_state;
58 struct sort_cases_dialog * sort_cases_dialog_create(GladeXML *xml);
61 gint sort_cases_dialog_run(struct sort_cases_dialog *dialog,
63 struct sort_criteria *criteria