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
0d25cca2
Commit
0d25cca2
authored
12 years ago
by
William Todd Stinson
Browse files
Options
Downloads
Patches
Plain Diff
Backed out changeset: 4202e227f8e4
parent
0356ef61
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
indra/llui/llfloaterreg.cpp
+1
-1
1 addition, 1 deletion
indra/llui/llfloaterreg.cpp
indra/llui/llfloaterreg.h
+12
-12
12 additions, 12 deletions
indra/llui/llfloaterreg.h
indra/newview/llnearbychat.cpp
+6
-6
6 additions, 6 deletions
indra/newview/llnearbychat.cpp
with
19 additions
and
19 deletions
indra/llui/llfloaterreg.cpp
+
1
−
1
View file @
0d25cca2
...
@@ -318,7 +318,7 @@ void LLFloaterReg::showInitialVisibleInstances()
...
@@ -318,7 +318,7 @@ void LLFloaterReg::showInitialVisibleInstances()
BOOL
isvis
=
LLFloater
::
getControlGroup
()
->
getBOOL
(
controlname
);
BOOL
isvis
=
LLFloater
::
getControlGroup
()
->
getBOOL
(
controlname
);
if
(
isvis
)
if
(
isvis
)
{
{
showInstance
(
name
,
LLSD
(
LLUUID
()
));
// keyed floaters shouldn't set save_vis to true
showInstance
(
name
,
LLSD
());
// keyed floaters shouldn't set save_vis to true
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
indra/llui/llfloaterreg.h
+
12
−
12
View file @
0d25cca2
...
@@ -90,23 +90,23 @@ class LLFloaterReg
...
@@ -90,23 +90,23 @@ class LLFloaterReg
static
LLFloater
*
getLastFloaterCascading
();
static
LLFloater
*
getLastFloaterCascading
();
// Find / get (create) / remove / destroy
// Find / get (create) / remove / destroy
static
LLFloater
*
findInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
(
LLUUID
()
));
static
LLFloater
*
findInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
());
static
LLFloater
*
getInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
(
LLUUID
()
));
static
LLFloater
*
getInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
());
static
LLFloater
*
removeInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
(
LLUUID
()
));
static
LLFloater
*
removeInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
());
static
bool
destroyInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
(
LLUUID
()
));
static
bool
destroyInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
());
// Iterators
// Iterators
static
const_instance_list_t
&
getFloaterList
(
const
std
::
string
&
name
);
static
const_instance_list_t
&
getFloaterList
(
const
std
::
string
&
name
);
// Visibility Management
// Visibility Management
// return NULL if instance not found or can't create instance (no builder)
// return NULL if instance not found or can't create instance (no builder)
static
LLFloater
*
showInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
(
LLUUID
()
),
BOOL
focus
=
FALSE
);
static
LLFloater
*
showInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
(),
BOOL
focus
=
FALSE
);
// Close a floater (may destroy or set invisible)
// Close a floater (may destroy or set invisible)
// return false if can't find instance
// return false if can't find instance
static
bool
hideInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
(
LLUUID
()
));
static
bool
hideInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
());
// return true if instance is visible:
// return true if instance is visible:
static
bool
toggleInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
(
LLUUID
()
));
static
bool
toggleInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
());
static
bool
instanceVisible
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
(
LLUUID
()
));
static
bool
instanceVisible
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
());
static
void
showInitialVisibleInstances
();
static
void
showInitialVisibleInstances
();
static
void
hideVisibleInstances
(
const
std
::
set
<
std
::
string
>&
exceptions
=
std
::
set
<
std
::
string
>
());
static
void
hideVisibleInstances
(
const
std
::
set
<
std
::
string
>&
exceptions
=
std
::
set
<
std
::
string
>
());
...
@@ -126,23 +126,23 @@ class LLFloaterReg
...
@@ -126,23 +126,23 @@ class LLFloaterReg
static
void
registerControlVariables
();
static
void
registerControlVariables
();
// Callback wrappers
// Callback wrappers
static
void
toggleInstanceOrBringToFront
(
const
LLSD
&
sdname
,
const
LLSD
&
key
=
LLSD
(
LLUUID
()
));
static
void
toggleInstanceOrBringToFront
(
const
LLSD
&
sdname
,
const
LLSD
&
key
=
LLSD
());
// Typed find / get / show
// Typed find / get / show
template
<
class
T
>
template
<
class
T
>
static
T
*
findTypedInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
(
LLUUID
()
))
static
T
*
findTypedInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
())
{
{
return
dynamic_cast
<
T
*>
(
findInstance
(
name
,
key
));
return
dynamic_cast
<
T
*>
(
findInstance
(
name
,
key
));
}
}
template
<
class
T
>
template
<
class
T
>
static
T
*
getTypedInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
(
LLUUID
()
))
static
T
*
getTypedInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
())
{
{
return
dynamic_cast
<
T
*>
(
getInstance
(
name
,
key
));
return
dynamic_cast
<
T
*>
(
getInstance
(
name
,
key
));
}
}
template
<
class
T
>
template
<
class
T
>
static
T
*
showTypedInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
(
LLUUID
()
),
BOOL
focus
=
FALSE
)
static
T
*
showTypedInstance
(
const
std
::
string
&
name
,
const
LLSD
&
key
=
LLSD
(),
BOOL
focus
=
FALSE
)
{
{
return
dynamic_cast
<
T
*>
(
showInstance
(
name
,
key
,
focus
));
return
dynamic_cast
<
T
*>
(
showInstance
(
name
,
key
,
focus
));
}
}
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llnearbychat.cpp
+
6
−
6
View file @
0d25cca2
...
@@ -287,10 +287,10 @@ void LLNearbyChat::setVisible(BOOL visible)
...
@@ -287,10 +287,10 @@ void LLNearbyChat::setVisible(BOOL visible)
{
{
LLIMConversation
::
setVisible
(
visible
);
LLIMConversation
::
setVisible
(
visible
);
if
(
visible
)
if
(
visible
)
{
{
removeScreenChat
();
removeScreenChat
();
}
}
setFocus
(
visible
);
setFocus
(
visible
);
}
}
...
@@ -327,7 +327,7 @@ void LLNearbyChat::addToHost()
...
@@ -327,7 +327,7 @@ void LLNearbyChat::addToHost()
mIsHostSet
=
true
;
mIsHostSet
=
true
;
}
}
}
}
bool
LLNearbyChat
::
isHostSet
()
bool
LLNearbyChat
::
isHostSet
()
{
{
...
@@ -722,7 +722,7 @@ void LLNearbyChat::sendChatFromViewer(const LLWString &wtext, EChatType type, BO
...
@@ -722,7 +722,7 @@ void LLNearbyChat::sendChatFromViewer(const LLWString &wtext, EChatType type, BO
send_chat_from_viewer
(
utf8_out_text
,
type
,
channel
);
send_chat_from_viewer
(
utf8_out_text
,
type
,
channel
);
}
}
// static
// static
bool
LLNearbyChat
::
isWordsName
(
const
std
::
string
&
name
)
bool
LLNearbyChat
::
isWordsName
(
const
std
::
string
&
name
)
{
{
// checking to see if it's display name plus username in parentheses
// checking to see if it's display name plus username in parentheses
...
...
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