1 /* PSPPIRE - a graphical user interface for PSPP.
2     Copyright (C) 2017, 2019  John Darrington
3 
4     This program is free software: you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation, either version 3 of the License, or
7     (at your option) any later version.
8 
9     This program is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13 
14     You should have received a copy of the GNU General Public License
15     along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 */
17 
18 #ifndef _PSPPIRE_DATA_SHEET_H
19 #define _PSPPIRE_DATA_SHEET_H
20 
21 #include <gtk/gtk.h>
22 #include <ssw-sheet.h>
23 
24 struct _PsppireDataSheet
25 {
26   SswSheet parent_instance;
27 
28   GtkWidget *data_sheet_cases_column_popup;
29 
30   GtkWidget *data_clear_variables_menu_item;
31   GtkWidget *data_clear_cases_menu_item;
32   GtkWidget *data_sheet_cases_row_popup;
33 
34   /* Data sheet popup menu */
35   GtkWidget *data_sort_ascending_menu_item;
36   GtkWidget *data_sort_descending_menu_item;
37 };
38 
39 struct _PsppireDataSheetClass
40 {
41   SswSheetClass parent_class;
42 };
43 
44 #define PSPPIRE_TYPE_DATA_SHEET psppire_data_sheet_get_type ()
45 
46 G_DECLARE_FINAL_TYPE (PsppireDataSheet, psppire_data_sheet, PSPPIRE, DATA_SHEET, SswSheet)
47 
48 GtkWidget *psppire_data_sheet_new (void);
49 
50 void psppire_data_sheet_delete_variables (PsppireDataSheet *sheet);
51 
52 void psppire_data_sheet_insert_new_variable_at_posn (PsppireDataSheet *sheet, gint posn);
53 
54 
55 #endif
56