/* tools.h For Tux Paint List of available tools. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) Copyright (c) 2002-2023 by Bill Kendrick bill@newbreedsoftware.com https://tuxpaint.org/ June 14, 2002 - February 18, 2023 */ #include "tip_tux.h" /* What tools are available: */ enum { TOOL_BRUSH, TOOL_STAMP, TOOL_LINES, TOOL_SHAPES, TOOL_TEXT, TOOL_LABEL, TOOL_FILL, TOOL_MAGIC, TOOL_UNDO, TOOL_REDO, TOOL_ERASER, TOOL_NEW, TOOL_OPEN, TOOL_SAVE, TOOL_PRINT, TOOL_QUIT, NUM_TOOLS }; /* Tool names: */ const char *const tool_names[NUM_TOOLS] = { // Freehand painting tool gettext_noop("Paint"), // Stamp tool (aka Rubber Stamps) gettext_noop("Stamp"), // Line drawing tool gettext_noop("Lines"), // Shape creation tool (square, circle, etc.) gettext_noop("Shapes"), // Text tool gettext_noop("Text"), // Label tool gettext_noop("Label"), // Fill tool gettext_noop("Fill"), // "Magic" effects tools (blur, flip image, etc.) gettext_noop("Magic"), // Undo last action gettext_noop("Undo"), // Redo undone action gettext_noop("Redo"), // Eraser tool gettext_noop("Eraser"), // Start a new picture gettext_noop("New"), // Open a saved picture gettext_noop("Open"), // Save the current picture gettext_noop("Save"), // Print the current picture gettext_noop("Print"), // Quit/exit Tux Paint application gettext_noop("Quit") }; /* Some text to write when each tool is selected: */ const char *const tool_tips[NUM_TOOLS] = { // Paint tool instructions gettext_noop("Pick a color and a brush shape to draw with."), // Stamp tool instructions gettext_noop("Pick a picture to stamp around your drawing."), // Line tool instructions gettext_noop("Click to start drawing a line. Let go to complete it."), // Shape tool instructions (defined in "shapes.h") "", // Text tool instructions gettext_noop ("Choose a style of text. Click on your drawing and you can start typing. Press [Enter] or [Tab] to complete the text."), // Label tool instructions gettext_noop ("Choose a style of text. Click on your drawing and you can start typing. Press [Enter] or [Tab] to complete the text. By using the selector button and clicking an existing label, you can move it, edit it, and change its text style."), // Fill tool instructions (defined in "fill_tools.h") "", // Magic tool instruction gettext_noop("Pick a magical effect to use on your drawing!"), // Response to 'undo' action gettext_noop("Undo!"), // Response to 'redo' action gettext_noop("Redo!"), // Eraser tool gettext_noop("Eraser!"), // Response to 'start a new image' action gettext_noop("Pick a color or picture with which to start a new drawing."), // Response to 'open' action (while file dialog is being constructed) gettext_noop("Open…"), // Response to 'save' action gettext_noop("Your image has been saved!"), // Response to 'print' action (while printing, or print dialog is being used) gettext_noop("Printing…"), // Response to 'quit' (exit) action gettext_noop("Bye bye!") }; // Instruction while using Line tool (after click, before release) #define TIP_LINE_START gettext_noop("Let go of the button to complete the line.") #define TIP_LINE_MOVING gettext_noop("Let go of the button to complete the line. (Your line’s angle is %.0f degrees.)") // Instruction while using Shape tool (after first click, before release) #define TIP_SHAPE_START gettext_noop("Hold the button to stretch the shape.") #define TIP_SHAPE_STRETCHING_UNLOCKED gettext_noop("Hold the button to stretch the shape. (It has an aspect ratio of \"%.2g:1\".)") // Instruction while finishing Shape tool (after release, during rotation step before second click) #define TIP_SHAPE_NEXT gettext_noop("Move the mouse to rotate the shape. Click to draw it.") #define TIP_SHAPE_ROTATING gettext_noop("Move the mouse to rotate the shape. Click to draw it. (It is rotated %d degrees.)") // Notification that 'New' action was aborted (current image would have been lost) #define TIP_NEW_ABORT gettext_noop("OK then… Let’s keep drawing this one!") // Instructions to show when the Label tool's selector mode is activated #define TIP_LABEL_SELECTOR_ENABLED gettext_noop("Clicking an existing label (or press [Tab] to cycle through them and [Enter] to choose). Then, you can move it, edit it, and change its text style.") // Instructions to show when a Label has been chosen with the selector #define TIP_LABEL_SELECTOR_LABEL_CHOSEN gettext_noop("Click in your picture if you wish to reposition this label, type to change the text, and use the options to change its text style. Press [Enter] or [Tab] when you're finished.") // Instructions to show when the Label tool's apply mode is activated #define TIP_LABEL_APPLIER_ENABLED gettext_noop("Clicking an existing label (or press [Tab] to cycle through them and [Enter] to choose) to permanently apply the text to the canvas.") // Instructions to show when choosing brushes, depending on the brush's feature (if there are none, show_brush_tip() will show the current tool's tip) #define TIP_BRUSH_CHOICE_ANM gettext_noop("This brush is animated; its shape changes as you draw!") #define TIP_BRUSH_CHOICE_DIR gettext_noop("This brush changes depending on the angle.") #define TIP_BRUSH_CHOICE_ANM_DIR gettext_noop("This brush changes depending on the angle, and is animated; its shape changes as you draw!") #define TIP_BRUSH_SPACING_ZERO gettext_noop("This brush's spacing is now 1 pixel!") #define TIP_BRUSH_SPACING_LESS gettext_noop("This brush's spacing is now about %1$d/%2$d the size of the brush shape.") #define TIP_BRUSH_SPACING_SAME gettext_noop("This brush's spacing is now about the size of the brush shape.") #define TIP_BRUSH_SPACING_MORE gettext_noop("This brush's spacing is now about %d times as big as the brush shape.") #define TIP_BRUSH_SPACING_MORE_FRAC gettext_noop("This brush's spacing is now about %1$d %2$d/%3$d times as big as the brush shape.") // Instructions to show when rotating stamps #define TIP_STAMPS_ROTATING gettext_noop("Drag the mouse to rotate the stamp. Click to draw it. (It is rotated %d degrees.)") /* Tool icon filenames: */ const char *const tool_img_fnames[NUM_TOOLS] = { DATA_PREFIX "images/tools/brush.png", DATA_PREFIX "images/tools/stamp.png", DATA_PREFIX "images/tools/lines.png", DATA_PREFIX "images/tools/shapes.png", DATA_PREFIX "images/tools/text.png", DATA_PREFIX "images/tools/label.png", DATA_PREFIX "images/tools/fill.png", DATA_PREFIX "images/tools/magic.png", DATA_PREFIX "images/tools/undo.png", DATA_PREFIX "images/tools/redo.png", DATA_PREFIX "images/tools/eraser.png", DATA_PREFIX "images/tools/new.png", DATA_PREFIX "images/tools/open.png", DATA_PREFIX "images/tools/save.png", DATA_PREFIX "images/tools/print.png", DATA_PREFIX "images/tools/quit.png" }; /* Tux icons to use: */ const int tool_tux[NUM_TOOLS] = { TUX_DEFAULT, TUX_DEFAULT, TUX_DEFAULT, TUX_DEFAULT, TUX_DEFAULT, TUX_DEFAULT, TUX_DEFAULT, TUX_DEFAULT, TUX_OOPS, TUX_WAIT, TUX_DEFAULT, TUX_DEFAULT, TUX_DEFAULT, TUX_GREAT, TUX_GREAT, TUX_DEFAULT };