From 03be587563e3fbb4e5ecc85203d0afc593a3cb42 Mon Sep 17 00:00:00 2001 From: JessicaLyon Date: Thu, 10 Feb 2011 12:48:21 -0500 Subject: [PATCH] added infrastructure for log browse buttons under prefs> network. More to do.. --- indra/newview/llfloaterpreference.cpp | 16 +++++++++++++++- indra/newview/llfloaterpreference.h | 3 +++ .../default/xui/en/panel_preferences_privacy.xml | 2 +- .../default/xui/en/panel_preferences_setup.xml | 14 +++++++------- 4 files changed, 26 insertions(+), 9 deletions(-) diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index 137c4a92e7..87a980cd76 100644 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -307,6 +307,9 @@ LLFloaterPreference::LLFloaterPreference(const LLSD& key) // mCommitCallbackRegistrar.add("Pref.ClearCache", boost::bind(&LLFloaterPreference::onClickClearCache, this)); mCommitCallbackRegistrar.add("Pref.WebClearCache", boost::bind(&LLFloaterPreference::onClickBrowserClearCache, this)); mCommitCallbackRegistrar.add("Pref.SetCache", boost::bind(&LLFloaterPreference::onClickSetCache, this)); + mCommitCallbackRegistrar.add("Pref.BrowseCache", boost::bind(&LLFloaterPreference::onClickBrowseCache, this)); + mCommitCallbackRegistrar.add("Pref.BrowseCrashLogs", boost::bind(&LLFloaterPreference::onClickBrowseCrashLogs, this)); + mCommitCallbackRegistrar.add("Pref.BrowseSettingsDir", boost::bind(&LLFloaterPreference::onClickBrowseSettingsDir, this)); mCommitCallbackRegistrar.add("Pref.ResetCache", boost::bind(&LLFloaterPreference::onClickResetCache, this)); mCommitCallbackRegistrar.add("Pref.ClearCache", boost::bind(&LLFloaterPreference::onClickClearCache, this)); // mCommitCallbackRegistrar.add("Pref.ClickSkin", boost::bind(&LLFloaterPreference::onClickSkin, this,_1, _2)); @@ -784,7 +787,18 @@ void LLFloaterPreference::onClickSetCache() gSavedSettings.setString("CacheLocationTopFolder", top_folder); } } - +void LLFloaterPreference::onClickBrowseCache() +{ + //todo: add window open (JL) +} +void LLFloaterPreference::onClickBrowseCrashLogs() +{ + //todo: add window open (JL) +} +void LLFloaterPreference::onClickBrowseSettingsDir() +{ + //todo: add window open (JL) +} void LLFloaterPreference::onClickResetCache() { if (!gSavedSettings.getString("CacheLocation").empty()) diff --git a/indra/newview/llfloaterpreference.h b/indra/newview/llfloaterpreference.h index 5b5b59c58f..5488ab6909 100644 --- a/indra/newview/llfloaterpreference.h +++ b/indra/newview/llfloaterpreference.h @@ -116,8 +116,11 @@ public: void setCacheLocation(const LLStringExplicit& location); void onClickSetCache(); + void onClickBrowseCache(); + void onClickBrowseCrashLogs(); void onClickResetCache(); void onClickClearCache(); + void onClickBrowseSettingsDir(); void onClickSkin(LLUICtrl* ctrl,const LLSD& userdata); void onSelectSkin(); void onClickSetKey(); diff --git a/indra/newview/skins/default/xui/en/panel_preferences_privacy.xml b/indra/newview/skins/default/xui/en/panel_preferences_privacy.xml index f86be6f409..d9c19e9a2c 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_privacy.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_privacy.xml @@ -150,7 +150,7 @@ top_pad="5" width="250"/>