00001 00032 #ifndef LL_LLFLOATERSNAPSHOT_H 00033 #define LL_LLFLOATERSNAPSHOT_H 00034 00035 #include "llfloater.h" 00036 00037 #include "llmemory.h" 00038 #include "llimagegl.h" 00039 #include "llcharacter.h" 00040 00041 class LLFloaterSnapshot : public LLFloater 00042 { 00043 public: 00044 LLFloaterSnapshot(); 00045 virtual ~LLFloaterSnapshot(); 00046 00047 virtual BOOL postBuild(); 00048 virtual void draw(); 00049 virtual void onClose(bool app_quitting); 00050 00051 static void show(void*); 00052 static void hide(void*); 00053 static void update(); 00054 00055 static S32 getUIWinHeightLong() {return sUIWinHeightLong ;} 00056 static S32 getUIWinHeightShort() {return sUIWinHeightShort ;} 00057 static S32 getUIWinWidth() {return sUIWinWidth ;} 00058 00059 private: 00060 class Impl; 00061 Impl& impl; 00062 00063 static LLFloaterSnapshot* sInstance; 00064 static S32 sUIWinHeightLong ; 00065 static S32 sUIWinHeightShort ; 00066 static S32 sUIWinWidth ; 00067 }; 00068 00069 class LLSnapshotFloaterView : public LLFloaterView 00070 { 00071 public: 00072 LLSnapshotFloaterView( const LLString& name, const LLRect& rect ); 00073 virtual ~LLSnapshotFloaterView(); 00074 00075 /*virtual*/ BOOL handleKey(KEY key, MASK mask, BOOL called_from_parent); 00076 /*virtual*/ BOOL handleMouseDown(S32 x, S32 y, MASK mask); 00077 /*virtual*/ BOOL handleMouseUp(S32 x, S32 y, MASK mask); 00078 /*virtual*/ BOOL handleHover(S32 x, S32 y, MASK mask); 00079 }; 00080 00081 extern LLSnapshotFloaterView* gSnapshotFloaterView; 00082 #endif // LL_LLFLOATERSNAPSHOT_H