[Tuxpaint-devel] Magic API updated: switchin() and switchout()
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
|
From: Bill K. <nb...@so...> - 2008-07-08 01:57:29
|
Magic Tools now receive calls to "switchin()" and "switchout()" functions to tell them when they are being activated and deactivated. Currently, deactivation includes when temporary events happen, such as the user clicking Undo or Redo (or hitting Ctrl-Z, etc.), or using Open, Save, Print, Quit, etc. functionality. Activation occurs when those activities are finished. I haven't tested it much, I just added some printf() to one of my tools to check when the functions are called, but it seems to work. Please do "cvs update -dPC" to grab the latest from the main CVS repository. (GSOC folks in their own branches/sandboxes/whatever, please talk to your mentor about how to grab this.) This won't be all -- I plan to add a UI and API for "paint or entire-image" modes for Magic tools. But... dinner time! -- -bill! "Tux Paint" - free children's drawing software for Windows / Mac OS X / Linux! Download it today! http://www.tuxpaint.org/ |