summaryrefslogtreecommitdiff
path: root/indra/newview/llmoveview.h
blob: 9969a87a83b538f708cd0ad3a415b804bcf84166 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/** 
 * @file llmoveview.h
 * @brief Container for buttons for walking, turning, flying
 *
 * Copyright (c) 2001-$CurrentYear$, Linden Research, Inc.
 * $License$
 */

#ifndef LL_LLMOVEVIEW_H
#define LL_LLMOVEVIEW_H

// Library includes
#include "llfloater.h"

class LLButton;
class LLJoystickAgentTurn;
class LLJoystickAgentSlide;

//
// Classes
//
class LLFloaterMove
:	public LLFloater
{
protected:
	LLFloaterMove();
	~LLFloaterMove();

public:
	/*virtual*/ void onClose(bool app_quitting);
	static void onFlyButtonClicked(void* userdata);
	static F32	getYawRate(F32 time);

	static void show(void*);
	static void toggle(void*);
	static BOOL visible(void*);
	
	// This function is used for agent-driven button highlighting
	static LLFloaterMove* getInstance()				{ return sInstance; }

protected:
	static void turnLeftNudge(void* userdata);
	static void turnLeft(void* userdata);
	
	static void turnRightNudge(void* userdata);
	static void turnRight(void* userdata);

	static void moveUp(void* userdata);
	static void moveDown(void* userdata);

public:
	LLButton*				mFlyButton;

	LLJoystickAgentTurn*	mForwardButton;
	LLJoystickAgentTurn*	mBackwardButton;
	LLJoystickAgentSlide*	mSlideLeftButton;
	LLJoystickAgentSlide*	mSlideRightButton;
	LLButton*				mTurnLeftButton;
	LLButton*				mTurnRightButton;
	LLButton*				mMoveUpButton;
	LLButton*				mMoveDownButton;

protected:
	static LLFloaterMove*	sInstance;
};


#endif