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
c5d3d29e
Commit
c5d3d29e
authored
14 years ago
by
Tofu Linden
Browse files
Options
Downloads
Plain Diff
merge from PE's viewer-release
parents
1ff35345
c267f414
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
indra/newview/lllocationinputctrl.cpp
+11
-3
11 additions, 3 deletions
indra/newview/lllocationinputctrl.cpp
indra/newview/llsyswellwindow.cpp
+8
-2
8 additions, 2 deletions
indra/newview/llsyswellwindow.cpp
with
19 additions
and
5 deletions
indra/newview/lllocationinputctrl.cpp
+
11
−
3
View file @
c5d3d29e
...
...
@@ -231,7 +231,7 @@ LLLocationInputCtrl::LLLocationInputCtrl(const LLLocationInputCtrl::Params& p)
params
.
rect
(
text_entry_rect
);
params
.
default_text
(
LLStringUtil
::
null
);
params
.
max_length_bytes
(
p
.
max_chars
);
params
.
keystroke_callback
(
boost
::
bind
(
&
LL
ComboBox
::
onTextEntry
,
this
,
_1
));
params
.
keystroke_callback
(
boost
::
bind
(
&
LL
LocationInputCtrl
::
onTextEntry
,
this
,
_1
));
params
.
commit_on_focus_lost
(
false
);
params
.
follows
.
flags
(
FOLLOWS_ALL
);
mTextEntry
=
LLUICtrlFactory
::
create
<
LLURLLineEditor
>
(
params
);
...
...
@@ -484,13 +484,16 @@ void LLLocationInputCtrl::onTextEntry(LLLineEditor* line_editor)
KEY
key
=
gKeyboard
->
currentKey
();
MASK
mask
=
gKeyboard
->
currentMask
(
TRUE
);
// Typing? (moving cursor should not affect showing the list)
bool
typing
=
mask
!=
MASK_CONTROL
&&
key
!=
KEY_LEFT
&&
key
!=
KEY_RIGHT
&&
key
!=
KEY_HOME
&&
key
!=
KEY_END
;
bool
pasting
=
mask
==
MASK_CONTROL
&&
key
==
'V'
;
if
(
line_editor
->
getText
().
empty
())
{
prearrangeList
();
// resets filter
hideList
();
}
// Typing? (moving cursor should not affect showing the list)
else
if
(
mask
!=
MASK_CONTROL
&&
key
!=
KEY_LEFT
&&
key
!=
KEY_RIGHT
&&
key
!=
KEY_HOME
&&
key
!=
KEY_END
)
else
if
(
typing
||
pasting
)
{
prearrangeList
(
line_editor
->
getText
());
if
(
mList
->
getItemCount
()
!=
0
)
...
...
@@ -966,7 +969,12 @@ void LLLocationInputCtrl::focusTextEntry()
// if the "select_on_focus" parameter is true it places the cursor
// at the beginning (after selecting text), thus screwing up updateSelection().
if
(
mTextEntry
)
{
gFocusMgr
.
setKeyboardFocus
(
mTextEntry
);
// Enable the text entry to handle accelerator keys (EXT-8104).
LLEditMenuHandler
::
gEditMenuHandler
=
mTextEntry
;
}
}
void
LLLocationInputCtrl
::
enableAddLandmarkButton
(
bool
val
)
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llsyswellwindow.cpp
+
8
−
2
View file @
c5d3d29e
...
...
@@ -582,8 +582,6 @@ LLIMWellWindow::LLIMWellWindow(const LLSD& key)
:
LLSysWellWindow
(
key
)
{
LLIMMgr
::
getInstance
()
->
addSessionObserver
(
this
);
LLIMChiclet
::
sFindChicletsSignal
.
connect
(
boost
::
bind
(
&
LLIMWellWindow
::
findIMChiclet
,
this
,
_1
));
LLIMChiclet
::
sFindChicletsSignal
.
connect
(
boost
::
bind
(
&
LLIMWellWindow
::
findObjectChiclet
,
this
,
_1
));
}
LLIMWellWindow
::~
LLIMWellWindow
()
...
...
@@ -601,6 +599,10 @@ BOOL LLIMWellWindow::postBuild()
{
BOOL
rv
=
LLSysWellWindow
::
postBuild
();
setTitle
(
getString
(
"title_im_well_window"
));
LLIMChiclet
::
sFindChicletsSignal
.
connect
(
boost
::
bind
(
&
LLIMWellWindow
::
findIMChiclet
,
this
,
_1
));
LLIMChiclet
::
sFindChicletsSignal
.
connect
(
boost
::
bind
(
&
LLIMWellWindow
::
findObjectChiclet
,
this
,
_1
));
return
rv
;
}
...
...
@@ -641,6 +643,8 @@ void LLIMWellWindow::sessionIDUpdated(const LLUUID& old_session_id, const LLUUID
LLChiclet
*
LLIMWellWindow
::
findObjectChiclet
(
const
LLUUID
&
notification_id
)
{
if
(
!
mMessageList
)
return
NULL
;
LLChiclet
*
res
=
NULL
;
ObjectRowPanel
*
panel
=
mMessageList
->
getTypedItemByValue
<
ObjectRowPanel
>
(
notification_id
);
if
(
panel
!=
NULL
)
...
...
@@ -655,6 +659,8 @@ LLChiclet* LLIMWellWindow::findObjectChiclet(const LLUUID& notification_id)
// PRIVATE METHODS
LLChiclet
*
LLIMWellWindow
::
findIMChiclet
(
const
LLUUID
&
sessionId
)
{
if
(
!
mMessageList
)
return
NULL
;
LLChiclet
*
res
=
NULL
;
RowPanel
*
panel
=
mMessageList
->
getTypedItemByValue
<
RowPanel
>
(
sessionId
);
if
(
panel
!=
NULL
)
...
...
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