pspp
13 years agoFix memory leak in data_in
John Darrington [Sun, 18 Jul 2010 17:19:53 +0000 (19:19 +0200)]
Fix memory leak in data_in

13 years agoReliability dialog: Add checkbox for summary subcommand 20100717040502/pspp 20100718040501/pspp
John Darrington [Fri, 16 Jul 2010 20:53:18 +0000 (22:53 +0200)]
Reliability dialog: Add checkbox for summary subcommand

13 years agoadd missing source file to glade support library
John Darrington [Fri, 16 Jul 2010 20:44:10 +0000 (22:44 +0200)]
add missing source file to glade support library

13 years agoFix memory leak
John Darrington [Fri, 16 Jul 2010 14:18:07 +0000 (16:18 +0200)]
Fix memory leak

13 years agoRemove const qualifiers from encoding converter components.
John Darrington [Fri, 16 Jul 2010 13:42:40 +0000 (15:42 +0200)]
Remove const qualifiers from encoding converter components.

These elements have to be freed.  Therefore const is not
appropriate.

13 years agoDo not rely on user to specify all variables in VARIABLE subcommand. Fixes bug 30389. 20100716040502/pspp
Jason H Stover [Thu, 15 Jul 2010 17:11:33 +0000 (13:11 -0400)]
Do not rely on user to specify all variables in VARIABLE subcommand. Fixes bug 30389.

13 years agoReplace unknown XML entities with their numerical counterpart. 20100711040509/pspp 20100712040501/pspp 20100713040501/pspp 20100714040501/pspp 20100715040507/pspp
John Darrington [Thu, 8 Jul 2010 13:24:11 +0000 (15:24 +0200)]
Replace unknown XML entities with their numerical counterpart.

Texinfo seems to produce XML entities (such as ©) which
are not valid (although they are valid for HTML).  We work
around such problems by post-processing with sed. Here, we
replace these unknown entities with their numeric counterparts.
Such is the advice given at
http://www.dwheeler.com/essays/quotes-in-html.html

13 years agoFix various memory leaks
John Darrington [Sun, 4 Jul 2010 15:17:32 +0000 (17:17 +0200)]
Fix various memory leaks

13 years agoFix memory leak in tab_destroy
John Darrington [Sun, 4 Jul 2010 12:50:16 +0000 (14:50 +0200)]
Fix memory leak in tab_destroy

13 years agoFix memory leak in examine
John Darrington [Sun, 4 Jul 2010 12:49:54 +0000 (14:49 +0200)]
Fix memory leak in examine

13 years agoFix uninitialized variable
John Darrington [Sun, 4 Jul 2010 12:17:32 +0000 (14:17 +0200)]
Fix uninitialized variable

13 years agoFix invalid reference
John Darrington [Sun, 4 Jul 2010 11:16:54 +0000 (13:16 +0200)]
Fix invalid reference

13 years agocairo: Fix handling of font sizes. 20100702040502/pspp 20100703040502/pspp
Ben Pfaff [Tue, 29 Jun 2010 23:59:42 +0000 (16:59 -0700)]
cairo: Fix handling of font sizes.

Until now this code used pango_font_description_set_absolute_size() to set
the font size.  This sets the font size in device units, e.g. pixels on a
display.  But font sizes are actual specified by the user in points, so
we should instead use pango_font_description_get_size().  This commit
makes that change.

That change is simple, but it necessitates a larger change.
Until now the cairo driver has just assumed that the size of a font is
the size that we assigned it.  But this is no longer the case, since
points and pixels are now different.  So now we measure the actual width
and height of characters and use those as the font size.  At the same
time, the code no longer ignores font sizes included as part of font
description strings, and allows different fonts to have different sizes.

With plenty of help from John Darrington.

13 years agocairo: Remove support for printed headers. 20100627040502/pspp 20100628040502/pspp 20100629040501/pspp 20100630040503/pspp 20100701040502/pspp
Ben Pfaff [Wed, 23 Jun 2010 05:36:57 +0000 (22:36 -0700)]
cairo: Remove support for printed headers.

The printed headers on each page do not very attractive, and the
information that they contain by default is not very useful.  Because an
upcoming commit makes them harder to properly implement, simply remove
them for now.

With this commit, the cairo driver no longer prints titles and subtitles
at all.  This needs to be fixed.

13 years agogui: Fix spelling error in user-visible string.
Ben Pfaff [Sat, 26 Jun 2010 19:38:39 +0000 (12:38 -0700)]
gui: Fix spelling error in user-visible string.

13 years agooutput: Fix logic error in table_select_slice().
Ben Pfaff [Sat, 26 Jun 2010 19:28:28 +0000 (12:28 -0700)]
output: Fix logic error in table_select_slice().

z1 is a row or column number, not a count of header rows or columns, so it
only makes sense to compare it against another row or column number, not
against a count of rows or columns.

13 years agoperl-module: Further corrections to dependencies
John Darrington [Sat, 26 Jun 2010 18:04:40 +0000 (20:04 +0200)]
perl-module: Further corrections to dependencies

13 years agoRevert unintended change to tests_libpspp_str_test_LDADD.
Ben Pfaff [Sat, 26 Jun 2010 17:19:39 +0000 (10:19 -0700)]
Revert unintended change to tests_libpspp_str_test_LDADD.

When I was preparing the previous commit I tested a change to
tests_libpspp_str_test_LDADD and then (I thought) reverted it.  But my
revert actually changed the order.  Oops.

John Darrington reports that the new order causes link problems for him, so
I'm putting the order back to the original, with this commit.

13 years agoAvoid redundant linking against libtool convenience libraries. 20100626040502/pspp
Ben Pfaff [Sat, 26 Jun 2010 04:33:18 +0000 (21:33 -0700)]
Avoid redundant linking against libtool convenience libraries.

Both libpspp.la and libpspp-core.la linked directly against libgl.la, and
the UI linked against both libpspp.la and libpspp-core.la.  This works fine
on ELF systems, but with Mach-O on Mac OS X it silently causes duplicate
symbols at runtime.  In particular there are two different copies of
rpl_optarg from libgl.la.  Different code sees different copies of these,
which causes a segfault at runtime whenever anyone invokes pspp with an
option that takes an argument.

Reported by Jeremy Lavergne <jeremy@lavergne.gotdns.org>, with debugging
assistance by Jeremy and by John Darrington.

13 years agoMove compute dialog definition to its own file 20100624040502/pspp
John Darrington [Wed, 23 Jun 2010 15:49:15 +0000 (17:49 +0200)]
Move compute dialog definition to its own file

13 years agoMove select cases into its own definition file
John Darrington [Wed, 23 Jun 2010 15:24:57 +0000 (17:24 +0200)]
Move select cases into its own definition file

13 years ago(Re)enable select cases dialog.
John Darrington [Wed, 23 Jun 2010 15:10:02 +0000 (17:10 +0200)]
(Re)enable select cases dialog.

The handler for this action seemed to have gone missing.
Fixing it.

13 years agoSeperate the goto-case dialog into its own definition file
John Darrington [Wed, 23 Jun 2010 14:21:06 +0000 (16:21 +0200)]
Seperate the goto-case dialog into its own definition file

13 years agoCorrect makefile dependencies for perl module
John Darrington [Tue, 22 Jun 2010 12:39:56 +0000 (14:39 +0200)]
Correct makefile dependencies for perl module

13 years agoREADME.Git: Upgrade to latest Gnulib. 20100617040508/pspp 20100618040501/pspp 20100619040501/pspp 20100620040502/pspp 20100621040501/pspp 20100622040509/pspp 20100623040501/pspp
Ben Pfaff [Thu, 17 Jun 2010 03:28:29 +0000 (20:28 -0700)]
README.Git: Upgrade to latest Gnulib.

In particular this incorporates commit 39bdc0a99 "strtod: Stop using
AC_FUNC_STRTOD", which should fix problems with the strtod() replacement
when cross-compiling to Mingw.  For more information, see the thread at
http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/22091 and PSPP bug
#29965.

13 years agoEnsure that psppire's --help and --version options work even without an X server.
John Darrington [Wed, 16 Jun 2010 14:59:16 +0000 (16:59 +0200)]
Ensure that psppire's --help and --version options work even without an X server.

13 years agolexer: Fix funny indentation. 20100616040508/pspp
Ben Pfaff [Wed, 16 Jun 2010 05:27:13 +0000 (22:27 -0700)]
lexer: Fix funny indentation.

13 years agopsppire: Fix insecure temporary file creation in clipboard_get_cb().
Ben Pfaff [Wed, 16 Jun 2010 05:19:17 +0000 (22:19 -0700)]
psppire: Fix insecure temporary file creation in clipboard_get_cb().

13 years agopspp: Mark the pspp --help text as translatable.
Ben Pfaff [Wed, 16 Jun 2010 04:30:12 +0000 (21:30 -0700)]
pspp: Mark the pspp --help text as translatable.

13 years agopsppire: Re-implement --help and --version options.
Ben Pfaff [Wed, 16 Jun 2010 04:29:50 +0000 (21:29 -0700)]
psppire: Re-implement --help and --version options.

Commit f51ecb4802 "Greatly simplify PSPP configuration." accidentally
removed PSPPIRE support for the --help and --version options.  This commit
restores it (and improves upon the text previously displayed).

13 years agoDo not treat isolated CR in input data as new-line.
Ben Pfaff [Wed, 16 Jun 2010 03:41:12 +0000 (20:41 -0700)]
Do not treat isolated CR in input data as new-line.

User "tvw" on IRC reported that PSPP failed to parse data that SPSS 18
accepted.  We found that the problem was carriage return (CR) characters
in the middle of a line.  PSPP treated these as new-lines, but SPSS did
not.  This commit adopts the SPSS behavior in PSPP and adjusts one test
that checks this behavior.

This will break reading some old Mac OS files, since Mac OS before version
10 used CR without LF as new-line.  Time will tell whether this is a real
problem for our users.

13 years agoRemove unused functions make_temp_file and make_unique_file_stream
John Darrington [Tue, 15 Jun 2010 18:31:02 +0000 (20:31 +0200)]
Remove unused functions make_temp_file and make_unique_file_stream

13 years agotests: Fix test failures in calendar and expressions tests. 20100612040503/pspp 20100613040502/pspp 20100614040504/pspp 20100615040506/pspp 99/pspp
Ben Pfaff [Sat, 12 Jun 2010 03:40:35 +0000 (20:40 -0700)]
tests: Fix test failures in calendar and expressions tests.

13 years agotmpfile: Rename "struct tmpfile" to "struct temp_file". 20100611040505/pspp
Ben Pfaff [Fri, 11 Jun 2010 04:31:59 +0000 (21:31 -0700)]
tmpfile: Rename "struct tmpfile" to "struct temp_file".

Mingw builds were failing because Gnulib was replacing "tmpfile" by
"rpl_tmpfile", and this was visible only to some users of "struct tmpfile".
The safest fix seems to be just renaming struct tmpfile, so that's what
this commit does.

Thanks to Harry Thijssen <pspp@sjpaes.nl> for reporting the problem.

Bug #29965.

13 years agoRemove unnecessary translatiosn of stock items. 20100610040508/pspp
John Darrington [Wed, 9 Jun 2010 19:50:10 +0000 (21:50 +0200)]
Remove unnecessary translatiosn of stock items.

Stock items have their own translations, so it's counter
productive to ask pspp's translators to re-translate them
without good reason.

13 years agoperl-module/Makefile.PL: Change DLEXT to SO
John Darrington [Wed, 9 Jun 2010 18:22:43 +0000 (20:22 +0200)]
perl-module/Makefile.PL: Change DLEXT to SO

Apparently the former is for dynamically loaded modules,
whereas the latter is for shared libraries.  So SO is
appropriate here.  Thanks to Jeremy Lavergne for reporting
this.

13 years agoREADME.Git: Update to latest Gnulib.
Ben Pfaff [Wed, 9 Jun 2010 17:26:55 +0000 (10:26 -0700)]
README.Git: Update to latest Gnulib.

The newest Gnulib fixes problems building the relocation wrapper used on
some OSes (e.g. OpenBSD) when PSPP is configured with --enable-relocatable.

13 years agoconfigure.ac: Do not define DEPENDS_ON_LIBINTL.
Ben Pfaff [Wed, 9 Jun 2010 17:10:03 +0000 (10:10 -0700)]
configure.ac: Do not define DEPENDS_ON_LIBINTL.

If <config.h> defines DEPENDS_ON_LIBINTL, then the relocation wrapper fails
to link at install time when --enable-relocatable is used on a system that
requires the relocation wrapper (e.g. OpenBSD), because the relocation
wrapper does not link against libintl.

13 years agoinexactify: #include <config.h>
Ben Pfaff [Wed, 9 Jun 2010 04:36:51 +0000 (21:36 -0700)]
inexactify: #include <config.h>

This fixes a problem with redefined "struct option" under OpenBSD 4.7.

13 years agoSmake: Don't create .cvsignore files. 20100609040502/pspp
Ben Pfaff [Tue, 8 Jun 2010 05:57:26 +0000 (22:57 -0700)]
Smake: Don't create .cvsignore files.

Clearly these files aren't useful anymore, since we no longer use CVS.

13 years agogui: Fix permissions when creating configuration directory.
Ben Pfaff [Tue, 8 Jun 2010 16:36:08 +0000 (09:36 -0700)]
gui: Fix permissions when creating configuration directory.

http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html says
that the configuration directory should have mode 0700, so use that.

Reported by John Darrington.

13 years agogui: Create user settings directory if it doesn't already exist. 20100608040508/pspp
Ben Pfaff [Tue, 8 Jun 2010 04:45:33 +0000 (21:45 -0700)]
gui: Create user settings directory if it doesn't already exist.

The user settings directory doesn't necessarily exist.  Some program has to
create it, and PSPPIRE might be the first program that wants it, so it
should try to create it.

Discovered on OpenBSD.

13 years agopo: Avoid passing nonportable -D option to "install" program.
Ben Pfaff [Tue, 8 Jun 2010 04:42:25 +0000 (21:42 -0700)]
po: Avoid passing nonportable -D option to "install" program.

OpenBSD "install" and "install-sh" distributed with Autoconf do not
support -D, so we should not try to use it.

13 years agoDEBUG EVALUATE: Eliminate lexical corner case, rewrite tests in Autotest. 20100607040503/pspp
Ben Pfaff [Sun, 6 Jun 2010 19:45:01 +0000 (12:45 -0700)]
DEBUG EVALUATE: Eliminate lexical corner case, rewrite tests in Autotest.

The DEBUG EVALUATE command, used only for testing, used the
lex_rest_of_line() function.  I'd like to eventually get rid of all of the
uses of this function and other unusual lexical corner cases, so this
commit starts off by removing this one.

13 years agoexpressions: Improve error message for bad quarter argument to DATE.QYR.
Ben Pfaff [Sun, 6 Jun 2010 19:23:33 +0000 (12:23 -0700)]
expressions: Improve error message for bad quarter argument to DATE.QYR.

The error message issued by DATE.QYR for an invalid "quarter" argument
referred instead to a "month" value.  This makes the error message more
understandable.

13 years agoexpressions: Improve error messages evaluating invalid Boolean values.
Ben Pfaff [Sun, 6 Jun 2010 19:19:19 +0000 (12:19 -0700)]
expressions: Improve error messages evaluating invalid Boolean values.

The error message used for an invalid Boolean value was terribly generic.
This commit adds the name of the operator to the error message.

13 years agoexpressions: Don't abbreviate "number" as "num" in error messages.
Ben Pfaff [Sun, 6 Jun 2010 19:14:19 +0000 (12:14 -0700)]
expressions: Don't abbreviate "number" as "num" in error messages.

13 years agoexpressions: Improve "type mismatch" error messages from expression parser.
Ben Pfaff [Sun, 6 Jun 2010 19:41:08 +0000 (12:41 -0700)]
expressions: Improve "type mismatch" error messages from expression parser.

Before this commit, type mismatches invoking functions in expressions would
yield confusing error messages due to missing type names, e.g.:
    Type mismatch invoking MISSING(number) as missing(string).
This commit fills in the missing type names:
    Type mismatch invoking MISSING(number) as missing().

An upcoming commit will start checking error messages as part of the tests
for expressions, which should ensure that the problem does not recur.

13 years agoMOMENTS: Avoid lexical corner case in test case.
Ben Pfaff [Sun, 6 Jun 2010 19:43:10 +0000 (12:43 -0700)]
MOMENTS: Avoid lexical corner case in test case.

The DEBUG MOMENTS command, used only for testing, used the
lex_rest_of_line() function.  I'd like to eventually get rid of all of the
uses of this function and other unusual lexical corner cases, so this
commit starts off by removing this one.

13 years agopspp: Add --no-output option to allow entirely disabling output.
Ben Pfaff [Thu, 3 Jun 2010 05:02:42 +0000 (22:02 -0700)]
pspp: Add --no-output option to allow entirely disabling output.

13 years agoen_GB.po: Attended to fuzzy entries 20100605040507/pspp 20100606040502/pspp
John Darrington [Fri, 4 Jun 2010 07:15:12 +0000 (09:15 +0200)]
en_GB.po: Attended to fuzzy entries

13 years agoFix memory leak in casewriter_make_reader. 20100602040502/pspp 20100603040507/pspp
John Darrington [Wed, 2 Jun 2010 08:32:38 +0000 (10:32 +0200)]
Fix memory leak in casewriter_make_reader.

The proto member was not being unrefed when it should have been.
Reviewed by Ben Pfaff.

13 years agogui: Speed up rendering of large tables that are only partly visible. 20100530040501/pspp 20100531040501/pspp 20100601040502/pspp
Ben Pfaff [Sat, 29 May 2010 21:16:14 +0000 (14:16 -0700)]
gui: Speed up rendering of large tables that are only partly visible.

13 years agoRemove 255-byte limit on the length of literal strings. 20100529040502/pspp
Ben Pfaff [Sat, 29 May 2010 03:35:28 +0000 (20:35 -0700)]
Remove 255-byte limit on the length of literal strings.

I don't see a reason for this restriction.  I think it must date to before
support for 32767-byte string variables.

Problem reported by Dr Eberhard W Lisse <el@lisse.NA>.

13 years agoFix inconsistent label positions on piecharts.
John Darrington [Fri, 28 May 2010 11:49:43 +0000 (13:49 +0200)]
Fix inconsistent label positions on piecharts.

The labels of piechart slices did not match the positions
of the slices (possibly due to libplot legacy).  This
change fixes this problem.

13 years agoDocumentation: Added concept indices for various charts 20100528040502/pspp
John Darrington [Thu, 27 May 2010 14:33:44 +0000 (16:33 +0200)]
Documentation: Added concept indices for various charts

13 years agoAdded some very rudimentary tests for charts.
John Darrington [Thu, 27 May 2010 14:29:10 +0000 (16:29 +0200)]
Added some very rudimentary tests for charts.

Currently, all these tests do is ensure that the syntax which
should generate charts, can run without crashing.  More
rigourous tests should be added in the future, when the infrastructure
allows.

13 years agoBe more forgiving about ROC syntax
John Darrington [Thu, 27 May 2010 14:11:58 +0000 (16:11 +0200)]
Be more forgiving about ROC syntax

13 years agoFix crash on erroneous ROC input
John Darrington [Thu, 27 May 2010 14:10:08 +0000 (16:10 +0200)]
Fix crash on erroneous ROC input

13 years agoCreate the detrended np plot instead of a second normal one 20100527040507/pspp
John Darrington [Wed, 26 May 2010 20:14:10 +0000 (22:14 +0200)]
Create the detrended np plot instead of a second normal one

13 years agoRemoved uninitialised variable.
John Darrington [Wed, 26 May 2010 20:02:39 +0000 (22:02 +0200)]
Removed uninitialised variable.

Removed an uninitialised variable which was being
dereferenced and hence crashing.

13 years agoFix tests/command/sample.sh test on Mingw. 20100526040502/pspp
Ben Pfaff [Sun, 18 Oct 2009 00:12:58 +0000 (17:12 -0700)]
Fix tests/command/sample.sh test on Mingw.

On Mingw pspp.list contains CR-LF line ends, so the "grep" command to
skip blank lines needs to allow for that.

13 years agoFix tests/formats/num-out.sh test on Mingw.
Ben Pfaff [Sun, 18 Oct 2009 00:12:19 +0000 (17:12 -0700)]
Fix tests/formats/num-out.sh test on Mingw.

inexactify needs an .exe extension on Mingw.

13 years agoFix Mingw test failures due to differences in line endings.
Ben Pfaff [Sat, 17 Oct 2009 23:57:42 +0000 (16:57 -0700)]
Fix Mingw test failures due to differences in line endings.

This commit changes "diff" invocations to ignore changes in white space to
avoid spurious test failures due to differences in line endings.

13 years agoFix get-data-txt-importcases.sh test on Mingw.
Ben Pfaff [Sat, 17 Oct 2009 23:46:21 +0000 (16:46 -0700)]
Fix get-data-txt-importcases.sh test on Mingw.

On Mingw, ftell() and ftello() are unreliable when used on text files with
plain LF line endings:
    http://article.gmane.org/gmane.comp.gnu.m4.bugs/2224

This made the get-data-txt-importcases.sh test fail, because
dfm_get_percent_read() that it depends upon to determine the percentage of
the file that has been read uses ftello().  The solution is to always open
the text file as a binary file.  According to my audit of the ways that
the text file is read, this should not cause other problems.  In
particular, ds_read_line() handles both LF and CR-LF line endings.  But it
cannot handle negative effects on Unix platforms anyway, since they do not
distinguish text and binary modes.

13 years agoAdd $EXEEXT to names of binaries executed in tests.
Ben Pfaff [Wed, 26 May 2010 05:06:57 +0000 (22:06 -0700)]
Add $EXEEXT to names of binaries executed in tests.

This makes "make check" work much better when building for Windows with
the mingw cross-compiler suite.

13 years agoMove auxiliary files used for build into "build-aux" directory.
Ben Pfaff [Tue, 13 Oct 2009 05:10:55 +0000 (22:10 -0700)]
Move auxiliary files used for build into "build-aux" directory.

This reduces clutter in the root directory of the PSPP distribution.  It
is common practice for GNU software these days.

13 years agoperl-module: Copy perl-module files if missing as well as if changed.
Ben Pfaff [Wed, 26 May 2010 04:46:23 +0000 (21:46 -0700)]
perl-module: Copy perl-module files if missing as well as if changed.

I don't know why the behavior here changed, because I don't see any changes
that would cause the problem, but at least the new version makes equal
sense.

13 years agopo: Update Dutch translation.
Ben Pfaff [Wed, 26 May 2010 03:42:19 +0000 (20:42 -0700)]
po: Update Dutch translation.

Thanks to the Dutch translation team and the translationproject.org
coordinators.

13 years agoOutput viewer: Guess file type from filename suffix. 20100525040507/pspp
John Darrington [Tue, 25 May 2010 08:53:53 +0000 (10:53 +0200)]
Output viewer: Guess file type from filename suffix.

When choosing File|Export in the output viewer,
the dialog box now guesses the desired file format
based upon the given filename suffix.
Closes bug #29867

13 years agoUse gtk stock item instead of a custom one
John Darrington [Mon, 24 May 2010 13:28:18 +0000 (15:28 +0200)]
Use gtk stock item instead of a custom one

13 years agoFix compiler warnings
John Darrington [Mon, 24 May 2010 13:19:29 +0000 (15:19 +0200)]
Fix compiler warnings

13 years agoAdded remaining relevant unicode box characters
John Darrington [Mon, 24 May 2010 10:09:11 +0000 (12:09 +0200)]
Added remaining relevant unicode box characters

13 years agoEntered some extra unicode box chars in the table
John Darrington [Mon, 24 May 2010 09:41:01 +0000 (11:41 +0200)]
Entered some extra unicode box chars in the table

13 years agoCall expand all on Edit->SelectAll
John Darrington [Mon, 24 May 2010 08:22:20 +0000 (10:22 +0200)]
Call expand all on Edit->SelectAll

Expand the treeview widget before calling
select_all, since this is probably what the
user wants.

13 years agoAdded an ODT target to the output viewer clipboard
John Darrington [Mon, 24 May 2010 08:19:51 +0000 (10:19 +0200)]
Added an ODT target to the output viewer clipboard

13 years agoAdded a SelectAll menuitem to the output viewer
John Darrington [Mon, 24 May 2010 07:50:50 +0000 (09:50 +0200)]
Added a SelectAll menuitem to the output viewer

13 years agoAdd html target to output viewer clipboard
John Darrington [Mon, 24 May 2010 07:34:00 +0000 (09:34 +0200)]
Add html target to output viewer clipboard

13 years agoAdded basic clipboard functionality to the output viewer.
John Darrington [Mon, 24 May 2010 07:21:22 +0000 (09:21 +0200)]
Added basic clipboard functionality to the output viewer.

This version only allows pasting to text and utf8 targets.

13 years agoReplace LDFLAGS setting inadvertently removed by commit 3fac2920b97a068e156c376afd055...
John Darrington [Mon, 24 May 2010 06:19:59 +0000 (08:19 +0200)]
Replace LDFLAGS setting inadvertently removed by commit 3fac2920b97a068e156c376afd05583b481801ac

13 years agoAdded a GTK_STOCK_INFO icon to the file information menu
John Darrington [Sun, 23 May 2010 15:37:36 +0000 (17:37 +0200)]
Added a GTK_STOCK_INFO icon to the file information menu

13 years agoUse meaningful identifier for the Edit|Copy action
John Darrington [Sun, 23 May 2010 15:31:01 +0000 (17:31 +0200)]
Use meaningful identifier for the Edit|Copy action

13 years agoUpdate required versions of the GSL and GTK libraries
John Darrington [Sun, 23 May 2010 08:58:13 +0000 (10:58 +0200)]
Update required versions of the GSL and GTK libraries

13 years agosys-file-reader: Fix reading overlong value labels for long string variables.
Ben Pfaff [Sat, 22 May 2010 18:33:48 +0000 (11:33 -0700)]
sys-file-reader: Fix reading overlong value labels for long string variables.

Commit 6b562f8a8 "Add support for value labels on long string variables"
that added support for reading value labels for long string variables from
system files had a logic error in dealing with too-long label strings: the
sign of the subtraction was reversed.

Problem reported by Michel Boaventura <michel@michelboaventura.com>.

13 years agodissect-sysfile: Eliminate harmless GCC warning.
Ben Pfaff [Sat, 22 May 2010 18:28:51 +0000 (11:28 -0700)]
dissect-sysfile: Eliminate harmless GCC warning.

13 years agodissect-sysfile: Allow padding compressed data at end of file without error.
Ben Pfaff [Sat, 22 May 2010 18:28:18 +0000 (11:28 -0700)]
dissect-sysfile: Allow padding compressed data at end of file without error.

Compressed data in a system file can end either with a special opcode or
by padding out the last set of opcodes to an 8-byte boundary with null
bytes.  Until now, dissect-sysfile has complained about last with
"unexpected end of file".  This commit fixes the problem.

13 years agodissect-sysfile: Properly interpret padding bytes in compressed data.
Ben Pfaff [Sat, 22 May 2010 18:24:48 +0000 (11:24 -0700)]
dissect-sysfile: Properly interpret padding bytes in compressed data.

13 years agoconfigure.ac: Increase version number to 0.7.5 for translationproject. 20100522040502/pspp
Ben Pfaff [Fri, 21 May 2010 23:44:18 +0000 (16:44 -0700)]
configure.ac: Increase version number to 0.7.5 for translationproject.

translationproject.org needs a version number increment to submit a new
pspp.pot.

13 years agoRemoved unused function 20100521090628/pspp
Jason H Stover [Fri, 21 May 2010 16:02:56 +0000 (12:02 -0400)]
Removed unused function

13 years agoRemoved src/math/coefficient.[ch] which are no longer used
John Darrington [Fri, 21 May 2010 15:33:00 +0000 (17:33 +0200)]
Removed src/math/coefficient.[ch] which are no longer used

13 years agoFix problem opening files with non-ascii names on Windows
John Darrington [Fri, 21 May 2010 14:08:46 +0000 (16:08 +0200)]
Fix problem opening files with non-ascii names on Windows

13 years agoFix crash on Windows when calculating a covariance matrix of dimension 1.
John Darrington [Fri, 21 May 2010 11:11:04 +0000 (13:11 +0200)]
Fix crash on Windows when calculating a covariance matrix of dimension 1.

Calculating a covariance matrix on a single variable crashed under Windows.
This change fixes that.  It also prevents GUI users from attempting to
perform a correlation with only one variable, since if they are trying to
do that, then the have probably made a mistake.

13 years agoRevert "Removed src/math/interaction.[ch] which has been superseded by categoricals...
John Darrington [Fri, 21 May 2010 11:03:03 +0000 (13:03 +0200)]
Revert "Removed src/math/interaction.[ch] which has been superseded by categoricals.[ch]"

This reverts commit a456c361c0d324475da63d8420a2f0b108b61243.

It's still needed after all.

13 years agoRemoved src/math/interaction.[ch] which has been superseded by categoricals.[ch] 20100521040508/pspp
John Darrington [Fri, 21 May 2010 10:32:53 +0000 (12:32 +0200)]
Removed src/math/interaction.[ch] which has been superseded by categoricals.[ch]

13 years agoMerge commit 'origin/covariance'
John Darrington [Fri, 21 May 2010 10:22:51 +0000 (12:22 +0200)]
Merge commit 'origin/covariance'

Conflicts:

src/data/dictionary.c
src/language/stats/correlations.c
src/language/stats/regression.q
src/math/automake.mk

13 years agoAdded brief documentation about the FACTOR command's rotation feature
John Darrington [Fri, 21 May 2010 08:07:02 +0000 (10:07 +0200)]
Added brief documentation about the FACTOR command's rotation feature

13 years agoImplemented a rotations subdialog for the FACTOR command
John Darrington [Fri, 21 May 2010 07:59:30 +0000 (09:59 +0200)]
Implemented a rotations subdialog for the FACTOR command

13 years agoAdded ROTATION to this list of default tables
John Darrington [Thu, 20 May 2010 15:32:31 +0000 (17:32 +0200)]
Added ROTATION to this list of default tables

13 years agosys-file-reader: Variable attributes record uses long variable names.
Ben Pfaff [Fri, 21 May 2010 04:56:48 +0000 (21:56 -0700)]
sys-file-reader: Variable attributes record uses long variable names.

Michel Boaventura provided a system file for which PSPP complained about
bad variable attributes records.  I found out that this was because the
variables were specified using long names, not short names.  This commit
allows PSPP to read these variable attributes properly.

13 years agosys-file-reader: Tolerate variable labels longer than 255 bytes.
Ben Pfaff [Fri, 21 May 2010 04:54:56 +0000 (21:54 -0700)]
sys-file-reader: Tolerate variable labels longer than 255 bytes.

Michel Boaventura provided a system file with a 256-byte variable label
that PSPP rejected.  This commit allows it to be read.