1 /* PSPPIRE - a graphical user interface for PSPP.
2 Copyright (C) 2017, 2019 John Darrington
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.
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.
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/>.
18 #ifndef _PSPPIRE_DATA_SHEET_H
19 #define _PSPPIRE_DATA_SHEET_H
22 #include <ssw-sheet.h>
24 struct _PsppireDataSheet
26 SswSheet parent_instance;
28 GtkWidget *data_sheet_cases_column_popup;
30 GtkWidget *data_clear_variables_menu_item;
31 GtkWidget *data_clear_cases_menu_item;
32 GtkWidget *data_sheet_cases_row_popup;
34 /* Data sheet popup menu */
35 GtkWidget *data_sort_ascending_menu_item;
36 GtkWidget *data_sort_descending_menu_item;
39 struct _PsppireDataSheetClass
41 SswSheetClass parent_class;
44 #define PSPPIRE_TYPE_DATA_SHEET psppire_data_sheet_get_type ()
46 G_DECLARE_FINAL_TYPE (PsppireDataSheet, psppire_data_sheet, PSPPIRE, DATA_SHEET, SswSheet)
48 GtkWidget *psppire_data_sheet_new (void);
50 void psppire_data_sheet_delete_variables (PsppireDataSheet *sheet);
52 void psppire_data_sheet_insert_new_variable_at_posn (PsppireDataSheet *sheet, gint posn);