Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Black Dragon Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
NiranV
Black Dragon Viewer
Commits
c273067c
Commit
c273067c
authored
14 years ago
by
Kitty Barnett
Browse files
Options
Downloads
Patches
Plain Diff
- fixed : inventory sidebar tab should be hidden if undocked when @showinv=n restricted
--HG-- branch : RLVa
parent
600d60e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
indra/newview/llsidetray.cpp
+26
-0
26 additions, 0 deletions
indra/newview/llsidetray.cpp
indra/newview/llsidetray.h
+4
-0
4 additions, 0 deletions
indra/newview/llsidetray.h
indra/newview/rlvui.cpp
+18
-2
18 additions, 2 deletions
indra/newview/rlvui.cpp
with
48 additions
and
2 deletions
indra/newview/llsidetray.cpp
+
26
−
0
View file @
c273067c
...
...
@@ -540,6 +540,32 @@ bool LLSideTray::isTabAttached(const std::string& name)
return
std
::
find
(
mTabs
.
begin
(),
mTabs
.
end
(),
tab
)
!=
mTabs
.
end
();
}
// [RLVa:KB] - Checked: 2010-09-07 (RLVa-1.2.1a) | Added: RLVa-1.2.1a
void
LLSideTray
::
toggleTabDocked
(
const
std
::
string
&
strTabName
)
{
if
(
!
isTabAttached
(
strTabName
))
{
for
(
child_vector_iter_t
itTab
=
mDetachedTabs
.
begin
();
itTab
!=
mDetachedTabs
.
end
();
++
itTab
)
{
LLSideTrayTab
*
pTab
=
*
itTab
;
if
(
strTabName
==
pTab
->
getName
())
{
pTab
->
toggleTabDocked
();
return
;
}
}
}
else
{
LLSideTrayTab
*
pTab
=
getTab
(
strTabName
);
if
(
pTab
)
{
pTab
->
toggleTabDocked
();
}
}
}
// [/RLVa:KB]
bool
LLSideTray
::
hasTabs
()
{
// The open/close tab doesn't count.
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llsidetray.h
+
4
−
0
View file @
c273067c
...
...
@@ -176,6 +176,10 @@ class LLSideTray : public LLPanel, private LLDestroyClass<LLSideTray>
bool
isTabAttached
(
const
std
::
string
&
name
);
// [RLVa:KB] - Checked: 2010-09-07 (RLVa-1.2.1a) | Added: RLVa-1.2.1a
void
toggleTabDocked
(
const
std
::
string
&
strTabName
);
// [/RLVa:KB]
protected
:
bool
hasTabs
();
...
...
This diff is collapsed.
Click to expand it.
indra/newview/rlvui.cpp
+
18
−
2
View file @
c273067c
...
...
@@ -170,18 +170,33 @@ void RlvUIEnabler::onToggleSetEnv()
}
}
// Checked: 2010-0
8-24
(RLVa-1.2.1a) | Modified: RLVa-1.2.1a
// Checked: 2010-0
9-07
(RLVa-1.2.1a) | Modified: RLVa-1.2.1a
void
RlvUIEnabler
::
onToggleShowInv
()
{
bool
fEnable
=
!
gRlvHandler
.
hasBehaviour
(
RLV_BHVR_SHOWINV
);
//
// Enable/disable the "My Inventory"
button on the sidebar button panel
// Enable/disable the "My Inventory"
sidebar tab
//
LLSideTray
*
pSideTray
=
LLSideTray
::
getInstance
();
RLV_ASSERT
(
pSideTray
);
if
(
pSideTray
)
{
// If the inventory sidebar tab is currently undocked we need to redock it first
if
(
(
!
fEnable
)
&&
(
!
pSideTray
->
isTabAttached
(
"sidebar_inventory"
))
)
{
// NOTE: redocking will expand the sidebar and select the redocked tab so we need enough information to undo that again
bool
fCollapsed
=
pSideTray
->
getCollapsed
();
const
LLPanel
*
pActiveTab
=
pSideTray
->
getActiveTab
();
pSideTray
->
toggleTabDocked
(
"sidebar_inventory"
);
if
(
pActiveTab
)
pSideTray
->
selectTabByName
(
pActiveTab
->
getName
());
if
(
fCollapsed
)
pSideTray
->
collapseSideBar
();
}
LLButton
*
pInvBtn
=
pSideTray
->
getButtonFromName
(
"sidebar_inventory"
);
RLV_ASSERT
(
pInvBtn
);
if
(
pInvBtn
)
...
...
@@ -209,6 +224,7 @@ void RlvUIEnabler::onToggleShowInv()
// Enable/disable the "My Outfits" panel on the "My Appearance" sidebar tab
//
LLPanelOutfitsInventory
*
pAppearancePanel
=
LLPanelOutfitsInventory
::
findInstance
();
RLV_ASSERT
(
pAppearancePanel
);
if
(
pAppearancePanel
)
{
LLTabContainer
*
pAppearanceTabs
=
pAppearancePanel
->
getAppearanceTabs
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment