Ben Pfaff [Sun, 25 Oct 2020 06:07:28 +0000 (23:07 -0700)]
doc: Generate output for tutorial examples at build time too.
The trickiest part here is that the final example should only include part
of the output, the coefficients tables only. For that, we can use the
pspp-output utility to pull just those tables from the output file.
John Darrington [Sun, 18 Oct 2020 08:15:35 +0000 (10:15 +0200)]
Restore the mime defintion file pspp.xml
Commit 8ec823cac8dd9eee5d0ad6cee9d001b9fdb673ba inadvertently
removed pspp.xml - the mime definition file. This change
restores it and also takes it out of the gui definition directory.
Ben Pfaff [Sun, 11 Oct 2020 02:58:17 +0000 (19:58 -0700)]
README.Git: Increase gnulib version.
Commmit 1b53d13b2b8a ("relocatable-prog: Fix for multiple relocatable
library directories.") is needed for a commit I plan to make. This is
an update to the newest gnulib version.
John Darrington [Sat, 10 Oct 2020 06:21:56 +0000 (08:21 +0200)]
Rework the spreadsheet import feature of the grapic user interface
This change adds a feature where the user can preview the data from
a spreadsheet when preparing to import it. This should make importing
spreadsheets somewhat easier. Some rework of the other import code
was also necessary as part of this change.
John Darrington [Sat, 3 Oct 2020 05:37:26 +0000 (07:37 +0200)]
Remove width specifications from range strings (eg %3d-%3d)
src/language/data-io/data-parser.c: Change %3d to %d
src/language/data-io/print.c: ditto
Having these width specifications resulted in an ugly space after
the dash. Removing them means the the output is more aesthetically
pleasing in my opinion.
John Darrington [Sat, 3 Oct 2020 05:18:47 +0000 (07:18 +0200)]
Ensure that data sheet and variable sheets can be constructed via GtkBuilder.
This change removes the reliance of the _new functions on setting
necessary properties. Otherwise these objects do not get set
when constructed by GtkBuilder.
John Darrington [Sat, 5 Sep 2020 03:08:12 +0000 (05:08 +0200)]
Avoid calling stdio function calls from within signal handler.
fprintf &c is unsafe in a signal handler, because it is non-reentrant.
This change therefore uses write, and prepares the message to be
printed outside of the handler.
John Darrington [Sat, 19 Sep 2020 06:54:40 +0000 (08:54 +0200)]
Select Cases Dialog: Make the 'All Cases' button easier to select.
The radiobutton area is very small and hard to click.
This change adds an Eventbox under the corresponding
label, So clicking on the label will have the same effect.
Ben Pfaff [Sat, 12 Sep 2020 16:53:52 +0000 (09:53 -0700)]
i18n: Fix use of const qualifiers in create_iconv().
Only the inbuf parameter of iconv() takes a const qualifier, on some POSIX
nonconforming systems, but all of its parameters were qualified here, which
caused warnings on those nonconforming systems. This fixes the problem.
John Darrington [Sat, 12 Sep 2020 12:35:18 +0000 (14:35 +0200)]
Regression Dialog: Reduce the size of the Independent Variables widget.
It is uncommon to perform a linear regression on many predictor variables.
But it is quite common to have many depdendent variables. This change
reduces the size of the predictor variable view widget and increases the
size of the regressor variable view widget.
psppire-output-view: modified the way how copy and paste works
Copy (no Paste in output window) works now the usual gui way. You
can select an item in the output window like a table or a chart and
it will be highlighted. When you now do the copy operation via menu
or key, then the item is copied to the clipboard. With the change
the clipboard now provides the additional formats svg and various image
formats. You can now paste to inkscape, libreoffice suite and gimp.
Ben Pfaff [Mon, 7 Sep 2020 21:18:14 +0000 (14:18 -0700)]
HOST: Implement timeouts on Hurd.
The existing implementation didn't work and I do not know why.
Hurd isn't documented to have different behavior for signals on
execl(). The timeouts were not firing, however.
This implementation does work.
Thanks to Friedrich Beckmann for reporting the issue (via Debian
buildd).
Ben Pfaff [Mon, 7 Sep 2020 17:45:12 +0000 (10:45 -0700)]
po: Simplify wget command.
https://translationproject.org/html/maintainers.html shows all
kinds of recursive options, but that's for retrieving all of the
po files in one go. This makefile doesn't do that, so the
recursive options don't help and provoke warnings from wget.
Ben Pfaff [Sat, 5 Sep 2020 23:15:27 +0000 (16:15 -0700)]
Release version 1.4.1.
This commit moves the version number *backward*, because we decided
that it was necessary to release 1.4.1 with all of the commits that
were currently on master.
Ben Pfaff [Sat, 5 Sep 2020 22:08:33 +0000 (15:08 -0700)]
Makefiles: Use $(PHONY) instead of .PHONY.
Avoids a warning from Automake in Smake:
src/ui/gui/automake.mk:463: warning: .PHONY was already defined in condition TRUE, which includes condition HAVE_GUI ...
Makefile.am:91: 'src/automake.mk' included from here
src/automake.mk:55: 'src/ui/automake.mk' included from here
src/ui/automake.mk:21: 'src/ui/gui/automake.mk' included from here
po/automake.mk:128: ... '.PHONY' previously defined here
Makefile.am:87: 'po/automake.mk' included from here
appstream provides the metainfo.its file which is required for
xgettext to extract the translation strings of the
src/ui/gui/org.fsf.pspp.metainfo.xml.in file
The metainfo.its file is located in /usr/share/gettext/its on
debian and on opensuse. It is provided by the packages
John Darrington [Sat, 5 Sep 2020 03:08:12 +0000 (05:08 +0200)]
Remove the --enable-debug configure option.
In practice, it is faster and simpler to make local modifications
to the respective files which debugging rather than reconfiguring
with --enable-debug. Furthermore this is just another configure
option which confuses users and serves little purpose.
John Darrington [Sat, 5 Sep 2020 02:31:28 +0000 (04:31 +0200)]
po/automake.mk: Fixed typo in variable names.
This resulted in po/pspp.pot not getting updated when it should have been.
This is a very good demonstration of the reason why carefully desigined
languages should insist on a variable being declared before it is used.
Also make the file depend on Makefile, so that it gets rebuilt when the
PACKAGE VERSION changes.