Commit graph

39 commits

Author SHA1 Message Date
Bill Kendrick
eda0a646be Parse support for [no]magicsizes; new MAGIC_FEATURE_CONTROL bitmask 2023-04-12 00:11:11 -07:00
Bill Kendrick
95cc093b80 Joystick button can be config'd to activate Fill tool
https://sourceforge.net/p/tuxpaint/feature-requests/199/
2023-02-18 14:17:55 -08:00
Bill Kendrick
9c25b2fda5 Stamp rotation on by default 2022-09-05 00:42:03 -07:00
Pere Pujal i Carabantes
a433b4c79c Adding stamp rotation. The xor interface seems to work fine if only the mouse is used, still need to adapt it to shortcut key combos. 2022-09-02 02:11:43 +02:00
Bill Kendrick
b2225a62f5 WIP Reverse sorting in Open & Slideshows dialog
...via --reversesort option.  WIP; need docs updated.
(Also need Tux Paint Config. changes, but that's another repo)
2022-05-15 23:56:53 -07:00
Bill Kendrick
b897e47cc2 parse.gperf: make memcpy() call happy
Hopefully this doesn't break anything; I'm struggling to
understand how this stuff works.
2022-03-22 21:24:49 -07:00
Bill Kendrick
176749ba9c Grok "[no]brushspacing" commandline/config option
For forthcoming feature
2022-01-19 00:29:05 -08:00
Bill Kendrick
4a3eacdbe2 FIXME note in src/parse.gperf re:compiler warnings 2021-10-24 00:59:06 -07:00
Bill Kendrick
85356473e4 Doc'ing new "colorsrows" option
In manpage, and (via 'tuxpaint-docs' update) in OPTIONS docs.
Also, added a bash tab-completion entry for it.
(h/t Pere for enabling the feature.)
2021-02-05 17:56:20 -08:00
Pere Pujal i Carabantes
43d4f8b494 Activating the ability to have more than one colors row.
Usefull for people with coarse input devices that need bigger buttons but got color buttons too narrow.
Just added the option, all the support code where already in place.
2021-02-05 22:14:39 +01:00
Pere Pujal i Carabantes
7121c75c78 Option 'buttonsize' to change the size of the buttons. 2020-09-28 13:35:18 +02: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
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
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
f7d30d3222 Added --nostereo option
Ability to disable stereo panning effect (e.g., paint brush, UI
elements sound effect feedback, etc.), useful for users with
hearing impairment in one ear, or situations where one speaker or
headphone is being used.  Use "--nostereo" command-line option
or "nostereo=yes" config. file option.
2019-09-21 16:33:55 -07:00
Bill Kendrick
7938480174 Clean up GCC warnings (2019-08-29 edition)
Updated most parts of the code that were throwing warnings in GCC.
2019-08-30 00:01:00 -07:00
Bill Kendrick
5d9ceca076 "New colors last"; place colors at end of New
New option to place color palette items at the end of the "New"
dialog, rather than at the beginning.  Useful for when users
would want to pick from a set of Starters and/or Templates,
e.g., in a school or museum environment.

Available via command-line option "--newcolorslast", and
config file setting "newcolorslast=yes".  (And anti-option to
override config file settings, "--newcolorsfirst" and "...=no",
which represents the original behavior, which continues to be
the default).

Suggested by Bernard Verhaeghe.
2018-12-18 22:37:03 -08:00
William Kendrick
06b94d7f6d Getting "--saveover=XXX" options to work again (by coercing to their
synonyms, "--saveoverXXX=yes")
2014-08-21 08:34:38 +00:00
William Kendrick
e6365974f6 * --joystick-buttons-ignore option can be used to ignore joystick buttons
(rather than all non-command-assigned buttons being used asi
  left-mouse-click)
 * Updated docs re: joysticks a bit.
2014-03-31 05:54:32 +00:00
William Kendrick
0b27bec2e8 * Squelching a lot of debugging output, unless DEBUG is #define'd
* Added "--joystick-dev" option, for specifying which joystick device
   Tux Paint should listen to
   * "--joystick-dev list" is now used to list the available devices
 * Cleaned up some 'usage' output
2014-03-30 07:23:20 +00:00
William Kendrick
efd8d14585 A few tweaks (including wrapping stuff in #ifdef __APPLE__) to make sure
stuff still compiles under Linux, after applying Eric P.'s OSX changes.
2014-03-20 00:11:52 +00:00
William Kendrick
e990b48de7 Large bundle of OS X tweaks by Eric P. (basis of the 10.9-compatible
pre-release made in Dec. 2013):
 * Fix OS X 10.9 issue of current directory set by Finder
   to something else than folder where app bundle resides.
 * Some Mac OS X build / project changes & updates.
 * Adjustments to Mac OS X fontconfig config file, to avoid warnings
   and make things more robust.
 * Updates to some #include's to catch up with newer library revisions.
 * Tweaks to pixel read/write on Apple.
 * Introduction of 'intprt_t' casting to avoid warnings on x64.
 * Some additional debugging output.
 * Logging stderr & stdout to /tmp/tuxpaint.log
Untested (I don't have a Mac!)
2014-03-19 23:39:17 +00:00
Pere Pujal i Carabantes
15273cdd29 Adding an option to select the initial onscreen keyboard layout, adding an option to disable changes between layouts 2011-09-04 22:35:24 +00:00
Pere Pujal i Carabantes
a9d0372e14 Forgot to commit those 2011-07-29 21:44:30 +00:00
William Kendrick
fe56c473a5 Getting 'saveover...' options working as they used to, under the new gperf stuff.
Showing a warning when using save-related options when "nosave" is set. (SourceForge Bug #3327493)
2011-06-24 15:49:25 +00:00
Pere Pujal i Carabantes
7041da207d Joystick should now work. 2011-05-27 21:14:15 +00:00
William Kendrick
5b058ae71f Resurrecting informational options (--help, --usage, --version, --verbose-version) 2011-04-14 06:31:24 +00:00
William Kendrick
2715f918e9 Documenting mouse accessibility and onscreen keyboard options.
Normalizing those options ('-' instead of '_' in their names, like other opts.)
2011-04-14 06:26:45 +00:00
Pere Pujal i Carabantes
4a11638d09 Enabling accessibility and onscreen keyboard via config files and command line 2011-03-01 09:34:09 +00:00
Scott McCreary
ba4b907d49 Fixes for parse.gperf on gcc2 Haiku build (perhaps others?). 2010-06-04 01:42:54 +00:00
William Kendrick
7b31b7549d Patch collection from Volker Grabsch to help Tux Paint cross-compile for Windows:
* Solve the 'FIXME: "finddir" ...' (The trick is to use "=" instead of ":=". That way, $(beos_PREFIX) will only be evaluated when it is actually used.)
* include "shlwapi.h" instead of "Shlwapi.h" (Otherwise, compiling for Windows will fail on a case sensitive file system. (e.g. a Unix file system when cross compiling))
* use FILENAME_MAX instead of NAME_MAX (FILENAME_MAX is more portable than NAME_MAX. Also, recent MinGW versions don't support NAME_MAX anymore.)
* Exposing font_thread_aborted via extern [tweak to Volker's patch which removed a logic test, which is probably not what we want]
* include parse.h (and thus compiler.h) after <stdio.h> (This ensures that the perror() macro of compiler.h won't confuse the perror() function declaration of <stdio.h>.)
* fix another compiling error about undefined variables (The tuxpaint.c uses printcommand/altprintcommand/papersize even when they aren't defined, i.e. when libpaper is not used. This patch solves the issue by using "#ifdef PAPER_H")
* call show_available_papersizes() only when libpaper is used
* permit cross compiling by using Make variables instead of hard-coded tools

Documented scottmc's Haiku improvements.
2010-02-25 07:06:13 +00:00
Albert Cahalan
e3a971194c options working fairly well 2009-11-23 07:45:24 +00:00
Albert Cahalan
3d15a468cd lots of functions made static (some had to be moved) 2009-11-22 23:17:35 +00:00
Albert Cahalan
db4ad99ad8 lang/locale work much better now 2009-11-22 09:46:41 +00:00
Albert Cahalan
a9b8f6ea1c show_usage takes exit code, and knows what to do 2009-11-21 05:10:44 +00:00
Albert Cahalan
034d5c9fb9 empty string is no good 2009-11-21 04:58:00 +00:00
Albert Cahalan
e69985db3b report conflicting options 2009-11-21 03:39:50 +00:00
Albert Cahalan
9a00845f50 moving more code past start of font scanning 2009-11-16 08:54:48 +00:00
Albert Cahalan
667bc062f9 a parser for config files and the command line 2009-11-16 04:49:03 +00:00