SL-6109
- Fixed line endings in xml file - Removed obsolete UI element and it's code - Fixed issue with return value caused by rebasemeow-7.2.2
parent
ca56f6d953
commit
317dd0e405
|
|
@ -285,7 +285,6 @@ LLFloaterPreference::LLFloaterPreference(const LLSD& key)
|
|||
mCommitCallbackRegistrar.add("Pref.ResetCache", boost::bind(&LLFloaterPreference::onClickResetCache, this));
|
||||
mCommitCallbackRegistrar.add("Pref.ClickSkin", boost::bind(&LLFloaterPreference::onClickSkin, this,_1, _2));
|
||||
mCommitCallbackRegistrar.add("Pref.SelectSkin", boost::bind(&LLFloaterPreference::onSelectSkin, this));
|
||||
mCommitCallbackRegistrar.add("Pref.VoiceSetMiddleMouse", boost::bind(&LLFloaterPreference::onClickSetMiddleMouse, this));
|
||||
mCommitCallbackRegistrar.add("Pref.SetSounds", boost::bind(&LLFloaterPreference::onClickSetSounds, this));
|
||||
mCommitCallbackRegistrar.add("Pref.ClickEnablePopup", boost::bind(&LLFloaterPreference::onClickEnablePopup, this));
|
||||
mCommitCallbackRegistrar.add("Pref.ClickDisablePopup", boost::bind(&LLFloaterPreference::onClickDisablePopup, this));
|
||||
|
|
@ -1571,21 +1570,6 @@ void LLFloaterPreference::onChangeQuality(const LLSD& data)
|
|||
refresh();
|
||||
}
|
||||
|
||||
void LLFloaterPreference::onClickSetMiddleMouse()
|
||||
{
|
||||
LLUICtrl* p2t_line_editor = getChild<LLUICtrl>("modifier_combo");
|
||||
|
||||
// update the control right away since we no longer wait for apply
|
||||
p2t_line_editor->setControlValue(MIDDLE_MOUSE_CV);
|
||||
|
||||
//push2talk button "middle mouse" control value is in English, need to localize it for presentation
|
||||
LLPanel* advanced_preferences = dynamic_cast<LLPanel*>(p2t_line_editor->getParent());
|
||||
if (advanced_preferences)
|
||||
{
|
||||
p2t_line_editor->setValue(advanced_preferences->getString("middle_mouse"));
|
||||
}
|
||||
}
|
||||
|
||||
void LLFloaterPreference::onClickSetSounds()
|
||||
{
|
||||
// Disable Enable gesture sounds checkbox if the master sound is disabled
|
||||
|
|
@ -2272,25 +2256,6 @@ BOOL LLPanelPreference::postBuild()
|
|||
getChild<LLTextBox>("mute_chb_label")->setClickedCallback(boost::bind(&toggleMuteWhenMinimized));
|
||||
}
|
||||
|
||||
//////////////////////PanelAdvanced ///////////////////
|
||||
if (hasChild("modifier_combo", TRUE))
|
||||
{
|
||||
//localizing if push2talk button is set to middle mouse
|
||||
std::string modifier_value = getChild<LLUICtrl>("modifier_combo")->getValue().asString();
|
||||
if (MIDDLE_MOUSE_CV == modifier_value)
|
||||
{
|
||||
getChild<LLUICtrl>("modifier_combo")->setValue(getString("middle_mouse"));
|
||||
}
|
||||
else if (MOUSE_BUTTON_4_CV == modifier_value)
|
||||
{
|
||||
getChild<LLUICtrl>("modifier_combo")->setValue(getString("button4_mouse"));
|
||||
}
|
||||
else if (MOUSE_BUTTON_5_CV == modifier_value)
|
||||
{
|
||||
getChild<LLUICtrl>("modifier_combo")->setValue(getString("button5_mouse"));
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////PanelSetup ///////////////////
|
||||
if (hasChild("max_bandwidth"), TRUE)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -143,7 +143,6 @@ public:
|
|||
void onClickResetCache();
|
||||
void onClickSkin(LLUICtrl* ctrl,const LLSD& userdata);
|
||||
void onSelectSkin();
|
||||
void onClickSetMiddleMouse();
|
||||
void onClickSetSounds();
|
||||
void onClickEnablePopup();
|
||||
void onClickDisablePopup();
|
||||
|
|
|
|||
|
|
@ -1309,7 +1309,7 @@ bool LLViewerInput::scanKey(KEY key, BOOL key_down, BOOL key_up, BOOL key_level)
|
|||
{
|
||||
if (LLApp::isExiting())
|
||||
{
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
|
||||
S32 mode = getMode();
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -470,21 +470,6 @@
|
|||
width="237"
|
||||
tool_tip="When in toggle mode, press and release the trigger key ONCE to switch your microphone on or off. When not in toggle mode, the microphone broadcasts your voice only while the trigger is being held down."
|
||||
top_pad="3"/>
|
||||
<button
|
||||
enabled_control="EnableVoiceChat"
|
||||
follows="top|left"
|
||||
halign="center"
|
||||
height="23"
|
||||
image_overlay="Refresh_Off"
|
||||
layout="topleft"
|
||||
tool_tip="Reset to Middle Mouse Button"
|
||||
mouse_opaque="true"
|
||||
name="set_voice_middlemouse_button"
|
||||
left_pad="5"
|
||||
width="25">
|
||||
<button.commit_callback
|
||||
function="Pref.VoiceSetMiddleMouse" />
|
||||
</button>
|
||||
<button
|
||||
control_name="ShowDeviceSettings"
|
||||
follows="left|top"
|
||||
|
|
|
|||
Loading…
Reference in New Issue