summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatersnapshot.h
blob: 85b18a99d39a1664b4e90ed9a80aa88c4f3cc065 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/** 
 * @file llfloatersnapshot.h
 * @brief Snapshot preview window, allowing saving, e-mailing, etc.
 *
 * Copyright (c) 2004-$CurrentYear$, Linden Research, Inc.
 * $License$
 */

#ifndef LL_LLFLOATERSNAPSHOT_H
#define LL_LLFLOATERSNAPSHOT_H

#include "llfloater.h"

#include "llmemory.h"
#include "llimagegl.h"
#include "llcharacter.h"

class LLFloaterSnapshot : public LLFloater
{
public:
    LLFloaterSnapshot();
	virtual ~LLFloaterSnapshot();

	virtual BOOL postBuild();
	virtual void draw();
	virtual void onClose(bool app_quitting);

	static void show(void*);
	static void hide(void*);

	static void update();
	
private:
	class Impl;
	Impl& impl;

	static LLFloaterSnapshot* sInstance;
};

class LLSnapshotFloaterView : public LLFloaterView
{
public:
	LLSnapshotFloaterView( const LLString& name, const LLRect& rect );
	virtual ~LLSnapshotFloaterView();

	/*virtual*/	BOOL handleKey(KEY key, MASK mask, BOOL called_from_parent);
	/*virtual*/	BOOL handleMouseDown(S32 x, S32 y, MASK mask);
	/*virtual*/	BOOL handleMouseUp(S32 x, S32 y, MASK mask);
	/*virtual*/	BOOL handleHover(S32 x, S32 y, MASK mask);
};

extern LLSnapshotFloaterView* gSnapshotFloaterView;
#endif // LL_LLFLOATERSNAPSHOT_H