X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-data-store.h;h=88ae85bec959910b5abf039cb9d62d468ad59cab;hb=b810b32ac59e1dcba90b8d4a70d626c4e249bad6;hp=2f0d42ca102c8f93b17922d385c562451bbbb6ac;hpb=a19b858e0ac3c69e4a28c0ca6d8674427268a863;p=pspp-builds.git
diff --git a/src/ui/gui/psppire-data-store.h b/src/ui/gui/psppire-data-store.h
index 2f0d42ca..88ae85be 100644
--- a/src/ui/gui/psppire-data-store.h
+++ b/src/ui/gui/psppire-data-store.h
@@ -1,12 +1,9 @@
-/* psppire-data-store.h
-
- PSPPIRE --- A Graphical User Interface for PSPP
+/* PSPPIRE - a graphical user interface for PSPP.
Copyright (C) 2006 Free Software Foundation
- Written by John Darrington
- This program is free software; you can redistribute it and/or modify
+ 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
+ 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,
@@ -15,16 +12,17 @@
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. */
+ along with this program. If not, see . */
#ifndef __PSPPIRE_DATA_STORE_H__
#define __PSPPIRE_DATA_STORE_H__
#include
#include "psppire-dict.h"
-#include "psppire-case-array.h"
+#include "psppire-case-file.h"
+
+#define FIRST_CASE_NUMBER 1
+
#ifdef __cplusplus
extern "C" {
@@ -58,8 +56,12 @@ struct _PsppireDataStore
/*< private >*/
PsppireDict *dict;
- PsppireCaseArray *cases;
- PangoFontDescription *font_desc;
+ PsppireCaseFile *case_file;
+ const PangoFontDescription *font_desc;
+
+ /* The width of an upper case 'M' rendered in the current font */
+ gint width_of_m ;
+
gboolean show_labels;
/* Geometry */
@@ -79,18 +81,38 @@ struct _PsppireDataStoreClass
inline GType psppire_data_store_get_type (void) G_GNUC_CONST;
-PsppireDataStore *psppire_data_store_new (PsppireDict *dict, PsppireCaseArray *cases);
+PsppireDataStore *psppire_data_store_new (PsppireDict *dict);
+
+void psppire_data_store_set_case_file (PsppireDataStore *data_store,
+ PsppireCaseFile *cf);
+
+void psppire_data_store_set_dictionary (PsppireDataStore *data_store,
+ PsppireDict *dict);
+
+void psppire_data_store_set_font (PsppireDataStore *store,
+ const PangoFontDescription *fd);
+
+void psppire_data_store_show_labels (PsppireDataStore *store,
+ gboolean show_labels);
+
+void psppire_data_store_clear (PsppireDataStore *data_store);
+
+gboolean psppire_data_store_insert_new_case (PsppireDataStore *ds, casenumber posn);
+
+
+gboolean psppire_data_store_delete_cases (PsppireDataStore *ds, casenumber first, casenumber count);
-void psppire_data_store_set_dictionary(PsppireDataStore *data_store, PsppireDict *dict);
-void psppire_data_store_set_font(PsppireDataStore *store, PangoFontDescription *fd);
-void psppire_data_store_show_labels(PsppireDataStore *store, gboolean show_labels);
+struct casereader * psppire_data_store_get_reader (PsppireDataStore *ds);
+gchar * psppire_data_store_get_string (PsppireDataStore *ds,
+ casenumber row, glong column);
-struct file_handle;
+gboolean psppire_data_store_set_string (PsppireDataStore *ds,
+ const gchar *text,
+ glong row, glong column);
-void psppire_data_store_create_system_file(PsppireDataStore *store,
- struct file_handle *handle);
+casenumber psppire_data_store_get_case_count (PsppireDataStore *store);
#ifdef __cplusplus