Commit graph

1220 commits

Author SHA1 Message Date
Bill Kendrick
69faf22bb4 WIP: EXTENDING: On-screen keyboard creation
Fleshing out what on-screen keyboard files are and do...
Work-in-progress.
2020-08-29 18:36:20 -07:00
Bill Kendrick
4bbb17f0c4 EXTENDING: Misc improvements; stub of OSK section
Stub of on-screen keyboard section.  More misc. improvements
to the doc (e.g., replace "+/- 180 degrees" with "±180°")
2020-08-29 17:20:49 -07:00
Bill Kendrick
3381f46f8f EXTENDING: link to Git, not CVS
Git is the new hotness.
2020-08-29 17:00:42 -07:00
Bill Kendrick
552c148817 EXTENDING docs clean-up; adding TOC
* Add linked table of contents
 * <cite> some terms
 * <code> some paths
 * Replace &nbsp; with CSS
 * Brushes no longer limited to max 40x40 pixels in size
 * Mac OS X is now macOS
 * Other misc improvements
2020-08-29 16:58:31 -07:00
Bill Kendrick
61998e4d00 Larger OSK on larger windows; larger OSK font
On-screen keyboard (visible when the feature is enabled, while
using the "Text" and "Label" tools) now appears with larger
(48x48 pixel, vs 24x24 pixel) buttons, when Tux Paint's window
(or fullscreen) size is large enough to fit them with the
chosen layout.
(h/t Anat & Aviv, who suggested it to help with users of
eye-tracking systems)

Also, on-screen keyboard buttons use a slightly larger font
(16pt vs 12pt, previously seen on the small keyboard;
32pt on the large keyboard).
2020-08-25 22:00:43 -07:00
Bill Kendrick
1a21e1d56d README didn't mention Templates
It only mentioned Starters!
2020-08-25 19:55:54 -07:00
Bill Kendrick
6f0b71b5c3 Japanese README HTML->TXT & doc'ing Win32 chgs
Documenting some recent commits from Shin-Ichi.
2020-08-25 15:07:57 -07:00
dolphin6k
83da333f56 Updated ja/html/README.html for version 0.9.25 2020-08-21 22:18:33 +09:00
Bill Kendrick
98b5be3e3b Doc'ing Pere's Catalan l10n update 2020-08-17 19:58:31 -07:00
Bill Kendrick
b60b2ff819 Doc'ing Shin-ichi's recent contribs
libimagequant < 2.8.0 support, and Japanese l10n update
2020-08-17 19:57:26 -07:00
Bill Kendrick
0a853b280c "Eraser" tool now draws smoothly connected strokes 2020-08-16 12:31:53 -07:00
Bill Kendrick
a79a76f4c3 New, smaller sizes available in "Eraser" tool
(h/t Jackson Bray for the suggestion)

Also, slight improvements to how circular eraser size calculations
are handled, to allow for radius down to ERASER_MIN of 5.
2020-08-16 12:15:55 -07:00
Bill Kendrick
d2d9b98291 Wrapping up "shapes from corner" option
Works well, or at least well enough, for our current batch of
shapes.
2020-08-15 16:20:51 -07:00
Bill Kendrick
2159f8616b WIP: Shape controls -- center vs corner
Adding control buttons to the Shapes tool, allowing for shapes
to be drawn from the center (as before) or from a corner
(more like other paint packages).  The controls do nothing
at this time, but are visible and can be clicked.  This is a
work in progress.

The controls may be removed using a configuration option.
2020-08-15 00:55:31 -07:00
Bill Kendrick
d5b020520d Shoe print brush 2020-08-14 23:51:49 -07:00
Bill Kendrick
59b358ff2f Paw prints brush 2020-08-14 22:45:32 -07:00
Bill Kendrick
400458931c Human footprints brush 2020-08-14 22:27:22 -07:00
Bill Kendrick
08b33d6d91 Icelandic translation update
h/t Sveinn í Felli
2020-07-31 21:44:48 -07:00
Bill Kendrick
f1f52da42d Galician translation update
h/t Miguel Bouzada
2020-07-30 23:39:29 -07:00
Bill Kendrick
c41395c091 Basque translation update
h/t Alexander Gabilondo
2020-07-30 23:34:28 -07:00
Bill Kendrick
5b55f7f2e3 Santali (Ol Chiki) update
Santali (Ol Chiki) translation update from new contributor
Prasanta Hembram.
2020-07-30 23:27:28 -07:00
Bill Kendrick
c13c543cfe Wrap up GIF export; support speed
Different speed settings in slideshow dialog affect the speed
of the exported GIF.
2020-07-29 22:09:10 -07:00
Bill Kendrick
63b5aa15d6 Sub-section links w/n README's Table of Contents 2020-07-27 23:41:00 -07:00
Bill Kendrick
dfdf720895 Documenting Export & GIF Export in README 2020-07-27 23:28:41 -07:00
Bill Kendrick
cbb56c4041 Ran English HTML docs through HTML Tidy
See "RELEASE.txt" for the invocation.  Mended a few things prior
to final run of `tidy`, based on HTML Tidy's output.

Updated any affected TXT files via Makefile.
2020-07-27 23:01:06 -07:00
Bill Kendrick
b93317efae Clean up RELEASE.txt; adding 'tidy' instructions
Planning to run 'tidy' on the HTML doc files.  Documenting the
arguments I'm providing to 'tidy', for future reference,
within the RELEASE.txt file.

Also, cleaned up and improved RELEASE.txt.
2020-07-27 22:38:06 -07:00
Bill Kendrick
8a5bcb3fe5 README.html - Mend some HTML syntax issues
Wrap attributes in quotes, don't store lists within <p>...</p>, etc.
2020-07-27 22:33:38 -07:00
Bill Kendrick
513498ada7 OPTIONS.html - close dangling <li>s 2020-07-27 22:02:05 -07:00
Bill Kendrick
a07c5b5917 FAQ.html - close dangling <li>s 2020-07-27 21:59:11 -07:00
Bill Kendrick
c1c23558cc ADVANCED-STAMPS-HOWTO.html - close dangling <li>s 2020-07-27 21:56:21 -07:00
Bill Kendrick
e28ab7938f README.html - close dangling <li> tags 2020-07-27 21:55:20 -07:00
Bill Kendrick
43edf9fe3e Animated GIF export basics working
Tux Paint can export an animated GIF to the export directory
(e.g., ~/Pictures/TuxPaint) from the Open->Slideshow dialog.

To do -- GIF's animated speed should be based on speed slider
in Slideshow dialog.

To do -- Document this new feature (and single image (PNG) export)
in the README documentation.
2020-07-27 00:29:53 -07:00
Bill Kendrick
4ba4c11911 Properly handling getenv() returning "" not NULL
i18n code was checking for local-related environment variables
(e.g., "getenv("LANGUAGE")") coming back as a NULL if unset.

However, on my laptop, under Kubuntu 20.04 with GLIBC 2.31, a
"LANGUAGE" env. var. is set, but it's blank.

Tux Paint failed to attempt any fallback (e.g., checking "LANG")
in that situation, which was causing the description text corruption
that was corrected in a previous commit.

That commit also mistakenly suggested that the issue might've been a
difference with GCC versions, but the problem was deeper in Tux Paint's
code (in i18n.c), and was triggered by an unexpected environment.
2020-07-26 17:17:14 -07:00
Bill Kendrick
42512a67b0 Don't use extern for num_wished_langs
WORK IN PROGRESS -- Attempting to mend an issue where stamp descriptions
are not loading.

Also, making things safer when a problem occurs.

Using gcc 9.3.0 compiler, this was happening in 0.9.25 during
development, but also affected 0.9.24 and 0.9.23, which worked
fine under earlier versions of gcc.
2020-07-26 16:42:12 -07:00
Bill Kendrick
e50a0ef84c Improved safety when copying things into strings
Created "safe_" variations of 'strncpy()', 'strncat()',
and 'snprintf()', to ensure a truncated source string doesn't
leave the destination buffer without a NUL termination character.

Replaced all calls (in "tuxpaint.c" only, so far) to the standard
functions with calls to the new safer versions.

Replaced most calls to plain 'strcpy()', 'strcat()' and
'sprintf()' (which can cause buffer overruns) with the new functions.
2020-07-26 16:13:53 -07:00
Bill Kendrick
b0a2b4dacc Completed single image export function
From "Open" dialog, select an image (single click, or use
arrow keys / etc., to highlight the image), then select the
"Export" button at the lower right.

The image will be saved in the export directory.  By default
this will be based on the config found via the XDG_CONFIG_HOME
environment variable, which is scanned for a "XDG_PICTURES_DIR"
setting.  If none is found, "Pictures" in the directory specified
by the HOME env. var. will be used.  In both cases, a new
"TuxPaint" subdirectory will be created, and exports will be placed
there.

The export location may be overridden using the "--exportdir"
command-line option or "exportdir" config file option
(e.g., "--exportdir /path/to/dir" or "exportdir=/path/to/dir",
respectively).  In this case, the directory is assumed to preexist,
and no "TuxPaint" subdirectory will be made.

There's currently no way to disable the export feature altogether.
If there's demand, we can add it as a simplification option.

Finally, this feature simply copies the PNG file (but no extra
data files) from Tux Paint's "saved" directory to the export dir.

Closes https://sourceforge.net/p/tuxpaint/feature-requests/192/
2020-07-26 14:10:03 -07:00
Bill Kendrick
f8cce36435 Further work on animated GIF export: XDG Pictures
Using XDG's user dir settings to determine where pictures are
stored for a user (e.g., "~/Pictures" -- used as a fallback).
May be overridden using "--exportdir".

Also, while I was updating some docs, replace references to
"Mac OS X" with "macOS", the new name of that OS these days.
2020-07-25 16:45:17 -07:00
Bill Kendrick
8c3a07294b Beginning GIF export
Beginning addition of an option to export animated GIFs
from the Open -> Slideshow dialog, after choosing the images.

Non-operable at this time, but a button has been added (and will
provide a hint to select 2 or more images, when clicked).
2020-07-25 00:18:46 -07:00
Bill Kendrick
af039e6f7b Rebuilt TXT versions of HTML docs
After 0.9.24->0.9.25 bump.
2020-06-22 23:06:16 -07:00
Bill Kendrick
e87f36d9a7 Fix Haiku "unable to open saved files" bug
Appling patch from a92961004d
that fixes https://github.com/haikuports/haikuports/issues/3045
2020-06-22 23:04:13 -07:00
Bill Kendrick
b65d7f9da4 Bumping version to 0.9.25 2020-06-22 22:58:12 -07:00
Bill Kendrick
90871308ef Bump release date to today (2020-05-29) 2020-05-29 20:15:45 -07:00
Bill Kendrick
10c833e565 Bump version date -> 2020-05-23 2020-05-23 23:32:49 -07:00
Bill Kendrick
b0dda9ac26 Updates to RPM .spec file
Disable target "install-xdg". Add ImageMagick for BuildReq.
(From Shin-Ichi)
2020-04-26 21:19:33 -07:00
Bill Kendrick
d172f38d4d Win32 build (& doc) tweaks
TOYAMA Shin-ichi noticed that when building for Win32 under mingw/msys,
an #include of "librsvg-cairo.h" was also necessary.

He also bumped the version # in win32/resources.rc
(and I put his credit in there).

I updated docs/RELEASE.txt to mention that .rc file also needing
updated when preparing a new release.
2020-04-10 19:05:52 -07:00
Bill Kendrick
91505fae8e Debug output clean-up
Wrapped some debug output in "#ifdef DEBUG" tests,
and made sure some warnings and errors were going to
STDERR, rather than STDOUT.

Motivation: Less noise while launching/using Tux Paint,
unless it matters.
2020-04-02 22:15:13 -07:00
Bill Kendrick
b9c929a0a1 Rework how progress bar shown with stamps
Was drawing progress bar while DRAWING stamps into the UI
(in https://sourceforge.net/p/tuxpaint/tuxpaint/ci/ad4bfde57c170082d93979a7073f7358872eca21/),
even if they were already loaded and thumbnailed.

Now only doing it when loading a new stamp.  Should hopefully
help with performance.  (h/t Pere for reporting slowness on Android)
2020-04-01 22:29:57 -07:00
Bill Kendrick
950ad369b9 Doc'ing Mark Kim's macOS build doc update 2020-04-01 22:10:37 -07:00
Bill Kendrick
50a570ef2b Doc'ing Norwegian Nynorsk translation update 2020-03-30 23:25:01 -07:00
Bill Kendrick
a404bfdba8 Doc'ing Valencian update 2020-03-29 17:11:29 -07:00