From 70445ab8a35ef02d8d8a5f9871a37a18397c3fc7 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Tue, 8 Jan 2013 20:21:15 -0500 Subject: [PATCH 01/10] Add option for Horizontal buttons on Contacts floater. Adds Use horizontal buttons for contacts floater (needs restart) to Vanity Preferences. Adds ContactsUseHorizontalButtons. Adds FloaterContactsHorizRect for saving horizontal contacts rect. Adds panel_friends_horiz.xml, panel_group_horiz.xml, and floater_my_friends_horiz.xml Also corrects string value for FloaterContactsRect --- indra/newview/app_settings/settings.xml | 29 ++++++++++- indra/newview/ascentprefsvan.cpp | 2 + indra/newview/ascentprefsvan.h | 1 + indra/newview/llfloaterchatterbox.cpp | 3 +- .../xui/en-us/floater_my_friends_horiz.xml | 11 ++++ .../default/xui/en-us/panel_friends_horiz.xml | 34 +++++++++++++ .../default/xui/en-us/panel_groups_horiz.xml | 51 +++++++++++++++++++ .../en-us/panel_preferences_ascent_vanity.xml | 1 + 8 files changed, 130 insertions(+), 2 deletions(-) create mode 100644 indra/newview/skins/default/xui/en-us/floater_my_friends_horiz.xml create mode 100644 indra/newview/skins/default/xui/en-us/panel_friends_horiz.xml create mode 100644 indra/newview/skins/default/xui/en-us/panel_groups_horiz.xml diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 07785949b..f1e85ef46 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -749,6 +749,17 @@ Found in Advanced->Rendering->Info Displays Value 1 + ContactsUseHorizontalButtons + + Comment + Whether or not groups and friends lists use horizontal buttons at the bottom of the panel or vertical ones on the right, requires a restart. + Persist + 1 + Type + Boolean + Value + 0 + ShowLocalChatFloaterBar Comment @@ -6171,7 +6182,23 @@ This should be as low as possible, but too low may break functionality FloaterContactsRect Comment - Rectangle for chat history + Rectangle for contacts floater + Persist + 1 + Type + Rect + Value + + 0 + 390 + 395 + 0 + + + FloaterContactsHorizRect + + Comment + Rectangle for contacts floater in horizontal mode Persist 1 Type diff --git a/indra/newview/ascentprefsvan.cpp b/indra/newview/ascentprefsvan.cpp index 824566c78..9b8fd2e63 100644 --- a/indra/newview/ascentprefsvan.cpp +++ b/indra/newview/ascentprefsvan.cpp @@ -190,6 +190,7 @@ void LLPrefsAscentVan::refreshValues() mTurnAround = gSavedSettings.getBOOL("TurnAroundWhenWalkingBackwards"); mAnnounceSnapshots = gSavedSettings.getBOOL("AnnounceSnapshots"); mAnnounceStreamMetadata = gSavedSettings.getBOOL("AnnounceStreamMetadata"); + mHorizButt = gSavedSettings.getBOOL("ContactsUseHorizontalButtons"); //Tags\Colors ---------------------------------------------------------------------------- mAscentUseTag = gSavedSettings.getBOOL("AscentUseTag"); @@ -273,6 +274,7 @@ void LLPrefsAscentVan::cancel() gSavedSettings.setBOOL("TurnAroundWhenWalkingBackwards", mTurnAround); gSavedSettings.setBOOL("AnnounceSnapshots", mAnnounceSnapshots); gSavedSettings.setBOOL("AnnounceStreamMetadata", mAnnounceStreamMetadata); + gSavedSettings.setBOOL("ContactsUseHorizontalButtons", mHorizButt); //Tags\Colors ---------------------------------------------------------------------------- gSavedSettings.setBOOL("AscentUseTag", mAscentUseTag); diff --git a/indra/newview/ascentprefsvan.h b/indra/newview/ascentprefsvan.h index 62600a264..4744cedc0 100644 --- a/indra/newview/ascentprefsvan.h +++ b/indra/newview/ascentprefsvan.h @@ -62,6 +62,7 @@ protected: bool mTurnAround; bool mAnnounceSnapshots; bool mAnnounceStreamMetadata; + bool mHorizButt; //Tags\Colors BOOL mAscentUseTag; std::string mReportClientUUID; diff --git a/indra/newview/llfloaterchatterbox.cpp b/indra/newview/llfloaterchatterbox.cpp index 9e41340fe..876e2c321 100644 --- a/indra/newview/llfloaterchatterbox.cpp +++ b/indra/newview/llfloaterchatterbox.cpp @@ -54,7 +54,8 @@ LLFloaterMyFriends::LLFloaterMyFriends(const LLSD& seed) mFactoryMap["groups_panel"] = LLCallbackMap(LLFloaterMyFriends::createGroupsPanel, NULL); // do not automatically open singleton floaters (as result of getInstance()) BOOL no_open = FALSE; - LLUICtrlFactory::getInstance()->buildFloater(this, "floater_my_friends.xml", &getFactoryMap(), no_open); + static LLCachedControl horiz("ContactsUseHorizontalButtons"); + LLUICtrlFactory::getInstance()->buildFloater(this, (horiz ? "floater_my_friends_horiz.xml" : "floater_my_friends.xml"), &getFactoryMap(), no_open); } LLFloaterMyFriends::~LLFloaterMyFriends() diff --git a/indra/newview/skins/default/xui/en-us/floater_my_friends_horiz.xml b/indra/newview/skins/default/xui/en-us/floater_my_friends_horiz.xml new file mode 100644 index 000000000..6a488b21f --- /dev/null +++ b/indra/newview/skins/default/xui/en-us/floater_my_friends_horiz.xml @@ -0,0 +1,11 @@ + + + + + + + diff --git a/indra/newview/skins/default/xui/en-us/panel_friends_horiz.xml b/indra/newview/skins/default/xui/en-us/panel_friends_horiz.xml new file mode 100644 index 000000000..c4d05bf8e --- /dev/null +++ b/indra/newview/skins/default/xui/en-us/panel_friends_horiz.xml @@ -0,0 +1,34 @@ + + + Multiple friends... + + + + + + + + + + + + + + + +