EXP-1209 FIXED Sidetray removed.
- Removed all sidetray dependencies and the sidetray itself. - Also removed LLFloaterSidetrayTab and LLSidetrayListener as unused.master
parent
6a463a41fe
commit
9d3fc5d930
|
|
@ -229,7 +229,6 @@ set(viewer_SOURCE_FILES
|
|||
llfloatersellland.cpp
|
||||
llfloatersettingsdebug.cpp
|
||||
llfloatersidepanelcontainer.cpp
|
||||
llfloatersidetraytab.cpp
|
||||
llfloatersnapshot.cpp
|
||||
llfloatersounddevices.cpp
|
||||
llfloatertelehub.cpp
|
||||
|
|
@ -442,8 +441,6 @@ set(viewer_SOURCE_FILES
|
|||
llsidepanelinventorysubpanel.cpp
|
||||
llsidepaneliteminfo.cpp
|
||||
llsidepaneltaskinfo.cpp
|
||||
llsidetray.cpp
|
||||
llsidetraylistener.cpp
|
||||
llsidetraypanelcontainer.cpp
|
||||
llsky.cpp
|
||||
llslurl.cpp
|
||||
|
|
@ -794,7 +791,6 @@ set(viewer_HEADER_FILES
|
|||
llfloatersellland.h
|
||||
llfloatersettingsdebug.h
|
||||
llfloatersidepanelcontainer.h
|
||||
llfloatersidetraytab.h
|
||||
llfloatersnapshot.h
|
||||
llfloatersounddevices.h
|
||||
llfloatertelehub.h
|
||||
|
|
@ -1002,8 +998,6 @@ set(viewer_HEADER_FILES
|
|||
llsidepanelinventorysubpanel.h
|
||||
llsidepaneliteminfo.h
|
||||
llsidepaneltaskinfo.h
|
||||
llsidetray.h
|
||||
llsidetraylistener.h
|
||||
llsidetraypanelcontainer.h
|
||||
llsky.h
|
||||
llslurl.h
|
||||
|
|
|
|||
|
|
@ -9921,17 +9921,6 @@
|
|||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>SidebarCameraMovement</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Reflects world rect changing while changing sidebar visibility.</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>GroupListShowIcons</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@
|
|||
#include "llnotificationsutil.h"
|
||||
#include "lloutfitobserver.h"
|
||||
#include "llsidepanelappearance.h"
|
||||
#include "llsidetray.h"
|
||||
#include "lltexlayer.h"
|
||||
#include "lltooldraganddrop.h"
|
||||
#include "llviewerregion.h"
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@
|
|||
#include "lloutfitslist.h"
|
||||
#include "llselectmgr.h"
|
||||
#include "llsidepanelappearance.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llviewerobjectlist.h"
|
||||
#include "llvoavatar.h"
|
||||
#include "llvoavatarself.h"
|
||||
|
|
@ -2466,7 +2465,8 @@ public:
|
|||
// add may be processed after login process is finished
|
||||
if (mShowPanel)
|
||||
{
|
||||
LLSideTray::getInstance()->showPanel("panel_outfits_inventory", key);
|
||||
LLFloaterSidePanelContainer::showPanel("appearance", "panel_outfits_inventory", key);
|
||||
|
||||
}
|
||||
LLOutfitsList *outfits_list =
|
||||
dynamic_cast<LLOutfitsList*>(LLFloaterSidePanelContainer::getPanel("appearance", "outfitslist_tab"));
|
||||
|
|
|
|||
|
|
@ -81,7 +81,6 @@
|
|||
#include "llviewermenufile.h"
|
||||
#include "llvoicechannel.h"
|
||||
#include "llvoavatarself.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llurlmatch.h"
|
||||
#include "lltextutil.h"
|
||||
#include "lllogininstance.h"
|
||||
|
|
@ -3499,8 +3498,6 @@ void LLAppViewer::requestQuit()
|
|||
gFloaterView->closeAllChildren(true);
|
||||
}
|
||||
|
||||
LLSideTray::getInstance()->notifyChildren(LLSD().with("request","quit"));
|
||||
|
||||
send_stats();
|
||||
|
||||
gLogoutTimer.reset();
|
||||
|
|
@ -4559,10 +4556,6 @@ void LLAppViewer::idleShutdown()
|
|||
return;
|
||||
}
|
||||
|
||||
if (LLSideTray::getInstance()->notifyChildren(LLSD().with("request","wait_quit")))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,6 @@
|
|||
#include "llpaneloutfitedit.h"
|
||||
#include "llpanelprofile.h"
|
||||
#include "llrecentpeople.h"
|
||||
#include "llsidetray.h"
|
||||
#include "lltrans.h"
|
||||
#include "llviewercontrol.h"
|
||||
#include "llviewerobjectlist.h"
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@
|
|||
#include "llimfloater.h" // for LLIMFloater
|
||||
#include "llnearbychatbar.h"
|
||||
#include "llnearbychatbarlistener.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llspeakbutton.h"
|
||||
#include "llsplitbutton.h"
|
||||
#include "llsyswellwindow.h"
|
||||
|
|
|
|||
|
|
@ -59,8 +59,6 @@
|
|||
|
||||
#include "llviewercontrol.h"
|
||||
|
||||
#include "llsidetray.h"//for blocked objects panel
|
||||
|
||||
static LLDefaultChildRegistry::Register<LLChatHistory> r("chat_history");
|
||||
|
||||
const static std::string NEW_LINE(rawstr_to_utf8("\n"));
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@
|
|||
#include "llviewermenu.h"
|
||||
#include "llwearableitemslist.h"
|
||||
#include "llpaneloutfitedit.h"
|
||||
#include "llsidetray.h"
|
||||
#include "lltrans.h"
|
||||
|
||||
static LLRegisterPanelClassWrapper<LLCOFWearables> t_cof_wearables("cof_wearables");
|
||||
|
|
@ -160,11 +159,6 @@ public:
|
|||
protected:
|
||||
static void replaceWearable(const LLUUID& item_id)
|
||||
{
|
||||
// *TODO: Most probable that accessing to LLPanelOutfitEdit instance should be:
|
||||
// LLSideTray::getInstance()->getSidepanelAppearance()->getPanelOutfitEdit()
|
||||
// without casting. Getter methods provides possibility to check and construct
|
||||
// absent instance. Explicit relations between components avoids situations
|
||||
// when we tries to construct instance with unsatisfied implicit input conditions.
|
||||
LLPanelOutfitEdit * panel_outfit_edit =
|
||||
dynamic_cast<LLPanelOutfitEdit*> (LLFloaterSidePanelContainer::getPanel("appearance",
|
||||
"panel_outfit_edit"));
|
||||
|
|
@ -236,8 +230,6 @@ protected:
|
|||
LLUICtrl::EnableCallbackRegistry::ScopedRegistrar enable_registrar;
|
||||
LLUUID selected_id = mUUIDs.back();
|
||||
|
||||
// *HACK* need to pass pointer to LLPanelOutfitEdit instead of LLSideTray::getInstance()->getPanel().
|
||||
// LLSideTray::getInstance()->getPanel() is rather slow variant
|
||||
LLPanelOutfitEdit* panel_oe = dynamic_cast<LLPanelOutfitEdit*>(LLFloaterSidePanelContainer::getPanel("appearance", "panel_outfit_edit"));
|
||||
registrar.add("BodyPart.Replace", boost::bind(&LLPanelOutfitEdit::onReplaceMenuItemClicked, panel_oe, selected_id));
|
||||
registrar.add("BodyPart.Edit", boost::bind(LLAgentWearables::editWearable, selected_id));
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@
|
|||
#include "llfloaterworldmap.h"
|
||||
#include "lllandmarkactions.h"
|
||||
#include "llnotificationsutil.h"
|
||||
#include "llsidetray.h"
|
||||
#include "lltoggleablemenu.h"
|
||||
#include "llviewerinventory.h"
|
||||
#include "llviewermenu.h"
|
||||
|
|
|
|||
|
|
@ -67,7 +67,6 @@
|
|||
#include "llscrolllistctrl.h"
|
||||
#include "llscrolllistitem.h"
|
||||
#include "llsliderctrl.h"
|
||||
#include "llsidetray.h"
|
||||
#include "lltabcontainer.h"
|
||||
#include "lltrans.h"
|
||||
#include "llviewercontrol.h"
|
||||
|
|
@ -1497,11 +1496,7 @@ void LLFloaterPreference::onChangeMaturity()
|
|||
// but the UI for this will still be enabled
|
||||
void LLFloaterPreference::onClickBlockList()
|
||||
{
|
||||
// don't create side tray on demand
|
||||
if (LLSideTray::instanceCreated())
|
||||
{
|
||||
LLFloaterSidePanelContainer::showPanel("people", "panel_block_list_sidetray", LLSD());
|
||||
}
|
||||
LLFloaterSidePanelContainer::showPanel("people", "panel_block_list_sidetray", LLSD());
|
||||
}
|
||||
|
||||
void LLFloaterPreference::onDoubleClickCheckBox(LLUICtrl* ctrl)
|
||||
|
|
|
|||
|
|
@ -1,52 +0,0 @@
|
|||
/**
|
||||
* @file llfloatersidetraytab.cpp
|
||||
* @brief LLFloaterSideTrayTab class definition
|
||||
*
|
||||
* $LicenseInfo:firstyear=2010&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2010, Linden Research, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#include "llviewerprecompiledheaders.h"
|
||||
|
||||
#include "llfloatersidetraytab.h"
|
||||
|
||||
// newview includes
|
||||
#include "lltransientfloatermgr.h"
|
||||
#include "llsidetray.h"
|
||||
|
||||
LLFloaterSideTrayTab::LLFloaterSideTrayTab(const LLSD& key, const Params& params)
|
||||
: LLFloater(key, params)
|
||||
{
|
||||
// Prevent transient floaters (e.g. IM windows) from hiding
|
||||
// when this floater is clicked.
|
||||
LLTransientFloaterMgr::getInstance()->addControlView(LLTransientFloaterMgr::GLOBAL, this);
|
||||
}
|
||||
|
||||
LLFloaterSideTrayTab::~LLFloaterSideTrayTab()
|
||||
{
|
||||
LLTransientFloaterMgr::getInstance()->removeControlView(LLTransientFloaterMgr::GLOBAL, this);
|
||||
}
|
||||
|
||||
void LLFloaterSideTrayTab::onClose(bool app_quitting)
|
||||
{
|
||||
// The floater is already being closed, so don't toggle it once more (that may crash viewer).
|
||||
LLSideTray::getInstance()->setTabDocked(getName(), /* dock = */ true, /* toggle_floater = */ false);
|
||||
}
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
/**
|
||||
* @file llfloatersidetraytab.h
|
||||
* @brief LLFloaterSideTrayTab class definition
|
||||
*
|
||||
* $LicenseInfo:firstyear=2010&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2010, Linden Research, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#ifndef LL_LLFLOATERSIDETRAYTAB_H
|
||||
#define LL_LLFLOATERSIDETRAYTAB_H
|
||||
|
||||
#include "llfloater.h"
|
||||
|
||||
/**
|
||||
* When a side tray tab gets detached, it's wrapped in an instance of this class.
|
||||
*
|
||||
* This class helps to make sure that clicking a detached side tray tab doesn't
|
||||
* make transient floaters (e.g. IM windows) hide, so that it's possible to
|
||||
* drag an inventory item from detached My Inventory window to a docked IM window,
|
||||
* i.e. share the item (see VWR-22891).
|
||||
*/
|
||||
class LLFloaterSideTrayTab : public LLFloater
|
||||
{
|
||||
public:
|
||||
LLFloaterSideTrayTab(const LLSD& key, const Params& params = getDefaultParams());
|
||||
~LLFloaterSideTrayTab();
|
||||
|
||||
void onClose(bool app_quitting);
|
||||
};
|
||||
|
||||
#endif // LL_LLFLOATERSIDETRAYTAB_H
|
||||
|
|
@ -38,7 +38,6 @@
|
|||
#include "llgroupmgr.h"
|
||||
#include "llimview.h" // for gIMMgr
|
||||
#include "llnotificationsutil.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llstatusbar.h" // can_afford_transaction()
|
||||
#include "llimfloater.h"
|
||||
#include "groupchatlistener.h"
|
||||
|
|
|
|||
|
|
@ -55,15 +55,9 @@
|
|||
#include "llinventorymodel.h"
|
||||
#include "llrootview.h"
|
||||
#include "llspeakers.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llviewerchat.h"
|
||||
|
||||
|
||||
static const S32 RECT_PADDING_NOT_INIT = -1;
|
||||
static const S32 RECT_PADDING_NEED_RECALC = -2;
|
||||
|
||||
S32 LLIMFloater::sAllowedRectRightPadding = RECT_PADDING_NOT_INIT;
|
||||
|
||||
LLIMFloater::LLIMFloater(const LLUUID& session_id)
|
||||
: LLTransientDockableFloater(NULL, true, session_id),
|
||||
mControlPanel(NULL),
|
||||
|
|
@ -472,41 +466,9 @@ LLIMFloater* LLIMFloater::show(const LLUUID& session_id)
|
|||
return floater;
|
||||
}
|
||||
|
||||
//static
|
||||
bool LLIMFloater::resetAllowedRectPadding()
|
||||
{
|
||||
//reset allowed rect right padding if "SidebarCameraMovement" option
|
||||
//or sidebar state changed
|
||||
sAllowedRectRightPadding = RECT_PADDING_NEED_RECALC ;
|
||||
return true;
|
||||
}
|
||||
|
||||
void LLIMFloater::getAllowedRect(LLRect& rect)
|
||||
{
|
||||
if (sAllowedRectRightPadding == RECT_PADDING_NOT_INIT) //wasn't initialized
|
||||
{
|
||||
gSavedSettings.getControl("SidebarCameraMovement")->getSignal()->connect(boost::bind(&LLIMFloater::resetAllowedRectPadding));
|
||||
|
||||
LLSideTray* side_bar = LLSideTray::getInstance();
|
||||
side_bar->setVisibleWidthChangeCallback(boost::bind(&LLIMFloater::resetAllowedRectPadding));
|
||||
sAllowedRectRightPadding = RECT_PADDING_NEED_RECALC;
|
||||
}
|
||||
|
||||
rect = gViewerWindow->getWorldViewRectScaled();
|
||||
if (sAllowedRectRightPadding == RECT_PADDING_NEED_RECALC) //recalc allowed rect right padding
|
||||
{
|
||||
LLPanel* side_bar_tabs =
|
||||
gViewerWindow->getRootView()->getChild<LLPanel> (
|
||||
"side_bar_tabs");
|
||||
sAllowedRectRightPadding = side_bar_tabs->getRect().getWidth();
|
||||
LLTransientFloaterMgr::getInstance()->addControlView(side_bar_tabs);
|
||||
|
||||
if (gSavedSettings.getBOOL("SidebarCameraMovement") == FALSE)
|
||||
{
|
||||
sAllowedRectRightPadding += LLSideTray::getInstance()->getVisibleWidth();
|
||||
}
|
||||
}
|
||||
rect.mRight -= sAllowedRectRightPadding;
|
||||
}
|
||||
|
||||
void LLIMFloater::setDocked(bool docked, bool pop_on_undock)
|
||||
|
|
|
|||
|
|
@ -156,10 +156,6 @@ private:
|
|||
|
||||
static void closeHiddenIMToasts();
|
||||
|
||||
static bool resetAllowedRectPadding();
|
||||
//need to keep this static for performance issues
|
||||
static S32 sAllowedRectRightPadding;
|
||||
|
||||
static void confirmLeaveCallCallback(const LLSD& notification, const LLSD& response);
|
||||
|
||||
LLPanelChatControlPanel* mControlPanel;
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@
|
|||
#include "llmenubutton.h"
|
||||
#include "llresmgr.h" // getMonetaryString
|
||||
#include "llsafehandle.h"
|
||||
#include "llsidetray.h"
|
||||
#include "lltextbox.h" // for description truncation
|
||||
#include "lltoggleablemenu.h"
|
||||
#include "lltrans.h"
|
||||
|
|
|
|||
|
|
@ -60,7 +60,6 @@
|
|||
#include "llpreviewtexture.h"
|
||||
#include "llselectmgr.h"
|
||||
#include "llsidepanelappearance.h"
|
||||
#include "llsidetray.h"
|
||||
#include "lltrans.h"
|
||||
#include "llviewerassettype.h"
|
||||
#include "llviewerfoldertype.h"
|
||||
|
|
|
|||
|
|
@ -71,7 +71,6 @@
|
|||
#include "llscrollbar.h"
|
||||
#include "llscrollcontainer.h"
|
||||
#include "llselectmgr.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llsidepanelinventory.h"
|
||||
#include "lltabcontainer.h"
|
||||
#include "lltooldraganddrop.h"
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@
|
|||
#include "llinventoryfunctions.h"
|
||||
#include "llinventorymodelbackgroundfetch.h"
|
||||
#include "llsidepanelinventory.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llviewerattachmenu.h"
|
||||
#include "llviewerfoldertype.h"
|
||||
#include "llvoavatarself.h"
|
||||
|
|
|
|||
|
|
@ -49,7 +49,6 @@
|
|||
#include "lllandmarkactions.h"
|
||||
#include "lllandmarklist.h"
|
||||
#include "llteleporthistory.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llslurl.h"
|
||||
#include "llstatusbar.h" // getHealth()
|
||||
#include "lltrans.h"
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@
|
|||
#include "llpaneltopinfobar.h"
|
||||
#include "llteleporthistory.h"
|
||||
#include "llsearchcombobox.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llslurl.h"
|
||||
#include "llurlregistry.h"
|
||||
#include "llurldispatcher.h"
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
#include "llrootview.h"
|
||||
//#include "llchatitemscontainerctrl.h"
|
||||
#include "lliconctrl.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llfloatersidepanelcontainer.h"
|
||||
#include "llfocusmgr.h"
|
||||
#include "llresizebar.h"
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@
|
|||
#include "llmenubutton.h"
|
||||
#include "llnotificationsutil.h"
|
||||
#include "lloutfitobserver.h"
|
||||
#include "llsidetray.h"
|
||||
#include "lltoggleablemenu.h"
|
||||
#include "lltransutil.h"
|
||||
#include "llviewermenu.h"
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@
|
|||
// project include
|
||||
#include "llfloateravatarpicker.h"
|
||||
#include "llfloatersidepanelcontainer.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llsidetraypanelcontainer.h"
|
||||
|
||||
static LLRegisterPanelClassWrapper<LLPanelBlockedList> t_panel_blocked_list("panel_block_list_sidetray");
|
||||
|
|
|
|||
|
|
@ -50,7 +50,6 @@
|
|||
#include "llpanelgroupnotices.h"
|
||||
#include "llpanelgroupgeneral.h"
|
||||
|
||||
#include "llsidetray.h"
|
||||
#include "llaccordionctrltab.h"
|
||||
#include "llaccordionctrl.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@
|
|||
#include "llparticipantlist.h"
|
||||
#include "llimview.h"
|
||||
#include "llvoicechannel.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llspeakers.h"
|
||||
#include "lltrans.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@
|
|||
#include "llmenubutton.h"
|
||||
#include "llplacesinventorybridge.h"
|
||||
#include "llplacesinventorypanel.h"
|
||||
#include "llsidetray.h"
|
||||
#include "lltoggleablemenu.h"
|
||||
#include "llviewermenu.h"
|
||||
#include "llviewerregion.h"
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@
|
|||
#include "llviewermenu.h"
|
||||
#include "llviewertexturelist.h"
|
||||
#include "llsidepanelinventory.h"
|
||||
#include "llsidetray.h"
|
||||
|
||||
const std::string FILTERS_FILENAME("filters.xml");
|
||||
|
||||
|
|
|
|||
|
|
@ -59,8 +59,6 @@ LLPanelMarketplaceInbox::~LLPanelMarketplaceInbox()
|
|||
// virtual
|
||||
BOOL LLPanelMarketplaceInbox::postBuild()
|
||||
{
|
||||
LLAppViewer::instance()->setOnLoginCompletedCallback(boost::bind(&LLPanelMarketplaceInbox::handleLoginComplete, this));
|
||||
|
||||
LLFocusableElement::setFocusReceivedCallback(boost::bind(&LLPanelMarketplaceInbox::onFocusReceived, this));
|
||||
|
||||
return TRUE;
|
||||
|
|
@ -74,12 +72,6 @@ void LLPanelMarketplaceInbox::onSelectionChange()
|
|||
}
|
||||
|
||||
|
||||
void LLPanelMarketplaceInbox::handleLoginComplete()
|
||||
{
|
||||
// Set us up as the class to drive the badge value for the sidebar_inventory button
|
||||
LLSideTray::getInstance()->setTabButtonBadgeDriver("sidebar_inventory", this);
|
||||
}
|
||||
|
||||
LLInventoryPanel * LLPanelMarketplaceInbox::setupInventoryPanel()
|
||||
{
|
||||
LLView * inbox_inventory_placeholder = getChild<LLView>("inbox_inventory_placeholder");
|
||||
|
|
|
|||
|
|
@ -28,11 +28,10 @@
|
|||
#define LL_LLPANELMARKETPLACEINBOX_H
|
||||
|
||||
#include "llpanel.h"
|
||||
#include "llsidetray.h"
|
||||
|
||||
class LLInventoryPanel;
|
||||
|
||||
class LLPanelMarketplaceInbox : public LLPanel, public LLSideTrayTabBadgeDriver
|
||||
class LLPanelMarketplaceInbox : public LLPanel
|
||||
{
|
||||
public:
|
||||
|
||||
|
|
@ -61,7 +60,6 @@ public:
|
|||
std::string getBadgeString() const;
|
||||
|
||||
private:
|
||||
void handleLoginComplete();
|
||||
|
||||
void onSelectionChange();
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@
|
|||
#include "llpanelmarketplaceinbox.h"
|
||||
#include "llsdutil.h"
|
||||
#include "llsidepanelinventory.h"
|
||||
#include "llsidetray.h"
|
||||
#include "lltimer.h"
|
||||
#include "llviewernetwork.h"
|
||||
#include "llagent.h"
|
||||
|
|
|
|||
|
|
@ -72,20 +72,6 @@ BOOL LLPanelMe::postBuild()
|
|||
void LLPanelMe::onOpen(const LLSD& key)
|
||||
{
|
||||
LLPanelProfile::onOpen(key);
|
||||
|
||||
// Removed this action as per SOCIAL-431 The first time a new resident opens the profile tab
|
||||
// in the sidebar, they see the old profile editing panel
|
||||
//
|
||||
//// Force Edit My Profile if this is the first time when user is opening Me Panel (EXT-5068)
|
||||
//bool opened = gSavedSettings.getBOOL("MePanelOpened");
|
||||
//// In some cases Side Tray my call onOpen() twice, check getCollapsed() to be sure this
|
||||
//// is the last time onOpen() is called
|
||||
//if( !opened && !LLSideTray::getInstance()->getCollapsed() )
|
||||
//{
|
||||
// buildEditPanel();
|
||||
// openPanel(mEditPanel, getAvatarId());
|
||||
// gSavedSettings.setBOOL("MePanelOpened", true);
|
||||
//}
|
||||
}
|
||||
|
||||
void LLPanelMe::buildEditPanel()
|
||||
|
|
|
|||
|
|
@ -57,7 +57,6 @@
|
|||
#include "llpreviewtexture.h"
|
||||
#include "llscrollcontainer.h"
|
||||
#include "llselectmgr.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llstatusbar.h"
|
||||
#include "lltooldraganddrop.h"
|
||||
#include "lltrans.h"
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@
|
|||
#include "llpanelwearing.h"
|
||||
#include "llsaveoutfitcombobtn.h"
|
||||
#include "llsidepanelappearance.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llviewerfoldertype.h"
|
||||
|
||||
static const std::string OUTFITS_TAB_NAME = "outfitslist_tab";
|
||||
|
|
|
|||
|
|
@ -57,7 +57,6 @@
|
|||
#include "llinventoryobserver.h"
|
||||
#include "llnetmap.h"
|
||||
#include "llpanelpeoplemenus.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llsidetraypanelcontainer.h"
|
||||
#include "llrecentpeople.h"
|
||||
#include "llviewercontrol.h" // for gSavedSettings
|
||||
|
|
@ -1452,7 +1451,7 @@ bool LLPanelPeople::notifyChildren(const LLSD& info)
|
|||
container->onOpen(LLSD().with(LLSideTrayPanelContainer::PARAM_SUB_PANEL_NAME, getName()));
|
||||
}
|
||||
else
|
||||
LLSideTray::getInstance()->collapseSideBar();
|
||||
LLFloaterReg::hideFloaterInstance("people");
|
||||
|
||||
return true; // this notification is only supposed to be handled by task panels
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,7 +65,6 @@
|
|||
#include "llpanelplaceprofile.h"
|
||||
#include "llpanelteleporthistory.h"
|
||||
#include "llremoteparcelrequest.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llteleporthistorystorage.h"
|
||||
#include "lltoggleablemenu.h"
|
||||
#include "llviewerinventory.h"
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@
|
|||
|
||||
#include "llfloaterworldmap.h"
|
||||
#include "llpanelteleporthistory.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llworldmap.h"
|
||||
#include "llteleporthistorystorage.h"
|
||||
#include "lltextutil.h"
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@
|
|||
#include "lllocationinputctrl.h"
|
||||
#include "llnotificationsutil.h"
|
||||
#include "llparcel.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llslurl.h"
|
||||
#include "llstatusbar.h"
|
||||
#include "lltrans.h"
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ private:
|
|||
void setParcelInfoText(const std::string& new_text);
|
||||
|
||||
/**
|
||||
* Implementation of LLDestroyClass<LLSideTray>
|
||||
* Implementation of LLDestroyClass<T>
|
||||
*/
|
||||
static void destroyClass()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@
|
|||
#include "llinventorymodel.h"
|
||||
#include "llinventoryobserver.h"
|
||||
#include "llmenubutton.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llviewermenu.h"
|
||||
#include "llwearableitemslist.h"
|
||||
#include "llsdserialize.h"
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@
|
|||
#include "llsyswellwindow.h"
|
||||
#include "llimfloater.h"
|
||||
#include "llscriptfloater.h"
|
||||
#include "llsidetray.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
|
|
@ -83,25 +82,8 @@ bool LLScreenChannelBase::isHovering()
|
|||
return mHoveredToast->isHovered();
|
||||
}
|
||||
|
||||
void LLScreenChannelBase::resetPositionAndSize()
|
||||
{
|
||||
LLRect rc = gViewerWindow->getWorldViewRectScaled();
|
||||
updatePositionAndSize(rc, rc);
|
||||
}
|
||||
|
||||
void LLScreenChannelBase::updatePositionAndSize(LLRect old_world_rect, LLRect new_world_rect)
|
||||
{
|
||||
/*
|
||||
take sidetray into account - screenchannel should not overlap sidetray
|
||||
*/
|
||||
S32 world_rect_padding = 0;
|
||||
if (gSavedSettings.getBOOL("SidebarCameraMovement") == FALSE
|
||||
&& LLSideTray::instanceCreated ())
|
||||
{
|
||||
world_rect_padding += LLSideTray::getInstance()->getVisibleWidth();
|
||||
}
|
||||
|
||||
|
||||
S32 top_delta = old_world_rect.mTop - new_world_rect.mTop;
|
||||
LLRect this_rect = getRect();
|
||||
|
||||
|
|
@ -111,10 +93,10 @@ void LLScreenChannelBase::updatePositionAndSize(LLRect old_world_rect, LLRect ne
|
|||
case CA_LEFT :
|
||||
break;
|
||||
case CA_CENTRE :
|
||||
this_rect.setCenterAndSize( (new_world_rect.getWidth() - world_rect_padding) / 2, new_world_rect.getHeight() / 2, this_rect.getWidth(), this_rect.getHeight());
|
||||
this_rect.setCenterAndSize( (new_world_rect.getWidth()) / 2, new_world_rect.getHeight() / 2, this_rect.getWidth(), this_rect.getHeight());
|
||||
break;
|
||||
case CA_RIGHT :
|
||||
this_rect.setLeftTopAndSize(new_world_rect.mRight - world_rect_padding - this_rect.getWidth(),
|
||||
this_rect.setLeftTopAndSize(new_world_rect.mRight - this_rect.getWidth(),
|
||||
this_rect.mTop,
|
||||
this_rect.getWidth(),
|
||||
this_rect.getHeight());
|
||||
|
|
@ -126,12 +108,6 @@ void LLScreenChannelBase::updatePositionAndSize(LLRect old_world_rect, LLRect ne
|
|||
|
||||
void LLScreenChannelBase::init(S32 channel_left, S32 channel_right)
|
||||
{
|
||||
if(LLSideTray::instanceCreated())
|
||||
{
|
||||
LLSideTray* side_bar = LLSideTray::getInstance();
|
||||
side_bar->setVisibleWidthChangeCallback(boost::bind(&LLScreenChannelBase::resetPositionAndSize, this));
|
||||
}
|
||||
|
||||
// top and bottom set by updateBottom()
|
||||
setRect(LLRect(channel_left, 0, channel_right, 0));
|
||||
updateBottom();
|
||||
|
|
@ -203,17 +179,6 @@ std::list<LLToast*> LLScreenChannel::findToasts(const Matcher& matcher)
|
|||
//--------------------------------------------------------------------------
|
||||
void LLScreenChannel::updatePositionAndSize(LLRect old_world_rect, LLRect new_world_rect)
|
||||
{
|
||||
/*
|
||||
take sidetray into account - screenchannel should not overlap sidetray
|
||||
*/
|
||||
S32 world_rect_padding = 0;
|
||||
if (gSavedSettings.getBOOL("SidebarCameraMovement") == FALSE
|
||||
&& LLSideTray::instanceCreated ())
|
||||
{
|
||||
world_rect_padding += LLSideTray::getInstance()->getVisibleWidth();
|
||||
}
|
||||
|
||||
|
||||
LLRect this_rect = getRect();
|
||||
|
||||
switch(mChannelAlignment)
|
||||
|
|
@ -226,7 +191,7 @@ void LLScreenChannel::updatePositionAndSize(LLRect old_world_rect, LLRect new_wo
|
|||
return;
|
||||
case CA_RIGHT :
|
||||
this_rect.mTop = (S32) (new_world_rect.getHeight() * getHeightRatio());
|
||||
this_rect.setLeftTopAndSize(new_world_rect.mRight - world_rect_padding - this_rect.getWidth(),
|
||||
this_rect.setLeftTopAndSize(new_world_rect.mRight - this_rect.getWidth(),
|
||||
this_rect.mTop,
|
||||
this_rect.getWidth(),
|
||||
this_rect.getHeight());
|
||||
|
|
|
|||
|
|
@ -59,7 +59,6 @@ public:
|
|||
// Channel's outfit-functions
|
||||
// update channel's size and position in the World View
|
||||
virtual void updatePositionAndSize(LLRect old_world_rect, LLRect new_world_rect);
|
||||
void resetPositionAndSize();
|
||||
|
||||
// initialization of channel's shape and position
|
||||
virtual void init(S32 channel_left, S32 channel_right);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@
|
|||
#include "lloutfitobserver.h"
|
||||
#include "llpaneleditwearable.h"
|
||||
#include "llpaneloutfitsinventory.h"
|
||||
#include "llsidetray.h"
|
||||
#include "lltextbox.h"
|
||||
#include "lluictrlfactory.h"
|
||||
#include "llviewercontrol.h"
|
||||
|
|
@ -164,7 +163,6 @@ void LLSidepanelAppearance::onOpen(const LLSD& key)
|
|||
else
|
||||
{
|
||||
// Switch to the requested panel.
|
||||
// *TODO: replace this crap with LLSideTrayPanelContainer
|
||||
std::string type = key["type"].asString();
|
||||
if (type == "my_outfits")
|
||||
{
|
||||
|
|
|
|||
|
|
@ -282,19 +282,20 @@ BOOL LLSidepanelInventory::postBuild()
|
|||
enableOutbox(gSavedSettings.getBOOL("InventoryDisplayOutbox"));
|
||||
|
||||
// Trigger callback for after login so we can setup to track inbox and outbox changes after initial inventory load
|
||||
LLAppViewer::instance()->setOnLoginCompletedCallback(boost::bind(&LLSidepanelInventory::handleLoginComplete, this));
|
||||
LLAppViewer::instance()->setOnLoginCompletedCallback(boost::bind(&LLSidepanelInventory::updateInboxOutbox, this));
|
||||
}
|
||||
|
||||
gSavedSettings.getControl("InventoryDisplayInbox")->getCommitSignal()->connect(boost::bind(&handleInventoryDisplayInboxChanged));
|
||||
gSavedSettings.getControl("InventoryDisplayOutbox")->getCommitSignal()->connect(boost::bind(&handleInventoryDisplayOutboxChanged));
|
||||
|
||||
updateInboxOutbox();
|
||||
// Update the verbs buttons state.
|
||||
updateVerbs();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void LLSidepanelInventory::handleLoginComplete()
|
||||
void LLSidepanelInventory::updateInboxOutbox()
|
||||
{
|
||||
//
|
||||
// Track inbox and outbox folder changes
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public:
|
|||
virtual ~LLSidepanelInventory();
|
||||
|
||||
private:
|
||||
void handleLoginComplete();
|
||||
void updateInboxOutbox();
|
||||
|
||||
public:
|
||||
void observeInboxOutboxCreation();
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,260 +0,0 @@
|
|||
/**
|
||||
* @file LLSideTray.h
|
||||
* @brief SideBar header file
|
||||
*
|
||||
* $LicenseInfo:firstyear=2004&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2010, Linden Research, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#ifndef LL_LLSIDETRAY_H_
|
||||
#define LL_LLSIDETRAY_H_
|
||||
|
||||
#include "llpanel.h"
|
||||
#include "string"
|
||||
|
||||
class LLAccordionCtrl;
|
||||
class LLSideTrayTab;
|
||||
|
||||
// Define an interface for side tab button badge values
|
||||
class LLSideTrayTabBadgeDriver
|
||||
{
|
||||
public:
|
||||
virtual std::string getBadgeString() const = 0;
|
||||
};
|
||||
|
||||
// Deal with LLSideTrayTab being opaque. Generic do-nothing cast...
|
||||
template <class T>
|
||||
T tab_cast(LLSideTrayTab* tab) { return tab; }
|
||||
// specialized for implementation in presence of LLSideTrayTab definition
|
||||
template <>
|
||||
LLPanel* tab_cast<LLPanel*>(LLSideTrayTab* tab);
|
||||
|
||||
// added inheritance from LLDestroyClass<LLSideTray> to enable Side Tray perform necessary actions
|
||||
// while disconnecting viewer in LLAppViewer::disconnectViewer().
|
||||
// LLDestroyClassList::instance().fireCallbacks() calls destroyClass method. See EXT-245.
|
||||
class LLSideTray : public LLPanel, private LLDestroyClass<LLSideTray>
|
||||
{
|
||||
friend class LLUICtrlFactory;
|
||||
friend class LLDestroyClass<LLSideTray>;
|
||||
friend class LLSideTrayTab;
|
||||
friend class LLSideTrayButton;
|
||||
public:
|
||||
|
||||
LOG_CLASS(LLSideTray);
|
||||
|
||||
struct Params
|
||||
: public LLInitParam::Block<Params, LLPanel::Params>
|
||||
{
|
||||
// initial state
|
||||
Optional<bool> collapsed;
|
||||
Optional<LLUIImage*> tab_btn_image_normal,
|
||||
tab_btn_image_selected;
|
||||
|
||||
Optional<S32> default_button_width,
|
||||
default_button_height,
|
||||
default_button_margin;
|
||||
|
||||
Params();
|
||||
};
|
||||
|
||||
static LLSideTray* getInstance ();
|
||||
static bool instanceCreated ();
|
||||
protected:
|
||||
LLSideTray(const Params& params);
|
||||
typedef std::vector<LLSideTrayTab*> child_vector_t;
|
||||
typedef child_vector_t::iterator child_vector_iter_t;
|
||||
typedef child_vector_t::const_iterator child_vector_const_iter_t;
|
||||
typedef child_vector_t::reverse_iterator child_vector_reverse_iter_t;
|
||||
typedef child_vector_t::const_reverse_iterator child_vector_const_reverse_iter_t;
|
||||
typedef std::vector<std::string> tab_order_vector_t;
|
||||
typedef tab_order_vector_t::const_iterator tab_order_vector_const_iter_t;
|
||||
|
||||
public:
|
||||
|
||||
// interface functions
|
||||
|
||||
/**
|
||||
* Select tab with specific name and set it active
|
||||
*
|
||||
* @param name Tab to switch to.
|
||||
* @param keep_prev_visible Whether to keep the previously selected tab visible.
|
||||
*/
|
||||
bool selectTabByName (const std::string& name, bool keep_prev_visible = false);
|
||||
|
||||
/**
|
||||
* Select tab with specific index and set it active
|
||||
*/
|
||||
bool selectTabByIndex(size_t index);
|
||||
|
||||
/**
|
||||
* Activate tab with "panel_name" panel
|
||||
* if no such tab - return NULL, otherwise a pointer to the panel
|
||||
* Pass params as array, or they may be overwritten(example - params["name"]="nearby")
|
||||
*/
|
||||
LLPanel* showPanel (const std::string& panel_name, const LLSD& params = LLSD());
|
||||
|
||||
bool hidePanel (const std::string& panel_name);
|
||||
|
||||
/**
|
||||
* Toggling Side Tray tab which contains "sub_panel" child of "panel_name" panel.
|
||||
* If "sub_panel" is not visible Side Tray is opened to display it,
|
||||
* otherwise Side Tray is collapsed.
|
||||
* params are passed to "panel_name" panel onOpen().
|
||||
*/
|
||||
void togglePanel (LLPanel* &sub_panel, const std::string& panel_name, const LLSD& params = LLSD());
|
||||
|
||||
/*
|
||||
* get the panel (don't show it or do anything else with it)
|
||||
*/
|
||||
LLPanel* getPanel (const std::string& panel_name);
|
||||
LLPanel* getActivePanel ();
|
||||
bool isPanelActive (const std::string& panel_name);
|
||||
|
||||
void setTabDocked(const std::string& tab_name, bool dock, bool toggle_floater = true);
|
||||
|
||||
/*
|
||||
* get the panel of given type T (don't show it or do anything else with it)
|
||||
*/
|
||||
template <typename T>
|
||||
T* getPanel(const std::string& panel_name)
|
||||
{
|
||||
T* panel = dynamic_cast<T*>(getPanel(panel_name));
|
||||
if (!panel)
|
||||
{
|
||||
llwarns << "Child named \"" << panel_name << "\" of type " << typeid(T*).name() << " not found" << llendl;
|
||||
return NULL;
|
||||
}
|
||||
return panel;
|
||||
}
|
||||
|
||||
/*
|
||||
* collapse SideBar, hiding visible tab and moving tab buttons
|
||||
* to the right corner of the screen
|
||||
*/
|
||||
void collapseSideBar ();
|
||||
|
||||
/*
|
||||
* expand SideBar
|
||||
*
|
||||
* @param open_active Whether to call onOpen() for the active tab.
|
||||
*/
|
||||
void expandSideBar(bool open_active = true);
|
||||
|
||||
|
||||
/**
|
||||
*hightlight if focused. manly copypaste from highlightFocusedFloater
|
||||
*/
|
||||
void highlightFocused();
|
||||
|
||||
void setVisible(BOOL visible)
|
||||
{
|
||||
if (getParent()) getParent()->setVisible(visible);
|
||||
}
|
||||
|
||||
LLPanel* getButtonsPanel() { return mButtonsPanel; }
|
||||
|
||||
bool getCollapsed() { return mCollapsed; }
|
||||
|
||||
void setTabButtonBadgeDriver(std::string tabName, LLSideTrayTabBadgeDriver* driver);
|
||||
|
||||
public:
|
||||
virtual ~LLSideTray(){};
|
||||
|
||||
virtual BOOL postBuild();
|
||||
|
||||
BOOL handleMouseDown (S32 x, S32 y, MASK mask);
|
||||
|
||||
void reshape (S32 width, S32 height, BOOL called_from_parent = TRUE);
|
||||
|
||||
|
||||
/**
|
||||
* @return side tray width if it's visible and expanded, 0 otherwise.
|
||||
*
|
||||
* Not that width of the tab buttons is not included.
|
||||
*
|
||||
* @see setVisibleWidthChangeCallback()
|
||||
*/
|
||||
S32 getVisibleWidth();
|
||||
|
||||
void setVisibleWidthChangeCallback(const commit_signal_t::slot_type& cb);
|
||||
|
||||
void updateSidetrayVisibility();
|
||||
|
||||
void handleLoginComplete();
|
||||
|
||||
bool isTabAttached (const std::string& name);
|
||||
|
||||
protected:
|
||||
bool addChild (LLView* view, S32 tab_group);
|
||||
bool removeTab (LLSideTrayTab* tab); // Used to detach tabs temporarily
|
||||
bool addTab (LLSideTrayTab* tab); // Used to re-attach tabs
|
||||
bool hasTabs ();
|
||||
|
||||
const LLSideTrayTab* getActiveTab() const { return mActiveTab; }
|
||||
LLSideTrayTab* getTab(const std::string& name);
|
||||
|
||||
void createButtons ();
|
||||
|
||||
void arrange ();
|
||||
void detachTabs ();
|
||||
void reflectCollapseChange();
|
||||
void processTriState ();
|
||||
|
||||
void toggleTabButton (LLSideTrayTab* tab);
|
||||
|
||||
LLPanel* openChildPanel (LLSideTrayTab* tab, const std::string& panel_name, const LLSD& params);
|
||||
|
||||
void onTabButtonClick(std::string name);
|
||||
void onToggleCollapse();
|
||||
|
||||
private:
|
||||
// Implementation of LLDestroyClass<LLSideTray>
|
||||
static void destroyClass()
|
||||
{
|
||||
// Disable SideTray to avoid crashes. EXT-245
|
||||
if (LLSideTray::instanceCreated())
|
||||
LLSideTray::getInstance()->setEnabled(FALSE);
|
||||
}
|
||||
|
||||
private:
|
||||
// Since we provide no public way to query mTabs and mDetachedTabs, give
|
||||
// LLSideTrayListener friend access.
|
||||
friend class LLSideTrayListener;
|
||||
LLPanel* mButtonsPanel;
|
||||
typedef std::map<std::string,LLButton*> button_map_t;
|
||||
button_map_t mTabButtons;
|
||||
typedef std::map<std::string,LLSideTrayTabBadgeDriver*> badge_map_t;
|
||||
badge_map_t mTabButtonBadgeDrivers;
|
||||
child_vector_t mTabs;
|
||||
child_vector_t mDetachedTabs;
|
||||
tab_order_vector_t mOriginalTabOrder;
|
||||
LLSideTrayTab* mActiveTab;
|
||||
|
||||
commit_signal_t mVisibleWidthChangeSignal;
|
||||
|
||||
LLButton* mCollapseButton;
|
||||
bool mCollapsed;
|
||||
|
||||
static LLSideTray* sInstance;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
|
@ -1,179 +0,0 @@
|
|||
/**
|
||||
* @file llsidetraylistener.cpp
|
||||
* @author Nat Goodspeed
|
||||
* @date 2011-02-15
|
||||
* @brief Implementation for llsidetraylistener.
|
||||
*
|
||||
* $LicenseInfo:firstyear=2011&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2011, Linden Research, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
// Precompiled header
|
||||
#include "llviewerprecompiledheaders.h"
|
||||
// associated header
|
||||
#include "llsidetraylistener.h"
|
||||
// STL headers
|
||||
// std headers
|
||||
// external library headers
|
||||
// other Linden headers
|
||||
#include "llsidetray.h"
|
||||
#include "llsdutil.h"
|
||||
|
||||
LLSideTrayListener::LLSideTrayListener(const Getter& getter):
|
||||
LLEventAPI("LLSideTray",
|
||||
"Operations on side tray (e.g. query state, query tabs)"),
|
||||
mGetter(getter)
|
||||
{
|
||||
add("getCollapsed", "Send on [\"reply\"] an [\"open\"] Boolean",
|
||||
&LLSideTrayListener::getCollapsed, LLSDMap("reply", LLSD()));
|
||||
add("getTabs",
|
||||
"Send on [\"reply\"] a map of tab names and info about them",
|
||||
&LLSideTrayListener::getTabs, LLSDMap("reply", LLSD()));
|
||||
add("getPanels",
|
||||
"Send on [\"reply\"] data about panels available with SideTray.ShowPanel",
|
||||
&LLSideTrayListener::getPanels, LLSDMap("reply", LLSD()));
|
||||
}
|
||||
|
||||
void LLSideTrayListener::getCollapsed(const LLSD& event) const
|
||||
{
|
||||
sendReply(LLSDMap("open", ! mGetter()->getCollapsed()), event);
|
||||
}
|
||||
|
||||
void LLSideTrayListener::getTabs(const LLSD& event) const
|
||||
{
|
||||
LLSD reply;
|
||||
|
||||
LLSideTray* tray = mGetter();
|
||||
LLSD::Integer ord(0);
|
||||
for (LLSideTray::child_list_const_iter_t chi(tray->beginChild()), chend(tray->endChild());
|
||||
chi != chend; ++chi, ++ord)
|
||||
{
|
||||
LLView* child = *chi;
|
||||
// How much info is important? Toss in as much as seems reasonable for
|
||||
// each tab. But to me, at least for the moment, the most important
|
||||
// item is the tab name.
|
||||
LLSD info;
|
||||
// I like the idea of returning a map keyed by tab name. But as
|
||||
// compared to an array of maps, that loses sequence information.
|
||||
// Address that by indicating the original order in each map entry.
|
||||
info["ord"] = ord;
|
||||
info["visible"] = bool(child->getVisible());
|
||||
info["enabled"] = bool(child->getEnabled());
|
||||
info["available"] = child->isAvailable();
|
||||
reply[child->getName()] = info;
|
||||
}
|
||||
|
||||
sendReply(reply, event);
|
||||
}
|
||||
|
||||
static LLSD getTabInfo(LLPanel* tab)
|
||||
{
|
||||
LLSD panels;
|
||||
for (LLPanel::tree_iterator_t ti(tab->beginTreeDFS()), tend(tab->endTreeDFS());
|
||||
ti != tend; ++ti)
|
||||
{
|
||||
// *ti is actually an LLView*, which had better not be NULL
|
||||
LLView* view(*ti);
|
||||
if (! view)
|
||||
{
|
||||
LL_ERRS("LLSideTrayListener") << "LLSideTrayTab '" << tab->getName()
|
||||
<< "' has a NULL child LLView*" << LL_ENDL;
|
||||
}
|
||||
|
||||
// The logic we use to decide what "panel" names to return is heavily
|
||||
// based on LLSideTray::showPanel(): the function that actually
|
||||
// implements the "SideTray.ShowPanel" operation. showPanel(), in
|
||||
// turn, depends on LLSideTray::openChildPanel(): when
|
||||
// openChildPanel() returns non-NULL, showPanel() stops searching
|
||||
// attached and detached LLSideTrayTab tabs.
|
||||
|
||||
// For each LLSideTrayTab, openChildPanel() first calls
|
||||
// findChildView(panel_name, true). In other words, panel_name need
|
||||
// not be a direct LLSideTrayTab child, it's sought recursively.
|
||||
// That's why we use (begin|end)TreeDFS() in this loop.
|
||||
|
||||
// But this tree_iterator_t loop will actually traverse every widget
|
||||
// in every panel. Returning all those names will not help our caller:
|
||||
// passing most such names to openChildPanel() would not do what we
|
||||
// want. Even though the code suggests that passing ANY valid
|
||||
// side-panel widget name to openChildPanel() will open the tab
|
||||
// containing that widget, results could get confusing since followup
|
||||
// (onOpen()) logic wouldn't be invoked, and showPanel() wouldn't stop
|
||||
// searching because openChildPanel() would return NULL.
|
||||
|
||||
// We must filter these LLView items, using logic that (sigh!) mirrors
|
||||
// openChildPanel()'s own.
|
||||
|
||||
// openChildPanel() returns a non-NULL LLPanel* when either:
|
||||
// - the LLView is a direct child of an LLSideTrayPanelContainer
|
||||
// - the LLView is itself an LLPanel.
|
||||
// But as LLSideTrayPanelContainer can directly contain LLView items
|
||||
// that are NOT themselves LLPanels (e.g. "sidebar_me" contains an
|
||||
// LLButton called "Jump Right Arrow"), we'd better focus only on
|
||||
// LLSideTrayPanelContainer children that are themselves LLPanel
|
||||
// items. Which means that the second test completely subsumes the
|
||||
// first.
|
||||
LLPanel* panel(dynamic_cast<LLPanel*>(view));
|
||||
if (panel)
|
||||
{
|
||||
// Maybe it's overkill to construct an LLSD::Map for each panel, but
|
||||
// the possibility remains that we might want to deliver more info
|
||||
// about each panel than just its name.
|
||||
panels.append(LLSDMap("name", panel->getName()));
|
||||
}
|
||||
}
|
||||
|
||||
return LLSDMap("panels", panels);
|
||||
}
|
||||
|
||||
void LLSideTrayListener::getPanels(const LLSD& event) const
|
||||
{
|
||||
LLSD reply;
|
||||
|
||||
LLSideTray* tray = mGetter();
|
||||
// Iterate through the attached tabs.
|
||||
LLSD::Integer ord(0);
|
||||
for (LLSideTray::child_vector_t::const_iterator
|
||||
ati(tray->mTabs.begin()), atend(tray->mTabs.end());
|
||||
ati != atend; ++ati)
|
||||
{
|
||||
// We don't have access to LLSideTrayTab: the class definition is
|
||||
// hidden in llsidetray.cpp. But as LLSideTrayTab isa LLPanel, use the
|
||||
// LLPanel API. Unfortunately, without the LLSideTrayTab definition,
|
||||
// the compiler doesn't even know this LLSideTrayTab* is an LLPanel*.
|
||||
// Persuade it.
|
||||
LLPanel* tab(tab_cast<LLPanel*>(*ati));
|
||||
reply[tab->getName()] = getTabInfo(tab).with("attached", true).with("ord", ord);
|
||||
}
|
||||
|
||||
// Now iterate over the detached tabs. These can also be opened via
|
||||
// SideTray.ShowPanel.
|
||||
ord = 0;
|
||||
for (LLSideTray::child_vector_t::const_iterator
|
||||
dti(tray->mDetachedTabs.begin()), dtend(tray->mDetachedTabs.end());
|
||||
dti != dtend; ++dti)
|
||||
{
|
||||
LLPanel* tab(tab_cast<LLPanel*>(*dti));
|
||||
reply[tab->getName()] = getTabInfo(tab).with("attached", false).with("ord", ord);
|
||||
}
|
||||
|
||||
sendReply(reply, event);
|
||||
}
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
/**
|
||||
* @file llsidetraylistener.h
|
||||
* @author Nat Goodspeed
|
||||
* @date 2011-02-15
|
||||
* @brief
|
||||
*
|
||||
* $LicenseInfo:firstyear=2011&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2011, Linden Research, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#if ! defined(LL_LLSIDETRAYLISTENER_H)
|
||||
#define LL_LLSIDETRAYLISTENER_H
|
||||
|
||||
#include "lleventapi.h"
|
||||
#include <boost/function.hpp>
|
||||
|
||||
class LLSideTray;
|
||||
class LLSD;
|
||||
|
||||
class LLSideTrayListener: public LLEventAPI
|
||||
{
|
||||
typedef boost::function<LLSideTray*()> Getter;
|
||||
|
||||
public:
|
||||
LLSideTrayListener(const Getter& getter);
|
||||
|
||||
private:
|
||||
void getCollapsed(const LLSD& event) const;
|
||||
void getTabs(const LLSD& event) const;
|
||||
void getPanels(const LLSD& event) const;
|
||||
|
||||
Getter mGetter;
|
||||
};
|
||||
|
||||
#endif /* ! defined(LL_LLSIDETRAYLISTENER_H) */
|
||||
|
|
@ -131,7 +131,6 @@
|
|||
#include "llsecondlifeurls.h"
|
||||
#include "llselectmgr.h"
|
||||
#include "llsky.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llstatview.h"
|
||||
#include "llstatusbar.h" // sendMoneyBalanceRequest(), owns L$ balance
|
||||
#include "llsurface.h"
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@
|
|||
#include "llfloaterworldmap.h"
|
||||
#include "llpanellogin.h"
|
||||
#include "llregionhandle.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llslurl.h"
|
||||
#include "llstartup.h" // gStartupState
|
||||
#include "llweb.h"
|
||||
|
|
|
|||
|
|
@ -95,7 +95,6 @@
|
|||
#include "llfloatersellland.h"
|
||||
#include "llfloatersettingsdebug.h"
|
||||
#include "llfloatersidepanelcontainer.h"
|
||||
#include "llfloatersidetraytab.h"
|
||||
#include "llfloatersnapshot.h"
|
||||
#include "llfloatersounddevices.h"
|
||||
#include "llfloatertelehub.h"
|
||||
|
|
@ -276,7 +275,6 @@ void LLViewerFloaterReg::registerFloaters()
|
|||
LLFloaterReg::add("script_limits", "floater_script_limits.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterScriptLimits>);
|
||||
LLFloaterReg::add("sell_land", "floater_sell_land.xml", &LLFloaterSellLand::buildFloater);
|
||||
LLFloaterReg::add("settings_debug", "floater_settings_debug.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterSettingsDebug>);
|
||||
LLFloaterReg::add("side_bar_tab", "floater_side_bar_tab.xml", &LLFloaterReg::build<LLFloaterSideTrayTab>);
|
||||
LLFloaterReg::add("sound_devices", "floater_sound_devices.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterSoundDevices>);
|
||||
LLFloaterReg::add("stats", "floater_stats.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloater>);
|
||||
LLFloaterReg::add("start_queue", "floater_script_queue.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterRunQueue>);
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@
|
|||
#include "llinventorymodel.h"
|
||||
#include "llinventorymodelbackgroundfetch.h"
|
||||
#include "llgesturemgr.h"
|
||||
#include "llsidetray.h"
|
||||
|
||||
#include "llinventorybridge.h"
|
||||
#include "llinventorypanel.h"
|
||||
|
|
|
|||
|
|
@ -83,7 +83,6 @@
|
|||
#include "llrootview.h"
|
||||
#include "llsceneview.h"
|
||||
#include "llselectmgr.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llstatusbar.h"
|
||||
#include "lltextureview.h"
|
||||
#include "lltoolcomp.h"
|
||||
|
|
@ -3348,15 +3347,6 @@ bool enable_sitdown_self()
|
|||
return isAgentAvatarValid() && !gAgentAvatarp->isSitting() && !gAgent.getFlying();
|
||||
}
|
||||
|
||||
// Used from the login screen to aid in UI work on side tray
|
||||
void handle_show_side_tray()
|
||||
{
|
||||
LLSideTray* side_tray = LLSideTray::getInstance();
|
||||
LLView* root = gViewerWindow->getRootView();
|
||||
// automatically removes and re-adds if there already
|
||||
root->addChild(side_tray);
|
||||
}
|
||||
|
||||
// Toggle one of "People" panel tabs in side tray.
|
||||
class LLTogglePanelPeopleTab : public view_listener_t
|
||||
{
|
||||
|
|
@ -3367,21 +3357,11 @@ class LLTogglePanelPeopleTab : public view_listener_t
|
|||
LLSD param;
|
||||
param["people_panel_tab_name"] = panel_name;
|
||||
|
||||
static LLPanel* friends_panel = NULL;
|
||||
static LLPanel* groups_panel = NULL;
|
||||
static LLPanel* nearby_panel = NULL;
|
||||
|
||||
if (panel_name == "friends_panel")
|
||||
if ( panel_name == "friends_panel"
|
||||
|| panel_name == "groups_panel"
|
||||
|| panel_name == "nearby_panel")
|
||||
{
|
||||
return togglePeoplePanel(friends_panel, panel_name, param);
|
||||
}
|
||||
else if (panel_name == "groups_panel")
|
||||
{
|
||||
return togglePeoplePanel(groups_panel, panel_name, param);
|
||||
}
|
||||
else if (panel_name == "nearby_panel")
|
||||
{
|
||||
return togglePeoplePanel(nearby_panel, panel_name, param);
|
||||
return togglePeoplePanel(panel_name, param);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -3389,16 +3369,20 @@ class LLTogglePanelPeopleTab : public view_listener_t
|
|||
}
|
||||
}
|
||||
|
||||
static bool togglePeoplePanel(LLPanel* &panel, const std::string& panel_name, const LLSD& param)
|
||||
static bool togglePeoplePanel(const std::string& panel_name, const LLSD& param)
|
||||
{
|
||||
LLPanel *panel = LLFloaterSidePanelContainer::getPanel("people", panel_name);
|
||||
if(!panel)
|
||||
{
|
||||
panel = LLSideTray::getInstance()->getPanel(panel_name);
|
||||
if(!panel)
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
|
||||
LLSideTray::getInstance()->togglePanel(panel, "panel_people", param);
|
||||
if (panel->isInVisibleChain())
|
||||
{
|
||||
LLFloaterReg::hideInstance("people");
|
||||
}
|
||||
else
|
||||
{
|
||||
LLFloaterSidePanelContainer::showPanel("people", "panel_people", param) ;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
@ -8067,7 +8051,6 @@ void initialize_menus()
|
|||
view_listener_t::addMenu(new LLAdvancedCheckDebugKeys(), "Advanced.CheckDebugKeys");
|
||||
view_listener_t::addMenu(new LLAdvancedToggleDebugWindowProc(), "Advanced.ToggleDebugWindowProc");
|
||||
view_listener_t::addMenu(new LLAdvancedCheckDebugWindowProc(), "Advanced.CheckDebugWindowProc");
|
||||
commit.add("Advanced.ShowSideTray", boost::bind(&handle_show_side_tray));
|
||||
|
||||
// Advanced > XUI
|
||||
commit.add("Advanced.ReloadColorSettings", boost::bind(&LLUIColorTable::loadFromSettings, LLUIColorTable::getInstance()));
|
||||
|
|
|
|||
|
|
@ -74,7 +74,6 @@
|
|||
#include "llrecentpeople.h"
|
||||
#include "llscriptfloater.h"
|
||||
#include "llselectmgr.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llstartup.h"
|
||||
#include "llsky.h"
|
||||
#include "llslurl.h"
|
||||
|
|
@ -6800,7 +6799,7 @@ void process_covenant_reply(LLMessageSystem* msg, void**)
|
|||
LLPanelLandCovenant::updateEstateOwnerName(owner_name);
|
||||
LLFloaterBuyLand::updateEstateOwnerName(owner_name);
|
||||
|
||||
LLPanelPlaceProfile* panel = LLSideTray::getInstance()->getPanel<LLPanelPlaceProfile>("panel_place_profile");
|
||||
LLPanelPlaceProfile* panel = LLFloaterSidePanelContainer::getPanel<LLPanelPlaceProfile>("places", "panel_place_profile");
|
||||
if (panel)
|
||||
{
|
||||
panel->updateEstateName(estate_name);
|
||||
|
|
@ -6934,7 +6933,7 @@ void onCovenantLoadComplete(LLVFS *vfs,
|
|||
LLPanelLandCovenant::updateCovenantText(covenant_text);
|
||||
LLFloaterBuyLand::updateCovenantText(covenant_text, asset_uuid);
|
||||
|
||||
LLPanelPlaceProfile* panel = LLSideTray::getInstance()->getPanel<LLPanelPlaceProfile>("panel_place_profile");
|
||||
LLPanelPlaceProfile* panel = LLFloaterSidePanelContainer::getPanel<LLPanelPlaceProfile>("places", "panel_place_profile");
|
||||
if (panel)
|
||||
{
|
||||
panel->updateCovenantText(covenant_text);
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@
|
|||
#include "llpreviewtexture.h"
|
||||
#include "llscrollbar.h"
|
||||
#include "llscrollcontainer.h"
|
||||
#include "llsidetray.h"
|
||||
#include "lltooldraganddrop.h"
|
||||
#include "lltooltip.h"
|
||||
#include "lltrans.h"
|
||||
|
|
|
|||
|
|
@ -133,7 +133,6 @@
|
|||
#include "llpreviewtexture.h"
|
||||
#include "llprogressview.h"
|
||||
#include "llresmgr.h"
|
||||
#include "llsidetray.h"
|
||||
#include "llselectmgr.h"
|
||||
#include "llrootview.h"
|
||||
#include "llrendersphere.h"
|
||||
|
|
@ -1773,7 +1772,6 @@ void LLViewerWindow::initBase()
|
|||
|
||||
// placeholder widget that controls where "world" is rendered
|
||||
mWorldViewPlaceholder = main_view->getChildView("world_view_rect")->getHandle();
|
||||
mNonSideTrayView = main_view->getChildView("non_side_tray_view")->getHandle();
|
||||
mFloaterViewHolder = main_view->getChildView("floater_view_holder")->getHandle();
|
||||
mPopupView = main_view->getChild<LLPopupView>("popup_holder");
|
||||
mHintHolder = main_view->getChild<LLView>("hint_holder")->getHandle();
|
||||
|
|
@ -1934,22 +1932,6 @@ void LLViewerWindow::initWorldUI()
|
|||
panel_ssf_container->addChild(panel_stand_stop_flying);
|
||||
panel_ssf_container->setVisible(TRUE);
|
||||
|
||||
// put sidetray in container
|
||||
LLPanel* side_tray_container = getRootView()->getChild<LLPanel>("side_tray_container");
|
||||
LLSideTray* sidetrayp = LLSideTray::getInstance();
|
||||
sidetrayp->setShape(side_tray_container->getLocalRect());
|
||||
// don't follow right edge to avoid spurious resizes, since we are using a fixed width layout
|
||||
sidetrayp->setFollows(FOLLOWS_LEFT|FOLLOWS_TOP|FOLLOWS_BOTTOM);
|
||||
side_tray_container->addChild(sidetrayp);
|
||||
side_tray_container->setVisible(FALSE);
|
||||
|
||||
// put sidetray buttons in their own panel
|
||||
LLPanel* buttons_panel = sidetrayp->getButtonsPanel();
|
||||
LLPanel* buttons_panel_container = getRootView()->getChild<LLPanel>("side_bar_tabs");
|
||||
buttons_panel->setShape(buttons_panel_container->getLocalRect());
|
||||
buttons_panel->setFollowsAll();
|
||||
buttons_panel_container->addChild(buttons_panel);
|
||||
|
||||
// Load and make the toolbars visible
|
||||
// Note: we need to load the toolbars only *after* the user is logged in and IW
|
||||
if (gToolBarView)
|
||||
|
|
@ -3310,9 +3292,6 @@ void LLViewerWindow::updateKeyboardFocus()
|
|||
// make sure floater visible order is in sync with tab order
|
||||
gFloaterView->syncFloaterTabOrder();
|
||||
}
|
||||
|
||||
if(LLSideTray::instanceCreated())//just getInstance will create sidetray. we don't want this
|
||||
LLSideTray::getInstance()->highlightFocused();
|
||||
}
|
||||
|
||||
static LLFastTimer::DeclareTimer FTM_UPDATE_WORLD_VIEW("Update World View");
|
||||
|
|
@ -3336,12 +3315,6 @@ void LLViewerWindow::updateWorldViewRect(bool use_full_window)
|
|||
new_world_rect.mTop = llround((F32)new_world_rect.mTop * mDisplayScale.mV[VY]);
|
||||
}
|
||||
|
||||
if (gSavedSettings.getBOOL("SidebarCameraMovement") == FALSE)
|
||||
{
|
||||
// use right edge of window, ignoring sidebar
|
||||
new_world_rect.mRight = mWindowRectRaw.mRight;
|
||||
}
|
||||
|
||||
if (mWorldViewRectRaw != new_world_rect)
|
||||
{
|
||||
mWorldViewRectRaw = new_world_rect;
|
||||
|
|
|
|||
|
|
@ -282,7 +282,6 @@ public:
|
|||
void updateKeyboardFocus();
|
||||
|
||||
void updateWorldViewRect(bool use_full_window=false);
|
||||
LLView* getNonSideTrayView() { return mNonSideTrayView.get(); }
|
||||
LLView* getFloaterViewHolder() { return mFloaterViewHolder.get(); }
|
||||
LLView* getToolBarHolder() { return mToolBarHolder.get(); }
|
||||
LLView* getHintHolder() { return mHintHolder.get(); }
|
||||
|
|
@ -445,7 +444,6 @@ protected:
|
|||
std::string mInitAlert; // Window / GL initialization requires an alert
|
||||
|
||||
LLHandle<LLView> mWorldViewPlaceholder; // widget that spans the portion of screen dedicated to rendering the 3d world
|
||||
LLHandle<LLView> mNonSideTrayView; // parent of world view + bottom bar, etc...everything but the side tray
|
||||
LLHandle<LLView> mFloaterViewHolder; // container for floater_view
|
||||
LLHandle<LLView> mToolBarHolder; // container for toolbars
|
||||
LLHandle<LLView> mHintHolder; // container for hints
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@
|
|||
#include "llinventorymodel.h"
|
||||
#include "llinventoryobserver.h"
|
||||
#include "llsidepanelappearance.h"
|
||||
#include "llsidetray.h"
|
||||
#include "lltexlayer.h"
|
||||
#include "lltexglobalcolor.h"
|
||||
#include "lltrans.h"
|
||||
|
|
|
|||
|
|
@ -1,61 +0,0 @@
|
|||
/**
|
||||
* @file llworldview.cpp
|
||||
* @brief LLWorldView class implementation
|
||||
*
|
||||
* $LicenseInfo:firstyear=2001&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2010, Linden Research, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#include "llviewerprecompiledheaders.h"
|
||||
|
||||
#include "llworldview.h"
|
||||
|
||||
#include "llviewercontrol.h"
|
||||
#include "llsidetray.h"
|
||||
/////////////////////////////////////////////////////
|
||||
// LLFloaterView
|
||||
|
||||
static LLDefaultChildRegistry::Register<LLWorldView> r("world_view");
|
||||
|
||||
LLWorldView::LLWorldView(const Params& p)
|
||||
: LLUICtrl (p)
|
||||
{
|
||||
gSavedSettings.getControl("SidebarCameraMovement")->getSignal()->connect(boost::bind(&LLWorldView::toggleSidebarCameraMovement, this, _2));
|
||||
}
|
||||
|
||||
void LLWorldView::reshape(S32 width, S32 height, BOOL called_from_parent)
|
||||
{
|
||||
//if (FALSE == gSavedSettings.getBOOL("SidebarCameraMovement") )
|
||||
//{
|
||||
// LLView* main_view = LLUI::getRootView()->findChild<LLView>("main_view");
|
||||
// if(main_view)
|
||||
// {
|
||||
// width = main_view->getRect().getWidth();
|
||||
// }
|
||||
//}
|
||||
|
||||
LLUICtrl::reshape(width, height, called_from_parent);
|
||||
}
|
||||
void LLWorldView::toggleSidebarCameraMovement(const LLSD::Boolean& new_visibility)
|
||||
{
|
||||
reshape(getParent()->getRect().getWidth(),getRect().getHeight());
|
||||
}
|
||||
|
||||
|
|
@ -90,14 +90,6 @@
|
|||
top="0"
|
||||
visible="false"
|
||||
width="1024"/>
|
||||
<panel follows="right|top|bottom"
|
||||
height="500"
|
||||
mouse_opaque="false"
|
||||
name="side_bar_tabs"
|
||||
right="500"
|
||||
tab_stop="false"
|
||||
top="0"
|
||||
width="32"/>
|
||||
<panel bottom="500"
|
||||
follows="left|right|bottom"
|
||||
height="25"
|
||||
|
|
@ -116,17 +108,6 @@
|
|||
visible="false"/>
|
||||
</layout_stack>
|
||||
</layout_panel>
|
||||
<!-- side tray -->
|
||||
<layout_panel auto_resize="false"
|
||||
follows="top|bottom"
|
||||
height="500"
|
||||
min_width="333"
|
||||
mouse_opaque="false"
|
||||
tab_stop="false"
|
||||
name="side_tray_container"
|
||||
user_resize="false"
|
||||
visible="false"
|
||||
width="333"/>
|
||||
</layout_stack>
|
||||
<panel top="0"
|
||||
follows="all"
|
||||
|
|
|
|||
|
|
@ -93,14 +93,6 @@
|
|||
parameter="ui_preview" />
|
||||
</menu_item_call>
|
||||
<menu_item_separator />
|
||||
<!-- Broken
|
||||
<menu_item_call
|
||||
label="Show Side Tray"
|
||||
name="Show Side Tray">
|
||||
<menu_item_call.on_click
|
||||
function="Advanced.ShowSideTray" />
|
||||
</menu_item_call>
|
||||
-->
|
||||
<menu
|
||||
create_jump_keys="true"
|
||||
label="UI Tests"
|
||||
|
|
|
|||
|
|
@ -86,16 +86,6 @@
|
|||
name="appearance_camera_movement"
|
||||
tool_tip="Use automatic camera positioning while in edit mode"
|
||||
width="242" />
|
||||
<check_box
|
||||
control_name="SidebarCameraMovement"
|
||||
follows="left|top"
|
||||
height="16"
|
||||
initial_value="true"
|
||||
label="Sidebar"
|
||||
layout="topleft"
|
||||
name="appearance_sidebar_positioning"
|
||||
tool_tip="Use automatic camera positioning for sidebar"
|
||||
width="242" />
|
||||
<icon
|
||||
follows="left|top"
|
||||
height="18"
|
||||
|
|
|
|||
Loading…
Reference in New Issue