[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[datasets 00/18] Implement multiple datasets support
From: |
Ben Pfaff |
Subject: |
[datasets 00/18] Implement multiple datasets support |
Date: |
Sat, 30 Apr 2011 22:36:28 -0700 |
The purpose of this series of patches is to implement multiple datasets
support, that is, support for the DATASET commands that allow a single
PSPP process to work with multiple datasets. This was previously
available through the PSPP "scratch file" extension, but the DATASET
commands are more portable.
The bulk of the patches are actually various fixes and cleanups for the
GUI. Some of them are unrelated to the main purpose of the series except
to the extent that I discovered them while working on these patches.
Please let me know any problems or concerns you see with these patches.
Of course that applies especially to John as the main author of the
GUI.
Ben Pfaff (18):
gui: Always convert file names to UTF-8 for use in syntax.
gui: Put a separator line before list of windows in Windows menus.
gui: Fix const-ness warning for measure_to_string() return type.
gui: Fix const-ness warning in create_lines_tree_view().
gui: Drop null base_finalize function from PsppireDataWindow.
gui: Use dispose instead of finalize method in PsppireDataWindow.
psppire-window: Use g_string_append_unichar() instead of global var.
gui: Include only <gtk/gtk.h> to use GTK+.
gui: Remove obviously unnecessary #include directives.
gui: Prefer NULL to 0 for initializing pointers.
gui: Make syntax execution functions take a PsppireDataWindow
argument.
gui: Eliminate dataset-related global variables.
gui: Fix File|Open in syntax editor.
gui: Fix g_object_get() memory leaks for PsppireWindow's filename.
gui: New "entry-dialog" module for prompting for a text string.
Implement DATASET commands.
gui: Add ellipsis to menu items that require further input.
gui: Change View|Data and View|Variables to radio button menu items.
NEWS | 5 +
doc/combining.texi | 10 +-
doc/data-io.texi | 96 +++-
doc/files.texi | 32 +-
doc/language.texi | 62 +--
doc/transformation.texi | 7 +-
src/data/any-reader.c | 6 +-
src/data/any-writer.c | 8 +-
src/data/automake.mk | 12 +-
src/data/caseinit.c | 31 ++-
src/data/caseinit.h | 3 +-
src/data/{scratch-reader.c => dataset-reader.c} | 33 +-
src/data/{scratch-reader.h => dataset-reader.h} | 10 +-
src/data/{scratch-writer.c => dataset-writer.c} | 60 +--
src/data/{scratch-writer.h => dataset-writer.h} | 10 +-
src/data/dataset.c | 155 ++++++-
src/data/dataset.h | 29 +-
src/data/dictionary.c | 4 +-
src/data/file-handle-def.c | 59 +--
src/data/file-handle-def.h | 13 +-
src/data/scratch-handle.c | 36 --
src/data/scratch-handle.h | 32 --
src/data/session.c | 180 +++++++
src/data/session.h | 47 ++
src/language/command.c | 3 +
src/language/command.def | 12 +-
src/language/data-io/automake.mk | 1 +
src/language/data-io/combine-files.c | 2 +-
src/language/data-io/data-list.c | 2 +-
src/language/data-io/dataset.c | 279 +++++++++++
src/language/data-io/file-handle.h | 17 +-
src/language/data-io/file-handle.q | 154 ++++---
src/language/data-io/get-data.c | 2 +-
src/language/data-io/get.c | 2 +-
src/language/data-io/inpt-pgm.c | 2 +-
src/language/data-io/print-space.c | 2 +-
src/language/data-io/print.c | 2 +-
src/language/data-io/save-translate.c | 2 +-
src/language/data-io/save.c | 2 +-
src/language/dictionary/apply-dictionary.c | 2 +-
src/language/dictionary/sys-file-info.c | 2 +-
src/language/expressions/evaluate.c | 2 +-
src/language/stats/aggregate.c | 2 +-
src/language/utilities/include.c | 4 +-
src/ui/gui/aggregate-dialog.c | 4 +-
src/ui/gui/aggregate-dialog.h | 2 -
src/ui/gui/automake.mk | 2 +
src/ui/gui/binomial-dialog.c | 4 +-
src/ui/gui/binomial-dialog.h | 1 -
src/ui/gui/chi-square-dialog.c | 4 +-
src/ui/gui/chi-square-dialog.h | 1 -
src/ui/gui/comments-dialog.c | 2 +-
src/ui/gui/compute-dialog.c | 4 +-
src/ui/gui/compute-dialog.h | 4 +-
src/ui/gui/correlation-dialog.c | 4 +-
src/ui/gui/correlation-dialog.h | 3 +-
src/ui/gui/crosstabs-dialog.c | 4 +-
src/ui/gui/crosstabs-dialog.h | 4 +-
src/ui/gui/customentry.c | 5 +-
src/ui/gui/data-editor.ui | 74 ++--
src/ui/gui/descriptives-dialog.c | 4 +-
src/ui/gui/descriptives-dialog.h | 5 +-
src/ui/gui/entry-dialog.c | 64 +++
src/ui/gui/{aggregate-dialog.h => entry-dialog.h} | 15 +-
src/ui/gui/examine-dialog.c | 4 +-
src/ui/gui/examine-dialog.h | 4 +-
src/ui/gui/executor.c | 142 ++++--
src/ui/gui/executor.h | 9 +-
src/ui/gui/factor-dialog.c | 4 +-
src/ui/gui/factor-dialog.h | 4 +-
src/ui/gui/find-dialog.h | 3 +-
src/ui/gui/frequencies-dialog.c | 4 +-
src/ui/gui/frequencies-dialog.h | 4 +-
src/ui/gui/goto-case-dialog.h | 4 +-
src/ui/gui/helper.c | 4 +-
src/ui/gui/k-related-dialog.c | 4 +-
src/ui/gui/oneway-anova-dialog.c | 4 +-
src/ui/gui/output-viewer.ui | 3 +-
src/ui/gui/psppire-acr.h | 6 +-
src/ui/gui/psppire-buttonbox.c | 3 +-
src/ui/gui/psppire-buttonbox.h | 4 +-
src/ui/gui/psppire-conf.h | 2 +-
src/ui/gui/psppire-data-editor.c | 44 ++-
src/ui/gui/psppire-data-editor.h | 7 +-
src/ui/gui/psppire-data-window.c | 523 ++++++++++++---------
src/ui/gui/psppire-data-window.h | 30 +-
src/ui/gui/psppire-dialog.c | 2 -
src/ui/gui/psppire-dialog.h | 4 +-
src/ui/gui/psppire-dictview.c | 4 +-
src/ui/gui/psppire-dictview.h | 4 +-
src/ui/gui/psppire-hbuttonbox.c | 5 +-
src/ui/gui/psppire-keypad.c | 7 +-
src/ui/gui/psppire-keypad.h | 5 +-
src/ui/gui/psppire-output-window.h | 6 +-
src/ui/gui/psppire-select-dest.c | 4 +-
src/ui/gui/psppire-selector.c | 11 +-
src/ui/gui/psppire-selector.h | 8 +-
src/ui/gui/psppire-syntax-window.c | 77 ++--
src/ui/gui/psppire-syntax-window.h | 4 +-
src/ui/gui/psppire-var-view.c | 5 +-
src/ui/gui/psppire-var-view.h | 4 +-
src/ui/gui/psppire-vbuttonbox.c | 5 +-
src/ui/gui/psppire-window.c | 407 ++++++++++++----
src/ui/gui/psppire-window.h | 19 +-
src/ui/gui/psppire.c | 47 +--
src/ui/gui/psppire.h | 2 +-
src/ui/gui/rank-dialog.c | 4 +-
src/ui/gui/recode-dialog.c | 4 +-
src/ui/gui/regression-dialog.c | 4 +-
src/ui/gui/reliability-dialog.c | 4 +-
src/ui/gui/roc-dialog.c | 4 +-
src/ui/gui/select-cases-dialog.c | 4 +-
src/ui/gui/sort-cases-dialog.c | 4 +-
src/ui/gui/split-file-dialog.c | 4 +-
src/ui/gui/syntax-editor.ui | 23 +-
src/ui/gui/t-test-independent-samples-dialog.c | 4 +-
src/ui/gui/t-test-one-sample.c | 4 +-
src/ui/gui/t-test-paired-samples.c | 4 +-
src/ui/gui/text-data-import-dialog.c | 7 +-
src/ui/gui/text-data-import-dialog.h | 7 +-
src/ui/gui/transpose-dialog.c | 4 +-
src/ui/gui/val-labs-dialog.c | 8 +-
src/ui/gui/var-display.c | 4 +-
src/ui/gui/var-display.h | 4 +-
src/ui/gui/variable-info-dialog.c | 5 +-
src/ui/gui/weight-cases-dialog.c | 4 +-
src/ui/terminal/main.c | 13 +-
tests/automake.mk | 1 +
tests/language/data-io/dataset.at | 302 ++++++++++++
tests/language/stats/aggregate.at | 16 +-
130 files changed, 2442 insertions(+), 1092 deletions(-)
rename src/data/{scratch-reader.c => dataset-reader.c} (61%)
rename src/data/{scratch-reader.h => dataset-reader.h} (79%)
rename src/data/{scratch-writer.c => dataset-writer.c} (65%)
rename src/data/{scratch-writer.h => dataset-writer.h} (79%)
delete mode 100644 src/data/scratch-handle.c
delete mode 100644 src/data/scratch-handle.h
create mode 100644 src/data/session.c
create mode 100644 src/data/session.h
create mode 100644 src/language/data-io/dataset.c
create mode 100644 src/ui/gui/entry-dialog.c
copy src/ui/gui/{aggregate-dialog.h => entry-dialog.h} (69%)
create mode 100644 tests/language/data-io/dataset.at
--
1.7.2.5
- [datasets 00/18] Implement multiple datasets support,
Ben Pfaff <=
- [datasets 02/18] gui: Put a separator line before list of windows in Windows menus., Ben Pfaff, 2011/05/01
- [datasets 09/18] gui: Remove obviously unnecessary #include directives., Ben Pfaff, 2011/05/01
- [datasets 06/18] gui: Use dispose instead of finalize method in PsppireDataWindow., Ben Pfaff, 2011/05/01
- [datasets 13/18] gui: Fix File|Open in syntax editor., Ben Pfaff, 2011/05/01
- [datasets 17/18] gui: Add ellipsis to menu items that require further input., Ben Pfaff, 2011/05/01
- [datasets 07/18] psppire-window: Use g_string_append_unichar() instead of global var., Ben Pfaff, 2011/05/01
- [datasets 08/18] gui: Include only <gtk/gtk.h> to use GTK+., Ben Pfaff, 2011/05/01