diff options
| -rw-r--r-- | indra/llui/llbutton.cpp | 12 | ||||
| -rw-r--r-- | indra/llui/llfloater.h | 4 | ||||
| -rw-r--r-- | indra/llui/llmenugl.cpp | 4 | ||||
| -rw-r--r-- | indra/llxml/llcontrol.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/app_settings/settings.xml | 298 | ||||
| -rw-r--r-- | indra/newview/llappviewer.cpp | 10 | ||||
| -rw-r--r-- | indra/newview/llfloateravatarpicker.cpp | 10 | ||||
| -rw-r--r-- | indra/newview/llfloatercolorpicker.cpp | 10 | ||||
| -rw-r--r-- | indra/newview/llfloaterconversationpreview.cpp | 3 | ||||
| -rw-r--r-- | indra/newview/llfloaterexperiencepicker.cpp | 9 | ||||
| -rw-r--r-- | indra/newview/llscreenchannel.cpp | 3 | ||||
| -rw-r--r-- | indra/newview/llsetkeybinddialog.cpp | 9 | ||||
| -rw-r--r-- | indra/newview/llstartup.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/lltoolpie.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/llviewercontrol.cpp | 14 | ||||
| -rw-r--r-- | indra/newview/llviewerwindow.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/llvoavatar.cpp | 13 | 
17 files changed, 39 insertions, 376 deletions
diff --git a/indra/llui/llbutton.cpp b/indra/llui/llbutton.cpp index 3354cb2db3..fe9908a475 100644 --- a/indra/llui/llbutton.cpp +++ b/indra/llui/llbutton.cpp @@ -58,10 +58,10 @@ static LLDefaultChildRegistry::Register<LLButton> r("button");  template class LLButton* LLView::getChild<class LLButton>(  	const std::string& name, BOOL recurse) const; -// globals loaded from settings.xml -S32	LLBUTTON_H_PAD	= 0; -S32 BTN_HEIGHT_SMALL= 0; -S32 BTN_HEIGHT		= 0; +// globals +S32	LLBUTTON_H_PAD	= 4; +S32 BTN_HEIGHT_SMALL= 23; +S32 BTN_HEIGHT		= 23;  LLButton::Params::Params()  :	label_selected("label_selected"),				// requires is_toggle true @@ -91,8 +91,8 @@ LLButton::Params::Params()  	image_overlay_disabled_color("image_overlay_disabled_color", LLColor4::white % 0.3f),  	image_overlay_selected_color("image_overlay_selected_color", LLColor4::white),  	flash_color("flash_color"), -	pad_right("pad_right", LLUI::getInstance()->mSettingGroups["config"]->getS32("ButtonHPad")), -	pad_left("pad_left", LLUI::getInstance()->mSettingGroups["config"]->getS32("ButtonHPad")), +	pad_right("pad_right", LLBUTTON_H_PAD), +	pad_left("pad_left", LLBUTTON_H_PAD),  	pad_bottom("pad_bottom"),  	click_callback("click_callback"),  	mouse_down_callback("mouse_down_callback"), diff --git a/indra/llui/llfloater.h b/indra/llui/llfloater.h index 668cd208a9..7840611ce1 100644 --- a/indra/llui/llfloater.h +++ b/indra/llui/llfloater.h @@ -61,6 +61,10 @@ const BOOL CLOSE_NO = FALSE;  const BOOL ADJUST_VERTICAL_YES = TRUE;  const BOOL ADJUST_VERTICAL_NO = FALSE; +const F32 CONTEXT_CONE_IN_ALPHA = 0.f; +const F32 CONTEXT_CONE_OUT_ALPHA = 1.f; +const F32 CONTEXT_CONE_FADE_TIME = .08f; +  namespace LLFloaterEnums  {  	enum EOpenPositioning diff --git a/indra/llui/llmenugl.cpp b/indra/llui/llmenugl.cpp index 16c27da56a..32c5ceb20e 100644 --- a/indra/llui/llmenugl.cpp +++ b/indra/llui/llmenugl.cpp @@ -66,8 +66,8 @@  LLMenuHolderGL *LLMenuGL::sMenuContainer = NULL;  view_listener_t::listener_map_t view_listener_t::sListeners; -S32 MENU_BAR_HEIGHT = 0; -S32 MENU_BAR_WIDTH = 0; +S32 MENU_BAR_HEIGHT = 18; +S32 MENU_BAR_WIDTH = 410;  ///============================================================================  /// Local function declarations, constants, enums, and typedefs diff --git a/indra/llxml/llcontrol.cpp b/indra/llxml/llcontrol.cpp index 2960ecf829..27e17ec4bb 100644 --- a/indra/llxml/llcontrol.cpp +++ b/indra/llxml/llcontrol.cpp @@ -1497,8 +1497,6 @@ DECL_LLCC(LLColor4U, LLColor4U(255, 200, 100, 255));  LLSD test_llsd = LLSD()["testing1"] = LLSD()["testing2"];  DECL_LLCC(LLSD, test_llsd); -static LLCachedControl<std::string> test_BrowserHomePage("BrowserHomePage", "hahahahahha", "Not the real comment"); -  void test_cached_control()  {  #define TEST_LLCC(T, V) if((T)mySetting_##T != V) LL_ERRS() << "Fail "#T << LL_ENDL @@ -1515,8 +1513,6 @@ void test_cached_control()  	TEST_LLCC(LLColor3, LLColor3(1.0f, 0.f, 0.5f));  	TEST_LLCC(LLColor4U, LLColor4U(255, 200, 100, 255));  //There's no LLSD comparsion for LLCC yet. TEST_LLCC(LLSD, test_llsd);  - -	if((std::string)test_BrowserHomePage != "http://www.secondlife.com") LL_ERRS() << "Fail BrowserHomePage" << LL_ENDL;  }  #endif // TEST_CACHED_CONTROL diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 9d541d98e7..7a8c1abd7a 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -632,28 +632,6 @@        <key>Value</key>        <integer>40</integer>      </map> -    <key>BottomPanelNew</key> -    <map> -      <key>Comment</key> -      <string>Enable the new bottom panel</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>Boolean</string> -      <key>Value</key> -      <integer>0</integer> -    </map> -    <key>BrowserHomePage</key> -    <map> -      <key>Comment</key> -      <string>[NOT USED]</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>String</string> -      <key>Value</key> -      <string>http://www.secondlife.com</string> -    </map>      <key>BrowserIgnoreSSLCertErrors</key>      <map>        <key>Comment</key> @@ -687,17 +665,6 @@          <key>Value</key>              <integer>0</integer>          </map> -    <key>BlockSomeAvatarAppearanceVisualParams</key> -        <map> -        <key>Comment</key> -            <string>Drop around 50% of VisualParam occurances in appearance messages (for simulating Ruth)</string> -        <key>Persist</key> -            <integer>1</integer> -        <key>Type</key> -            <string>Boolean</string> -        <key>Value</key> -            <integer>0</integer> -        </map>      <key>BrowserProxyAddress</key>      <map>        <key>Comment</key> @@ -1127,39 +1094,6 @@        <key>Value</key>        <integer>1</integer>      </map> -    <key>ButtonHPad</key> -    <map> -      <key>Comment</key> -      <string>Default horizontal spacing between buttons (pixels)</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>S32</string> -      <key>Value</key> -      <integer>4</integer> -    </map> -    <key>ButtonHeight</key> -    <map> -      <key>Comment</key> -      <string>Default height for normal buttons (pixels)</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>S32</string> -      <key>Value</key> -      <integer>23</integer> -    </map> -    <key>ButtonHeightSmall</key> -    <map> -      <key>Comment</key> -      <string>Default height for small buttons (pixels)</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>S32</string> -      <key>Value</key> -      <integer>23</integer> -    </map>      <key>EnableDiskCacheDebugInfo</key>      <map>        <key>Comment</key> @@ -1215,17 +1149,6 @@        <key>Value</key>        <string />      </map> -    <key>CacheNumberOfRegionsForObjects</key> -    <map> -      <key>Comment</key> -      <string>Controls number of regions to be cached for objects.</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>U32</string> -      <key>Value</key> -      <integer>128</integer> -    </map>      <key>CacheSize</key>      <map>        <key>Comment</key> @@ -1510,17 +1433,6 @@        <key>Value</key>        <integer>1</integer>      </map> -    <key>ChatBarStealsFocus</key> -    <map> -      <key>Comment</key> -      <string>Whenever keyboard focus is removed from the UI, and the chat bar is visible, the chat bar takes focus</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>Boolean</string> -      <key>Value</key> -      <integer>1</integer> -    </map>      <key>LetterKeysFocusChatBar</key>      <map>        <key>Comment</key> @@ -1587,17 +1499,6 @@          <key>Value</key>          <integer>100</integer>      </map> -    <key>ChatLoadGroupTimeout</key> -    <map> -        <key>Comment</key> -        <string>Time we give the server to send group participants before we hit the server for group info (seconds)</string> -        <key>Persist</key> -        <integer>1</integer> -        <key>Type</key> -        <string>F32</string> -        <key>Value</key> -        <real>10.0</real> -    </map>      <key>ChatOnlineNotification</key>      <map>        <key>Comment</key> @@ -1609,28 +1510,6 @@        <key>Value</key>        <integer>1</integer>      </map> -    <key>ChatPersistTime</key> -    <map> -      <key>Comment</key> -      <string>Time for which chat stays visible in console (seconds)</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>F32</string> -      <key>Value</key> -      <real>20.0</real> -    </map> -    <key>ChatShowTimestamps</key> -    <map> -      <key>Comment</key> -      <string>Show timestamps in chat</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>Boolean</string> -      <key>Value</key> -      <integer>1</integer> -    </map>      <key>CheesyBeacon</key>      <map>        <key>Comment</key> @@ -1653,50 +1532,6 @@        <key>Value</key>        <string />      </map> -    <key>ContextConeInAlpha</key> -    <map> -      <key>Comment</key> -      <string>Cone In Alpha</string> -      <key>Persist</key> -      <integer>0</integer> -      <key>Type</key> -      <string>F32</string> -      <key>Value</key> -      <real>0.0</real> -    </map> -    <key>ContextConeOutAlpha</key> -    <map> -      <key>Comment</key> -      <string>Cone Out Alpha</string> -      <key>Persist</key> -      <integer>0</integer> -      <key>Type</key> -      <string>F32</string> -      <key>Value</key> -      <real>1.0</real> -    </map> -    <key>ContextConeFadeTime</key> -    <map> -      <key>Comment</key> -      <string>Cone Fade Time</string> -      <key>Persist</key> -      <integer>0</integer> -      <key>Type</key> -      <string>F32</string> -      <key>Value</key> -      <real>.08</real> -    </map> -    <key>ConversationHistoryPageSize</key> -    <map> -      <key>Comment</key> -      <string>Chat history of conversation opened from call log is displayed by pages. So this is number of entries per page.</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>S32</string> -      <key>Value</key> -      <integer>100</integer> -    </map>      <key>ConversationSortOrder</key>      <map>        <key>Comment</key> @@ -1875,17 +1710,6 @@        <key>Value</key>        <integer>40</integer>      </map> -    <key>ContactsTornOff</key> -    <map> -      <key>Comment</key> -      <string>Show contacts window separately from Communicate window.</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>Boolean</string> -      <key>Value</key> -      <integer>0</integer> -    </map>      <key>CookiesEnabled</key>      <map>        <key>Comment</key> @@ -2007,17 +1831,6 @@        <key>Value</key>        <integer>0</integer>      </map> -  <key>CurlMaximumNumberOfHandles</key> -  <map> -    <key>Comment</key> -    <string>Maximum number of handles curl can use (requires restart)</string> -    <key>Persist</key> -    <integer>1</integer> -    <key>Type</key> -    <string>S32</string> -    <key>Value</key> -    <integer>256</integer> -  </map>    <key>CurlRequestTimeOut</key>    <map>      <key>Comment</key> @@ -2029,17 +1842,6 @@      <key>Value</key>      <real>120.0</real>    </map> -  <key>CurlUseMultipleThreads</key> -  <map> -    <key>Comment</key> -    <string>Use background threads for executing curl_multi_perform (requires restart)</string> -    <key>Persist</key> -    <integer>1</integer> -    <key>Type</key> -    <string>Boolean</string> -    <key>Value</key> -    <integer>1</integer> -  </map>      <key>Cursor3D</key>      <map>        <key>Comment</key> @@ -2062,17 +1864,6 @@        <key>Value</key>        <string></string>      </map> -    <key>CustomServer</key> -    <map> -      <key>Comment</key> -      <string>Specifies IP address or hostname of grid to which you connect</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>String</string> -      <key>Value</key> -      <string /> -    </map>    <key>DebugAnimatedObjects</key>    <map>      <key>Comment</key> @@ -2315,18 +2106,6 @@        <key>Value</key>        <integer>0</integer>      </map> -    <key>DebugShowPrivateMem</key> -    <!-- deprecated (see MAINT-8091) --> -    <map> -      <key>Comment</key> -      <string>(Deprecated) Show Private Mem Info</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>Boolean</string> -      <key>Value</key> -      <integer>0</integer> -    </map>      <key>DebugShowRenderInfo</key>      <map>        <key>Comment</key> @@ -3317,28 +3096,6 @@        <key>Value</key>        <integer>1</integer>      </map> -    <key>ClickActionBuyEnabled</key> -    <map> -      <key>Comment</key> -      <string>Enable click to buy actions in tool pie menu</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>Boolean</string> -      <key>Value</key> -      <integer>1</integer> -    </map> -    <key>ClickActionPayEnabled</key> -    <map> -      <key>Comment</key> -      <string>Enable click to pay actions in tool pie menu</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>Boolean</string> -      <key>Value</key> -      <integer>1</integer> -    </map>      <key>DoubleClickAutoPilot</key>      <map>        <key>Comment</key> @@ -6476,28 +6233,6 @@        <key>Value</key>        <real>0.25</real>      </map> -    <key>MenuBarHeight</key> -    <map> -      <key>Comment</key> -      <string /> -      <key>Persist</key> -      <integer>0</integer> -      <key>Type</key> -      <string>S32</string> -      <key>Value</key> -      <integer>18</integer> -    </map> -    <key>MenuBarWidth</key> -    <map> -      <key>Comment</key> -      <string /> -      <key>Persist</key> -      <integer>0</integer> -      <key>Type</key> -      <string>S32</string> -      <key>Value</key> -      <integer>410</integer> -    </map>      <key>MePanelOpened</key>      <map>        <key>Comment</key> @@ -7151,17 +6886,6 @@        <key>Value</key>        <integer>90</integer>      </map> -    <key>ChannelBottomPanelMargin</key> -    <map> -      <key>Comment</key> -      <string>Space from a lower toast to the Bottom Tray</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>S32</string> -      <key>Value</key> -      <integer>35</integer> -    </map>      <key>NotificationChannelRightMargin</key>      <map>        <key>Comment</key> @@ -7840,17 +7564,6 @@        <key>Value</key>        <real>6.0</real>      </map> -    <key>ClothingLoadingDelay</key> -    <map> -      <key>Comment</key> -      <string>Time to wait for avatar appearance to resolve before showing world (seconds)</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>F32</string> -      <key>Value</key> -      <real>10.0</real> -    </map>  	<key>PreferredMaturity</key>      <map>        <key>Comment</key> @@ -12790,17 +12503,6 @@        <key>Value</key>        <string></string>      </map> -    <key>BingTranslateAPIKey</key> -    <map> -      <key>Comment</key> -      <string>(Deprecated) Bing AppID to use with the Microsoft Translator API</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>String</string> -      <key>Value</key> -      <string></string> -    </map>      <key>AzureTranslateAPIKey</key>      <map>        <key>Comment</key> diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 31a87bbde1..cb5d8e8241 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -528,13 +528,6 @@ bool	create_text_segment_icon_from_url_match(LLUrlMatch* match,LLTextBase* base)  // or for things that are performance critical.  JC  static void settings_to_globals()  { -	LLBUTTON_H_PAD		= gSavedSettings.getS32("ButtonHPad"); -	BTN_HEIGHT_SMALL	= gSavedSettings.getS32("ButtonHeightSmall"); -	BTN_HEIGHT			= gSavedSettings.getS32("ButtonHeight"); - -	MENU_BAR_HEIGHT		= gSavedSettings.getS32("MenuBarHeight"); -	MENU_BAR_WIDTH		= gSavedSettings.getS32("MenuBarWidth"); -  	LLSurface::setTextureSize(gSavedSettings.getU32("RegionTextureSize"));  	LLRender::sGLCoreProfile = gSavedSettings.getBOOL("RenderGLContextCoreProfile"); @@ -4271,7 +4264,8 @@ bool LLAppViewer::initCache()      LLAppViewer::getTextureCache()->initCache(LL_PATH_CACHE, texture_cache_size, texture_cache_mismatch); -	LLVOCache::getInstance()->initCache(LL_PATH_CACHE, gSavedSettings.getU32("CacheNumberOfRegionsForObjects"), getObjectCacheVersion()); +    const U32 CACHE_NUMBER_OF_REGIONS_FOR_OBJECTS = 128; +	LLVOCache::getInstance()->initCache(LL_PATH_CACHE, CACHE_NUMBER_OF_REGIONS_FOR_OBJECTS, getObjectCacheVersion());      return true;  } diff --git a/indra/newview/llfloateravatarpicker.cpp b/indra/newview/llfloateravatarpicker.cpp index 2422596f60..7b91d31d02 100644 --- a/indra/newview/llfloateravatarpicker.cpp +++ b/indra/newview/llfloateravatarpicker.cpp @@ -107,15 +107,11 @@ LLFloaterAvatarPicker::LLFloaterAvatarPicker(const LLSD& key)  	mCloseOnSelect(FALSE),      mExcludeAgentFromSearchResults(FALSE),      mContextConeOpacity	(0.f), -    mContextConeInAlpha(0.f), -    mContextConeOutAlpha(0.f), -    mContextConeFadeTime(0.f) +    mContextConeInAlpha(CONTEXT_CONE_IN_ALPHA), +    mContextConeOutAlpha(CONTEXT_CONE_OUT_ALPHA), +    mContextConeFadeTime(CONTEXT_CONE_FADE_TIME)  {  	mCommitCallbackRegistrar.add("Refresh.FriendList", boost::bind(&LLFloaterAvatarPicker::populateFriend, this)); - -    mContextConeInAlpha = gSavedSettings.getF32("ContextConeInAlpha"); -    mContextConeOutAlpha = gSavedSettings.getF32("ContextConeOutAlpha"); -    mContextConeFadeTime = gSavedSettings.getF32("ContextConeFadeTime");  }  BOOL LLFloaterAvatarPicker::postBuild() diff --git a/indra/newview/llfloatercolorpicker.cpp b/indra/newview/llfloatercolorpicker.cpp index ba91277c79..1672969e82 100644 --- a/indra/newview/llfloatercolorpicker.cpp +++ b/indra/newview/llfloatercolorpicker.cpp @@ -102,9 +102,9 @@ LLFloaterColorPicker::LLFloaterColorPicker (LLColorSwatchCtrl* swatch, BOOL show  	  mActive				( TRUE ),  	  mCanApplyImmediately	( show_apply_immediate ),  	  mContextConeOpacity	( 0.f ), -      mContextConeInAlpha   ( 0.f ), -      mContextConeOutAlpha   ( 0.f ), -      mContextConeFadeTime   ( 0.f ) +      mContextConeInAlpha   (CONTEXT_CONE_IN_ALPHA), +      mContextConeOutAlpha   (CONTEXT_CONE_OUT_ALPHA), +      mContextConeFadeTime   (CONTEXT_CONE_FADE_TIME)  {  	buildFromFile ( "floater_color_picker.xml"); @@ -116,10 +116,6 @@ LLFloaterColorPicker::LLFloaterColorPicker (LLColorSwatchCtrl* swatch, BOOL show  		mApplyImmediateCheck->setEnabled(FALSE);  		mApplyImmediateCheck->set(FALSE);  	} - -    mContextConeInAlpha = gSavedSettings.getF32("ContextConeInAlpha"); -    mContextConeOutAlpha = gSavedSettings.getF32("ContextConeOutAlpha"); -    mContextConeFadeTime = gSavedSettings.getF32("ContextConeFadeTime");  }  LLFloaterColorPicker::~LLFloaterColorPicker() diff --git a/indra/newview/llfloaterconversationpreview.cpp b/indra/newview/llfloaterconversationpreview.cpp index 580a3f2610..97327da81a 100644 --- a/indra/newview/llfloaterconversationpreview.cpp +++ b/indra/newview/llfloaterconversationpreview.cpp @@ -37,13 +37,14 @@  const std::string LL_FCP_COMPLETE_NAME("complete_name");  const std::string LL_FCP_ACCOUNT_NAME("user_name"); +const S32 CONVERSATION_HISTORY_PAGE_SIZE = 100;  LLFloaterConversationPreview::LLFloaterConversationPreview(const LLSD& session_id)  :	LLFloater(session_id),  	mChatHistory(NULL),  	mSessionID(session_id.asUUID()),  	mCurrentPage(0), -	mPageSize(gSavedSettings.getS32("ConversationHistoryPageSize")), +	mPageSize(CONVERSATION_HISTORY_PAGE_SIZE),  	mAccountName(session_id[LL_FCP_ACCOUNT_NAME]),  	mCompleteName(session_id[LL_FCP_COMPLETE_NAME]),  	mMutex(), diff --git a/indra/newview/llfloaterexperiencepicker.cpp b/indra/newview/llfloaterexperiencepicker.cpp index c642da7b83..fe7854b3a5 100644 --- a/indra/newview/llfloaterexperiencepicker.cpp +++ b/indra/newview/llfloaterexperiencepicker.cpp @@ -88,13 +88,10 @@ LLFloaterExperiencePicker::LLFloaterExperiencePicker( const LLSD& key )  	:LLFloater(key)  	,mSearchPanel(NULL)  	,mContextConeOpacity(0.f) -	,mContextConeInAlpha(0.f) -	,mContextConeOutAlpha(0.f) -	,mContextConeFadeTime(0.f) +	,mContextConeInAlpha(CONTEXT_CONE_IN_ALPHA) +	,mContextConeOutAlpha(CONTEXT_CONE_OUT_ALPHA) +	,mContextConeFadeTime(CONTEXT_CONE_FADE_TIME)  { -	mContextConeInAlpha = gSavedSettings.getF32("ContextConeInAlpha"); -	mContextConeOutAlpha = gSavedSettings.getF32("ContextConeOutAlpha"); -	mContextConeFadeTime = gSavedSettings.getF32("ContextConeFadeTime");  }  LLFloaterExperiencePicker::~LLFloaterExperiencePicker() diff --git a/indra/newview/llscreenchannel.cpp b/indra/newview/llscreenchannel.cpp index 17f2970f99..ea3aa58f94 100644 --- a/indra/newview/llscreenchannel.cpp +++ b/indra/newview/llscreenchannel.cpp @@ -170,8 +170,9 @@ void LLScreenChannelBase::init(S32 channel_left, S32 channel_right)  void	LLScreenChannelBase::updateRect()  { +    const S32 CHANNEL_BOTTOM_PANEL_MARGIN = 35;  	S32 channel_top = getChannelRect().mTop; -	S32 channel_bottom = getChannelRect().mBottom + gSavedSettings.getS32("ChannelBottomPanelMargin"); +	S32 channel_bottom = getChannelRect().mBottom + CHANNEL_BOTTOM_PANEL_MARGIN;  	S32 channel_left = getRect().mLeft;  	S32 channel_right = getRect().mRight;  	setRect(LLRect(channel_left, channel_top, channel_right, channel_bottom)); diff --git a/indra/newview/llsetkeybinddialog.cpp b/indra/newview/llsetkeybinddialog.cpp index 74844a80e8..dbab7e53b6 100644 --- a/indra/newview/llsetkeybinddialog.cpp +++ b/indra/newview/llsetkeybinddialog.cpp @@ -74,13 +74,10 @@ LLSetKeyBindDialog::LLSetKeyBindDialog(const LLSD& key)      pUpdater(NULL),      mLastMaskKey(0),      mContextConeOpacity(0.f), -    mContextConeInAlpha(0.f), -    mContextConeOutAlpha(0.f), -    mContextConeFadeTime(0.f) +    mContextConeInAlpha(CONTEXT_CONE_IN_ALPHA), +    mContextConeOutAlpha(CONTEXT_CONE_OUT_ALPHA), +    mContextConeFadeTime(CONTEXT_CONE_FADE_TIME)  { -	mContextConeInAlpha = gSavedSettings.getF32("ContextConeInAlpha"); -	mContextConeOutAlpha = gSavedSettings.getF32("ContextConeOutAlpha"); -	mContextConeFadeTime = gSavedSettings.getF32("ContextConeFadeTime");  }  LLSetKeyBindDialog::~LLSetKeyBindDialog() diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index 1b0a814c45..dac7a1d3ff 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -2215,7 +2215,7 @@ bool idle_startup()  		static LLFrameTimer wearables_timer;  		const F32 wearables_time = wearables_timer.getElapsedTimeF32(); -		static LLCachedControl<F32> max_wearables_time(gSavedSettings, "ClothingLoadingDelay"); +		const F32 MAX_WEARABLES_TIME = 10.f;  		if (!gAgent.isOutfitChosen() && isAgentAvatarValid())  		{ @@ -2234,7 +2234,7 @@ bool idle_startup()  		display_startup(); -		if (gAgent.isOutfitChosen() && (wearables_time > max_wearables_time)) +		if (gAgent.isOutfitChosen() && (wearables_time > MAX_WEARABLES_TIME))  		{  			if (gInventory.isInventoryUsable())  			{ diff --git a/indra/newview/lltoolpie.cpp b/indra/newview/lltoolpie.cpp index 1ea5983466..17a7ad9d01 100644 --- a/indra/newview/lltoolpie.cpp +++ b/indra/newview/lltoolpie.cpp @@ -86,8 +86,8 @@ LLToolPie::LLToolPie()  	mMouseSteerX(-1),  	mMouseSteerY(-1),  	mClickAction(0), -	mClickActionBuyEnabled( gSavedSettings.getBOOL("ClickActionBuyEnabled") ), -	mClickActionPayEnabled( gSavedSettings.getBOOL("ClickActionPayEnabled") ), +	mClickActionBuyEnabled( TRUE ), +	mClickActionPayEnabled( TRUE ),  	mDoubleClickTimer()  {  } diff --git a/indra/newview/llviewercontrol.cpp b/indra/newview/llviewercontrol.cpp index 668214a47c..1fe076c0a8 100644 --- a/indra/newview/llviewercontrol.cpp +++ b/indra/newview/llviewercontrol.cpp @@ -370,15 +370,6 @@ static bool handleChatFontSizeChanged(const LLSD& newvalue)  	return true;  } -static bool handleChatPersistTimeChanged(const LLSD& newvalue) -{ -	if(gConsole) -	{ -		gConsole->setLinePersistTime((F32) newvalue.asReal()); -	} -	return true; -} -  static bool handleConsoleMaxLinesChanged(const LLSD& newvalue)  {  	if(gConsole) @@ -804,7 +795,6 @@ void settings_setup_listeners()      setting_setup_signal_listener(gSavedSettings, "RenderPerformanceTest", handleRenderPerfTestChanged);      setting_setup_signal_listener(gSavedSettings, "TextureMemory", handleVideoMemoryChanged);      setting_setup_signal_listener(gSavedSettings, "ChatFontSize", handleChatFontSizeChanged); -    setting_setup_signal_listener(gSavedSettings, "ChatPersistTime", handleChatPersistTimeChanged);      setting_setup_signal_listener(gSavedSettings, "ConsoleMaxLines", handleConsoleMaxLinesChanged);      setting_setup_signal_listener(gSavedSettings, "UploadBakedTexOld", handleUploadBakedTexOldChanged);      setting_setup_signal_listener(gSavedSettings, "UseOcclusion", handleUseOcclusionChanged); @@ -933,8 +923,6 @@ DECL_LLCC(LLColor4U, LLColor4U(255, 200, 100, 255));  LLSD test_llsd = LLSD()["testing1"] = LLSD()["testing2"];  DECL_LLCC(LLSD, test_llsd); -static LLCachedControl<std::string> test_BrowserHomePage("BrowserHomePage", "hahahahahha", "Not the real comment"); -  void test_cached_control()  {  #define do { TEST_LLCC(T, V) if((T)mySetting_##T != V) LL_ERRS() << "Fail "#T << LL_ENDL; } while(0) @@ -951,8 +939,6 @@ void test_cached_control()  	TEST_LLCC(LLColor3, LLColor3(1.0f, 0.f, 0.5f));  	TEST_LLCC(LLColor4U, LLColor4U(255, 200, 100, 255));  //There's no LLSD comparsion for LLCC yet. TEST_LLCC(LLSD, test_llsd);  - -	if((std::string)test_BrowserHomePage != "http://www.secondlife.com") LL_ERRS() << "Fail BrowserHomePage" << LL_ENDL;  }  #endif // TEST_CACHED_CONTROL diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index e8fd74b37b..9384f36fd2 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -2148,13 +2148,15 @@ void LLViewerWindow::initBase()  	gFloaterView->setFloaterSnapView(main_view->getChild<LLView>("floater_snap_region")->getHandle());  	gSnapshotFloaterView = main_view->getChild<LLSnapshotFloaterView>("Snapshot Floater View"); +    const F32 CHAT_PERSIST_TIME = 20.f; +  	// Console  	llassert( !gConsole );  	LLConsole::Params cp;  	cp.name("console");  	cp.max_lines(gSavedSettings.getS32("ConsoleBufferSize"));  	cp.rect(getChatConsoleRect()); -	cp.persist_time(gSavedSettings.getF32("ChatPersistTime")); +	cp.persist_time(CHAT_PERSIST_TIME);  	cp.font_size_index(gSavedSettings.getS32("ChatFontSize"));  	cp.follows.flags(FOLLOWS_LEFT | FOLLOWS_RIGHT | FOLLOWS_BOTTOM);  	gConsole = LLUICtrlFactory::create<LLConsole>(cp); diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index b5dc1dee94..ff5af7e271 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -9262,9 +9262,7 @@ void LLVOAvatar::parseAppearanceMessage(LLMessageSystem* mesgsys, LLAppearanceMe  	// Parse visual params, if any.  	S32 num_blocks = mesgsys->getNumberOfBlocksFast(_PREHASH_VisualParam); -    static LLCachedControl<bool> block_some_avatars(gSavedSettings, "BlockSomeAvatarAppearanceVisualParams"); -	bool drop_visual_params_debug = block_some_avatars && (ll_rand(2) == 0); // pretend that ~12% of AvatarAppearance messages arrived without a VisualParam block, for testing -	if( num_blocks > 1 && !drop_visual_params_debug) +	if( num_blocks > 1)  	{  		//LL_DEBUGS("Avatar") << avString() << " handle visual params, num_blocks " << num_blocks << LL_ENDL; @@ -9309,14 +9307,7 @@ void LLVOAvatar::parseAppearanceMessage(LLMessageSystem* mesgsys, LLAppearanceMe  	}  	else  	{ -		if (drop_visual_params_debug) -		{ -			LL_INFOS() << "Debug-faked lack of parameters on AvatarAppearance for object: "  << getID() << LL_ENDL; -		} -		else -		{ -			LL_DEBUGS("Avatar") << "AvatarAppearance msg received without any parameters, object: " << getID() << LL_ENDL; -		} +        LL_DEBUGS("Avatar") << "AvatarAppearance msg received without any parameters, object: " << getID() << LL_ENDL;  	}  	LLVisualParam* appearance_version_param = getVisualParam(11000);  | 
