summaryrefslogtreecommitdiff
path: root/indra/newview/llpreviewanim.h
blob: 8a85579bba133d48e33c04c5972b6269588d7a80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/** 
 * @file llpreviewanim.h
 * @brief LLPreviewAnim class definition
 *
 * Copyright (c) 2004-$CurrentYear$, Linden Research, Inc.
 * $License$
 */

#ifndef LL_LLPREVIEWANIM_H
#define LL_LLPREVIEWANIM_H

#include "llpreview.h"
#include "llcharacter.h"

class LLPreviewAnim : public LLPreview
{
public:
	LLPreviewAnim(const std::string& name, const LLRect& rect, const std::string& title,
					const LLUUID& item_uuid,
					const S32&    activate,
					const LLUUID& object_uuid = LLUUID::null);

	static void playAnim( void* userdata );
	static void auditionAnim( void* userdata );
	static void saveAnim( void* userdata );
	static void endAnimCallback( void *userdata );

protected:
	virtual void onClose(bool app_quitting);

	LLAnimPauseRequest	mPauseRequest;
	LLUUID		mItemID;
	LLString	mTitle;
	LLUUID		mObjectID;
	LLButton*	mPlayBtn;
	LLButton*	mAuditionBtn;
};

#endif  // LL_LLPREVIEWSOUND_H