diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/llui/lldraghandle.h | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/llui/lldraghandle.h')
-rw-r--r-- | linden/indra/llui/lldraghandle.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linden/indra/llui/lldraghandle.h b/linden/indra/llui/lldraghandle.h index a48c0f7..cb9924d 100644 --- a/linden/indra/llui/lldraghandle.h +++ b/linden/indra/llui/lldraghandle.h | |||
@@ -45,11 +45,14 @@ class LLDragHandle : public LLView | |||
45 | { | 45 | { |
46 | public: | 46 | public: |
47 | LLDragHandle(const LLString& name, const LLRect& rect, const LLString& title ); | 47 | LLDragHandle(const LLString& name, const LLRect& rect, const LLString& title ); |
48 | virtual ~LLDragHandle() { setTitleBox(NULL); } | ||
48 | 49 | ||
49 | virtual void setValue(const LLSD& value); | 50 | virtual void setValue(const LLSD& value); |
50 | 51 | ||
51 | void setForeground(BOOL b) { mForeground = b; } | 52 | void setForeground(BOOL b) { mForeground = b; } |
53 | BOOL getForeground() const { return mForeground; } | ||
52 | void setMaxTitleWidth(S32 max_width) {mMaxTitleWidth = llmin(max_width, mMaxTitleWidth); } | 54 | void setMaxTitleWidth(S32 max_width) {mMaxTitleWidth = llmin(max_width, mMaxTitleWidth); } |
55 | S32 getMaxTitleWidth() const { return mMaxTitleWidth; } | ||
53 | void setTitleVisible(BOOL visible); | 56 | void setTitleVisible(BOOL visible); |
54 | 57 | ||
55 | virtual void setTitle( const LLString& title ) = 0; | 58 | virtual void setTitle( const LLString& title ) = 0; |
@@ -61,6 +64,10 @@ public: | |||
61 | virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask); | 64 | virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask); |
62 | 65 | ||
63 | protected: | 66 | protected: |
67 | LLTextBox* getTitleBox() const { return mTitleBox; } | ||
68 | void setTitleBox(LLTextBox*); | ||
69 | |||
70 | private: | ||
64 | S32 mDragLastScreenX; | 71 | S32 mDragLastScreenX; |
65 | S32 mDragLastScreenY; | 72 | S32 mDragLastScreenY; |
66 | S32 mLastMouseScreenX; | 73 | S32 mLastMouseScreenX; |