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
3adf8935
Commit
3adf8935
authored
13 years ago
by
Vadim ProductEngine
Browse files
Options
Downloads
Patches
Plain Diff
CHU-78 WIP Subtle cleanup.
parent
59089017
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/llui/llmenubutton.cpp
+5
-8
5 additions, 8 deletions
indra/llui/llmenubutton.cpp
indra/llui/llmenugl.cpp
+0
-5
0 additions, 5 deletions
indra/llui/llmenugl.cpp
indra/llui/llmenugl.h
+0
-2
0 additions, 2 deletions
indra/llui/llmenugl.h
with
5 additions
and
15 deletions
indra/llui/llmenubutton.cpp
+
5
−
8
View file @
3adf8935
...
@@ -74,8 +74,6 @@ boost::signals2::connection LLMenuButton::setMouseDownCallback( const mouse_sign
...
@@ -74,8 +74,6 @@ boost::signals2::connection LLMenuButton::setMouseDownCallback( const mouse_sign
void
LLMenuButton
::
hideMenu
()
void
LLMenuButton
::
hideMenu
()
{
{
if
(
mMenuHandle
.
isDead
())
return
;
LLToggleableMenu
*
menu
=
getMenu
();
LLToggleableMenu
*
menu
=
getMenu
();
if
(
menu
)
if
(
menu
)
{
{
...
@@ -120,7 +118,7 @@ void LLMenuButton::setMenu(LLToggleableMenu* menu, EMenuPosition position /*MP_T
...
@@ -120,7 +118,7 @@ void LLMenuButton::setMenu(LLToggleableMenu* menu, EMenuPosition position /*MP_T
BOOL
LLMenuButton
::
handleKeyHere
(
KEY
key
,
MASK
mask
)
BOOL
LLMenuButton
::
handleKeyHere
(
KEY
key
,
MASK
mask
)
{
{
if
(
mMenuHandle
.
isDead
())
return
FALSE
;
if
(
!
getMenu
())
return
FALSE
;
if
(
KEY_RETURN
==
key
&&
mask
==
MASK_NONE
&&
!
gKeyboard
->
getKeyRepeated
(
key
))
if
(
KEY_RETURN
==
key
&&
mask
==
MASK_NONE
&&
!
gKeyboard
->
getKeyRepeated
(
key
))
{
{
...
@@ -158,8 +156,6 @@ void LLMenuButton::toggleMenu()
...
@@ -158,8 +156,6 @@ void LLMenuButton::toggleMenu()
return
;
return
;
}
}
if
(
mMenuHandle
.
isDead
())
return
;
LLToggleableMenu
*
menu
=
getMenu
();
LLToggleableMenu
*
menu
=
getMenu
();
if
(
!
menu
)
return
;
if
(
!
menu
)
return
;
...
@@ -189,7 +185,8 @@ void LLMenuButton::toggleMenu()
...
@@ -189,7 +185,8 @@ void LLMenuButton::toggleMenu()
void
LLMenuButton
::
updateMenuOrigin
()
void
LLMenuButton
::
updateMenuOrigin
()
{
{
if
(
mMenuHandle
.
isDead
())
return
;
LLToggleableMenu
*
menu
=
getMenu
();
if
(
!
menu
)
return
;
LLRect
rect
=
getRect
();
LLRect
rect
=
getRect
();
...
@@ -198,12 +195,12 @@ void LLMenuButton::updateMenuOrigin()
...
@@ -198,12 +195,12 @@ void LLMenuButton::updateMenuOrigin()
case
MP_TOP_LEFT
:
case
MP_TOP_LEFT
:
{
{
mX
=
rect
.
mLeft
;
mX
=
rect
.
mLeft
;
mY
=
rect
.
mTop
+
m
M
enu
Handle
.
get
()
->
getRect
().
getHeight
();
mY
=
rect
.
mTop
+
menu
->
getRect
().
getHeight
();
break
;
break
;
}
}
case
MP_TOP_RIGHT
:
case
MP_TOP_RIGHT
:
{
{
const
LLRect
&
menu_rect
=
m
M
enu
Handle
.
get
()
->
getRect
();
const
LLRect
&
menu_rect
=
menu
->
getRect
();
mX
=
rect
.
mRight
-
menu_rect
.
getWidth
();
mX
=
rect
.
mRight
-
menu_rect
.
getWidth
();
mY
=
rect
.
mTop
+
menu_rect
.
getHeight
();
mY
=
rect
.
mTop
+
menu_rect
.
getHeight
();
break
;
break
;
...
...
This diff is collapsed.
Click to expand it.
indra/llui/llmenugl.cpp
+
0
−
5
View file @
3adf8935
...
@@ -4021,11 +4021,6 @@ BOOL LLContextMenu::handleRightMouseUp( S32 x, S32 y, MASK mask )
...
@@ -4021,11 +4021,6 @@ BOOL LLContextMenu::handleRightMouseUp( S32 x, S32 y, MASK mask )
return
result
;
return
result
;
}
}
void
LLContextMenu
::
draw
()
{
LLMenuGL
::
draw
();
}
BOOL
LLContextMenu
::
appendContextSubMenu
(
LLContextMenu
*
menu
)
BOOL
LLContextMenu
::
appendContextSubMenu
(
LLContextMenu
*
menu
)
{
{
...
...
This diff is collapsed.
Click to expand it.
indra/llui/llmenugl.h
+
0
−
2
View file @
3adf8935
...
@@ -668,8 +668,6 @@ class LLContextMenu
...
@@ -668,8 +668,6 @@ class LLContextMenu
// can't set visibility directly, must call show or hide
// can't set visibility directly, must call show or hide
virtual
void
setVisible
(
BOOL
visible
);
virtual
void
setVisible
(
BOOL
visible
);
virtual
void
draw
();
virtual
void
show
(
S32
x
,
S32
y
);
virtual
void
show
(
S32
x
,
S32
y
);
virtual
void
hide
();
virtual
void
hide
();
...
...
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