Commit graph

819 commits

Author SHA1 Message Date
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
Pere Pujal i Carabantes
73ef393b13 More tweaks on keyboard access from Ankit 2010-07-28 23:46:02 +00:00
Scott McCreary
09e48361dd Small gcc2 fix. 2010-07-01 07:03:48 +00:00
Pere Pujal i Carabantes
cf3eb566f0 Correcting a mistake in the fmemopen alternative that prevented labels to be saved. 2010-06-29 20:06:44 +00:00
Pere Pujal i Carabantes
96feb8e49e More work from Ankit. Sending too a release event, so it doesn't scroll to the end in tool options. 2010-06-29 09:31:46 +00:00
Pere Pujal i Carabantes
46dc5a3798 More bug corrections in accessibility from Ankit. Now it doesn't segfault when selecting the stamp tool with the keyboard. 2010-06-27 21:34:59 +00:00
Pere Pujal i Carabantes
0e4e2b1e4a Bug corrections in accessibility from Ankit. 2010-06-27 21:27:41 +00:00
Pere Pujal i Carabantes
b754294b55 Accessibility work from Ankit. Adding mouse mode for magic tools too. 2010-06-25 00:14:33 +00:00
Pere Pujal i Carabantes
28b8842c87 Commiting the accessibility work from Ankit Choudary. Fourth of 4 sequential patches. More implementation of painting, motion and selection by keyboard. 2010-06-23 22:51:37 +00:00
Pere Pujal i Carabantes
68cd3df7fd Commiting the accessibility work from Ankit Choudary. Third of 4 sequential patches. Corrected some more bugs, begin to implement motion and selection by keyboard. 2010-06-23 22:46:46 +00:00
Pere Pujal i Carabantes
3d7a27aece Commiting the accessibility work from Ankit Choudary. Second of 4 sequential patches. Correct some bugs, mading the mouse mode optional. 2010-06-23 22:41:46 +00:00
Pere Pujal i Carabantes
93b737d8a7 Commiting the accessibility work from Ankit Choudary. First of 4 sequential patches. Adding mouse mode for Brush, Line and Erase tools. 2010-06-23 22:36:13 +00:00
Pere Pujal i Carabantes
aa22c46caa A workaround to open_memstream. To test it, use the same flag as the fmemopen alternative as usually they come together. 2010-06-02 22:36:10 +00:00
Jacques Chion
e76aea9cef seem to have small mistake on line 504 2010-06-02 20:02:51 +00:00