blob: 4392b382a8880b118610acc6899a8b6a0e7ed057 (
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
|
/**
* @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 "llcontainerview.h"
#include "linked_lists.h"
class LLViewerImage;
class LLTextureBar;
class LLGLTexMemBar;
class LLTextureView : public LLContainerView
{
friend class LLTextureBar;
friend class LLGLTexMemBar;
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:
BOOL mFreezeView;
BOOL mOrderFetch;
BOOL mPrintList;
LLTextBox *mInfoTextp;
std::vector<LLTextureBar*> mTextureBars;
U32 mNumTextureBars;
LLGLTexMemBar* mGLTexMemBar;
public:
static std::set<LLViewerImage*> sDebugImages;
};
extern LLTextureView *gTextureView;
#endif // LL_TEXTURE_VIEW_H
|