Added 'altprintcommand' option, allowing Linux/Unix users to [Alt]+'Print'
to bring up a print dialog, too (by default, KDE's "kprinter" tool).
This commit is contained in:
parent
e4f39fbe4c
commit
a8468064fa
6 changed files with 194 additions and 122 deletions
|
|
@ -391,6 +391,11 @@ http://www.newbreedsoftware.com/tuxpaint/
|
||||||
|
|
||||||
* Now prompts to confirm before printing.
|
* Now prompts to confirm before printing.
|
||||||
|
|
||||||
|
* Holding [Alt] while clicking 'Print' on Unix/Linux can now bring up
|
||||||
|
a print dialog. (Defaults to KDE's 'kprinter'.) Can be altered
|
||||||
|
via 'altprintcommand' in ~/.tuxpaintrc.
|
||||||
|
|
||||||
|
|
||||||
* New translations:
|
* New translations:
|
||||||
-----------------
|
-----------------
|
||||||
* Afrikaans translation created.
|
* Afrikaans translation created.
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
bill@newbreedsoftware.com
|
bill@newbreedsoftware.com
|
||||||
http://www.newbreedsoftware.com/tuxpaint/
|
http://www.newbreedsoftware.com/tuxpaint/
|
||||||
|
|
||||||
July 14, 2005
|
July 16, 2005
|
||||||
|
|
||||||
--------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
@ -108,8 +108,9 @@ Windows Users
|
||||||
|
|
||||||
(Linux and Unix only)
|
(Linux and Unix only)
|
||||||
|
|
||||||
Use the command COMMAND to print a PostScript format file. If
|
Use the command COMMAND to print a PostScript format file when
|
||||||
not set, the default command is:
|
the 'Print' button is clicked. If this option is not
|
||||||
|
specifically not set, the default command is:
|
||||||
|
|
||||||
lpr
|
lpr
|
||||||
|
|
||||||
|
|
@ -120,12 +121,27 @@ Windows Users
|
||||||
If you set an alternative printcommand in the configuration file
|
If you set an alternative printcommand in the configuration file
|
||||||
prior to version 0.9.15, you will need to change it.
|
prior to version 0.9.15, you will need to change it.
|
||||||
|
|
||||||
|
altprintcommand=COMMAND
|
||||||
|
|
||||||
|
(Linux and Unix only)
|
||||||
|
|
||||||
|
Use the command COMMAND to print a PostScript format file when
|
||||||
|
the 'Print' button is clicked while the [Alt] modifier key is
|
||||||
|
being held. (This is typically used for providing a print
|
||||||
|
dialog, similar to when pressing [Alt]+'Print' in Windows and
|
||||||
|
Mac OS X.)
|
||||||
|
|
||||||
|
If this option is not specifically not set, the default command
|
||||||
|
is KDE's graphical print dialog:
|
||||||
|
|
||||||
|
kprinter
|
||||||
|
|
||||||
printcfg=yes
|
printcfg=yes
|
||||||
|
|
||||||
(Windows only)
|
(Windows only)
|
||||||
|
|
||||||
Tux Paint will use a printer configuration file when printing.
|
Tux Paint will use a printer configuration file when printing.
|
||||||
Push the [ALT] key while clicking the 'Print' button in
|
Push the [Alt] key while clicking the 'Print' button in
|
||||||
Tux Paint to cause a Windows print dialog window to appear.
|
Tux Paint to cause a Windows print dialog window to appear.
|
||||||
|
|
||||||
(Note: This only works when not running Tux Paint in fullscreen
|
(Note: This only works when not running Tux Paint in fullscreen
|
||||||
|
|
|
||||||
159
docs/README.txt
159
docs/README.txt
|
|
@ -9,9 +9,9 @@
|
||||||
bill@newbreedsoftware.com
|
bill@newbreedsoftware.com
|
||||||
http://www.newbreedsoftware.com/tuxpaint/
|
http://www.newbreedsoftware.com/tuxpaint/
|
||||||
|
|
||||||
June 14, 2002 - January 8, 2005
|
June 14, 2002 - July 16, 2005
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
About
|
About
|
||||||
|
|
||||||
|
|
@ -65,7 +65,7 @@ Objectives:
|
||||||
is done by selecting it from a collection of thumbnails.
|
is done by selecting it from a collection of thumbnails.
|
||||||
Access to other files on the computer is restricted.
|
Access to other files on the computer is restricted.
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Using Tux Paint
|
Using Tux Paint
|
||||||
|
|
||||||
|
|
@ -84,12 +84,12 @@ Loading Tux Paint
|
||||||
If any errors occur, they will be displayed on the terminal (to
|
If any errors occur, they will be displayed on the terminal (to
|
||||||
"stderr").
|
"stderr").
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Windows Users
|
Windows Users
|
||||||
|
|
||||||
[Icon]
|
[Icon]
|
||||||
Tux Paint
|
Tux Paint
|
||||||
|
|
||||||
If you installed Tux Paint on your computer using the
|
If you installed Tux Paint on your computer using the
|
||||||
'Tux Paint Installer,' it will have asked you whether you wanted a
|
'Tux Paint Installer,' it will have asked you whether you wanted a
|
||||||
|
|
@ -110,13 +110,13 @@ Loading Tux Paint
|
||||||
If you used the 'ZIP-file' download, Tux Paint's folder will be
|
If you used the 'ZIP-file' download, Tux Paint's folder will be
|
||||||
wherever you put it when you unzipped the ZIP file.
|
wherever you put it when you unzipped the ZIP file.
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Mac OS X Users
|
Mac OS X Users
|
||||||
|
|
||||||
Simply double-click the "Tux Paint" icon.
|
Simply double-click the "Tux Paint" icon.
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Title Screen
|
Title Screen
|
||||||
|
|
||||||
|
|
@ -128,7 +128,7 @@ Title Screen
|
||||||
continue. (Or, after about 30 seconds, the title screen will go away
|
continue. (Or, after about 30 seconds, the title screen will go away
|
||||||
automatically.)
|
automatically.)
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Main Screen
|
Main Screen
|
||||||
|
|
||||||
|
|
@ -138,8 +138,8 @@ Main Screen
|
||||||
|
|
||||||
The toolbar contains the drawing and editing controls.
|
The toolbar contains the drawing and editing controls.
|
||||||
|
|
||||||
[Tools: Paint, Stamp, Lines, Shapes, Text, Magic, Undo, Redo, Eraser, New,
|
[Tools: Paint, Stamp, Lines, Shapes, Text, Magic, Undo, Redo, Eraser, New, Open,
|
||||||
Open, Save, Print, Quit]
|
Save, Print, Quit]
|
||||||
|
|
||||||
Middle: Drawing Canvas
|
Middle: Drawing Canvas
|
||||||
|
|
||||||
|
|
@ -162,26 +162,24 @@ Main Screen
|
||||||
A palette of available colors are shown near the bottom of the
|
A palette of available colors are shown near the bottom of the
|
||||||
screen.
|
screen.
|
||||||
|
|
||||||
[Colors - Black, White, Red, Pink, Orange, Yellow, Green, Cyan, Blue,
|
[Colors - Black, White, Red, Pink, Orange, Yellow, Green, Cyan, Blue, Purple,
|
||||||
Purple, Brown, Grey]
|
Brown, Grey]
|
||||||
|
|
||||||
Bottom: Help Area
|
Bottom: Help Area
|
||||||
|
|
||||||
At the very bottom of the screen, Tux, the Linux Penguin,
|
At the very bottom of the screen, Tux, the Linux Penguin,
|
||||||
provides tips and other information while you draw.
|
provides tips and other information while you draw.
|
||||||
|
|
||||||
(For example: 'Pick a shape. Click to pick the center, drag, then let go
|
(For example: 'Pick a shape. Click to pick the center, drag, then let go when it
|
||||||
when it is the size you want. Move around to rotate it, and click to draw
|
is the size you want. Move around to rotate it, and click to draw it.)
|
||||||
it.)
|
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Available Tools
|
Available Tools
|
||||||
|
|
||||||
Drawing Tools
|
Drawing Tools
|
||||||
|
|
||||||
Paint (Brush)
|
Paint (Brush)
|
||||||
[IMG]
|
|
||||||
|
|
||||||
The Paint Brush tool lets you draw freehand, using various
|
The Paint Brush tool lets you draw freehand, using various
|
||||||
brushes (chosen in the Selector on the right) and colors
|
brushes (chosen in the Selector on the right) and colors
|
||||||
|
|
@ -193,12 +191,9 @@ Available Tools
|
||||||
As you draw, a sound is played. The bigger the brush, the
|
As you draw, a sound is played. The bigger the brush, the
|
||||||
lower the pitch.
|
lower the pitch.
|
||||||
|
|
||||||
[IMG]
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Stamp (Rubber Stamp)
|
Stamp (Rubber Stamp)
|
||||||
[IMG]
|
|
||||||
|
|
||||||
The Stamp tool is like a rubber stamp, or stickers. It lets
|
The Stamp tool is like a rubber stamp, or stickers. It lets
|
||||||
you paste pre-drawn or photographic images (like a picture
|
you paste pre-drawn or photographic images (like a picture
|
||||||
|
|
@ -218,12 +213,9 @@ Available Tools
|
||||||
won't display the Mirror, Flip, Shrink and Grow controls for
|
won't display the Mirror, Flip, Shrink and Grow controls for
|
||||||
stamps. See the "Options" documentation.)
|
stamps. See the "Options" documentation.)
|
||||||
|
|
||||||
[IMG]
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Lines
|
Lines
|
||||||
[IMG]
|
|
||||||
|
|
||||||
This tool lets you draw straight lines using the various
|
This tool lets you draw straight lines using the various
|
||||||
brushes and colors you normally use with the Paint Brush.
|
brushes and colors you normally use with the Paint Brush.
|
||||||
|
|
@ -235,12 +227,9 @@ Available Tools
|
||||||
Let go of the mouse to complete the line. A "sproing!" sound
|
Let go of the mouse to complete the line. A "sproing!" sound
|
||||||
will play.
|
will play.
|
||||||
|
|
||||||
[IMG]
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Shapes
|
Shapes
|
||||||
[IMG]
|
|
||||||
|
|
||||||
This tool lets you draw some simple filled, and un-filled
|
This tool lets you draw some simple filled, and un-filled
|
||||||
shapes.
|
shapes.
|
||||||
|
|
@ -269,12 +258,9 @@ Available Tools
|
||||||
drawn on the canvas when you let go of the
|
drawn on the canvas when you let go of the
|
||||||
mouse button. (There's no rotation step.)
|
mouse button. (There's no rotation step.)
|
||||||
|
|
||||||
[IMG]
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Text
|
Text
|
||||||
[IMG]
|
|
||||||
|
|
||||||
Choose a font (from the 'Letters' available on the right)
|
Choose a font (from the 'Letters' available on the right)
|
||||||
and a color (from the color palette near the bottom). Click
|
and a color (from the color palette near the bottom). Click
|
||||||
|
|
@ -287,12 +273,9 @@ Available Tools
|
||||||
Click elsewhere in the picture and the current line of text
|
Click elsewhere in the picture and the current line of text
|
||||||
will move there, where you can continue editing.
|
will move there, where you can continue editing.
|
||||||
|
|
||||||
[IMG]
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Magic (Special Effects)
|
Magic (Special Effects)
|
||||||
[IMG]
|
|
||||||
|
|
||||||
The 'Magic' tool is actually a set of special tools. Select
|
The 'Magic' tool is actually a set of special tools. Select
|
||||||
one of the "magic" effects from the selector on the right,
|
one of the "magic" effects from the selector on the right,
|
||||||
|
|
@ -375,10 +358,9 @@ Available Tools
|
||||||
you quickly fill parts of the picture, as if it
|
you quickly fill parts of the picture, as if it
|
||||||
were a coloring book.
|
were a coloring book.
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Eraser
|
Eraser
|
||||||
[IMG]
|
|
||||||
|
|
||||||
This tool is similar to the Paint Brush. Wherever you click
|
This tool is similar to the Paint Brush. Wherever you click
|
||||||
(or click and drag), the picture will be erased either to
|
(or click and drag), the picture will be erased either to
|
||||||
|
|
@ -394,12 +376,11 @@ Available Tools
|
||||||
As you erase, a "squeaky clean" eraser/wiping sound is
|
As you erase, a "squeaky clean" eraser/wiping sound is
|
||||||
played.
|
played.
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Other Controls
|
Other Controls
|
||||||
|
|
||||||
Undo
|
Undo
|
||||||
[IMG]
|
|
||||||
|
|
||||||
Clicking this tool will undo the last drawing action. You
|
Clicking this tool will undo the last drawing action. You
|
||||||
can even undo more than once!
|
can even undo more than once!
|
||||||
|
|
@ -407,10 +388,9 @@ Available Tools
|
||||||
Note: You can also press [Control]-[Z] on the keyboard to
|
Note: You can also press [Control]-[Z] on the keyboard to
|
||||||
undo.
|
undo.
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Redo
|
Redo
|
||||||
[IMG]
|
|
||||||
|
|
||||||
Clicking this tool will redo the drawing action you just
|
Clicking this tool will redo the drawing action you just
|
||||||
"undid" with the 'Undo' button.
|
"undid" with the 'Undo' button.
|
||||||
|
|
@ -421,10 +401,9 @@ Available Tools
|
||||||
Note: You can also press [Control]-[R] on the keyboard to
|
Note: You can also press [Control]-[R] on the keyboard to
|
||||||
redo.
|
redo.
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
New
|
New
|
||||||
[IMG]
|
|
||||||
|
|
||||||
Clicking the "New" button will start a new drawing. You will
|
Clicking the "New" button will start a new drawing. You will
|
||||||
first be asked whether you really want to do this.
|
first be asked whether you really want to do this.
|
||||||
|
|
@ -432,37 +411,28 @@ Available Tools
|
||||||
Note: You can also press [Control]-[N] on the keyboard to
|
Note: You can also press [Control]-[N] on the keyboard to
|
||||||
start a new drawing.
|
start a new drawing.
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Open
|
Open
|
||||||
[IMG]
|
|
||||||
|
|
||||||
This shows you a list of all of the pictures you've saved.
|
This shows you a list of all of the pictures you've saved.
|
||||||
If there are more than can fit on the screen, use the "Up"
|
If there are more than can fit on the screen, use the "Up"
|
||||||
and "Down" arrows at the top and bottom of the list to
|
and "Down" arrows at the top and bottom of the list to
|
||||||
scroll through the list of pictures.
|
scroll through the list of pictures.
|
||||||
|
|
||||||
[IMG]
|
|
||||||
|
|
||||||
Click a picture to select it, then...
|
Click a picture to select it, then...
|
||||||
|
|
||||||
* [IMG]
|
* Click the green "Open" button at the lower left of
|
||||||
|
|
||||||
Click the green "Open" button at the lower left of
|
|
||||||
the list to load the selected picture.
|
the list to load the selected picture.
|
||||||
|
|
||||||
(Alternatively, you can double-click a picture's icon
|
(Alternatively, you can double-click a picture's icon
|
||||||
to load it.)
|
to load it.)
|
||||||
|
|
||||||
* [IMG]
|
* Click the brown "Erase" (trash can) button at the
|
||||||
|
|
||||||
Click the brown "Erase" (trash can) button at the
|
|
||||||
lower right of the list to erase the selected
|
lower right of the list to erase the selected
|
||||||
picture. (You will be asked to confirm.)
|
picture. (You will be asked to confirm.)
|
||||||
|
|
||||||
* [IMG]
|
* Or click the red "Back" arrow button at the lower
|
||||||
|
|
||||||
Or click the red "Back" arrow button at the lower
|
|
||||||
right of the list to cancel and return to the picture
|
right of the list to cancel and return to the picture
|
||||||
you were drawing.
|
you were drawing.
|
||||||
|
|
||||||
|
|
@ -488,10 +458,9 @@ Available Tools
|
||||||
Note: You can also press [Control]-[O] on the keyboard to
|
Note: You can also press [Control]-[O] on the keyboard to
|
||||||
get the 'Open' dialog.
|
get the 'Open' dialog.
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Save
|
Save
|
||||||
[IMG]
|
|
||||||
|
|
||||||
This saves your current picture.
|
This saves your current picture.
|
||||||
|
|
||||||
|
|
@ -508,8 +477,6 @@ Available Tools
|
||||||
asked whether you want to save over the old version, or
|
asked whether you want to save over the old version, or
|
||||||
create a new entry (a new file).
|
create a new entry (a new file).
|
||||||
|
|
||||||
[IMG]
|
|
||||||
|
|
||||||
(NOTE: If either the "saveover" or "saveovernew" options are
|
(NOTE: If either the "saveover" or "saveovernew" options are
|
||||||
set, it won't ask before saving over. See the "Options"
|
set, it won't ask before saving over. See the "Options"
|
||||||
documentation.)
|
documentation.)
|
||||||
|
|
@ -517,13 +484,17 @@ Available Tools
|
||||||
Note: You can also press [Control]-[S] on the keyboard to
|
Note: You can also press [Control]-[S] on the keyboard to
|
||||||
save.
|
save.
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Print
|
Print
|
||||||
[IMG]
|
|
||||||
|
|
||||||
Click this button and your picture will be printed!
|
Click this button and your picture will be printed!
|
||||||
|
|
||||||
|
On most platforms, you can also hold the [Alt] key while
|
||||||
|
clicking the 'Print' button to get a printer dialog, as long
|
||||||
|
as you're not running Tux Paint in fullscreen mode. See
|
||||||
|
below.
|
||||||
|
|
||||||
Disabling Printing
|
Disabling Printing
|
||||||
|
|
||||||
If the "noprint" option was set (either with
|
If the "noprint" option was set (either with
|
||||||
|
|
@ -547,7 +518,7 @@ Available Tools
|
||||||
|
|
||||||
See the "Options" documentation.)
|
See the "Options" documentation.)
|
||||||
|
|
||||||
Printing Command
|
Printing Commands
|
||||||
|
|
||||||
(Linux and Unix only)
|
(Linux and Unix only)
|
||||||
|
|
||||||
|
|
@ -562,7 +533,20 @@ Available Tools
|
||||||
"printcommand" value in Tux Paint's
|
"printcommand" value in Tux Paint's
|
||||||
configuration file.
|
configuration file.
|
||||||
|
|
||||||
See the "Options" documentation.)
|
If the [Alt] key on the keyboard is being
|
||||||
|
pushed while clicking the 'Print' button, as
|
||||||
|
long as you're not in fullscreen mode, an
|
||||||
|
alternative program is run. By default, the
|
||||||
|
program is KDE's graphical print dialog:
|
||||||
|
|
||||||
|
kprinter
|
||||||
|
|
||||||
|
This command can be changed by setting the
|
||||||
|
"altprintcommand" value in Tux Paint's
|
||||||
|
configuration file.
|
||||||
|
|
||||||
|
For information on how to change the printing
|
||||||
|
commands, see the "Options" documentation.
|
||||||
|
|
||||||
Printer Settings
|
Printer Settings
|
||||||
|
|
||||||
|
|
@ -572,7 +556,7 @@ Available Tools
|
||||||
default printer with default settings when the
|
default printer with default settings when the
|
||||||
'Print' button is pushed.
|
'Print' button is pushed.
|
||||||
|
|
||||||
However, if you hold the [ALT] key on the
|
However, if you hold the [Alt] key on the
|
||||||
keyboard while pushing the button, as long as
|
keyboard while pushing the button, as long as
|
||||||
you're not in fullscreen mode, a Windows print
|
you're not in fullscreen mode, a Windows print
|
||||||
dialog will appear, where you can change the
|
dialog will appear, where you can change the
|
||||||
|
|
@ -591,10 +575,9 @@ Available Tools
|
||||||
|
|
||||||
See the "Options" documentation.)
|
See the "Options" documentation.)
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Quit
|
Quit
|
||||||
[IMG]
|
|
||||||
|
|
||||||
Clicking the "Quit" button, closing the Tux Paint window, or
|
Clicking the "Quit" button, closing the Tux Paint window, or
|
||||||
pushing the [Escape] key will quit Tux Paint.
|
pushing the [Escape] key will quit Tux Paint.
|
||||||
|
|
@ -624,7 +607,7 @@ Available Tools
|
||||||
[Shift] + [Control] + [Escape] may be used to quit. (See the
|
[Shift] + [Control] + [Escape] may be used to quit. (See the
|
||||||
"Options" documentation.)
|
"Options" documentation.)
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Loading Other Pictures into Tux Paint
|
Loading Other Pictures into Tux Paint
|
||||||
|
|
||||||
|
|
@ -704,7 +687,7 @@ Doing it Manually
|
||||||
Under Windows, this is in the "userdata" folder. Under Mac OS X, this
|
Under Windows, this is in the "userdata" folder. Under Mac OS X, this
|
||||||
is in "Library/Preferences/tuxpaint/" in your home directory.
|
is in "Library/Preferences/tuxpaint/" in your home directory.
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Extending Tux Paint
|
Extending Tux Paint
|
||||||
|
|
||||||
|
|
@ -749,7 +732,7 @@ Where Files Go
|
||||||
|
|
||||||
/Users/Joe/Library/Preferences/
|
/Users/Joe/Library/Preferences/
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Personal Files
|
Personal Files
|
||||||
|
|
||||||
|
|
@ -779,15 +762,13 @@ Where Files Go
|
||||||
(For example, if you created a brush named "flower.png", you would
|
(For example, if you created a brush named "flower.png", you would
|
||||||
put it in "~/.tuxpaint/brushes/" under Linux or Unix.)
|
put it in "~/.tuxpaint/brushes/" under Linux or Unix.)
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Brushes
|
Brushes
|
||||||
|
|
||||||
The brushes used for drawing with the 'Brush' and 'Lines' tools in
|
The brushes used for drawing with the 'Brush' and 'Lines' tools in
|
||||||
Tux Paint are simply greyscale PNG images.
|
Tux Paint are simply greyscale PNG images.
|
||||||
|
|
||||||
[IMG]
|
|
||||||
|
|
||||||
The alpha (transparency) of the PNG image is used to determine the
|
The alpha (transparency) of the PNG image is used to determine the
|
||||||
shape of the brush, which means that the shape can be 'anti-aliased'
|
shape of the brush, which means that the shape can be 'anti-aliased'
|
||||||
and even partially-transparent!
|
and even partially-transparent!
|
||||||
|
|
@ -801,7 +782,7 @@ Brushes
|
||||||
it's because you forgot to use alpha transparency! See the
|
it's because you forgot to use alpha transparency! See the
|
||||||
documentation file "PNG.txt" for more information and tips.
|
documentation file "PNG.txt" for more information and tips.
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Stamps
|
Stamps
|
||||||
|
|
||||||
|
|
@ -816,8 +797,6 @@ Stamps
|
||||||
files. The one file that is required is, of course, the picture
|
files. The one file that is required is, of course, the picture
|
||||||
itself.
|
itself.
|
||||||
|
|
||||||
[IMG]
|
|
||||||
|
|
||||||
The Stamps used by Tux Paint are PNG pictures. They can be
|
The Stamps used by Tux Paint are PNG pictures. They can be
|
||||||
full-color or greyscale. The alpha (transparency) of the PNG is used
|
full-color or greyscale. The alpha (transparency) of the PNG is used
|
||||||
to determine the actual shape of the picture (otherwise you'll stamp
|
to determine the actual shape of the picture (otherwise you'll stamp
|
||||||
|
|
@ -831,7 +810,7 @@ Stamps
|
||||||
use alpha transparency! See the documentation file "PNG.txt" for
|
use alpha transparency! See the documentation file "PNG.txt" for
|
||||||
more information and tips.
|
more information and tips.
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Description Text
|
Description Text
|
||||||
|
|
||||||
|
|
@ -867,7 +846,7 @@ Stamps
|
||||||
them as Plain Text, and make sure they have ".txt" at the end of
|
them as Plain Text, and make sure they have ".txt" at the end of
|
||||||
the filename...
|
the filename...
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Sound Effects
|
Sound Effects
|
||||||
|
|
||||||
|
|
@ -889,7 +868,7 @@ Stamps
|
||||||
If no localized sound effect can be loaded, Tux Paint will attempt
|
If no localized sound effect can be loaded, Tux Paint will attempt
|
||||||
to load the 'default' sound file. (e.g., "picture.wav")
|
to load the 'default' sound file. (e.g., "picture.wav")
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Stamp Options
|
Stamp Options
|
||||||
|
|
||||||
|
|
@ -917,8 +896,6 @@ Stamps
|
||||||
Nothing about the original image is used except the transparency
|
Nothing about the original image is used except the transparency
|
||||||
("alpha" channel). The color of the stamp comes out solid.
|
("alpha" channel). The color of the stamp comes out solid.
|
||||||
|
|
||||||
[IMG]
|
|
||||||
|
|
||||||
Add the word "colorable" to the stamp's data file.
|
Add the word "colorable" to the stamp's data file.
|
||||||
|
|
||||||
Tinted
|
Tinted
|
||||||
|
|
@ -928,8 +905,6 @@ Stamps
|
||||||
the original image is used, but its hue is changed, based on the
|
the original image is used, but its hue is changed, based on the
|
||||||
currently-selected color.)
|
currently-selected color.)
|
||||||
|
|
||||||
[IMG]
|
|
||||||
|
|
||||||
Add the word "tintable" to the stamp's data file.
|
Add the word "tintable" to the stamp's data file.
|
||||||
|
|
||||||
Sometimes you don't want the white or gray parts of an image
|
Sometimes you don't want the white or gray parts of an image
|
||||||
|
|
@ -993,24 +968,20 @@ Stamps
|
||||||
named "truck_mirror.png", which will be used when the stamp is
|
named "truck_mirror.png", which will be used when the stamp is
|
||||||
mirrored (rather than using a backwards version of 'truck.png').
|
mirrored (rather than using a backwards version of 'truck.png').
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Fonts
|
Fonts
|
||||||
|
|
||||||
[IMG]
|
|
||||||
|
|
||||||
The fonts used by Tux Paint are TrueType Fonts (TTF).
|
The fonts used by Tux Paint are TrueType Fonts (TTF).
|
||||||
|
|
||||||
Simply place them in the "fonts" directory. Tux Paint will load the
|
Simply place them in the "fonts" directory. Tux Paint will load the
|
||||||
font and provide four different sizes in the 'Letters' selector when
|
font and provide four different sizes in the 'Letters' selector when
|
||||||
using the 'Text' tool.
|
using the 'Text' tool.
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
'Starters'
|
'Starters'
|
||||||
|
|
||||||
[IMG]
|
|
||||||
|
|
||||||
'Starter' images appear in the 'Open' dialog, along with pictures
|
'Starter' images appear in the 'Open' dialog, along with pictures
|
||||||
you've created. They have a green button background, instead of blue.
|
you've created. They have a green button background, instead of blue.
|
||||||
|
|
||||||
|
|
@ -1080,7 +1051,7 @@ Fonts
|
||||||
picture loaded or started. (In other words, if you base a drawing on a
|
picture loaded or started. (In other words, if you base a drawing on a
|
||||||
'starter' image, it will always be affected by it.)
|
'starter' image, it will always be affected by it.)
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
Further Reading
|
Further Reading
|
||||||
|
|
||||||
|
|
@ -1101,7 +1072,7 @@ Fonts
|
||||||
* PNG.txt
|
* PNG.txt
|
||||||
Notes on creating PNG format images for use in Tux Paint
|
Notes on creating PNG format images for use in Tux Paint
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
How to Get Help
|
How to Get Help
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ New Breed Software</p>
|
||||||
<p><a href="mailto:bill@newbreedsoftware.com">bill@newbreedsoftware.com</a><br>
|
<p><a href="mailto:bill@newbreedsoftware.com">bill@newbreedsoftware.com</a><br>
|
||||||
<a href="http://www.newbreedsoftware.com/tuxpaint/">http://www.newbreedsoftware.com/tuxpaint/</a></p>
|
<a href="http://www.newbreedsoftware.com/tuxpaint/">http://www.newbreedsoftware.com/tuxpaint/</a></p>
|
||||||
|
|
||||||
<p>July 14, 2005</p>
|
<p>July 16, 2005</p>
|
||||||
</center>
|
</center>
|
||||||
|
|
||||||
<hr size=2 noshade>
|
<hr size=2 noshade>
|
||||||
|
|
@ -149,8 +149,9 @@ New Breed Software</p>
|
||||||
<dd>
|
<dd>
|
||||||
<p><i>(Linux and Unix only)</i></p>
|
<p><i>(Linux and Unix only)</i></p>
|
||||||
|
|
||||||
<p>Use the command <i>COMMAND</i> to print a PostScript format file.
|
<p>Use the command <i>COMMAND</i> to print a PostScript format file
|
||||||
If not set, the default command is:</p>
|
when the 'Print' button is clicked.
|
||||||
|
If this option is not specifically not set, the default command is:</p>
|
||||||
|
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<code>lpr</code>
|
<code>lpr</code>
|
||||||
|
|
@ -164,12 +165,30 @@ New Breed Software</p>
|
||||||
configuration file prior to version 0.9.15, you will need to change it.</p>
|
configuration file prior to version 0.9.15, you will need to change it.</p>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
|
<dt><code><b>altprintcommand=<i>COMMAND</i></b></code></dt>
|
||||||
|
<dd>
|
||||||
|
<p><i>(Linux and Unix only)</i></p>
|
||||||
|
|
||||||
|
<p>Use the command <i>COMMAND</i> to print a PostScript format file
|
||||||
|
when the 'Print' button is clicked while the <b>[Alt]</b> modifier
|
||||||
|
key is being held. (This is typically used for providing a print
|
||||||
|
dialog, similar to when pressing <b>[Alt]</b>+'Print' in Windows and
|
||||||
|
Mac OS X.)</p>
|
||||||
|
|
||||||
|
<p>If this option is not specifically not set, the default command is
|
||||||
|
KDE's graphical print dialog:</p>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<code>kprinter</code>
|
||||||
|
</blockquote>
|
||||||
|
</dd>
|
||||||
|
|
||||||
<dt><code><b>printcfg=yes</b></code></dt>
|
<dt><code><b>printcfg=yes</b></code></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p><i>(Windows only)</i></p>
|
<p><i>(Windows only)</i></p>
|
||||||
|
|
||||||
<p>Tux Paint will use a printer configuration file when printing.
|
<p>Tux Paint will use a printer configuration file when printing.
|
||||||
Push the <b>[ALT]</b> key while clicking the 'Print' button in
|
Push the <b>[Alt]</b> key while clicking the 'Print' button in
|
||||||
Tux Paint to cause a Windows print dialog window to appear.</p>
|
Tux Paint to cause a Windows print dialog window to appear.</p>
|
||||||
|
|
||||||
<p>(Note: This only works when not running Tux Paint in
|
<p>(Note: This only works when not running Tux Paint in
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ New Breed Software</p>
|
||||||
<p><a href="mailto:bill@newbreedsoftware.com">bill@newbreedsoftware.com</a><br>
|
<p><a href="mailto:bill@newbreedsoftware.com">bill@newbreedsoftware.com</a><br>
|
||||||
<a href="http://www.newbreedsoftware.com/tuxpaint/">http://www.newbreedsoftware.com/tuxpaint/</a></p>
|
<a href="http://www.newbreedsoftware.com/tuxpaint/">http://www.newbreedsoftware.com/tuxpaint/</a></p>
|
||||||
|
|
||||||
<p>June 14, 2002 - February 13, 2005</p>
|
<p>June 14, 2002 - July 16, 2005</p>
|
||||||
</center>
|
</center>
|
||||||
|
|
||||||
<hr size=2 noshade>
|
<hr size=2 noshade>
|
||||||
|
|
@ -713,6 +713,11 @@ New Breed Software</p>
|
||||||
<img src="images/tool_print.png" width=48 height=48 alt="" align=right>
|
<img src="images/tool_print.png" width=48 height=48 alt="" align=right>
|
||||||
|
|
||||||
<p>Click this button and your picture will be printed!</p>
|
<p>Click this button and your picture will be printed!</p>
|
||||||
|
|
||||||
|
<p>On most platforms, you can also hold the <b>[Alt]</b> key while
|
||||||
|
clicking the 'Print' button to get a printer dialog, as long
|
||||||
|
as you're not running Tux Paint in fullscreen mode.
|
||||||
|
See below.</p>
|
||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Disabling Printing</dt>
|
<dt>Disabling Printing</dt>
|
||||||
|
|
@ -743,7 +748,7 @@ New Breed Software</p>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>Printing Command</dt>
|
<dt>Printing Commands</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p><i>(Linux and Unix only)</i></p>
|
<p><i>(Linux and Unix only)</i></p>
|
||||||
|
|
||||||
|
|
@ -758,8 +763,21 @@ New Breed Software</p>
|
||||||
<p>This command can be changed by setting the "printcommand" value
|
<p>This command can be changed by setting the "printcommand" value
|
||||||
in Tux Paint's configuration file.</p>
|
in Tux Paint's configuration file.</p>
|
||||||
|
|
||||||
<p>See the "<a href="OPTIONS.html"><i>Options</i></a>"
|
<p>If the <b>[Alt]</b> key on the keyboard is being pushed
|
||||||
documentation.)</p>
|
while clicking the 'Print' button, as long as you're not in
|
||||||
|
fullscreen mode, an alternative program is run. By default,
|
||||||
|
the program is KDE's graphical print dialog:</p>
|
||||||
|
|
||||||
|
<blockquote><code>
|
||||||
|
kprinter
|
||||||
|
</code></blockquote>
|
||||||
|
|
||||||
|
<p>This command can be changed by setting the "altprintcommand" value
|
||||||
|
in Tux Paint's configuration file.</p>
|
||||||
|
|
||||||
|
<p>For information on how to change the printing commands,
|
||||||
|
see the "<a href="OPTIONS.html"><i>Options</i></a>"
|
||||||
|
documentation.</p>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -771,7 +789,7 @@ New Breed Software</p>
|
||||||
printer with default settings when the 'Print' button is
|
printer with default settings when the 'Print' button is
|
||||||
pushed.</p>
|
pushed.</p>
|
||||||
|
|
||||||
<p>However, if you hold the <b>[ALT]</b> key on the keyboard
|
<p>However, if you hold the <b>[Alt]</b> key on the keyboard
|
||||||
while pushing the button, as long as you're not in fullscreen mode,
|
while pushing the button, as long as you're not in fullscreen mode,
|
||||||
a Windows print dialog will appear, where you can change the
|
a Windows print dialog will appear, where you can change the
|
||||||
settings.</p>
|
settings.</p>
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
|
|
||||||
#define VER_VERSION "0.9.15"
|
#define VER_VERSION "0.9.15"
|
||||||
#define VER_DATE "2005-07-15"
|
#define VER_DATE "2005-07-16"
|
||||||
|
|
||||||
|
|
||||||
/* Color depth for Tux Paint to run in, and store canvases in: */
|
/* Color depth for Tux Paint to run in, and store canvases in: */
|
||||||
|
|
@ -52,14 +52,27 @@
|
||||||
//#define PRINTMETHOD_PNG_PNM_PS /* Output PNG, assuming it gets printed */
|
//#define PRINTMETHOD_PNG_PNM_PS /* Output PNG, assuming it gets printed */
|
||||||
|
|
||||||
|
|
||||||
/* Default print command, depending on the print method: */
|
/* Default print and alt-print command, depending on the print method: */
|
||||||
|
|
||||||
|
#define DEFAULT_PRINTCOMMAND "lpr"
|
||||||
|
#define DEFAULT_ALTPRINTCOMMAND "kprinter"
|
||||||
|
|
||||||
#ifdef PRINTMETHOD_PNG_PNM_PS
|
#ifdef PRINTMETHOD_PNG_PNM_PS
|
||||||
#define PRINTCOMMAND "pngtopnm | pnmtops | lpr"
|
#define PRINTCOMMAND "pngtopnm | pnmtops | " DEFAULT_PRINTCOMMAND
|
||||||
#elif defined(PRINTMETHOD_PNM_PS)
|
#elif defined(PRINTMETHOD_PNM_PS)
|
||||||
#define PRINTCOMMAND "pnmtops | lpr"
|
#define PRINTCOMMAND "pnmtops | " DEFAULT_PRINTCOMMAND
|
||||||
#elif defined(PRINTMETHOD_PS)
|
#elif defined(PRINTMETHOD_PS)
|
||||||
#define PRINTCOMMAND "lpr"
|
#define PRINTCOMMAND DEFAULT_PRINTCOMMAND
|
||||||
|
#else
|
||||||
|
#error No print method defined!
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef PRINTMETHOD_PNG_PNM_PS
|
||||||
|
#define ALTPRINTCOMMAND "pngtopnm | pnmtops | " DEFAULT_ALTPRINTCOMMAND
|
||||||
|
#elif defined(PRINTMETHOD_PNM_PS)
|
||||||
|
#define ALTPRINTCOMMAND "pnmtops | " DEFAULT_ALTPRINTCOMMAND
|
||||||
|
#elif defined(PRINTMETHOD_PS)
|
||||||
|
#define ALTPRINTCOMMAND DEFAULT_ALTPRINTCOMMAND
|
||||||
#else
|
#else
|
||||||
#error No print method defined!
|
#error No print method defined!
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -184,6 +197,7 @@ static scaleparams scaletable[] = {
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
#include <signal.h>
|
||||||
#ifdef __BEOS__
|
#ifdef __BEOS__
|
||||||
#include "BeOS_print.h"
|
#include "BeOS_print.h"
|
||||||
// workaround dirent handling bug in TuxPaint code
|
// workaround dirent handling bug in TuxPaint code
|
||||||
|
|
@ -1404,11 +1418,13 @@ static int use_sound, fullscreen, disable_quit, simple_shapes,
|
||||||
dont_do_xor, use_print_config, dont_load_stamps, noshortcuts,
|
dont_do_xor, use_print_config, dont_load_stamps, noshortcuts,
|
||||||
no_system_fonts, no_button_distinction,
|
no_system_fonts, no_button_distinction,
|
||||||
mirrorstamps, disable_stamp_controls, disable_save, ok_to_use_lockfile;
|
mirrorstamps, disable_stamp_controls, disable_save, ok_to_use_lockfile;
|
||||||
|
static int want_alt_printcommand;
|
||||||
static int starter_mirrored, starter_flipped;
|
static int starter_mirrored, starter_flipped;
|
||||||
static int recording, playing;
|
static int recording, playing;
|
||||||
static char * playfile;
|
static char * playfile;
|
||||||
static FILE * demofi;
|
static FILE * demofi;
|
||||||
static const char * printcommand = PRINTCOMMAND;
|
static const char * printcommand = PRINTCOMMAND;
|
||||||
|
static const char * altprintcommand = ALTPRINTCOMMAND;
|
||||||
static int prog_bar_ctr;
|
static int prog_bar_ctr;
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|
@ -2163,6 +2179,7 @@ static void stamp_draw(int x, int y);
|
||||||
static void rec_undo_buffer(void);
|
static void rec_undo_buffer(void);
|
||||||
static void show_usage(FILE * f, char * prg);
|
static void show_usage(FILE * f, char * prg);
|
||||||
static void setup(int argc, char * argv[]);
|
static void setup(int argc, char * argv[]);
|
||||||
|
void signal_handler(int sig);
|
||||||
static SDL_Cursor * get_cursor(char * bits, char * mask_bits,
|
static SDL_Cursor * get_cursor(char * bits, char * mask_bits,
|
||||||
int w, int h, int x, int y);
|
int w, int h, int x, int y);
|
||||||
static void seticon(void);
|
static void seticon(void);
|
||||||
|
|
@ -3188,13 +3205,15 @@ static void mainloop(void)
|
||||||
|
|
||||||
if (cur_time >= last_print_time + print_delay)
|
if (cur_time >= last_print_time + print_delay)
|
||||||
{
|
{
|
||||||
|
want_alt_printcommand = (SDL_GetModState() & KMOD_ALT);
|
||||||
|
|
||||||
if (do_prompt_image(PROMPT_PRINT_NOW_TXT,
|
if (do_prompt_image(PROMPT_PRINT_NOW_TXT,
|
||||||
PROMPT_PRINT_NOW_YES,
|
PROMPT_PRINT_NOW_YES,
|
||||||
PROMPT_PRINT_NOW_NO,
|
PROMPT_PRINT_NOW_NO,
|
||||||
img_printer, NULL, NULL))
|
img_printer, NULL, NULL))
|
||||||
{
|
{
|
||||||
do_print();
|
do_print();
|
||||||
|
|
||||||
last_print_time = cur_time;
|
last_print_time = cur_time;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -8472,8 +8491,15 @@ static void setup(int argc, char * argv[])
|
||||||
/* Enable Unicode support in SDL: */
|
/* Enable Unicode support in SDL: */
|
||||||
|
|
||||||
SDL_EnableUNICODE(1);
|
SDL_EnableUNICODE(1);
|
||||||
|
|
||||||
|
|
||||||
|
/* Set up signal handler for SIGPIPE (in case printer command dies;
|
||||||
|
e.g., altprintcommand=kprinter, but 'Cancel' is clicked,
|
||||||
|
instead of 'Ok') */
|
||||||
|
|
||||||
|
signal(SIGPIPE, signal_handler);
|
||||||
|
|
||||||
|
|
||||||
/* Open demo recording or playback file: */
|
/* Open demo recording or playback file: */
|
||||||
|
|
||||||
if (recording)
|
if (recording)
|
||||||
|
|
@ -8507,6 +8533,13 @@ static void setup(int argc, char * argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void signal_handler(int sig)
|
||||||
|
{
|
||||||
|
if (sig == SIGPIPE)
|
||||||
|
/* fprintf(stderr, "SIGPIPE!\n") */;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Render a button label using the appropriate string/font: */
|
/* Render a button label using the appropriate string/font: */
|
||||||
static SDL_Surface * do_render_button_label(const char * const label)
|
static SDL_Surface * do_render_button_label(const char * const label)
|
||||||
{
|
{
|
||||||
|
|
@ -14329,25 +14362,31 @@ static void hsvtorgb(float h, float s, float v, Uint8 *r8, Uint8 *g8, Uint8 *b8)
|
||||||
static void do_print(void)
|
static void do_print(void)
|
||||||
{
|
{
|
||||||
#if !defined(WIN32) && !defined(__BEOS__) && !defined(__APPLE__)
|
#if !defined(WIN32) && !defined(__BEOS__) && !defined(__APPLE__)
|
||||||
/* Linux, Unix, etc. */
|
char * pcmd;
|
||||||
|
|
||||||
FILE * pi;
|
FILE * pi;
|
||||||
|
|
||||||
pi = popen(printcommand, "w");
|
/* Linux, Unix, etc. */
|
||||||
|
|
||||||
|
if (want_alt_printcommand && !fullscreen)
|
||||||
|
pcmd = altprintcommand;
|
||||||
|
else
|
||||||
|
pcmd = printcommand;
|
||||||
|
|
||||||
|
pi = popen(pcmd, "w");
|
||||||
|
|
||||||
if (pi == NULL)
|
if (pi == NULL)
|
||||||
{
|
{
|
||||||
perror(printcommand);
|
perror(pcmd);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#ifdef PRINTMETHOD_PNG_PNM_PS
|
#ifdef PRINTMETHOD_PNG_PNM_PS
|
||||||
if (do_png_save(pi, printcommand, canvas))
|
if (do_png_save(pi, pcmd, canvas))
|
||||||
do_prompt(PROMPT_PRINT_TXT, PROMPT_PRINT_YES, "");
|
do_prompt(PROMPT_PRINT_TXT, PROMPT_PRINT_YES, "");
|
||||||
#elif defined(PRINTMETHOD_PNM_PS)
|
#elif defined(PRINTMETHOD_PNM_PS)
|
||||||
// nothing here
|
// nothing here
|
||||||
#elif defined(PRINTMETHOD_PS)
|
#elif defined(PRINTMETHOD_PS)
|
||||||
if (do_ps_save(pi, printcommand, canvas))
|
if (do_ps_save(pi, pcmd, canvas))
|
||||||
do_prompt(PROMPT_PRINT_TXT, PROMPT_PRINT_YES, "");
|
do_prompt(PROMPT_PRINT_TXT, PROMPT_PRINT_YES, "");
|
||||||
#else
|
#else
|
||||||
#error No print method defined!
|
#error No print method defined!
|
||||||
|
|
@ -14358,7 +14397,7 @@ static void do_print(void)
|
||||||
/* Win32 */
|
/* Win32 */
|
||||||
|
|
||||||
char f[512];
|
char f[512];
|
||||||
int show = (SDL_GetModState() & KMOD_ALT) && !fullscreen;
|
int show = (want_alt_printcommand && !fullscreen);
|
||||||
|
|
||||||
snprintf(f, sizeof(f), "%s/%s", savedir, "print.cfg");
|
snprintf(f, sizeof(f), "%s/%s", savedir, "print.cfg");
|
||||||
|
|
||||||
|
|
@ -15071,6 +15110,10 @@ static void parse_options(FILE * fi)
|
||||||
{
|
{
|
||||||
printcommand = strdup(str + 13);
|
printcommand = strdup(str + 13);
|
||||||
}
|
}
|
||||||
|
else if (strstr(str, "altprintcommand=") == str)
|
||||||
|
{
|
||||||
|
altprintcommand = strdup(str + 16);
|
||||||
|
}
|
||||||
else if (strcmp(str, "saveover=yes") == 0)
|
else if (strcmp(str, "saveover=yes") == 0)
|
||||||
{
|
{
|
||||||
promptless_save = SAVE_OVER_ALWAYS;
|
promptless_save = SAVE_OVER_ALWAYS;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue