Ben Pfaff [Tue, 27 Oct 2020 02:35:09 +0000 (19:35 -0700)]
Use gnu_printf in attribute(()) to indicate GNU printf extension support.
By writing ordinary printf (or __printf__) inside __attribute__((format)),
one indicates that the system's typical format specifiers are supported.
This is OK for building for glibc, but it falls down for building for
mingw, since PSPP actually supports GNU format specifiers there via gnulib.
By writing gnu_printf instead, we avoid some incorrect warnings on mingw.
John Darrington [Mon, 26 Oct 2020 18:11:28 +0000 (19:11 +0100)]
TeX driver: Conditionally emit "\input graphics" control sequence.
Only emit the \input graphicx control sequence if it is actually needed.
This way, systems which do not have the graphicx package installed will
not fail on examples which need no graphics component.
Ben Pfaff [Mon, 26 Oct 2020 00:29:12 +0000 (17:29 -0700)]
doc: Improve formatting of tutorial in PDF output.
In the PDF version of the manual, excerpts from the output were formatted
awkwardly because output couldn't be split across pages. In one case,
the output spilled off the bottom of the page. This fixes the problem.
This change is pretty big. It's because @float can't split across pages,
but without @float one must write in a different style that doesn't assume
the reader can jump back and forth to figures and tables. I also took
the opportunity to start using pspp-output to excerpt portions of output.
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.