Commit graph

819 commits

Author SHA1 Message Date
William Kendrick
ec4c7f9098 Doc'd John's recent bug fixes. 2007-12-31 17:22:29 +00:00
John Popplewell
ba2137d528 Avoid crashing in mirror_starter() when there is no starter. 2007-12-31 03:03:49 +00:00
John Popplewell
f8fe5eeea0 Fix bug in special_notify(). Reproducable crash on win32 after exactly 40 flips or mirrors. Was (probably) corrupting an element in SDL_Surface *undo_bufs[]. 2007-12-25 00:22:02 +00:00
William Kendrick
08d08eb1e0 Corrected backwards #ifdef logic! 2007-12-11 16:05:43 +00:00
William Kendrick
8014500811 Final BeOS updates used to created 0.9.19-cvs-2007.12.11 for BeOS x86. 2007-12-11 15:51:06 +00:00
William Kendrick
344492dad4 BeOS updates. 2007-12-07 00:05:45 +00:00
William Kendrick
83175f406c Fixed problem building w/o sound support. 2007-12-04 17:36:23 +00:00
William Kendrick
0c5bca5042 Removed unused record and playback code. 2007-12-04 16:56:07 +00:00
William Kendrick
f2c7277d06 Corrected bug where Shift and Kaleidoscope magic tools would crash when sound was disabled. 2007-12-01 21:21:31 +00:00
Albert Cahalan
9a3b9bec14 use BUGBUG to mark valgrind complaints (known serious bugs) 2007-12-01 02:29:54 +00:00
William Kendrick
137797b2cd Added 'stopsound()' to Magic plugin API.
Stopping longer sounds when user stops using tool (Shift & Kaleidoscope).
2007-11-21 16:15:49 +00:00
Martin Fuhrer
ca0cb771e5 Added additional search path for magic plugins on Mac OS X. 2007-11-21 07:28:37 +00:00
John Popplewell
62279d117a Show print configuration dialog even when in fullscreen mode.
If no 'print.cfg' file is found, always shows the print configuration dialog.
Clicking 'Cancel' on the print configuration dialog cancels the print!
Removed messy global PRINTDLG structure.
2007-11-11 23:22:24 +00:00
Karl Ove Hufthammer
76e501259e Use proper ellipsis instead of three dots. 2007-10-28 18:16:45 +00:00
William Kendrick
8b1010d671 All stamps can be forced to start at a particular size
Use the "--stampsize=..." command-line option or "stampsize=..." config.
file setting.  Use "default" to allow Tux Paint to decide.
2007-10-26 21:58:36 +00:00
William Kendrick
fa99f6cbd0 Any current text being written in the Text tool is applied to the picture
if 'Print' is clicked. (Useful if kids are told to add their name to a picture
when they're done, right before printing, but they forget to hit [Enter].)
2007-10-25 15:23:20 +00:00
William Kendrick
10fc8351a8 Lockfile usage can be disabled via config. file now, too. 2007-10-23 16:11:12 +00:00
William Kendrick
c1c2bb91dc Prevented crash when clicking 'Open' or 'Erase' button in Open dialog after
clicking an empty file slot. (SourceForge Bug #1787005)
[Thanks to Tomasz Gloc for reporting and investigating this one.]
2007-09-25 16:45:22 +00:00
William Kendrick
29a8206965 Fighting with SDLPango to get right-to-left working, and only when needed. 2007-09-25 15:43:41 +00:00
William Kendrick
3ed7c00abc Fixed typo 2007-08-22 06:30:04 +00:00
William Kendrick
6763d69cb8 Improved popup prompts. 2007-08-14 16:58:17 +00:00
John Popplewell
1adf3f4f78 Tweaks to get it to build on win32. 2007-08-13 06:38:03 +00:00
John Popplewell
51df37c21c Fix for f->d_type always being DT_UNKNOWN, using stat(). 2007-08-12 23:21:25 +00:00
William Kendrick
b94a1b9c01 Updated version number in some packagine files.
Adding new Magic tools.
2007-08-10 06:54:48 +00:00
William Kendrick
0d6c2cf1b9 Magic tools (and tp-magic-config) supports local (user) plugins.
Added copyright & credit info to new Magic tool plugin .c files.
Updated Magic plugin doc API.
2007-08-08 06:56:04 +00:00
William Kendrick
26c7051c07 Stamps can now be pre-flipped and/or pre-mirrored-and-flipped now (in addition to pre-mirrored).
Updated version # in some docs.
Expanded comments in tp_magic_example.c Magic plugin example code.
2007-08-03 16:17:46 +00:00
William Kendrick
adf56ef7e9 tp-magic-config man moved to (1)
Magic tool documentation now split into separate files, and referenced
(as a directory) from README, so that users can find docs to any additional
tools (ones not included by default with Tux Paint) that are installed.
Added new --datadir option, to separate path to brushes/stamps/etc. from that of saved files.
Improved docs on where savedir default is.
Made sure --help, man tuxpaint, and OPTIONS docs all covered all command-line options.
Noted SDL_Pango makes locale-specific fonts unnecessary.
Added "--plugindocprefix" option to tp-magic-config, for where docs should go.
Improved plugin API documentation.
Improved layout of man pages a little.
2007-08-02 21:04:42 +00:00
William Kendrick
10881623cf Added Octagon shape. (Also means shape tool selector needed to scroll
in 640x480, which has been done, too.)
2007-07-27 02:22:24 +00:00
William Kendrick
f9ea0e0f6e Right-aligning right-to-left text. 2007-07-27 01:53:08 +00:00
William Kendrick
a241607224 Arabic appears to be working (though awaiting confirmation from Khaled H.) 2007-07-27 01:44:00 +00:00
William Kendrick
426ee7b252 More appropriate text for the new 'New' dialog. 2007-07-26 16:30:36 +00:00
William Kendrick
183b751810 Added a 'color picker' entry to the color palette; allows choosing
from over 50,000 colors.  Used by drawing and Magic tools, as well
as the new 'New' dialog.
Documented Martin's Mac OS X printing update.
Improved colors in Starter browser buttons.
2007-07-25 06:11:46 +00:00
Martin Fuhrer
c0962bf16e Print configuration is now saved between Tux Paint sessions on Mac OS X. 2007-07-25 05:39:18 +00:00
William Kendrick
6e827f67fe Improved 'New' and 'Open' interfaces. ('Open' dialog no longer includes
Starter images; 'New' now brings up a selection dialog showing 'Starter'
images and color choices.)
New images can be given solid background colors (which the 'Eraser' tool
erases to).
Improved --usage output.
Added support for "--papersize help" to list papersizes available via libpaper.
Some Magic tools that apply an affect once per click-and-drag no longer
recalculate the effect on pixels that have already been affected (until mouse
button is released and clicked again).
2007-07-24 18:20:17 +00:00
William Kendrick
40200798d8 turn plugin junk into a struct
sorting magic tools by (localized) name
emboss now keeps color
minor fixups
2007-07-20 18:37:36 +00:00
William Kendrick
c4b3e49215 Added ripples magic.
Added (not finished) (new) sparkles magic.
Fixed printf localization bug in postscript printing.
Got Text tool working when Pango is used.
2007-07-18 20:13:08 +00:00
William Kendrick
21ea42f38f Attempting to debug/fix SDL_Pango stuff.
Added icon for Kalidescope magic tool.
Added Canada map starter.
Added Japan map starter.
Improved comments near gettext() calls to improve POT and PO files.
Regenerated PO files and POT file.
Added .cvsignore to make sure tp_magic_api.h (which is generated) isn't noticed.
2007-07-17 18:41:16 +00:00
William Kendrick
0eecea9581 Magic compiles silenced.
Attempted Text tool font load under pango.
Made pango optional.
TuxPaint_Font is aware of both panfgo contexts & sdl_ttf ttf fonts.
2007-07-13 18:18:20 +00:00
William Kendrick
095ba8efb3 Began adding support for using SDL_Pango, a wrapper to Pango,
a library for layout and rendering of text, with an emphasis on
internationalization.  (The hope is to improve support for languages
that SDL_ttf doesn't support well; e.g., Arabic and Telegu.)

TTF_Font structs and some functions were replaced by a new
TuxPaint_Font struct and function, which wraps around either TTF_Font
or SDLPango_Context, depending on whether SDL_Pango is being used.
Note: STILL NEEDS WORK!
2007-07-12 18:43:18 +00:00
William Kendrick
1f0d12ba91 Finished flower tool.
Added foam tool.
Cleanup.
2007-07-11 06:20:05 +00:00
William Kendrick
c44cf54033 Added dirty rect to magic api.
Added 'release' event to magic api.
2007-07-08 23:17:18 +00:00
William Kendrick
73b8464b75 Added Magic tool API version API. 2007-07-08 07:53:39 +00:00
William Kendrick
7dc8956de5 Removed sparkles from Tux Paint; now a brush. 2007-07-06 19:41:20 +00:00
William Kendrick
76f36e7d03 Converted all Magic tools to plugins. 2007-07-06 19:28:31 +00:00
William Kendrick
47e44cb80f Completed Negative Magic tool as a plugin (except sound).
Created Mirror and Flip Magic tools as plugins (except sound); hooks
added to Magic plugin API to allow starter and starter-undo mirror/flip.
Created Fade and Darken Magic tools as plugins.
Moved magic tool sounds to 'magic'.
Added flip and mirror icons to main Tux Paint UI (used to share magic tools')
Created 'tp-magic-config.sh' to get CFLAGS for compiling magic tool plugins.
Improved magic tool plugin API.
Committed some documentation on magic tool plugin API.
2007-07-05 19:20:58 +00:00
William Kendrick
c3b67b7734 Adding an API for developing Magic tools as plug-ins. (e.g., '.so'
shared objects under Linux)
Ported (most of) 'Negative' magic tool to Magic tool plug-in system.
2007-07-04 05:48:24 +00:00
John Popplewell
525396b00d Tux Paint was spewing out warnings if the 'saved' directory was missing
when doing an 'Open'.
Added make_directory() and refactored the directory creation code.
I couldn't face the slightly simpler copy+paste fix. Hope I didn't add
any bugs.
2007-07-02 04:48:46 +00:00
John Popplewell
0a570c4758 Undefine LARGE_CURSOR_FULLSCREEN_BUG, which makes custom cursors work
fullscreen on Windows (if the default 'windib' driver is used).
Conditionally compile the printcommand and altprintcommand stuff.
2007-06-30 04:01:58 +00:00
William Kendrick
b16832d76a PostScript printing code rewritten, based on NetPBM's 'pnmtops' tool by Jef Poskanzer.
PostScript printing now uses libprint to determine papersize, and scale and
  position image accordingly.  Thanks to Henry House.
"--papersize" option added to allow PostScript printing code to use a
  different size than libpaper reports as the user's or system's default.
2007-06-25 18:00:49 +00:00
William Kendrick
4b642d53d5 Split PostScript printing code (for Linux/Unix/etc.) into its own source file. 2007-06-24 23:06:24 +00:00