X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Fui%2Fgui%2Fpsppire-data-sheet.h;h=49e7a1751c36a6c64b766bc11212c3bb1f4eb757;hb=ca1382f24fd0a8a90dd65daf98a279d6a549d9da;hp=9a395a8df30ab2a543b29e1cf7bd0de98ecfa35c;hpb=21bed3a6d98451db78a9f327e951080e42b44387;p=pspp
diff --git a/src/ui/gui/psppire-data-sheet.h b/src/ui/gui/psppire-data-sheet.h
index 9a395a8df3..49e7a1751c 100644
--- a/src/ui/gui/psppire-data-sheet.h
+++ b/src/ui/gui/psppire-data-sheet.h
@@ -1,100 +1,50 @@
/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2011, 2012 Free Software Foundation, Inc.
+ Copyright (C) 2017 John Darrington
- 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 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, see . */
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+*/
-#ifndef PSPPIRE_DATA_SHEET_H
-#define PSPPIRE_DATA_SHEET_H 1
-
-/* PsppireDataSheet is a PsppSheetView that displays the data in a dataset,
- with one column per variable and one row per case.
-
- PsppireDataSheet is usually a child of PsppireDataEditor in the widget
- hierarchy. Other widgets can also use it. */
+#ifndef _PSPPIRE_DATA_SHEET_H
+#define _PSPPIRE_DATA_SHEET_H
#include
-#include "ui/gui/pspp-sheet-view.h"
-
-G_BEGIN_DECLS
-
-#define PSPP_TYPE_DATA_SHEET (psppire_data_sheet_get_type())
-#define PSPPIRE_DATA_SHEET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),PSPP_TYPE_DATA_SHEET,PsppireDataSheet))
-#define PSPPIRE_DATA_SHEET_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class),PSPP_TYPE_DATA_SHEET,PsppireDataSheetClass))
-#define PSPP_IS_DATA_SHEET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),PSPP_TYPE_DATA_SHEET))
-#define PSPP_IS_DATA_SHEET_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class),PSPP_TYPE_DATA_SHEET))
-#define PSPPIRE_DATA_SHEET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),PSPP_TYPE_DATA_SHEET,PsppireDataSheetClass))
-
-typedef struct _PsppireDataSheet PsppireDataSheet;
-typedef struct _PsppireDataSheetClass PsppireDataSheetClass;
+#include
struct _PsppireDataSheet
{
- PsppSheetView parent;
-
- struct _PsppireDataStore *data_store;
- gboolean show_value_labels;
- gboolean show_case_numbers;
- gboolean may_create_vars;
- gboolean may_delete_vars;
+ SswSheet parent_instance;
- guint scroll_to_bottom_signal;
- guint scroll_to_right_signal;
+ GtkWidget *data_sheet_cases_column_popup;
- PsppSheetViewColumn *new_variable_column;
+ GtkWidget *data_clear_variables_menu_item;
+ GtkWidget *data_clear_cases_menu_item;
+ GtkWidget *data_sheet_cases_row_popup;
- GtkBuilder *builder;
-
- GtkWidget *container;
- GtkUIManager *uim;
- gboolean dispose_has_run;
+ /* Data sheet popup menu */
+ GtkWidget *data_sort_ascending_menu_item;
+ GtkWidget *data_sort_descending_menu_item;
};
-struct _PsppireDataSheetClass
+struct _PsppireDataSheetClass
{
- PsppSheetViewClass parent_class;
+ SswSheetClass parent_class;
};
-GType psppire_data_sheet_get_type (void) G_GNUC_CONST;
-GtkWidget *psppire_data_sheet_new (void);
-
-struct _PsppireDataStore *psppire_data_sheet_get_data_store (PsppireDataSheet *);
-void psppire_data_sheet_set_data_store (PsppireDataSheet *,
- struct _PsppireDataStore *);
-
-gboolean psppire_data_sheet_get_value_labels (const PsppireDataSheet *);
-void psppire_data_sheet_set_value_labels (PsppireDataSheet *,
- gboolean show_value_labels);
-
-gboolean psppire_data_sheet_get_case_numbers (const PsppireDataSheet *);
-void psppire_data_sheet_set_case_numbers (PsppireDataSheet *,
- gboolean show_case_numbers);
-
-gboolean psppire_data_sheet_get_may_create_vars (PsppireDataSheet *);
-void psppire_data_sheet_set_may_create_vars (PsppireDataSheet *, gboolean);
+#define PSPPIRE_TYPE_DATA_SHEET psppire_data_sheet_get_type ()
-gboolean psppire_data_sheet_get_may_delete_vars (PsppireDataSheet *);
-void psppire_data_sheet_set_may_delete_vars (PsppireDataSheet *, gboolean);
+G_DECLARE_FINAL_TYPE (PsppireDataSheet, psppire_data_sheet, PSPPIRE, DATA_SHEET, SswSheet)
-void psppire_data_sheet_goto_variable (PsppireDataSheet *, gint dict_index);
-struct variable *psppire_data_sheet_get_current_variable (const PsppireDataSheet *);
-
-void psppire_data_sheet_goto_case (PsppireDataSheet *, gint case_index);
-gint psppire_data_sheet_get_selected_case (const PsppireDataSheet *);
-gint psppire_data_sheet_get_current_case (const PsppireDataSheet *);
-
-GtkUIManager *psppire_data_sheet_get_ui_manager (PsppireDataSheet *);
-
-G_END_DECLS
+GtkWidget *psppire_data_sheet_new (void);
-#endif /* PSPPIRE_DATA_SHEET_H */
+#endif