Commit graph

947 commits

Author SHA1 Message Date
Bill Kendrick
8529786356 Doc'ing (WIP) larger-UI-buttons in CHANGES.txt
Need fuller description, updating OPTIONS, more testing
and tweaking, etc.
2021-01-18 11:40:05 -08:00
Bill Kendrick
f2e04e03b0 Doc'ing CPU improvement
h/t Mark Kim
2021-01-16 22:36:21 -08:00
Bill Kendrick
c929224ae5 Galician tuxpaint update 2021-01-15
h/t Miguel Bouzada
2021-01-15 09:43:03 -08:00
Bill Kendrick
c97932606f mkdir exportdir's parent, if necessary
Tux Paint's export features will fail if the parent
of the export directory didn't exist.  e.g., using the
default (either via XDG or hard-coded fallback) of
"~/Pictures/TuxPaint/", Tux Paint could not export if
"~/Pictures/" didn't exist yet.  It will now try to
mkdir it as well.  h/t Tim Dickson

Updated OPTIONS documents to explain this.

Also, documenting --exportdir in manpage (was missing!)
2021-01-13 22:48:29 -08:00
Bill Kendrick
1cb04f1e0a "Clone" magic tool 2021-01-10 22:46:34 -08:00
Bill Kendrick
27b7dfddf5 Added 'how to build using old macOS' to changelog 2021-01-09 17:33:53 -08:00
Bill Kendrick
4049b6cbbc New magic tool: Pixels
Suitable for simple 'pixel art'.  Draws 8x8 pixel rectangles on
a grid across the canvas.

Sound effect created via a small Atari BASIC program sampled in
the open source 'Atari800' emulator (emulating the POKEY sound
chip), and trimmed in Audacity.
2021-01-06 23:02:11 -08:00
Bill Kendrick
e3356eb4d8 Mended broken links in README.html
Mended some broken relative links in README.html that
pointed to other parts of the docs.

Also, rename "Mac OS X" to "macOS" in more places.
2020-12-27 18:11:27 -08:00
Bill Kendrick
bcc233b542 Bump ver to 0.9.26; Expanded release steps
Expanded the steps for making and posting releases
(docs/RELEASE.txt).

Bumped version to 0.9.26.
2020-12-27 17:45:13 -08:00
Bill Kendrick
1c07b66c9f Bump release date; tidy HTML files 2020-12-27 00:37:23 -08:00
Bill Kendrick
1801c8dd1f Doc'ing Norwegian Bokmål & Nynorsk updates
h/t Karl Ove Hufthammer
2020-12-12 19:19:50 -08:00
Bill Kendrick
387f1ed06d Doc'ing French update 2020-12-08 09:45:06 -08:00
Bill Kendrick
71152d1369 Bump latest mod. date in docs and tuxpaint.c 2020-11-21 14:27:26 -08:00
Bill Kendrick
a36dcee321 Mend personal Template loading bug in New dialog
Mended bug where a personal Template could not be loaded
due to how we tracked which entry in the "New" dialog
was the first template image.

Also, don't track directories when searching for Starters and
Templates (e.g., ".", "..", and ".thumbs"), since it's just
a waste of time/space.
2020-11-13 20:36:35 -08:00
Pere Pujal i Carabantes
aae22f0593 Correcting Devaganari to Devanagari 2020-11-06 21:47:42 +01:00
Bill Kendrick
df7d402cc2 Converted FAQ from bullet lists to definition lists.
(Forgot to include CHANGES.txt itself)
2020-10-30 13:46:40 -07:00
Pere Pujal i Carabantes
ba26daa6c6 Adding Sardinian translation. 2020-10-29 20:35:44 +01:00
Bill Kendrick
810d8e0c22 Slight clean-up to CHANGES 2020-10-25 15:51:36 -07:00
prasantahembram
4c80d9d0cc Signed-off-by: prasantahembram <prasantahembram720@gmail.com> 2020-10-25 15:45:23 +05:30
Bill Kendrick
0af138568e Doc'ing some recent changes by Shin-Ichi & Pere 2020-10-23 23:21:26 -07:00
Bill Kendrick
d3212c6632 Doc'ing Shin-Ichi's Mingw64 and install-dlls.sh
Doc'ing Shin-Ichi TOYAMA's recent commits.
2020-10-14 23:27:57 -07:00
Bill Kendrick
860f43ff97 Galician translation updates
From Miguel Bouzada.
2020-09-16 22:29:20 -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
6f0b71b5c3 Japanese README HTML->TXT & doc'ing Win32 chgs
Documenting some recent commits from Shin-Ichi.
2020-08-25 15:07:57 -07: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
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
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