diff options
author | McCabe Maxsted | 2010-11-13 01:54:21 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-11-13 01:54:21 -0700 |
commit | 21d5c3e85bbb3cdc556918c6699df768e6f01637 (patch) | |
tree | 17d18c0378bc487c8e7ecc64a0a618dc781f92d5 /linden | |
parent | Ported fix from Ascent: disable align tool controls if you can't move the obj... (diff) | |
download | meta-impy-21d5c3e85bbb3cdc556918c6699df768e6f01637.zip meta-impy-21d5c3e85bbb3cdc556918c6699df768e6f01637.tar.gz meta-impy-21d5c3e85bbb3cdc556918c6699df768e6f01637.tar.bz2 meta-impy-21d5c3e85bbb3cdc556918c6699df768e6f01637.tar.xz |
Ported keyboard shortcut for align tool from Ascent, by Beeks. Has the followingrepercussions:
* CTRL-A while a prim is selected switches to the align tool
* CTRL-SHIFT-A while a prim is selected switches to the pack tool
* Area Object Search shortcut has been changed from CTRL-SHIFT-A to ALT-A
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/lltoolcomp.cpp | 22 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/floater_tools.xml | 2 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml | 3 |
3 files changed, 22 insertions, 5 deletions
diff --git a/linden/indra/newview/lltoolcomp.cpp b/linden/indra/newview/lltoolcomp.cpp index 16e0136..7bf99f0 100644 --- a/linden/indra/newview/lltoolcomp.cpp +++ b/linden/indra/newview/lltoolcomp.cpp | |||
@@ -55,6 +55,7 @@ | |||
55 | #include "llagent.h" | 55 | #include "llagent.h" |
56 | #include "llfloatertools.h" | 56 | #include "llfloatertools.h" |
57 | #include "llviewercontrol.h" | 57 | #include "llviewercontrol.h" |
58 | #include "qtoolalign.h" | ||
58 | 59 | ||
59 | const S32 BUTTON_HEIGHT = 16; | 60 | const S32 BUTTON_HEIGHT = 16; |
60 | const S32 BUTTON_WIDTH_SMALL = 32; | 61 | const S32 BUTTON_WIDTH_SMALL = 32; |
@@ -278,7 +279,12 @@ BOOL LLToolCompTranslate::handleMouseUp(S32 x, S32 y, MASK mask) | |||
278 | 279 | ||
279 | LLTool* LLToolCompTranslate::getOverrideTool(MASK mask) | 280 | LLTool* LLToolCompTranslate::getOverrideTool(MASK mask) |
280 | { | 281 | { |
281 | if (mask == MASK_CONTROL) | 282 | if (gKeyboard->getKeyDown('A') && |
283 | ((mask & MASK_CONTROL) || (mask == (MASK_CONTROL | MASK_SHIFT)))) | ||
284 | { | ||
285 | return QToolAlign::getInstance(); | ||
286 | } | ||
287 | else if (mask == MASK_CONTROL) | ||
282 | { | 288 | { |
283 | return LLToolCompRotate::getInstance(); | 289 | return LLToolCompRotate::getInstance(); |
284 | } | 290 | } |
@@ -397,7 +403,12 @@ BOOL LLToolCompScale::handleMouseUp(S32 x, S32 y, MASK mask) | |||
397 | 403 | ||
398 | LLTool* LLToolCompScale::getOverrideTool(MASK mask) | 404 | LLTool* LLToolCompScale::getOverrideTool(MASK mask) |
399 | { | 405 | { |
400 | if (mask == MASK_CONTROL) | 406 | if (gKeyboard->getKeyDown('A') && |
407 | ((mask & MASK_CONTROL) || (mask == (MASK_CONTROL | MASK_SHIFT)))) | ||
408 | { | ||
409 | return QToolAlign::getInstance(); | ||
410 | } | ||
411 | else if (mask == MASK_CONTROL) | ||
401 | { | 412 | { |
402 | return LLToolCompRotate::getInstance(); | 413 | return LLToolCompRotate::getInstance(); |
403 | } | 414 | } |
@@ -597,7 +608,12 @@ BOOL LLToolCompRotate::handleMouseUp(S32 x, S32 y, MASK mask) | |||
597 | 608 | ||
598 | LLTool* LLToolCompRotate::getOverrideTool(MASK mask) | 609 | LLTool* LLToolCompRotate::getOverrideTool(MASK mask) |
599 | { | 610 | { |
600 | if (mask == (MASK_CONTROL | MASK_SHIFT)) | 611 | if (gKeyboard->getKeyDown('A') && |
612 | ((mask & MASK_CONTROL) || (mask == (MASK_CONTROL | MASK_SHIFT)))) | ||
613 | { | ||
614 | return QToolAlign::getInstance(); | ||
615 | } | ||
616 | else if (mask == (MASK_CONTROL | MASK_SHIFT)) | ||
601 | { | 617 | { |
602 | return LLToolCompScale::getInstance(); | 618 | return LLToolCompScale::getInstance(); |
603 | } | 619 | } |
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_tools.xml b/linden/indra/newview/skins/default/xui/en-us/floater_tools.xml index 18e0274..c665563 100644 --- a/linden/indra/newview/skins/default/xui/en-us/floater_tools.xml +++ b/linden/indra/newview/skins/default/xui/en-us/floater_tools.xml | |||
@@ -1364,7 +1364,7 @@ | |||
1364 | Drag to Move, Shift-Drag to Copy | 1364 | Drag to Move, Shift-Drag to Copy |
1365 | </string> | 1365 | </string> |
1366 | <string name="status_align"> | 1366 | <string name="status_align"> |
1367 | Aligns objects along an axis, hold Shift to Pack | 1367 | CTRL-A to align on an axis, CTRL-Shift-A to Pack |
1368 | </string> | 1368 | </string> |
1369 | <string name="status_modifyland"> | 1369 | <string name="status_modifyland"> |
1370 | Click and Hold to Modify Land | 1370 | Click and Hold to Modify Land |
diff --git a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml index 268ae2b..31e730a 100644 --- a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml +++ b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml | |||
@@ -996,7 +996,8 @@ | |||
996 | <on_click function="ShowFloater" userdata="animation list" /> | 996 | <on_click function="ShowFloater" userdata="animation list" /> |
997 | <on_check function="FloaterVisible" userdata="animation list" /> | 997 | <on_check function="FloaterVisible" userdata="animation list" /> |
998 | </menu_item_check> | 998 | </menu_item_check> |
999 | <menu_item_check label="Area Object Search" name="Area Object Search" shortcut="control|shift|A"> | 999 | <menu_item_check label="Area Object Search" name="Area Object Search" |
1000 | shortcut="alt|A"> | ||
1000 | <on_click function="ShowFloater" userdata="areasearch" /> | 1001 | <on_click function="ShowFloater" userdata="areasearch" /> |
1001 | <on_check function="FloaterVisible" userdata="areasearch" /> | 1002 | <on_check function="FloaterVisible" userdata="areasearch" /> |
1002 | </menu_item_check> | 1003 | </menu_item_check> |