#include <llhoverview.h>
Inheritance diagram for LLHoverView:
Public Member Functions | |
LLHoverView (const std::string &name, const LLRect &rect) | |
~LLHoverView () | |
virtual EWidgetType | getWidgetType () const |
virtual LLString | getWidgetTag () const |
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 Member Functions | |
void | updateText () |
Protected Attributes | |
LLFrameTimer | mStartHoverTimer |
BOOL | mStartHoverPickTimer |
BOOL | mDoneHoverPick |
BOOL | mHoverActive |
LLCoordGL | mHoverPos |
LLFrameTimer | mHoverTimer |
LLLinkedList< LLString > | mText |
BOOL | mUseHover |
LLPointer< LLViewerObject > | mLastHoverObject |
LLVector3d | mHoverLandGlobal |
LLVector3d | mHoverOffset |
BOOL | mTyping |
Definition at line 52 of file llhoverview.h.
LLHoverView::LLHoverView | ( | const std::string & | name, | |
const LLRect & | rect | |||
) |
Definition at line 93 of file llhoverview.cpp.
References LLVector3d::clearVec(), FALSE, mDoneHoverPick, mHoverActive, mHoverOffset, mStartHoverPickTimer, mTyping, mUseHover, and TRUE.
LLHoverView::~LLHoverView | ( | ) |
void LLHoverView::cancelHover | ( | ) |
Definition at line 198 of file llhoverview.cpp.
References FALSE, gSelectMgr, 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::draw | ( | ) | [virtual] |
Reimplemented from LLView.
Definition at line 635 of file llhoverview.cpp.
References LLViewerImage::bindTexture(), bottom, CLICK_ACTION_NONE, f, FALSE, gAgent, gColors, LLControlGroup::getColor(), LLFrameTimer::getElapsedTimeF32(), LLImageGL::getHeight(), LLViewerImageList::getImage(), getLastHoverObject(), LLFontGL::getLineHeight(), LLResMgr::getRes(), LLControlGroup::getS32(), LLControlGroup::getString(), LLViewerWindow::getVirtualWindowRect(), LLView::getVisible(), LLImageGL::getWidth(), LLFontGL::getWidth(), gImageList, gl_segmented_rect_2d_tex(), glColor4fv, gResMgr, gSavedSettings, gViewerArt, gViewerWindow, LLPrimitive::isAvatar(), isHovering(), isHoveringObject(), LLFontGL::LEFT, left, llfloor(), LLFONT_SANSSERIF_SMALL, llmax(), LOOKAT_TARGET_HOVER, LLRectBase< Type >::mBottom, LLVector3d::mdV, mHoverActive, mHoverOffset, mHoverPos, mHoverTimer, MIPMAP_FALSE, mLastHoverObject, LLRectBase< Type >::mLeft, LLView::mRect, LLRectBase< Type >::mRight, mText, LLRectBase< Type >::mTop, LLColor4::mV, LLCoord::mX, LLCoord::mY, LLFontGL::renderUTF8(), right, S32, LLRectBase< Type >::set(), LLAgent::setLookAt(), sShowHoverTips, LLFontGL::TOP, top, LLView::translateIntoRect(), TRUE, VALPHA, VX, VY, VZ, and LLVector3::zero.
LLViewerObject * LLHoverView::getLastHoverObject | ( | ) | const |
Definition at line 795 of file llhoverview.cpp.
References LLPointer< Type >::isNull(), mLastHoverObject, and NULL.
Referenced by LLTextureView::draw(), draw(), LLToolPie::handleHover(), LLViewerObjectList::updateApparentAngles(), and updateText().
LLString LLHoverView::getWidgetTag | ( | ) | const [virtual] |
EWidgetType LLHoverView::getWidgetType | ( | ) | const [virtual] |
Implements LLView.
Definition at line 110 of file llhoverview.cpp.
References WIDGET_TYPE_HOVER_VIEW.
BOOL LLHoverView::isHovering | ( | ) | const [inline] |
Definition at line 76 of file llhoverview.h.
References isHoveringLand(), and isHoveringObject().
Referenced by draw().
BOOL LLHoverView::isHoveringLand | ( | ) | const |
Definition at line 783 of file llhoverview.cpp.
References LLVector3d::isExactlyZero(), and mHoverLandGlobal.
Referenced by isHovering().
BOOL LLHoverView::isHoveringObject | ( | ) | const |
Definition at line 789 of file llhoverview.cpp.
References LLPointer< Type >::isNull(), and mLastHoverObject.
Referenced by draw(), and isHovering().
Definition at line 161 of file llhoverview.cpp.
References gHoverView, gLastHitPosGlobal, gParcelMgr, gSelectMgr, gViewerWindow, LLViewerWindow::lastObjectHit(), LLViewerWindow::lastObjectHitOffset(), mDoneHoverPick, mHoverLandGlobal, mHoverOffset, mLastHoverObject, NULL, LLViewerParcelMgr::requestHoverParcelProperties(), setHoverActive(), LLSelectMgr::setHoverObject(), TRUE, and LLVector3d::zero.
Referenced by updateHover().
void LLHoverView::resetLastHoverObject | ( | ) |
Definition at line 212 of file llhoverview.cpp.
References mLastHoverObject, and NULL.
Referenced by LLToolPie::handleMouseUp().
Definition at line 767 of file llhoverview.cpp.
References LLViewerWindow::getCurrentMouse(), gViewerWindow, mHoverActive, mHoverPos, mHoverTimer, and LLFrameTimer::reset().
Referenced by cancelHover(), and pickCallback().
Definition at line 192 of file llhoverview.cpp.
References mTyping.
Referenced by LLViewerWindow::handleKey(), and LLViewerWindow::handleMouseMove().
Definition at line 120 of file llhoverview.cpp.
References LLAgent::cameraMouselook(), cancelHover(), DELAY_BEFORE_SHOW_TIP, gAgent, gCamera, LLViewerCamera::getAngularVelocityStat(), LLViewerWindow::getCurrentMouseX(), LLViewerWindow::getCurrentMouseY(), LLFrameTimer::getElapsedTimeF32(), LLViewerWindow::getMouseVelocityStat(), LLStat::getPrev(), LLViewerCamera::getVelocityStat(), gToolParcel, gToolPie, gViewerWindow, LLViewerWindow::hitObjectOrLandGlobalAsync(), mDoneHoverPick, mStartHoverPickTimer, mStartHoverTimer, mText, mTyping, mUseHover, pickCallback(), LLFrameTimer::reset(), TRUE, and updateText().
Referenced by LLViewerWindow::handlePerFrameHover().
void LLHoverView::updateText | ( | ) | [protected] |
Definition at line 217 of file llhoverview.cpp.
References DB_FIRST_NAME_BUF_SIZE, DB_GROUP_NAME_BUF_SIZE, DB_LAST_NAME_BUF_SIZE, 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(), LLPermissions::getGroup(), LLCacheName::getGroupName(), LLSelectMgr::getHoverNode(), LLViewerParcelMgr::getHoverParcel(), LLViewerParcelMgr::getHoverParcelHeight(), LLViewerParcelMgr::getHoverParcelWidth(), LLAgent::getID(), LLParcel::getIsGroupOwned(), getLastHoverObject(), LLPermissions::getMaskEveryone(), LLPermissions::getMaskOwner(), LLParcel::getName(), LLCacheName::getName(), LLViewerObject::getNVPair(), LLPermissions::getOwner(), LLParcel::getOwnerID(), LLParcel::getParcelFlag(), LLXform::getParent(), LLViewerObject::getRootEdit(), LLParcel::getSalePrice(), LLSaleInfo::getSalePrice(), LLSaleInfo::getSaleType(), LLNameValue::getString(), gParcelMgr, gSavedSettings, gSelectMgr, height, LLViewerObject::isAttachment(), LLPrimitive::isAvatar(), LLSaleInfo::isForSale(), LLPermissions::isGroupOwned(), LLViewerObject::isHUDAttachment(), MAX_STRING, LLSelectNode::mDescription, mHoverLandGlobal, LLSelectNode::mName, LLSelectNode::mPermissions, LLSelectNode::mSaleInfo, mText, LLSelectNode::mValid, LLUUID::null, NULL, PERM_COPY, PERM_TRANSFER, LLViewerObject::permCopy(), PF_FOR_SALE, S32, LLViewerObject::usePhysics(), width, and LLVector3d::zero.
Referenced by updateHover().
BOOL LLHoverView::mDoneHoverPick [protected] |
Definition at line 92 of file llhoverview.h.
Referenced by cancelHover(), LLHoverView(), pickCallback(), and updateHover().
BOOL LLHoverView::mHoverActive [protected] |
Definition at line 94 of file llhoverview.h.
Referenced by draw(), LLHoverView(), and setHoverActive().
LLVector3d LLHoverView::mHoverLandGlobal [protected] |
Definition at line 108 of file llhoverview.h.
Referenced by isHoveringLand(), pickCallback(), and updateText().
LLVector3d LLHoverView::mHoverOffset [protected] |
Definition at line 109 of file llhoverview.h.
Referenced by draw(), LLHoverView(), and pickCallback().
LLCoordGL LLHoverView::mHoverPos [protected] |
LLFrameTimer LLHoverView::mHoverTimer [protected] |
LLPointer<LLViewerObject> LLHoverView::mLastHoverObject [protected] |
Definition at line 105 of file llhoverview.h.
Referenced by draw(), getLastHoverObject(), isHoveringObject(), pickCallback(), and resetLastHoverObject().
BOOL LLHoverView::mStartHoverPickTimer [protected] |
Definition at line 91 of file llhoverview.h.
Referenced by cancelHover(), LLHoverView(), and updateHover().
LLFrameTimer LLHoverView::mStartHoverTimer [protected] |
LLLinkedList<LLString> LLHoverView::mText [protected] |
Definition at line 100 of file llhoverview.h.
Referenced by draw(), updateHover(), updateText(), and ~LLHoverView().
BOOL LLHoverView::mTyping [protected] |
Definition at line 111 of file llhoverview.h.
Referenced by LLHoverView(), setTyping(), and updateHover().
BOOL LLHoverView::mUseHover [protected] |
BOOL LLHoverView::sShowHoverTips = TRUE [static] |
Definition at line 116 of file llhoverview.h.
Referenced by cleanup_saved_settings(), draw(), LLViewCheckShowHoverTips::handleEvent(), LLViewShowHoverTips::handleEvent(), and saved_settings_to_globals().