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/lltoolobjpicker.h |
Print done when done.
Diffstat (limited to 'indra/newview/lltoolobjpicker.h')
-rw-r--r-- | indra/newview/lltoolobjpicker.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/indra/newview/lltoolobjpicker.h b/indra/newview/lltoolobjpicker.h new file mode 100644 index 0000000000..cf6e81a5c7 --- /dev/null +++ b/indra/newview/lltoolobjpicker.h @@ -0,0 +1,45 @@ +/** + * @file lltoolobjpicker.h + * @brief LLToolObjPicker class header file + * + * Copyright (c) 2001-$CurrentYear$, Linden Research, Inc. + * $License$ + */ + +#ifndef LL_TOOLOBJPICKER_H +#define LL_TOOLOBJPICKER_H + +#include "lltool.h" +#include "v3math.h" +#include "lluuid.h" + +class LLToolObjPicker : public LLTool +{ +public: + LLToolObjPicker(); + + virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask); + virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask); + virtual BOOL handleHover(S32 x, S32 y, MASK mask); + + virtual void handleSelect(); + virtual void handleDeselect(); + + virtual void onMouseCaptureLost(); + + virtual void setExitCallback(void (*callback)(void *), void *callback_data); + + LLUUID getObjectID() const { return mHitObjectID; } + + static void pickCallback(S32 x, S32 y, MASK mask); + +protected: + BOOL mPicked; + LLUUID mHitObjectID; + void (*mExitCallback)(void *callback_data); + void *mExitCallbackData; +}; + +extern LLToolObjPicker* gToolObjPicker; + +#endif |