Commit graph

1132 commits

Author SHA1 Message Date
Scott McCreary
ad5679f079 Restored the previous setting for BeOS to use ./ instead of ~/ 2011-08-29 22:41:19 +00:00
Scott McCreary
cc4a2a34d7 Removed workaround for open_memstream and fmemopen for Haiku as these have been fixed in Haiku.
Make use of find_directory() for locating B_USER_DIRECTORY to save TuxPaint's user files.
TODO: Get opening of files working again for Haiku.
2011-08-29 22:33:31 +00:00
Scott McCreary
7118469f05 Added an include of zconf.h for Haiku as it wasn't finding a definition for "Bytef". 2011-08-29 20:26:56 +00:00
William Kendrick
42dae52291 No longer directly accessing PNG structure members directly, now using png_set_IHDR(). (Patch from SF.net Bug #3386433) 2011-08-08 17:59:12 +00:00
Pere Pujal i Carabantes
f362d1cb2f More improvements on joystick, now Hat can move continuos and there are some shortcurts that can be associated to buttons. 2011-07-29 21:27:39 +00:00
William Kendrick
0067cbd2af Oh yeah, we already have sRGB<->linear conversions, currently used by some Magic tools. Now using it instead of ceil(pow()) and pow() for gamma-correction in thumbnail2(). (As they're look-ups, they're faster, too!) Thanks for the reminder, Albert C.! 2011-07-26 20:46:21 +00:00
William Kendrick
915e234f20 Gamma corrected '255' was coming out as '254.999985', so wrapping gamma-to-linear conversion in a ceil() call to avoid turning white into off-white (e.g., when loading an 800x600-window image into a 640x480-window Tux Paint; see Pere's email from this week). 2011-07-25 17:00:55 +00:00
John Popplewell
3bb44c9527 Disable $HOME error on win32. 2011-07-02 06:06:39 +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
2eaeb19acd Correctly filling some mouse events (SDL_PushEvent() takes an SDL_Event, but we were sending it an SDL_MouseButtonEvent).
Added a missing prototype.
Removed, or wrapped in #ifdef DEBUG, some otherwise unused variables.
Only warping mouse on keyboard handling IF KEYPRESS MOVED THE MOUSE! (Avoids mouse flying around when using keyboard shortcuts, etc.)
2011-05-25 16:59:15 +00:00
Pere Pujal i Carabantes
167dfbfea4 tweaking undo in mouse accessibility mode. 2011-05-21 06:20:32 +00:00
Pere Pujal i Carabantes
3540173338 Tuxpaint was using all cpu, restoring a SDL_Delay() and setting to 1, Thanks Bill :) 2011-05-18 21:37:42 +00:00
Pere Pujal i Carabantes
fc9c7fa36a Fixing #300881 AKA drawing shapes at release. Removing ghost previews if you try to change the current shape before completing it. 2011-05-18 19:53:48 +00:00
Pere Pujal i Carabantes
5e3f824301 Adding a switchin when the mouse returns in mouse accessibility mode. Also removing ghost previews for lines and the first step of shapes when the mouse goes out. For the secon step of shapes, I think there is a bug report in sourceforge that must be taked in account. 2011-05-15 16:05:21 +00:00
Pere Pujal i Carabantes
845985a3de Using strcoll to sort magic tools by locale name. 2011-05-14 06:34:58 +00:00
Pere Pujal i Carabantes
c7a4f37a53 Ordering the magic tools by localized translation. 2011-05-14 00:01:32 +00:00
Pere Pujal i Carabantes
e9e82f2309 To many switchouts. 2011-05-09 23:34:27 +00:00
William Kendrick
aa488fcf74 Fixed issues with 'unclicking' when clicking or hovering some places (thus leaving previews of some Magic tools) when in mouse-accessibility mode. 2011-05-02 17:58:28 +00:00
William Kendrick
20f6c8165d Left/Right Stamp navigation buttons are purple, like the other (up/down) scroll buttons found in Tux Paint. (SourceForge Bug #2918289) 2011-04-27 20:38:24 +00:00
William Kendrick
0aed8a5a86 "Paint" magic tool can now be one-click or -with-preview, to support
mouse accessibility mode (which introduced issues with tools like
'Flower' and 'Fold' (which show previews) and 'Ripples' (which doesn't
involve any dragging)).
2011-04-26 19:14:16 +00:00
William Kendrick
868cba5794 * Some work to avoid leaving Magic previews on the screen when unfinished
click/move/click (e.g., by clicking a tool, hitting a command key, or
  leaving the window) in mouse accessibility mode.
  NOTE: This currently 'undoes' any magic, and not just previews;
  tools will need to 'register' the fact that they create previews.
* Adjustment of 'backlogged event queue' handling when dealing with mouse
  motion.  (Rather than stop listening to motion events after spinning in
  the "while (SDL_PollEvent())" loop for 250ms, it now skips every few
  events.)
  This prevents circle-drawings from appearing as "D". Now, they start
  appearing as polygon-like shapes.
2011-04-26 18:47:25 +00:00
William Kendrick
e41fa8fc81 Silly attempt at improving event handling.
(Will probably need to set up event handling in a separate thread so that
we can have an increased mouse motion event buffer, to avoid artifacts
when drawing/moving quickly.  e.g., try to draw "O", but get a "D")
2011-04-22 01:02:57 +00:00
John Popplewell
4aca3712dc Fixed error reporting when make_directory() fails. 2011-04-18 20:14:20 +00:00
William Kendrick
831d15904b Nautilus and trash in GNOME apparently need no hints; they find out via Kernel.
Listing others whose trash we need to support...
2011-04-18 19:03:08 +00:00
William Kendrick
b0b83ad7ef Using dbus-send to tell KDE UI that trash has something new in it.
TO-DO: Gnome, other Linux, Windows, Mac OS X.
2011-04-18 17:39:43 +00:00
William Kendrick
ab17644c76 Deleting files from Tux Paint's 'Open' dialog now moves them to the user's Trash folder. FIXME: Only on freedesktop.org systems (e.g., Linux) (SourceForge.net Feature #3101084) 2011-04-17 06:54:38 +00:00
William Kendrick
80167ba075 Documenting experimental new 'keymouse' option, and listing FIXME/TODO for it... 2011-04-16 01:06:18 +00:00
William Kendrick
63ed74aff4 * Faster dialog pop-up animation.
* Mouse accessibility doesn't get 'stuck' in click mode when other
  actions are initiated (e.g., [Esc] or window close button to quit,
  [Ctrl+P] to print, etc.), when Tux Paint loses focus, or when mouse
  goes outside of the window.
2011-04-15 23:46:21 +00:00
William Kendrick
5b058ae71f Resurrecting informational options (--help, --usage, --version, --verbose-version) 2011-04-14 06:31:24 +00:00
William Kendrick
c314c49927 Hack to bring back support for "-q"-style short command-line args. 2011-04-14 06:02:48 +00:00
Pere Pujal i Carabantes
4c7a610cb9 mouse acces for magic, still fill and ripples are wrong in mouse accessibility mode, all other should work. 2011-03-16 22:15:25 +00:00
Pere Pujal i Carabantes
189fcc877d Major cleanup of mouse accessibility code. Also, now shapes works in mouse accessibility mode. 2011-03-15 22:32:16 +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
Pere Pujal i Carabantes
c355c1d249 Mouse accessibility and onscreen keyboard should be enabled on config files or command line. 2011-02-26 00:01:43 +00:00
William Kendrick
bfd3f69afc memset args were reversed 2011-01-13 22:20:07 +00:00
William Kendrick
f4b906181b Updated title screen copyright to 2011.
Adjusted default-stamp-size choice, max-stamp-size rules (for overscan),
and corrected bug in stamp size selector. [SF.net Bug #1668235]
2011-01-08 17:53:29 +00:00
Martin Fuhrer
3bc68ecf72 Define fmemopen_alternative for Mac OS X. 2011-01-02 17:53:37 +00:00
William Kendrick
1f1304c662 No longer forcing centered window position. SF.net Bug #3138446 2010-12-17 17:47:37 +00:00
John Popplewell
74c460d3f2 Cleaned up a couple of problems when DEBUG is defined.
Enabled fmemopen_alternative on Windows.
Rearranged calls to rsvg_init()/rsvg_term() so that they are only called
once at startup and shutdown. This was causing segfaults when opening SVG
files and apparently it's not just Tux Paint:

http://0pointer.de/blog/projects/beware-of-rsvg-term.html

Slightly hysterical, but a quick Google search reveals other projects with
the same problem/solution.

Builds and runs on Windows again.
2010-12-17 15:43:53 +00:00
Scott McCreary
b5a2fc12bf Save userdata to ~/tuxpaint on BeOS and/or Haiku. 2010-09-11 06:43:04 +00:00
Pere Pujal i Carabantes
c669418b1e Changing the font path of onscreen keyboard to be relative to DATA_PREFIX. 2010-08-17 21:20:15 +00:00
Scott McCreary
ea4f7f2b3f Fixed several gcc2 errors, and a handful of warnings. 2010-08-16 15:58:45 +00:00
Pere Pujal i Carabantes
c6a52e3a2e More on onscreen keyboard by Ankit. Now plain keys and Caps are working right, and the keyboard is optional per variable onscreen_keyboard. 2010-08-16 07:08:58 +00:00
Pere Pujal i Carabantes
dc049c0530 Function renaming and cleanup in onscreen keyboard by Ankit. 2010-08-14 23:36:03 +00:00
Pere Pujal i Carabantes
54c15c6ba2 More on onscreen keyboard by Ankit.
Can CVS acces be given to Ankit yet?
2010-08-13 23:40:58 +00:00
Pere Pujal i Carabantes
873681d1de On screen keyboard by Ankit. 2010-08-12 23:26:12 +00:00
Pere Pujal i Carabantes
d0f636a1c5 More work from Ankit on joystick. 2010-08-10 23:13:59 +00:00
Pere Pujal i Carabantes
2fb9c3c298 More on joystick from Ankit. 2010-08-09 23:42:24 +00:00
Pere Pujal i Carabantes
198d581346 Joystick access from Ankit. 2010-08-09 06:54:38 +00:00