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
b33f9c45
Commit
b33f9c45
authored
6 years ago
by
Graham Linden
Browse files
Options
Downloads
Plain Diff
Merge
parents
966dc7fc
e66ccae9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llsettingspicker.cpp
+14
-0
14 additions, 0 deletions
indra/newview/llsettingspicker.cpp
indra/newview/llsettingspicker.h
+2
-1
2 additions, 1 deletion
indra/newview/llsettingspicker.h
with
16 additions
and
1 deletion
indra/newview/llsettingspicker.cpp
+
14
−
0
View file @
b33f9c45
...
...
@@ -128,6 +128,7 @@ BOOL LLFloaterSettingsPicker::postBuild()
//todo: this is bad idea
mInventoryPanel
->
setSelection
(
mSettingItemID
,
TAKE_FOCUS_NO
);
}
getChild
<
LLView
>
(
BTN_SELECT
)
->
setEnabled
(
mSettingItemID
.
notNull
());
}
mNoCopySettingsSelected
=
FALSE
;
...
...
@@ -289,6 +290,7 @@ void LLFloaterSettingsPicker::onFilterEdit(const std::string& search_string)
void
LLFloaterSettingsPicker
::
onSelectionChange
(
const
LLFloaterSettingsPicker
::
itemlist_t
&
items
,
bool
user_action
)
{
bool
track_picker_enabled
=
false
;
bool
is_item
=
false
;
LLUUID
asset_id
;
if
(
items
.
size
())
{
...
...
@@ -307,6 +309,7 @@ void LLFloaterSettingsPicker::onSelectionChange(const LLFloaterSettingsPicker::i
setSettingsItemId
(
bridge_model
->
getItem
()
->
getUUID
(),
false
);
asset_id
=
bridge_model
->
getItem
()
->
getAssetUUID
();
mViewModel
->
setDirty
();
// *TODO: shouldn't we be using setValue() here?
is_item
=
true
;
if
(
user_action
)
{
...
...
@@ -322,6 +325,7 @@ void LLFloaterSettingsPicker::onSelectionChange(const LLFloaterSettingsPicker::i
}
}
getChild
<
LLView
>
(
CMB_TRACK_SELECTION
)
->
setEnabled
(
track_picker_enabled
&&
mSettingAssetID
==
asset_id
);
getChild
<
LLView
>
(
BTN_SELECT
)
->
setEnabled
(
is_item
&&
(
!
track_picker_enabled
||
mSettingAssetID
==
asset_id
));
if
(
track_picker_enabled
&&
asset_id
.
notNull
()
&&
mSettingAssetID
!=
asset_id
)
{
LLUUID
item_id
=
mSettingItemID
;
...
...
@@ -376,6 +380,8 @@ void LLFloaterSettingsPicker::onAssetLoaded(LLUUID asset_id, LLSettingsBase::ptr
mSettingAssetID
=
asset_id
;
track_selection
->
setEnabled
(
true
);
track_selection
->
selectFirstItem
();
getChild
<
LLView
>
(
BTN_SELECT
)
->
setEnabled
(
true
);
}
void
LLFloaterSettingsPicker
::
onButtonCancel
()
...
...
@@ -459,6 +465,14 @@ BOOL LLFloaterSettingsPicker::handleKeyHere(KEY key, MASK mask)
return
LLFloater
::
handleKeyHere
(
key
,
mask
);
}
void
LLFloaterSettingsPicker
::
onFocusLost
()
{
if
(
isInVisibleChain
())
{
closeFloater
();
}
}
//=========================================================================
void
LLFloaterSettingsPicker
::
setActive
(
bool
active
)
{
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llsettingspicker.h
+
2
−
1
View file @
b33f9c45
...
...
@@ -56,7 +56,7 @@ class LLFloaterSettingsPicker : public LLFloater
void
setActive
(
bool
active
);
virtual
BOOL
postBuild
()
override
;
virtual
void
onClose
(
bool
app_quitting
)
override
;
virtual
void
onClose
(
bool
app_quitting
)
override
;
virtual
void
draw
()
override
;
void
setSettingsItemId
(
const
LLUUID
&
settings_id
,
bool
set_selection
=
true
);
...
...
@@ -103,6 +103,7 @@ class LLFloaterSettingsPicker : public LLFloater
void
onButtonSelect
();
virtual
BOOL
handleDoubleClick
(
S32
x
,
S32
y
,
MASK
mask
)
override
;
BOOL
handleKeyHere
(
KEY
key
,
MASK
mask
)
override
;
void
onFocusLost
()
override
;
LLHandle
<
LLView
>
mOwnerHandle
;
...
...
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