Added World Map starters from Caroline.

Updated Arabic translation.
"Open" dialog lists saved drawings first, then local starter images,
then system-wide starter images.
All compile-time options now listed in version output, using a new
"--verbose-version" (or "-vv") command-line argument.
This commit is contained in:
William Kendrick 2007-06-19 20:21:54 +00:00
parent 4c064f2647
commit e4b980cd81
7 changed files with 210 additions and 38 deletions

View file

@ -7,7 +7,7 @@ bill@newbreedsoftware.com
http://www.tuxpaint.org/ http://www.tuxpaint.org/
June 17, 2002 - June 5, 2007 June 17, 2002 - June 19, 2007
$Id$ $Id$
@ -106,6 +106,13 @@ $Id$
* Nagasaki * Nagasaki
Jim Trice <jimtrice@linuxmail.org> Jim Trice <jimtrice@linuxmail.org>
* World Maps
Original is licensed under the GFDL and CC-BY-SA and has multiple authors.
Based off http://commons.wikimedia.org/wiki/Image:BlankMap-World.svg
(Public Domain, by Wikipedia user 'Vardion').
Processed and chopped into Tux Paint starter-sized pieces by
by Caroline Ford <caroline.ford.work@googlemail.com>.
* Fonts * Fonts
@ -157,6 +164,7 @@ $Id$
Laurent Dhima <laurenti@alblinux.net> Laurent Dhima <laurenti@alblinux.net>
* Arabic * Arabic
Khaled Hosny <khaledhosny@eglug.org>
Khalid Al Holan <alholan@gmail.com> Khalid Al Holan <alholan@gmail.com>
* Basque * Basque

View file

@ -34,6 +34,14 @@ $Id$
using small buttons that appear over Tux, at the lower lefthand corner. using small buttons that appear over Tux, at the lower lefthand corner.
(They disappear/reappear when sound is muted/unmuted via [Alt]+[S].) (They disappear/reappear when sound is muted/unmuted via [Alt]+[S].)
* "Open" dialog lists saved drawings first, then local starter images,
then system-wide starter images, rather than the other way around.
(Since there are now so many more starters.)
* All compile-time options now listed in version output, using a new
"--verbose-version" (or "-vv") command-line argument.
* Tool Improvements: * Tool Improvements:
------------------ ------------------
* Input Method Framework, with implementations of Korean (Hangul 2-Bul) * Input Method Framework, with implementations of Korean (Hangul 2-Bul)
@ -95,7 +103,7 @@ $Id$
* Discussed SVG Stamps in "Extending Tux Paint." * Discussed SVG Stamps in "Extending Tux Paint."
* Created an "SVG.txt" document, covering SVG software. * Created an "SVG.txt" document, covering SVG software.
FIXME: Not done yet? Caroline Ford <caroline.ford.work@googlemail.com>
* Mentioned descriptive sounds (e.g., "stamp_desc_ll.ogg") in "Extending..." * Mentioned descriptive sounds (e.g., "stamp_desc_ll.ogg") in "Extending..."
@ -195,6 +203,9 @@ $Id$
* Translation Updates: * Translation Updates:
-------------------- --------------------
* Arabic
Khaled Hosny <khaledhosny@eglug.org>
* Basque * Basque
Juan Irigoien <juanirigoien@gmail.com> Juan Irigoien <juanirigoien@gmail.com>

View file

@ -9,7 +9,7 @@
bill@newbreedsoftware.com bill@newbreedsoftware.com
http://www.tuxpaint.org/ http://www.tuxpaint.org/
May 15, 2007 June 19, 2007
-------------------------------------------------------------------------- --------------------------------------------------------------------------
@ -663,9 +663,11 @@ Command-Line Informational Options
Tux Paint doesn't actually start up and run afterwards, however. Tux Paint doesn't actually start up and run afterwards, however.
--version --version
--verbose-version
Display the version number and date of the copy of Tux Paint Display the version number and date of the copy of Tux Paint
you are running. It also lists what, if any, compile-time you are running. The "--verbose-version" also lists what
options were set. (See INSTALL.txt and FAQ.txt). compile-time options were set. (See INSTALL.txt and
FAQ.txt).
--copying --copying
Show brief license information about copying Tux Paint. Show brief license information about copying Tux Paint.

View file

@ -2,11 +2,11 @@ PNG.txt for Tux Paint
Tux Paint - A simple drawing program for children. Tux Paint - A simple drawing program for children.
Copyright 2005 by Bill Kendrick and others Copyright 2002-2007 by Bill Kendrick and others
bill@newbreedsoftware.com bill@newbreedsoftware.com
http://www.newbreedsoftware.com/tuxpaint/ http://www.tuxpaint.org/
June 27, 2002 - March 9, 2005 June 27, 2002 - June 19, 2007
$Id$ $Id$

View file

@ -23,7 +23,7 @@ New Breed Software</p>
<a href="http://www.tuxpaint.org/">http://www.tuxpaint.org/</a></p> <a href="http://www.tuxpaint.org/">http://www.tuxpaint.org/</a></p>
<p>May 15, 2007</p> <p>June 19, 2007</p>
</center> </center>
@ -997,10 +997,11 @@ New Breed Software</p>
<blockquote> <blockquote>
<dl> <dl>
<dt><code><b>--version</b></code></dt> <dt><code><b>--version</b></code><br>
<code><b>--verbose-version</b></code></dt>
<dd> <dd>
Display the version number and date of the copy of Tux&nbsp;Paint Display the version number and date of the copy of Tux&nbsp;Paint
you are running. It also lists what, if any, compile-time you are running. The "--verbose-version" also lists what compile-time
options were set. (See INSTALL.txt and FAQ.txt). options were set. (See INSTALL.txt and FAQ.txt).
</dd> </dd>

View file

@ -1,11 +1,11 @@
.\" tuxpaint.1 - 2007.06.13 .\" tuxpaint.1 - 2007.06.19
.TH TUXPAINT 1 "13 June 2007" "0.9.17" "Tux Paint" .TH TUXPAINT 1 "19 June 2007" "0.9.17" "Tux Paint"
.SH NAME .SH NAME
tuxpaint -- A drawing program for young children. tuxpaint -- A drawing program for young children.
.SH SYNOPSYS .SH SYNOPSYS
.B tuxpaint .B tuxpaint
[\-\-help \-\-version \-\-usage \-\-copying] [\-\-help \-\-version \-\-verbose\-version \-\-usage \-\-copying]
.TP 9 .TP 9
.B tuxpaint .B tuxpaint
@ -97,6 +97,9 @@ Display short, helpful information about Tux Paint.
.B \-\-version .B \-\-version
Output the version info. Output the version info.
.TP 8 .TP 8
.B \-\-verbose\-version
Output the version info and compile-time build options.
.TP 8
.B \-\-usage .B \-\-usage
Display a list of all commandline options. Display a list of all commandline options.
.TP 8 .TP 8
@ -662,6 +665,7 @@ Sam "Criswell" Hart,
Tedi Heriyanto, Tedi Heriyanto,
Pjetur G. Hjaltason, Pjetur G. Hjaltason,
Knut Erik Hollund, Knut Erik Hollund,
Khaled Hosny,
Song Huang, Song Huang,
Karl Ove Hufthammer, Karl Ove Hufthammer,
Roland Illig, Roland Illig,

View file

@ -22,7 +22,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt) (See COPYING.txt)
June 14, 2002 - June 7, 2007 June 14, 2002 - June 19, 2007
$Id$ $Id$
*/ */
@ -346,6 +346,8 @@ extern WrapperData macosx;
#endif #endif
#ifndef NOSVG #ifndef NOSVG
#ifdef OLD_SVG
#include "cairo.h" #include "cairo.h"
#include "svg.h" #include "svg.h"
#include "svg-cairo.h" #include "svg-cairo.h"
@ -353,9 +355,23 @@ extern WrapperData macosx;
#error "---------------------------------------------------" #error "---------------------------------------------------"
#error "If you installed Cairo, libSVG or svg-cairo from packages, be sure" #error "If you installed Cairo, libSVG or svg-cairo from packages, be sure"
#error "to get the development package, as well!" #error "to get the development package, as well!"
#error "(e.g., 'libcairo2-dev.rpm')" #error "(e.g., 'libcairo-dev.rpm')"
#error "---------------------------------------------------" #error "---------------------------------------------------"
#endif #endif
#else
#include "xyzsvg.h"
#ifndef XYZ_SVG_H
#error "---------------------------------------------------"
#error "If you installed libXYZ from packages, be sure"
#error "to get the development package, as well!"
#error "(e.g., 'libXYZ-dev.rpm')"
#error "---------------------------------------------------"
#endif
#endif
#endif #endif
#ifndef SAVE_AS_BMP #ifndef SAVE_AS_BMP
@ -5344,39 +5360,147 @@ static void rec_undo_buffer(void)
/* Show program version: */ /* Show program version: */
static void show_version(void) static void show_version(int details)
{ {
printf("\nTux Paint\n"); printf("\nTux Paint\n");
printf(" Version " VER_VERSION " (" VER_DATE ")\n"); printf(" Version " VER_VERSION " (" VER_DATE ")\n");
if (details == 0)
return;
printf("\nBuilt with these options:\n");
/* Quality reductions: */
#ifdef LOW_QUALITY_THUMBNAILS #ifdef LOW_QUALITY_THUMBNAILS
printf(" Low Quality Thumbnails enabled\n"); printf(" Low Quality Thumbnails enabled (LOW_QUALITY_THUMBNAILS)\n");
#endif #endif
#ifdef LOW_QUALITY_COLOR_SELECTOR #ifdef LOW_QUALITY_COLOR_SELECTOR
printf(" Low Quality Color Selector enabled\n"); printf(" Low Quality Color Selector enabled (LOW_QUALITY_COLOR_SELECTOR)\n");
#endif #endif
#ifdef LOW_QUALITY_STAMP_OUTLINE #ifdef LOW_QUALITY_STAMP_OUTLINE
printf(" Low Quality Stamp Outline enabled\n"); printf(" Low Quality Stamp Outline enabled (LOW_QUALITY_STAMP_OUTLINE)\n");
#endif #endif
#ifdef LOW_QUALITY_FLOOD_FILL #ifdef LOW_QUALITY_FLOOD_FILL
printf(" Low Quality Flood Fill enabled\n"); printf(" Low Quality Flood Fill enabled (LOW_QUALITY_FLOOD_FILL)\n");
#endif #endif
#ifdef NO_PROMPT_SHADOWS #ifdef NO_PROMPT_SHADOWS
printf(" Prompt Shadows disabled\n"); printf(" Prompt Shadows disabled (NO_PROMPT_SHADOWS)\n");
#endif #endif
#ifdef SMALL_CURSOR_SHAPES
printf(" Small cursor shapes enabled (SMALL_CURSOR_SHAPES)\n");
#endif
#ifdef NO_BILINEAR
printf(" Bilinear scaling disabled (NO_BILINEAR)\n");
#endif
#ifdef NOSVG
printf(" SVG support disabled (NOSVG)\n");
#endif
/* Sound: */
#ifdef NOSOUND #ifdef NOSOUND
printf(" Sound disabled\n"); printf(" Sound disabled (NOSOUND)\n");
#endif #endif
#ifdef DEBUG
printf(" Verbose debugging enabled\n"); /* Platform */
#ifdef __APPLE__
printf(" Built for Mac OS X (__APPLE__)\n");
#ifdef __APPLE_10_2_8_
printf(" Built for OS X 10.2.8 (__APPLE_10_2_8_)\n");
#endif
#elif WIN32
printf(" Built for Windows (WIN32)\n");
#elif __BEOS__
printf(" Built for BeOS (__BEOS__)\n");
#elif NOKIA_770
printf(" Built for Maemo (NOKIA_770)\n");
#elif OLPC_XO
printf(" Built for XO (OLPC_XO)\n");
#else
printf(" Built for POSIX\n");
#endif #endif
/* Video options */
#ifdef USE_HWSURFACE
printf(" Using hardware surface (USE_HWSURFACE)\n");
#else
printf(" Using software surface (no USE_HWSURFACE)\n");
#endif
printf(" Using %dbpp video (VIDEO_BPP=%d)\n", VIDEO_BPP, VIDEO_BPP);
/* Print method */
#ifdef PRINTMETHOD_PNG_PNM_PS
printf(" Prints as PNGs (PRINTMETHOD_PNG_PNM_PS)\n");
#endif
#ifdef PRINTMETHOD_PS
printf(" Prints as PostScript (PRINTMETHOD_PS)\n");
#endif
/* Saving method */
#ifdef SAVE_AS_BMP
printf(" Saves as BMPs (SAVE_AS_BMP)\n");
#else
printf(" Saves as PNGs (no SAVE_AS_BMP)\n");
#endif
/* Threading */
#ifdef FORKED_FONTS
printf(" Threaded font loader enabled (FORKED_FONTS)\n");
#else
printf(" Threaded font loader disabled (no FORKED_FONTS)\n");
#endif
/* Old code used */
#ifdef OLD_STAMP_GROW_SHRINK
printf(" Old-style stamp size UI (OLD_STAMP_GROW_SHRINK)\n");
#endif
#ifdef OLD_UPPERCASE_CODE
printf(" Old-style --uppercase support (OLD_UPPERCASE_CODE)\n");
#endif
printf(" Data directory (DATA_PREFIX) = %s\n", DATA_PREFIX);
printf(" Doc directory (DOC_PREFIX) = %s\n", DOC_PREFIX);
printf(" Locale directory (LOCALEDIR) = %s\n", LOCALEDIR);
printf(" Input Method directory (IMDIR) = %s\n", IMDIR);
printf(" System config directory (CONFDIR) = %s\n", CONFDIR);
/* Debugging */
#ifdef DEBUG
printf(" Verbose debugging enabled (DEBUG)\n");
#endif
#ifdef DEBUG_MALLOC
printf(" Memory allocation debugging enabled (DEBUG_MALLOC)\n");
#endif
printf("\n"); printf("\n");
} }
@ -5395,7 +5519,7 @@ static void show_usage(FILE * f, char *prg)
fprintf(f, fprintf(f,
"\n" "\n"
"Usage: %s {--usage | --help | --version | --copying}\n" "Usage: %s {--usage | --help | --version | --verbose-version | --copying}\n"
"\n" "\n"
" %s [--windowed | --fullscreen]\n" " %s [--windowed | --fullscreen]\n"
" %s [--WIDTHxHEIGHT | --native] [--orient=ORIENTATION]\n" " %s [--WIDTHxHEIGHT | --native] [--orient=ORIENTATION]\n"
@ -6644,12 +6768,18 @@ static void setup(int argc, char *argv[])
} }
else if (strcmp(argv[i], "--version") == 0 || strcmp(argv[i], "-v") == 0) else if (strcmp(argv[i], "--version") == 0 || strcmp(argv[i], "-v") == 0)
{ {
show_version(); show_version(0);
exit(0);
}
else if (strcmp(argv[i], "--verbose-version") == 0 ||
strcmp(argv[i], "-vv") == 0)
{
show_version(1);
exit(0); exit(0);
} }
else if (strcmp(argv[i], "--copying") == 0 || strcmp(argv[i], "-c") == 0) else if (strcmp(argv[i], "--copying") == 0 || strcmp(argv[i], "-c") == 0)
{ {
show_version(); show_version(0);
printf("\n" printf("\n"
"This program is free software; you can redistribute it\n" "This program is free software; you can redistribute it\n"
"and/or modify it under the terms of the GNU General Public\n" "and/or modify it under the terms of the GNU General Public\n"
@ -6671,7 +6801,7 @@ static void setup(int argc, char *argv[])
} }
else if (strcmp(argv[i], "--help") == 0 || strcmp(argv[i], "-h") == 0) else if (strcmp(argv[i], "--help") == 0 || strcmp(argv[i], "-h") == 0)
{ {
show_version(); show_version(0);
show_usage(stdout, (char *) getfilename(argv[0])); show_usage(stdout, (char *) getfilename(argv[0]));
printf("See: " DOC_PREFIX "README.txt\n" "\n"); printf("See: " DOC_PREFIX "README.txt\n" "\n");
@ -12602,9 +12732,9 @@ static int do_quit(int tool)
/* Open a saved image: */ /* Open a saved image: */
#define PLACE_STARTERS_DIR 0 #define PLACE_SAVED_DIR 0
#define PLACE_PERSONAL_STARTERS_DIR 1 #define PLACE_PERSONAL_STARTERS_DIR 1
#define PLACE_SAVED_DIR 2 #define PLACE_STARTERS_DIR 2
#define NUM_PLACES_TO_LOOK 3 #define NUM_PLACES_TO_LOOK 3
@ -12661,23 +12791,24 @@ int do_open(void)
for (places_to_look = 0; for (places_to_look = 0;
places_to_look < NUM_PLACES_TO_LOOK; places_to_look++) places_to_look < NUM_PLACES_TO_LOOK; places_to_look++)
{ {
if (places_to_look == PLACE_STARTERS_DIR) if (places_to_look == PLACE_SAVED_DIR)
{ {
/* Check for coloring-book style 'starter' images first: */ /* First, check for saved-images: */
dirname[places_to_look] = strdup(DATA_PREFIX "starters"); dirname[places_to_look] = get_fname("saved");
} }
else if (places_to_look == PLACE_PERSONAL_STARTERS_DIR) else if (places_to_look == PLACE_PERSONAL_STARTERS_DIR)
{ {
/* Check for coloring-book style 'starter' images in our folder, next: */ /* Check for coloring-book style 'starter' images in our folder: */
dirname[places_to_look] = get_fname("starters"); dirname[places_to_look] = get_fname("starters");
} }
else else if (places_to_look == PLACE_STARTERS_DIR)
{ {
/* Finally, check for saved-images: */ /* Finally, check for system-wide coloring-book style
'starter' images: */
dirname[places_to_look] = get_fname("saved"); dirname[places_to_look] = strdup(DATA_PREFIX "starters");
} }
@ -16277,6 +16408,9 @@ int paintsound(int size)
#ifndef NOSVG #ifndef NOSVG
#ifdef OLD_SVG
// Based on cairo-demo/sdl/main.c from Cairo (GPL'd, (c) 2004 Eric Windisch): // Based on cairo-demo/sdl/main.c from Cairo (GPL'd, (c) 2004 Eric Windisch):
SDL_Surface * load_svg(char * file) SDL_Surface * load_svg(char * file)
{ {
@ -16435,6 +16569,18 @@ SDL_Surface * load_svg(char * file)
return(sdl_surface); return(sdl_surface);
} }
#else
SDL_Surface * load_svg(char * file)
{
printf("load_svg(%s)\n", file);
return (NULL);
}
#endif
// Load an image; call load_svg() (above, to call Cairo and SVG-Cairo funcs) // Load an image; call load_svg() (above, to call Cairo and SVG-Cairo funcs)
// if we notice it's an SVG file, // if we notice it's an SVG file,