diff options
author | andreykproductengine <andreykproductengine@lindenlab.com> | 2019-11-07 20:09:25 +0200 |
---|---|---|
committer | andreykproductengine <andreykproductengine@lindenlab.com> | 2019-11-07 20:09:25 +0200 |
commit | 6ba0b97c851db7822e17a5a8dbb2d0964ca835f7 (patch) | |
tree | 23f4b3145ec70e1a855b75d06956ff2d6b367c10 /indra/newview/llsetkeybinddialog.cpp | |
parent | 65f2c039237b0c538134c17e7958090dc40d4559 (diff) |
SL-6109
- Edit mode appears to be obsolete and is not used, cleaned up
- Improved ability to set defaults
- Improved some labels
- Made buttons bigger to accomodate languages with longer descriptions
- Added ability to assign key for all modes simultaneously
Diffstat (limited to 'indra/newview/llsetkeybinddialog.cpp')
-rw-r--r-- | indra/newview/llsetkeybinddialog.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/indra/newview/llsetkeybinddialog.cpp b/indra/newview/llsetkeybinddialog.cpp index 806c70aa03..8d0d71daaf 100644 --- a/indra/newview/llsetkeybinddialog.cpp +++ b/indra/newview/llsetkeybinddialog.cpp @@ -86,7 +86,7 @@ BOOL LLSetKeyBindDialog::postBuild() childSetAction("Cancel", onCancel, this); getChild<LLUICtrl>("Cancel")->setFocus(TRUE); - pCheckBox = getChild<LLCheckBoxCtrl>("ignore_masks"); + pCheckBox = getChild<LLCheckBoxCtrl>("apply_all"); pDesription = getChild<LLTextBase>("descritption"); gFocusMgr.setKeystrokesOnly(TRUE); @@ -148,10 +148,6 @@ void LLSetKeyBindDialog::setParent(LLKeyBindResponderInterface* parent, LLView* } pDesription->setText(getString("basic_description")); pDesription->setTextArg("[INPUT]", input); - - bool can_ignore_masks = (key_mask & CAN_IGNORE_MASKS) != 0; - pCheckBox->setVisible(can_ignore_masks); - pCheckBox->setValue(false); } // static @@ -308,7 +304,7 @@ void LLSetKeyBindDialog::onDefault(void* user_data) LLSetKeyBindDialog* self = (LLSetKeyBindDialog*)user_data; if (self->pParent) { - self->pParent->onDefaultKeyBind(); + self->pParent->onDefaultKeyBind(self->pCheckBox->getValue().asBoolean()); self->pParent = NULL; } self->closeFloater(); @@ -326,11 +322,11 @@ void LLSetKeyBindDialog::onClickTimeout(void* user_data, MASK mask) self->closeFloater(); } -void LLSetKeyBindDialog::setKeyBind(EMouseClickType click, KEY key, MASK mask, bool ignore) +void LLSetKeyBindDialog::setKeyBind(EMouseClickType click, KEY key, MASK mask, bool all_modes) { if (pParent) { - pParent->onSetKeyBind(click, key, mask, ignore); + pParent->onSetKeyBind(click, key, mask, all_modes); pParent = NULL; } } |