diff options
author | James Cook <james@lindenlab.com> | 2007-01-02 08:33:20 +0000 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2007-01-02 08:33:20 +0000 |
commit | 420b91db29485df39fd6e724e782c449158811cb (patch) | |
tree | b471a94563af914d3ed3edd3e856d21cb1b69945 /indra/newview/lltextureview.h |
Print done when done.
Diffstat (limited to 'indra/newview/lltextureview.h')
-rw-r--r-- | indra/newview/lltextureview.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/indra/newview/lltextureview.h b/indra/newview/lltextureview.h new file mode 100644 index 0000000000..e832a55211 --- /dev/null +++ b/indra/newview/lltextureview.h @@ -0,0 +1,55 @@ +/** + * @file lltextureview.h + * @brief LLTextureView class header file + * + * Copyright (c) 2001-$CurrentYear$, Linden Research, Inc. + * $License$ + */ + +#ifndef LL_LLTEXTUREVIEW_H +#define LL_LLTEXTUREVIEW_H + +#include "lltexturebar.h" +#include "llcontainerview.h" +#include "linked_lists.h" + +class LLViewerImage; + +class LLTextureView : public LLContainerView +{ +public: + LLTextureView(const std::string& name, const LLRect& rect); + ~LLTextureView(); + + virtual EWidgetType getWidgetType() const; + virtual LLString getWidgetTag() const; + + /*virtual*/ void draw(); + /*virtual*/ BOOL handleMouseDown(S32 x, S32 y, MASK mask); + /*virtual*/ BOOL handleMouseUp(S32 x, S32 y, MASK mask); + /*virtual*/ BOOL handleKey(KEY key, MASK mask, BOOL called_from_parent); + + static void addDebugImage(LLViewerImage* image) { sDebugImages.insert(image); } + static void removeDebugImage(LLViewerImage* image) { sDebugImages.insert(image); } + static void clearDebugImages() { sDebugImages.clear(); } + +private: + BOOL addBar(LLViewerImage *image, BOOL hilight = FALSE); + void removeAllBars(); + +private: + LLTextBox *mInfoTextp; + + std::vector<LLTextureBar*> mTextureBars; + U32 mNumTextureBars; + + LLGLTexMemBar* mGLTexMemBar; + + BOOL mFreezeView; + +public: + static std::set<LLViewerImage*> sDebugImages; +}; + +extern LLTextureView *gTextureView; +#endif // LL_TEXTURE_VIEW_H |