diff options
author | Oz Linden <oz@lindenlab.com> | 2014-10-13 17:13:15 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2014-10-13 17:13:15 -0400 |
commit | 852426d71e5b192a003d01d128799c2b702c69b1 (patch) | |
tree | 66a31f735c3dd92f557a9026cf359ef000d548e9 /indra/newview/lltoolcomp.h | |
parent | 08a4d7a27743792a644c46f8163d973d0524cd79 (diff) | |
parent | 788ce7a8cdbbbf98566ce75ec281ec00c21dc6d8 (diff) |
merge changes for 3.7.17-release
Diffstat (limited to 'indra/newview/lltoolcomp.h')
-rwxr-xr-x | indra/newview/lltoolcomp.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/indra/newview/lltoolcomp.h b/indra/newview/lltoolcomp.h index bbb5ed5797..e75d3c22e2 100755 --- a/indra/newview/lltoolcomp.h +++ b/indra/newview/lltoolcomp.h @@ -62,7 +62,7 @@ public: virtual BOOL clipMouseWhenDown() { return mCur->clipMouseWhenDown(); } virtual void handleSelect(); - virtual void handleDeselect() { mCur->handleDeselect(); mCur = mDefault; mSelected = FALSE; } + virtual void handleDeselect(); virtual void render() { mCur->render(); } virtual void draw() { mCur->draw(); } @@ -78,9 +78,10 @@ public: { mCur->localPointToScreen(local_x, local_y, screen_x, screen_y); } BOOL isSelecting(); + LLTool* getCurrentTool() { return mCur; } + protected: void setCurrentTool( LLTool* new_tool ); - LLTool* getCurrentTool() { return mCur; } // In hover handler, call this to auto-switch tools void setToolFromMask( MASK mask, LLTool *normal ); @@ -108,9 +109,18 @@ public: // Overridden from LLToolComposite virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask); + virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask); virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask); + virtual BOOL handleKey(KEY key, MASK mask); + virtual void onMouseCaptureLost(); + void keyUp(KEY key, MASK mask); static void pickCallback(const LLPickInfo& pick_info); + + BOOL isToolCameraActive() const { return mIsToolCameraActive; } + +private: + BOOL mIsToolCameraActive; }; //----------------------------------------------------------------------- |