diff options
author | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
commit | b2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch) | |
tree | 3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/newview/llfloateranimpreview.cpp | |
parent | Second Life viewer sources 1.14.0.1 (diff) | |
download | meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2 meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz |
Second Life viewer sources 1.15.0.2
Diffstat (limited to 'linden/indra/newview/llfloateranimpreview.cpp')
-rw-r--r-- | linden/indra/newview/llfloateranimpreview.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/linden/indra/newview/llfloateranimpreview.cpp b/linden/indra/newview/llfloateranimpreview.cpp index 3661ea2..6802fb2 100644 --- a/linden/indra/newview/llfloateranimpreview.cpp +++ b/linden/indra/newview/llfloateranimpreview.cpp | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2004-2007, Linden Research, Inc. | 5 | * Copyright (c) 2004-2007, Linden Research, Inc. |
6 | * | 6 | * |
7 | * Second Life Viewer Source Code | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | 8 | * The source code in this file ("Source Code") is provided by Linden Lab |
8 | * to you under the terms of the GNU General Public License, version 2.0 | 9 | * to you under the terms of the GNU General Public License, version 2.0 |
9 | * ("GPL"), unless you have obtained a separate licensing agreement | 10 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -281,7 +282,7 @@ BOOL LLFloaterAnimPreview::postBuild() | |||
281 | childSetValue("ease_out_time", LLSD(motionp->getEaseOutDuration())); | 282 | childSetValue("ease_out_time", LLSD(motionp->getEaseOutDuration())); |
282 | mEnabled = TRUE; | 283 | mEnabled = TRUE; |
283 | char seconds_string[128]; /*Flawfinder: ignore*/ | 284 | char seconds_string[128]; /*Flawfinder: ignore*/ |
284 | snprintf(seconds_string, sizeof(seconds_string), " - %.2f seconds", motionp->getDuration()); /*Flawfinder: ignore*/ | 285 | snprintf(seconds_string, sizeof(seconds_string), " - %.2f seconds", motionp->getDuration()); /* Flawfinder: ignore */ |
285 | 286 | ||
286 | setTitle(mFilename + LLString(seconds_string)); | 287 | setTitle(mFilename + LLString(seconds_string)); |
287 | } | 288 | } |
@@ -303,7 +304,7 @@ BOOL LLFloaterAnimPreview::postBuild() | |||
303 | { | 304 | { |
304 | char output_str[256]; /*Flawfinder: ignore*/ | 305 | char output_str[256]; /*Flawfinder: ignore*/ |
305 | 306 | ||
306 | snprintf(output_str, sizeof(output_str), "Animation file is %.1f seconds in length.\n\nMaximum animation length is %.1f seconds.\n", /*Flawfinder: ignore*/ | 307 | snprintf(output_str, sizeof(output_str), "Animation file is %.1f seconds in length.\n\nMaximum animation length is %.1f seconds.\n", /* Flawfinder: ignore */ |
307 | loaderp->getDuration(), MAX_ANIM_DURATION); | 308 | loaderp->getDuration(), MAX_ANIM_DURATION); |
308 | childSetValue("bad_animation_text", LLSD(output_str)); | 309 | childSetValue("bad_animation_text", LLSD(output_str)); |
309 | } | 310 | } |
@@ -409,7 +410,7 @@ BOOL LLFloaterAnimPreview::handleMouseDown(S32 x, S32 y, MASK mask) | |||
409 | if (mPreviewRect.pointInRect(x, y)) | 410 | if (mPreviewRect.pointInRect(x, y)) |
410 | { | 411 | { |
411 | bringToFront( x, y ); | 412 | bringToFront( x, y ); |
412 | gViewerWindow->setMouseCapture(this, onMouseCaptureLost); | 413 | gViewerWindow->setMouseCapture(this); |
413 | gViewerWindow->hideCursor(); | 414 | gViewerWindow->hideCursor(); |
414 | mLastMouseX = x; | 415 | mLastMouseX = x; |
415 | mLastMouseY = y; | 416 | mLastMouseY = y; |
@@ -424,7 +425,7 @@ BOOL LLFloaterAnimPreview::handleMouseDown(S32 x, S32 y, MASK mask) | |||
424 | //----------------------------------------------------------------------------- | 425 | //----------------------------------------------------------------------------- |
425 | BOOL LLFloaterAnimPreview::handleMouseUp(S32 x, S32 y, MASK mask) | 426 | BOOL LLFloaterAnimPreview::handleMouseUp(S32 x, S32 y, MASK mask) |
426 | { | 427 | { |
427 | gViewerWindow->setMouseCapture(FALSE, NULL); | 428 | gViewerWindow->setMouseCapture(FALSE); |
428 | gViewerWindow->showCursor(); | 429 | gViewerWindow->showCursor(); |
429 | return LLFloater::handleMouseUp(x, y, mask); | 430 | return LLFloater::handleMouseUp(x, y, mask); |
430 | } | 431 | } |
@@ -436,7 +437,7 @@ BOOL LLFloaterAnimPreview::handleHover(S32 x, S32 y, MASK mask) | |||
436 | { | 437 | { |
437 | MASK local_mask = mask & ~MASK_ALT; | 438 | MASK local_mask = mask & ~MASK_ALT; |
438 | 439 | ||
439 | if (mAnimPreview && gViewerWindow->hasMouseCapture(this)) | 440 | if (mAnimPreview && hasMouseCapture()) |
440 | { | 441 | { |
441 | if (local_mask == MASK_PAN) | 442 | if (local_mask == MASK_PAN) |
442 | { | 443 | { |
@@ -498,7 +499,7 @@ BOOL LLFloaterAnimPreview::handleScrollWheel(S32 x, S32 y, S32 clicks) | |||
498 | //----------------------------------------------------------------------------- | 499 | //----------------------------------------------------------------------------- |
499 | // onMouseCaptureLost() | 500 | // onMouseCaptureLost() |
500 | //----------------------------------------------------------------------------- | 501 | //----------------------------------------------------------------------------- |
501 | void LLFloaterAnimPreview::onMouseCaptureLost(LLMouseHandler* handler) | 502 | void LLFloaterAnimPreview::onMouseCaptureLost() |
502 | { | 503 | { |
503 | gViewerWindow->showCursor(); | 504 | gViewerWindow->showCursor(); |
504 | } | 505 | } |