#include <llhoverview.h>
Public Member Functions | |
LLHoverView (const std::string &name, const LLRect &rect) | |
~LLHoverView () | |
void | draw () |
void | updateHover (LLTool *current_tool) |
void | cancelHover () |
void | resetLastHoverObject () |
void | setHoverActive (const BOOL active) |
void | setTyping (BOOL b) |
BOOL | isHovering () const |
BOOL | isHoveringObject () const |
BOOL | isHoveringLand () const |
LLViewerObject * | getLastHoverObject () const |
Static Public Member Functions | |
static void | pickCallback (S32 x, S32 y, MASK mask) |
Static Public Attributes | |
static BOOL | sShowHoverTips = TRUE |
Protected Types | |
typedef std::list< std::string > | text_list_t |
Protected Member Functions | |
void | updateText () |
Protected Attributes | |
LLFrameTimer | mStartHoverTimer |
BOOL | mStartHoverPickTimer |
BOOL | mDoneHoverPick |
BOOL | mHoverActive |
LLCoordGL | mHoverPos |
LLFrameTimer | mHoverTimer |
text_list_t | mText |
BOOL | mUseHover |
LLPointer< LLViewerObject > | mLastHoverObject |
LLVector3d | mHoverLandGlobal |
LLVector3d | mHoverOffset |
BOOL | mTyping |
Definition at line 52 of file llhoverview.h.
typedef std::list<std::string> LLHoverView::text_list_t [protected] |
Definition at line 97 of file llhoverview.h.
LLHoverView::LLHoverView | ( | const std::string & | name, | |
const LLRect & | rect | |||
) |
Definition at line 95 of file llhoverview.cpp.
References LLVector3d::clearVec(), FALSE, mDoneHoverPick, mHoverActive, mHoverOffset, mStartHoverPickTimer, mTyping, mUseHover, and TRUE.
LLHoverView::~LLHoverView | ( | ) |
Definition at line 106 of file llhoverview.cpp.
void LLHoverView::draw | ( | void | ) | [virtual] |
Reimplemented from LLView.
Definition at line 600 of file llhoverview.cpp.
References CLICK_ACTION_NONE, FALSE, gAgent, gColors, LLControlGroup::getColor(), LLFrameTimer::getElapsedTimeF32(), LLSingleton< LLResMgr >::getInstance(), getLastHoverObject(), LLFontGL::getLineHeight(), LLView::getRect(), LLResMgr::getRes(), LLControlGroup::getS32(), LLUI::getUIImage(), LLViewerWindow::getVirtualWindowRect(), LLFontGL::getWidth(), gSavedSettings, gViewerWindow, LLPrimitive::isAvatar(), isHovering(), isHoveringObject(), LLFontGL::LEFT, llfloor(), LLFONT_SANSSERIF_SMALL, llmax(), LOOKAT_TARGET_HOVER, LLRectBase< Type >::mBottom, LLVector3d::mdV, mHoverActive, mHoverOffset, mHoverPos, mHoverTimer, mLastHoverObject, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, mText, LLRectBase< Type >::mTop, LLColor4::mV, LLCoord::mX, LLCoord::mY, LLFontGL::renderUTF8(), S32, LLAgent::setLookAt(), LLView::setRect(), sShowHoverTips, LLFontGL::TOP, LLView::translateIntoRect(), VALPHA, VX, VY, VZ, and LLVector3::zero.
void LLHoverView::updateHover | ( | LLTool * | current_tool | ) |
Definition at line 110 of file llhoverview.cpp.
References LLAgent::cameraMouselook(), cancelHover(), DELAY_BEFORE_SHOW_TIP, gAgent, LLViewerCamera::getAngularVelocityStat(), LLViewerWindow::getCurrentMouseX(), LLViewerWindow::getCurrentMouseY(), LLFrameTimer::getElapsedTimeF32(), LLSingleton< LLViewerCamera >::getInstance(), LLSingleton< LLToolSelectLand >::getInstance(), LLSingleton< LLToolPie >::getInstance(), LLViewerWindow::getMouseVelocityStat(), LLStat::getPrev(), LLViewerCamera::getVelocityStat(), gViewerWindow, LLViewerWindow::hitObjectOrLandGlobalAsync(), mDoneHoverPick, mStartHoverPickTimer, mStartHoverTimer, mText, mTyping, mUseHover, pickCallback(), LLFrameTimer::reset(), TRUE, and updateText().
Referenced by LLViewerWindow::handlePerFrameHover().
void LLHoverView::cancelHover | ( | ) |
Definition at line 188 of file llhoverview.cpp.
References FALSE, LLSingleton< LLSelectMgr >::getInstance(), mDoneHoverPick, mStartHoverPickTimer, mStartHoverTimer, NULL, LLFrameTimer::reset(), setHoverActive(), and LLSelectMgr::setHoverObject().
Referenced by LLViewerWindow::handleKey(), LLViewerWindow::handleMouseDown(), LLViewerWindow::handleMouseUp(), LLViewerWindow::handlePerFrameHover(), LLViewerWindow::handleRightMouseDown(), LLViewerWindow::handleRightMouseUp(), LLViewerWindow::hideCursor(), and updateHover().
void LLHoverView::resetLastHoverObject | ( | ) |
Definition at line 202 of file llhoverview.cpp.
References mLastHoverObject, and NULL.
Referenced by LLToolPie::handleMouseUp().
void LLHoverView::setHoverActive | ( | const BOOL | active | ) |
Definition at line 725 of file llhoverview.cpp.
References LLViewerWindow::getCurrentMouse(), gViewerWindow, mHoverActive, mHoverPos, mHoverTimer, and LLFrameTimer::reset().
Referenced by cancelHover(), and pickCallback().
void LLHoverView::setTyping | ( | BOOL | b | ) |
Definition at line 182 of file llhoverview.cpp.
References mTyping.
Referenced by LLViewerWindow::handleKey(), and LLViewerWindow::handleMouseMove().
BOOL LLHoverView::isHovering | ( | ) | const [inline] |
Definition at line 73 of file llhoverview.h.
References isHoveringLand(), and isHoveringObject().
Referenced by draw().
BOOL LLHoverView::isHoveringObject | ( | ) | const |
Definition at line 747 of file llhoverview.cpp.
References LLPointer< Type >::isNull(), and mLastHoverObject.
Referenced by draw(), and isHovering().
BOOL LLHoverView::isHoveringLand | ( | ) | const |
Definition at line 741 of file llhoverview.cpp.
References LLVector3d::isExactlyZero(), and mHoverLandGlobal.
Referenced by isHovering().
LLViewerObject * LLHoverView::getLastHoverObject | ( | ) | const |
Definition at line 753 of file llhoverview.cpp.
References LLPointer< Type >::isNull(), mLastHoverObject, and NULL.
Referenced by LLTextureView::draw(), draw(), LLToolPie::handleHover(), LLViewerObjectList::updateApparentAngles(), and updateText().
Definition at line 151 of file llhoverview.cpp.
References LLSingleton< LLViewerParcelMgr >::getInstance(), LLSingleton< LLSelectMgr >::getInstance(), gLastHitPosGlobal, gViewerWindow, LLViewerWindow::lastObjectHit(), LLViewerWindow::lastObjectHitOffset(), mDoneHoverPick, mHoverLandGlobal, mHoverOffset, mLastHoverObject, NULL, LLViewerParcelMgr::requestHoverParcelProperties(), setHoverActive(), LLSelectMgr::setHoverObject(), TRUE, and LLVector3d::zero.
Referenced by updateHover().
void LLHoverView::updateText | ( | ) | [protected] |
Definition at line 207 of file llhoverview.cpp.
References DEFAULT_DESC, FALSE, LLViewerObject::flagAllowInventoryAdd(), LLViewerObject::flagHandleTouch(), LLViewerObject::flagPhantom(), LLViewerObject::flagScripted(), LLViewerObject::flagTakesMoney(), LLViewerObject::flagTemporary(), LLSaleInfo::FS_COPY, gAgent, gCacheName, LLParcel::getAllowDamage(), LLParcel::getAllowFly(), LLParcel::getAllowGroupModify(), LLParcel::getAllowGroupScripts(), LLParcel::getAllowModify(), LLParcel::getAllowOtherScripts(), LLParcel::getAllowTerraform(), LLControlGroup::getBOOL(), LLCacheName::getFullName(), LLPermissions::getGroup(), LLCacheName::getGroupName(), LLSelectMgr::getHoverNode(), LLViewerParcelMgr::getHoverParcel(), LLAgent::getID(), LLSingleton< LLViewerParcelMgr >::getInstance(), LLSingleton< LLSelectMgr >::getInstance(), LLParcel::getIsGroupOwned(), getLastHoverObject(), LLPermissions::getMaskEveryone(), LLPermissions::getMaskOwner(), LLParcel::getName(), LLViewerObject::getNVPair(), LLPermissions::getOwner(), LLParcel::getOwnerID(), LLParcel::getParcelFlag(), LLXform::getParent(), LLViewerObject::getRootEdit(), LLParcel::getSalePrice(), LLSaleInfo::getSalePrice(), LLSaleInfo::getSaleType(), LLTrans::getString(), LLNameValue::getString(), gSavedSettings, LLViewerObject::isAttachment(), LLPrimitive::isAvatar(), LLSaleInfo::isForSale(), LLPermissions::isGroupOwned(), LLViewerObject::isHUDAttachment(), LLSelectNode::mDescription, mHoverLandGlobal, LLSelectNode::mName, LLSelectNode::mPermissions, LLSelectNode::mSaleInfo, mText, LLSelectNode::mValid, LLUUID::null, PERM_COPY, PERM_TRANSFER, PF_FOR_SALE, S32, LLViewerObject::usePhysics(), and LLVector3d::zero.
Referenced by updateHover().
LLFrameTimer LLHoverView::mStartHoverTimer [protected] |
BOOL LLHoverView::mStartHoverPickTimer [protected] |
Definition at line 88 of file llhoverview.h.
Referenced by cancelHover(), LLHoverView(), and updateHover().
BOOL LLHoverView::mDoneHoverPick [protected] |
Definition at line 89 of file llhoverview.h.
Referenced by cancelHover(), LLHoverView(), pickCallback(), and updateHover().
BOOL LLHoverView::mHoverActive [protected] |
Definition at line 91 of file llhoverview.h.
Referenced by draw(), LLHoverView(), and setHoverActive().
LLCoordGL LLHoverView::mHoverPos [protected] |
LLFrameTimer LLHoverView::mHoverTimer [protected] |
text_list_t LLHoverView::mText [protected] |
BOOL LLHoverView::mUseHover [protected] |
LLPointer<LLViewerObject> LLHoverView::mLastHoverObject [protected] |
Definition at line 103 of file llhoverview.h.
Referenced by draw(), getLastHoverObject(), isHoveringObject(), pickCallback(), and resetLastHoverObject().
LLVector3d LLHoverView::mHoverLandGlobal [protected] |
Definition at line 106 of file llhoverview.h.
Referenced by isHoveringLand(), pickCallback(), and updateText().
LLVector3d LLHoverView::mHoverOffset [protected] |
Definition at line 107 of file llhoverview.h.
Referenced by draw(), LLHoverView(), and pickCallback().
BOOL LLHoverView::mTyping [protected] |
Definition at line 109 of file llhoverview.h.
Referenced by LLHoverView(), setTyping(), and updateHover().
BOOL LLHoverView::sShowHoverTips = TRUE [static] |
Definition at line 114 of file llhoverview.h.
Referenced by LLAppViewer::cleanupSavedSettings(), draw(), LLViewCheckShowHoverTips::handleEvent(), LLViewShowHoverTips::handleEvent(), and settings_to_globals().