diff options
Diffstat (limited to 'linden/indra/llui/llresizebar.h')
-rw-r--r-- | linden/indra/llui/llresizebar.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/linden/indra/llui/llresizebar.h b/linden/indra/llui/llresizebar.h index 11fca9d..5446811 100644 --- a/linden/indra/llui/llresizebar.h +++ b/linden/indra/llui/llresizebar.h | |||
@@ -42,18 +42,19 @@ public: | |||
42 | 42 | ||
43 | LLResizeBar(const LLString& name, LLView* resizing_view, const LLRect& rect, S32 min_size, S32 max_size, Side side ); | 43 | LLResizeBar(const LLString& name, LLView* resizing_view, const LLRect& rect, S32 min_size, S32 max_size, Side side ); |
44 | 44 | ||
45 | virtual EWidgetType getWidgetType() const; | 45 | virtual EWidgetType getWidgetType() const { return WIDGET_TYPE_RESIZE_BAR; } |
46 | virtual LLString getWidgetTag() const; | 46 | virtual LLString getWidgetTag() const { return LL_RESIZE_BAR_TAG; } |
47 | 47 | ||
48 | // virtual void draw(); No appearance | 48 | // virtual void draw(); No appearance |
49 | virtual BOOL handleHover(S32 x, S32 y, MASK mask); | 49 | virtual BOOL handleHover(S32 x, S32 y, MASK mask); |
50 | virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask); | 50 | virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask); |
51 | virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask); | 51 | virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask); |
52 | virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask); | ||
52 | 53 | ||
53 | void setResizeLimits( S32 min_size, S32 max_size ) { mMinSize = min_size; mMaxSize = max_size; } | 54 | void setResizeLimits( S32 min_size, S32 max_size ) { mMinSize = min_size; mMaxSize = max_size; } |
54 | void setEnableSnapping(BOOL enable) { mSnappingEnabled = enable; } | 55 | void setEnableSnapping(BOOL enable) { mSnappingEnabled = enable; } |
55 | 56 | ||
56 | protected: | 57 | private: |
57 | S32 mDragLastScreenX; | 58 | S32 mDragLastScreenX; |
58 | S32 mDragLastScreenY; | 59 | S32 mDragLastScreenY; |
59 | S32 mLastMouseScreenX; | 60 | S32 mLastMouseScreenX; |
@@ -61,13 +62,11 @@ protected: | |||
61 | LLCoordGL mLastMouseDir; | 62 | LLCoordGL mLastMouseDir; |
62 | S32 mMinSize; | 63 | S32 mMinSize; |
63 | S32 mMaxSize; | 64 | S32 mMaxSize; |
64 | Side mSide; | 65 | const Side mSide; |
65 | BOOL mSnappingEnabled; | 66 | BOOL mSnappingEnabled; |
66 | LLView* mResizingView; | 67 | LLView* mResizingView; |
67 | }; | 68 | }; |
68 | 69 | ||
69 | const S32 RESIZE_BAR_HEIGHT = 3; | ||
70 | |||
71 | #endif // LL_RESIZEBAR_H | 70 | #endif // LL_RESIZEBAR_H |
72 | 71 | ||
73 | 72 | ||