Duplicate layer : Add keyboard shortcut, update help file for button

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2120 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2015-06-24 21:23:07 +00:00
parent cc05157ae9
commit 6d75b08fbc
3 changed files with 18 additions and 1 deletions

View File

@ -313,6 +313,7 @@ static const T_Help_table helptable_help[] =
HELP_TEXT ("") HELP_TEXT ("")
HELP_LINK (" Menu : %s", 0x100+BUTTON_LAYER_MENU) HELP_LINK (" Menu : %s", 0x100+BUTTON_LAYER_MENU)
HELP_LINK (" Add new : %s", 0x100+BUTTON_LAYER_ADD) HELP_LINK (" Add new : %s", 0x100+BUTTON_LAYER_ADD)
HELP_LINK (" Duplicate : %s", 0x200+BUTTON_LAYER_ADD)
HELP_LINK (" Delete : %s", 0x100+BUTTON_LAYER_REMOVE) HELP_LINK (" Delete : %s", 0x100+BUTTON_LAYER_REMOVE)
HELP_LINK (" Merge : %s", 0x100+BUTTON_LAYER_MERGE) HELP_LINK (" Merge : %s", 0x100+BUTTON_LAYER_MERGE)
HELP_LINK (" Move up : %s", 0x100+BUTTON_LAYER_UP) HELP_LINK (" Move up : %s", 0x100+BUTTON_LAYER_UP)
@ -2918,11 +2919,18 @@ static const T_Help_table helptable_layeradd[] =
HELP_TITLE("ADD LAYER") HELP_TITLE("ADD LAYER")
HELP_TEXT ("") HELP_TEXT ("")
HELP_BOLD ("LEFT CLICK")
HELP_LINK ("(Key:%s)",0x100+BUTTON_LAYER_ADD) HELP_LINK ("(Key:%s)",0x100+BUTTON_LAYER_ADD)
HELP_TEXT ("") HELP_TEXT ("")
HELP_TEXT ("Add a new layer above the current one,") HELP_TEXT ("Add a new layer above the current one,")
HELP_TEXT ("and selects this new (empty) layer for") HELP_TEXT ("and selects this new (empty) layer for")
HELP_TEXT ("editing.") HELP_TEXT ("editing.")
HELP_TEXT ("")
HELP_BOLD ("RIGHT CLICK")
HELP_LINK ("(Key:%s)",0x200+BUTTON_LAYER_ADD)
HELP_TEXT ("")
HELP_TEXT ("Add a new layer, as a copy of the current")
HELP_TEXT ("layer.")
}; };
static const T_Help_table helptable_layerdel[] = static const T_Help_table helptable_layerdel[] =

View File

@ -1563,6 +1563,14 @@ T_Key_config ConfigKey[NB_SHORTCUTS] = {
true, true,
SDLK_INSERT|MOD_ALT, // Alt + Insert SDLK_INSERT|MOD_ALT, // Alt + Insert
0}, 0},
{209,
"Duplicate layer",
"Adds a new layer on top of the",
"active one. The new layer is a copy",
"of the current one.",
true,
0, // No shortcut
0},
{176, {176,
"Delete a layer", "Delete a layer",
"Delete the current layer.", "Delete the current layer.",
@ -1997,6 +2005,7 @@ word Ordering[NB_SHORTCUTS]=
SPECIAL_LAYER8_SELECT, SPECIAL_LAYER8_SELECT,
SPECIAL_LAYER8_TOGGLE, SPECIAL_LAYER8_TOGGLE,
0x100+BUTTON_LAYER_ADD, 0x100+BUTTON_LAYER_ADD,
0x200+BUTTON_LAYER_ADD,
0x100+BUTTON_LAYER_REMOVE, 0x100+BUTTON_LAYER_REMOVE,
0x100+BUTTON_LAYER_MERGE, 0x100+BUTTON_LAYER_MERGE,
0x100+BUTTON_LAYER_UP, 0x100+BUTTON_LAYER_UP,

View File

@ -33,7 +33,7 @@
#endif #endif
#include <SDL.h> #include <SDL.h>
#define NB_SHORTCUTS 209 ///< Number of actions that can have a key combination associated to it. #define NB_SHORTCUTS 210 ///< Number of actions that can have a key combination associated to it.
/*** Types definitions and structs ***/ /*** Types definitions and structs ***/