aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorJacek Antonelli2010-02-04 19:55:07 -0600
committerJacek Antonelli2010-02-04 20:54:34 -0600
commitd414063e6c590728348fb1127da4c90a9896d691 (patch)
tree4e25233de2c3c50d3dba27892b43b80df97c6094 /linden/indra/newview
parentSlider widgets can now be controlled with mouse wheel. (diff)
downloadmeta-impy-d414063e6c590728348fb1127da4c90a9896d691.zip
meta-impy-d414063e6c590728348fb1127da4c90a9896d691.tar.gz
meta-impy-d414063e6c590728348fb1127da4c90a9896d691.tar.bz2
meta-impy-d414063e6c590728348fb1127da4c90a9896d691.tar.xz
Added SliderScrollWheelMultiplier setting.
Affects the direction sliders move from mouse scroll wheel. Also added LLSlider::getScrollWheelMultiplier() and LLSlider::setScrollWheelMultiplier().
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/app_settings/settings.xml11
-rw-r--r--linden/indra/newview/llappviewer.cpp3
-rw-r--r--linden/indra/newview/llviewercontrol.cpp9
3 files changed, 23 insertions, 0 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index 76183ef..f8594ad 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -9458,6 +9458,17 @@
9458 <integer>29</integer> 9458 <integer>29</integer>
9459 </array> 9459 </array>
9460 </map> 9460 </map>
9461 <key>SliderScrollWheelMultiplier</key>
9462 <map>
9463 <key>Comment</key>
9464 <string>Multiplier for the amount the mouse scroll wheel affects slider widgets in the UI. E.g. -1 makes sliders move the opposite way when scrolled.</string>
9465 <key>Persist</key>
9466 <integer>1</integer>
9467 <key>Type</key>
9468 <string>S32</string>
9469 <key>Value</key>
9470 <integer>1</integer>
9471 </map>
9461 <key>SmallAvatarNames</key> 9472 <key>SmallAvatarNames</key>
9462 <map> 9473 <map>
9463 <key>Comment</key> 9474 <key>Comment</key>
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp
index f1c6064..a57050d 100644
--- a/linden/indra/newview/llappviewer.cpp
+++ b/linden/indra/newview/llappviewer.cpp
@@ -146,6 +146,7 @@
146#include "llvovolume.h" 146#include "llvovolume.h"
147#include "llflexibleobject.h" 147#include "llflexibleobject.h"
148#include "llvosurfacepatch.h" 148#include "llvosurfacepatch.h"
149#include "llslider.h"
149 150
150// includes for idle() idleShutdown() 151// includes for idle() idleShutdown()
151#include "llviewercontrol.h" 152#include "llviewercontrol.h"
@@ -422,6 +423,8 @@ static void settings_to_globals()
422 LLHoverView::sShowHoverTips = gSavedSettings.getBOOL("ShowHoverTips"); 423 LLHoverView::sShowHoverTips = gSavedSettings.getBOOL("ShowHoverTips");
423 424
424 LLCubeMap::sUseCubeMaps = LLFeatureManager::getInstance()->isFeatureAvailable("RenderCubeMap"); 425 LLCubeMap::sUseCubeMaps = LLFeatureManager::getInstance()->isFeatureAvailable("RenderCubeMap");
426
427 LLSlider::setScrollWheelMultiplier( gSavedSettings.getS32("SliderScrollWheelMultiplier") );
425} 428}
426 429
427static void settings_modify() 430static void settings_modify()
diff --git a/linden/indra/newview/llviewercontrol.cpp b/linden/indra/newview/llviewercontrol.cpp
index b9db346..08e9d45 100644
--- a/linden/indra/newview/llviewercontrol.cpp
+++ b/linden/indra/newview/llviewercontrol.cpp
@@ -71,6 +71,8 @@
71#include "llvowlsky.h" 71#include "llvowlsky.h"
72#include "llrender.h" 72#include "llrender.h"
73#include "llmediamanager.h" 73#include "llmediamanager.h"
74#include "llslider.h"
75
74 76
75#ifdef TOGGLE_HACKED_GODLIKE_VIEWER 77#ifdef TOGGLE_HACKED_GODLIKE_VIEWER
76BOOL gHackGodmode = FALSE; 78BOOL gHackGodmode = FALSE;
@@ -462,6 +464,12 @@ bool handleMediaDebugLevelChanged(const LLSD& newvalue)
462 return true; 464 return true;
463} 465}
464 466
467bool handleSliderScrollWheelMultiplierChanged(const LLSD& newvalue)
468{
469 LLSlider::setScrollWheelMultiplier( newvalue.asInteger() );
470 return true;
471}
472
465//////////////////////////////////////////////////////////////////////////// 473////////////////////////////////////////////////////////////////////////////
466 474
467void settings_setup_listeners() 475void settings_setup_listeners()
@@ -592,6 +600,7 @@ void settings_setup_listeners()
592 gSavedSettings.getControl("AudioLevelMic")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); 600 gSavedSettings.getControl("AudioLevelMic")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1));
593 gSavedSettings.getControl("LipSyncEnabled")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); 601 gSavedSettings.getControl("LipSyncEnabled")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1));
594 gSavedSettings.getControl("MediaDebugLevel")->getSignal()->connect(boost::bind(&handleMediaDebugLevelChanged, _1)); 602 gSavedSettings.getControl("MediaDebugLevel")->getSignal()->connect(boost::bind(&handleMediaDebugLevelChanged, _1));
603 gSavedSettings.getControl("SliderScrollWheelMultiplier")->getSignal()->connect(boost::bind(&handleSliderScrollWheelMultiplierChanged, _1));
595 604
596// [RLVa:KB] - Checked: 2009-08-11 (RLVa-1.0.1h) | Added: RLVa-1.0.1h 605// [RLVa:KB] - Checked: 2009-08-11 (RLVa-1.0.1h) | Added: RLVa-1.0.1h
597 if (gSavedSettings.controlExists(RLV_SETTING_ENABLELEGACYNAMING)) 606 if (gSavedSettings.controlExists(RLV_SETTING_ENABLELEGACYNAMING))