diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt index 2ca3a7a14..29acfc0d1 100644 --- a/docs/CHANGES.txt +++ b/docs/CHANGES.txt @@ -7,7 +7,7 @@ bill@newbreedsoftware.com http://www.newbreedsoftware.com/tuxpaint/ -2005.January.07 (0.9.15) +2005.January.08 (0.9.15) * Stamp tool improvements: ------------------------ * Greatly improved stamp outlining (to avoid empty rows or columns @@ -118,6 +118,13 @@ http://www.newbreedsoftware.com/tuxpaint/ * Increased maximum number of stamps that can be loaded at once from 256 to 512. Albert Cahalan + + * The "noquit" option now prevents the [Escape] key from quitting + Tux Paint. ([Alt]+[F4] and the window close button still work.) + + * Tux Paint can now be quit with [Shift]+[Control]+[Escape], as well. + (Useful for when "noquit" and "fullscreen" are set, and the + [Alt]+[F4] combination is not possible.) * Bug fixes: ------------------- diff --git a/docs/FAQ.txt b/docs/FAQ.txt index ba3c04fdb..ba8ea5405 100644 --- a/docs/FAQ.txt +++ b/docs/FAQ.txt @@ -2,11 +2,11 @@ FAQ.txt for Tux Paint Tux Paint - A simple drawing program for children. -Copyright 2004 by Bill Kendrick +Copyright 2005 by Bill Kendrick bill@newbreedsoftware.com http://www.newbreedsoftware.com/tuxpaint/ -September 14, 2002 - September 14, 2004 +September 14, 2002 - January 8, 2005 Frequently Asked Questions: @@ -178,7 +178,7 @@ Frequently Asked Questions: The appropriate fonts for such locales can be downloaded from the Tux Paint website: - http://www.newbreedsoftware.com/tuxpaint/download/fonts.php3 + http://www.newbreedsoftware.com/tuxpaint/download/fonts/ Printing @@ -397,7 +397,42 @@ Frequently Asked Questions: To disable the lockfile, add the "--nolockfile" argument to Tux Paint's command-line. - + + I can't quit Tux Paint + ---------------------- + The "noquit" option is set. This disables the "Quit" button in + Tux Paint's toolbar (greying it out), and prevents Tux Paint from + being quit using the [Escape] key. + + If Tux Paint is not in fullscreen mode, simply click the + window close button on Tux Paint's title bar. + (i.e., the "(x) at the upper right.) + + If Tux Paint is in fullscreen mode, you will need to use the + [Shift] + [Control] + [Escape] sequence on the keyboard to + quit Tux Paint. + + (Note: with or without "noquit" set, you can always use the + [Alt] + [F4] combination on your keyboard to quit Tux Paint.) + + + I don't want "noquit" mode enabled! + ----------------------------------- + If you're running Tux Paint from a command-line, make sure you're + not giving it a "--noquit" option. + + If you're running Tux Paint by double-clicking an icon, check the + properties of the icon to see if "--noquit" is listed as an argument. + + If "--noquit" isn't on the command-line, check Tux Paint's + configuration file ("~/.tuxpaintrc" under Linux and Unix, + "tuxpaint.cfg" under Windows) for a line reading: "noquit=yes". + + Either remove that line, or simply run Tux Paint with the command-line + argument: "--quit", which will override the configuration file's + setting. + + Tux Paint keeps writing weird messages to the screen / to a text file --------------------------------------------------------------------- A few messages are normal, but if Tux Paint is being extremely verbose diff --git a/docs/OPTIONS.txt b/docs/OPTIONS.txt index 86d652174..eb7e27f53 100644 --- a/docs/OPTIONS.txt +++ b/docs/OPTIONS.txt @@ -9,7 +9,7 @@ bill@newbreedsoftware.com http://www.newbreedsoftware.com/tuxpaint/ - January 6, 2005 + January 8, 2005 --------------------------------------------------------------------------- @@ -86,8 +86,16 @@ Windows Users Disable sound effects. noquit=yes - Disable the on-screen "Quit" button. (Pressing the [Escape] key - or clicking the window's close button still works.) + + Disable the on-screen "Quit" button and prevent the [Escape] key + from quitting Tux Paint. + + Using the [Alt] + [F4] keyboard combination or clicking the + window's close button (assuming you're not in fullscreen mode) + still works to quit Tux Paint. + + You can also use the following keyboard combination to quit: + [Shift] + [Control] + [Escape]. noprint=yes Disable the printing feature. diff --git a/docs/README.txt b/docs/README.txt index 81a272eee..1626701d2 100644 --- a/docs/README.txt +++ b/docs/README.txt @@ -3,13 +3,13 @@ A simple drawing program for children - Copyright 2004 by Bill Kendrick + Copyright 2005 by Bill Kendrick New Breed Software bill@newbreedsoftware.com http://www.newbreedsoftware.com/tuxpaint/ - June 14, 2002 - December 11, 2004 + June 14, 2002 - January 8, 2005 --------------------------------------------------------------------------- @@ -596,11 +596,7 @@ Available Tools [IMG] Clicking the "Quit" button, closing the Tux Paint window, or - pushing the "Escape" key will quit Tux Paint. - - (NOTE: The "Quit" button can be disabled (e.g., with the - "--noquit" command-line option), but the [Escape] key will - still work. See the "Options" documentation.) + pushing the [Escape] key will quit Tux Paint. You will first be prompted as to whether you really want to quit. @@ -614,6 +610,19 @@ Available Tools NOTE: If the image is saved, it will be reloaded automatically the next time you run Tux Paint! + NOTE: The "Quit" button and [Escape] key can be disabled + (e.g., by selecting "Disable 'Quit' Button" in + Tux Paint Config. or running Tux Paint with the "--noquit" + command-line option). + + In that case, the "window close" button on Tux Paint's title + bar (if not in fullscreen mode) or the [Alt] + [F4] key + sequence may be used to quit. + + If neither of those are possible, the key sequence of + [Shift] + [Control] + [Escape] may be used to quit. (See the + "Options" documentation.) + --------------------------------------------------------------------------- Loading Other Pictures into Tux Paint diff --git a/docs/html/OPTIONS.html b/docs/html/OPTIONS.html index d2b9a936c..051db4cb7 100644 --- a/docs/html/OPTIONS.html +++ b/docs/html/OPTIONS.html @@ -22,7 +22,7 @@ New Breed Software

bill@newbreedsoftware.com
http://www.newbreedsoftware.com/tuxpaint/

-

January 6, 2005

+

January 8, 2005


@@ -123,9 +123,15 @@ New Breed Software

noquit=yes
- Disable the on-screen "Quit" button. - (Pressing the [Escape] key or clicking the window's close - button still works.) +

Disable the on-screen "Quit" button and prevent the [Escape] key + from quitting Tux Paint.

+ +

Using the [Alt] + [F4] keyboard combination + or clicking the window's close button (assuming you're not in + fullscreen mode) still works to quit Tux Paint.

+ +

You can also use the following keyboard combination to quit: + [Shift] + [Control] + [Escape].

noprint=yes
diff --git a/docs/html/README.html b/docs/html/README.html index 4fc1ed6be..d8bd4cf40 100644 --- a/docs/html/README.html +++ b/docs/html/README.html @@ -17,13 +17,13 @@ version

A simple drawing program for children

-

Copyright 2004 by Bill Kendrick
+

Copyright 2005 by Bill Kendrick
New Breed Software

bill@newbreedsoftware.com
http://www.newbreedsoftware.com/tuxpaint/

-

June 14, 2002 - December 11, 2004

+

June 14, 2002 - January 8, 2005


@@ -801,13 +801,7 @@ New Breed Software

Clicking the "Quit" button, closing the Tux Paint window, or - pushing the "Escape" key will quit Tux Paint.

- -

(NOTE: The "Quit" button can be disabled (e.g., with the - "--noquit" command-line option), but the [Escape] - key will still work. - See the "Options" - documentation.)

+ pushing the [Escape] key will quit Tux Paint.

You will first be prompted as to whether you really want to quit.

@@ -818,6 +812,21 @@ New Breed Software

NOTE: If the image is saved, it will be reloaded automatically the next time you run Tux Paint!

+ +

NOTE: The "Quit" button and [Escape] key can be + disabled (e.g., by selecting "Disable 'Quit' Button" in + Tux Paint Config. or running Tux Paint + with the "--noquit" command-line option).

+ +

In that case, the "window close" button on + Tux Paint's title bar (if not in fullscreen mode) or + the [Alt] + [F4] key sequence may be used + to quit.

+ +

If neither of those are possible, the key sequence of + [Shift] + [Control] + [Escape] + may be used to quit. (See the + "Options" documentation.)


diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 8f4d847ca..faf603147 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -2460,7 +2460,12 @@ static void mainloop(void) handle_keymouse(key, SDL_KEYDOWN); - if (key == SDLK_ESCAPE) + if (key == SDLK_ESCAPE && !disable_quit) + { + done = do_quit(); + } + else if (key == SDLK_ESCAPE && + (mod & KMOD_SHIFT) && (mod & KMOD_CTRL)) { done = do_quit(); }