Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
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
Alchemy Viewer
Alchemy Viewer
Commits
e377182c
Commit
e377182c
authored
13 years ago
by
Oz Linden
Browse files
Options
Downloads
Plain Diff
merge changes for storm-1799
parents
04452c96
1fc53d33
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/contributions.txt
+1
-0
1 addition, 0 deletions
doc/contributions.txt
indra/newview/llinspectremoteobject.cpp
+3
-21
3 additions, 21 deletions
indra/newview/llinspectremoteobject.cpp
with
4 additions
and
21 deletions
doc/contributions.txt
+
1
−
0
View file @
e377182c
...
...
@@ -608,6 +608,7 @@ Jonathan Yap
STORM-1733
STORM-1790
STORM-1788
STORM-1799
STORM-1796
Kadah Coba
STORM-1060
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llinspectremoteobject.cpp
+
3
−
21
View file @
e377182c
...
...
@@ -60,12 +60,10 @@ class LLInspectRemoteObject : public LLInspect
private
:
void
update
();
void
onNameCache
(
const
LLUUID
&
id
,
const
std
::
string
&
name
,
bool
is_group
);
private
:
LLUUID
mObjectID
;
LLUUID
mOwnerID
;
std
::
string
mOwnerLegacyName
;
std
::
string
mSLurl
;
std
::
string
mName
;
bool
mGroupOwned
;
...
...
@@ -75,7 +73,6 @@ LLInspectRemoteObject::LLInspectRemoteObject(const LLSD& sd) :
LLInspect
(
LLSD
()),
mObjectID
(
NULL
),
mOwnerID
(
NULL
),
mOwnerLegacyName
(),
mSLurl
(
""
),
mName
(
""
),
mGroupOwned
(
false
)
...
...
@@ -111,14 +108,6 @@ void LLInspectRemoteObject::onOpen(const LLSD& data)
mGroupOwned
=
data
[
"group_owned"
].
asBoolean
();
mSLurl
=
data
[
"slurl"
].
asString
();
// work out the owner's name
mOwnerLegacyName
=
""
;
if
(
gCacheName
)
{
gCacheName
->
get
(
mOwnerID
,
mGroupOwned
,
// muting
boost
::
bind
(
&
LLInspectRemoteObject
::
onNameCache
,
this
,
_1
,
_2
,
_3
));
}
// update the inspector with the current object state
update
();
...
...
@@ -144,8 +133,7 @@ void LLInspectRemoteObject::onClickMap()
void
LLInspectRemoteObject
::
onClickBlock
()
{
LLMute
::
EType
mute_type
=
mGroupOwned
?
LLMute
::
GROUP
:
LLMute
::
AGENT
;
LLMute
mute
(
mOwnerID
,
mOwnerLegacyName
,
mute_type
);
LLMute
mute
(
mObjectID
,
mName
,
LLMute
::
OBJECT
);
LLMuteList
::
getInstance
()
->
add
(
mute
);
LLPanelBlockedList
::
showPanelAndSelect
(
mute
.
mID
);
closeFloater
();
...
...
@@ -156,12 +144,6 @@ void LLInspectRemoteObject::onClickClose()
closeFloater
();
}
void
LLInspectRemoteObject
::
onNameCache
(
const
LLUUID
&
id
,
const
std
::
string
&
name
,
bool
is_group
)
{
mOwnerLegacyName
=
name
;
update
();
}
void
LLInspectRemoteObject
::
update
()
{
// show the object name as the inspector's title
...
...
@@ -198,8 +180,8 @@ void LLInspectRemoteObject::update()
// disable the Map button if we don't have a SLurl
getChild
<
LLUICtrl
>
(
"map_btn"
)
->
setEnabled
(
!
mSLurl
.
empty
());
// disable the Block button if we don't have the o
wner ID
getChild
<
LLUICtrl
>
(
"block_btn"
)
->
setEnabled
(
!
mO
wner
ID
.
isNull
());
// disable the Block button if we don't have the o
bject ID (will this ever happen?)
getChild
<
LLUICtrl
>
(
"block_btn"
)
->
setEnabled
(
!
mO
bject
ID
.
isNull
());
}
//////////////////////////////////////////////////////////////////////////////
...
...
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