aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpreviewanim.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpreviewanim.h')
-rw-r--r--linden/indra/newview/llpreviewanim.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/linden/indra/newview/llpreviewanim.h b/linden/indra/newview/llpreviewanim.h
new file mode 100644
index 0000000..307b617
--- /dev/null
+++ b/linden/indra/newview/llpreviewanim.h
@@ -0,0 +1,58 @@
1/**
2 * @file llpreviewanim.h
3 * @brief LLPreviewAnim class definition
4 *
5 * Copyright (c) 2004-2007, Linden Research, Inc.
6 *
7 * 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 * ("GPL"), unless you have obtained a separate licensing agreement
10 * ("Other License"), formally executed by you and Linden Lab. Terms of
11 * the GPL can be found in doc/GPL-license.txt in this distribution, or
12 * online at http://secondlife.com/developers/opensource/gplv2
13 *
14 * There are special exceptions to the terms and conditions of the GPL as
15 * it is applied to this Source Code. View the full text of the exception
16 * in the file doc/FLOSS-exception.txt in this software distribution, or
17 * online at http://secondlife.com/developers/opensource/flossexception
18 *
19 * By copying, modifying or distributing this software, you acknowledge
20 * that you have read and understood your obligations described above,
21 * and agree to abide by those obligations.
22 *
23 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
24 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
25 * COMPLETENESS OR PERFORMANCE.
26 */
27
28#ifndef LL_LLPREVIEWANIM_H
29#define LL_LLPREVIEWANIM_H
30
31#include "llpreview.h"
32#include "llcharacter.h"
33
34class LLPreviewAnim : public LLPreview
35{
36public:
37 LLPreviewAnim(const std::string& name, const LLRect& rect, const std::string& title,
38 const LLUUID& item_uuid,
39 const S32& activate,
40 const LLUUID& object_uuid = LLUUID::null);
41
42 static void playAnim( void* userdata );
43 static void auditionAnim( void* userdata );
44 static void saveAnim( void* userdata );
45 static void endAnimCallback( void *userdata );
46
47protected:
48 virtual void onClose(bool app_quitting);
49
50 LLAnimPauseRequest mPauseRequest;
51 LLUUID mItemID;
52 LLString mTitle;
53 LLUUID mObjectID;
54 LLButton* mPlayBtn;
55 LLButton* mAuditionBtn;
56};
57
58#endif // LL_LLPREVIEWSOUND_H