summaryrefslogtreecommitdiff
path: root/indra/llui/llbutton.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2011-11-11 09:31:07 -0800
committerMerov Linden <merov@lindenlab.com>2011-11-11 09:31:07 -0800
commit4afb450225d83fef55bfee2f63290dcfbc3cfbec (patch)
tree61639ac2d5c569bceb04a3442eb604dc0e39c988 /indra/llui/llbutton.cpp
parent7d78c63c05579f72dc6998913245d793a2fbd87c (diff)
EXP-1504 : Move the tab opening stuff to lltabcontainer and out of llbutton. Added an xui param to allow drill through tabs. Set that param for build panel only.
Diffstat (limited to 'indra/llui/llbutton.cpp')
-rw-r--r--indra/llui/llbutton.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/indra/llui/llbutton.cpp b/indra/llui/llbutton.cpp
index be657dbb9b..f9e2ad8554 100644
--- a/indra/llui/llbutton.cpp
+++ b/indra/llui/llbutton.cpp
@@ -104,7 +104,6 @@ LLButton::Params::Params()
use_draw_context_alpha("use_draw_context_alpha", true),
badge("badge"),
handle_right_mouse("handle_right_mouse"),
- click_on_drag_and_drop("click_on_drag_and_drop", false),
held_down_delay("held_down_delay"),
button_flash_count("button_flash_count"),
button_flash_rate("button_flash_rate")
@@ -172,7 +171,6 @@ LLButton::LLButton(const LLButton::Params& p)
mHeldDownSignal(NULL),
mUseDrawContextAlpha(p.use_draw_context_alpha),
mHandleRightMouse(p.handle_right_mouse),
- mClickOnDragAndDrop(p.click_on_drag_and_drop), // if true, hovering on button while dragging -> click
mButtonFlashCount(p.button_flash_count),
mButtonFlashRate(p.button_flash_rate)
{
@@ -1236,35 +1234,8 @@ void LLButton::resetMouseDownTimer()
mMouseDownTimer.reset();
}
-
BOOL LLButton::handleDoubleClick(S32 x, S32 y, MASK mask)
{
// just treat a double click as a second click
return handleMouseDown(x, y, mask);
}
-
-// virtual
-BOOL LLButton::handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType type, void* cargo_data, EAcceptance *accept, std::string &tooltip)
-{
- const F32 CLICK_ON_DAD_DELAY_TIME = 0.5f;
- if (mClickOnDragAndDrop)
- {
- // In that case, though the button doesn't really handles drops, it'll "click" if hovering on it
- // while dragging something. That allows for instance drilling into tabbed containers.
- // Note: we use the same timer as mouse down just as convenience and to avoid duplication.
- if (mMouseDownTimer.getStarted())
- {
- if (mMouseDownTimer.getElapsedTimeF32() > CLICK_ON_DAD_DELAY_TIME )
- {
- onCommit();
- mMouseDownTimer.stop();
- }
- }
- else
- {
- mMouseDownTimer.start();
- }
- }
- // The true DaD effect is handled at the View level if any.
- return LLView::handleDragAndDrop(x, y, mask, drop, type, cargo_data, accept, tooltip);
-}