X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-data-store.h;h=5ffd85d68e458137b2b7c2cc25177fc3ce38b42b;hb=a86739f7fdb0a11a16f6c0a47c0e90773f134a53;hp=10b0e46aa0ddfc6cb022e400e2830d394a940c6c;hpb=c0b93f5d7e94229e27350f83e9c6839c25451a8b;p=pspp-builds.git diff --git a/src/ui/gui/psppire-data-store.h b/src/ui/gui/psppire-data-store.h index 10b0e46a..5ffd85d6 100644 --- a/src/ui/gui/psppire-data-store.h +++ b/src/ui/gui/psppire-data-store.h @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2006 Free Software Foundation + Copyright (C) 2006, 2009 Free Software Foundation 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 @@ -18,7 +18,6 @@ #define __PSPPIRE_DATA_STORE_H__ #include "psppire-dict.h" -#include "psppire-case-file.h" #define FIRST_CASE_NUMBER 1 @@ -54,14 +53,6 @@ typedef struct _PsppireDataStoreClass PsppireDataStoreClass; struct dictionary; -enum cf_signal_handler { - CASES_DELETED, - CASE_INSERTED, - CASE_CHANGED, - n_cf_signals -}; - - enum dict_signal_handler { VARIABLE_INSERTED, VARIABLE_CHANGED, @@ -70,8 +61,9 @@ enum dict_signal_handler { n_dict_signals }; -void do_this_thing (PsppireDict *, struct dictionary *, void *); +struct datasheet; +struct casereader; struct _PsppireDataStore { @@ -80,34 +72,26 @@ struct _PsppireDataStore /*< private >*/ gboolean dispose_has_run ; PsppireDict *dict; - PsppireCaseFile *case_file; + struct datasheet *datasheet; gboolean show_labels; - /* Geometry */ - gint margin_width; - - gint cf_handler_id [n_cf_signals]; + // gint cf_handler_id [n_cf_signals]; gint dict_handler_id [n_dict_signals]; }; struct _PsppireDataStoreClass { GObjectClass parent_class; - - /* Padding for future expansion */ - void (*_gtk_reserved1) (void); - void (*_gtk_reserved2) (void); - void (*_gtk_reserved3) (void); - void (*_gtk_reserved4) (void); }; GType psppire_data_store_get_type (void) G_GNUC_CONST; PsppireDataStore *psppire_data_store_new (PsppireDict *dict); -void psppire_data_store_set_case_file (PsppireDataStore *data_store, - PsppireCaseFile *cf); + +void psppire_data_store_set_reader (PsppireDataStore *ds, + struct casereader *reader); void psppire_data_store_set_dictionary (PsppireDataStore *data_store, PsppireDict *dict); @@ -135,6 +119,15 @@ gboolean psppire_data_store_set_string (PsppireDataStore *ds, casenumber psppire_data_store_get_case_count (const PsppireDataStore *ds); size_t psppire_data_store_get_value_count (const PsppireDataStore *ds); + + + +struct ccase *psppire_data_store_get_case (const PsppireDataStore *ds, + casenumber casenum); + + + + G_END_DECLS #endif /* __PSPPIRE_DATA_STORE_H__ */