00001 00032 #ifndef LL_LLMOVEVIEW_H 00033 #define LL_LLMOVEVIEW_H 00034 00035 // Library includes 00036 #include "llfloater.h" 00037 00038 class LLButton; 00039 class LLJoystickAgentTurn; 00040 class LLJoystickAgentSlide; 00041 00042 // 00043 // Classes 00044 // 00045 class LLFloaterMove 00046 : public LLFloater 00047 { 00048 protected: 00049 LLFloaterMove(); 00050 ~LLFloaterMove(); 00051 00052 public: 00053 /*virtual*/ void onClose(bool app_quitting); 00054 static void onFlyButtonClicked(void* userdata); 00055 static F32 getYawRate(F32 time); 00056 00057 static void show(void*); 00058 static void toggle(void*); 00059 static BOOL visible(void*); 00060 00061 // This function is used for agent-driven button highlighting 00062 static LLFloaterMove* getInstance() { return sInstance; } 00063 00064 protected: 00065 static void turnLeftNudge(void* userdata); 00066 static void turnLeft(void* userdata); 00067 00068 static void turnRightNudge(void* userdata); 00069 static void turnRight(void* userdata); 00070 00071 static void moveUp(void* userdata); 00072 static void moveDown(void* userdata); 00073 00074 public: 00075 LLButton* mFlyButton; 00076 00077 LLJoystickAgentTurn* mForwardButton; 00078 LLJoystickAgentTurn* mBackwardButton; 00079 LLJoystickAgentSlide* mSlideLeftButton; 00080 LLJoystickAgentSlide* mSlideRightButton; 00081 LLButton* mTurnLeftButton; 00082 LLButton* mTurnRightButton; 00083 LLButton* mMoveUpButton; 00084 LLButton* mMoveDownButton; 00085 00086 protected: 00087 static LLFloaterMove* sInstance; 00088 }; 00089 00090 00091 #endif