LLDragHandle Class Reference

#include <lldraghandle.h>

Inheritance diagram for LLDragHandle:

Inheritance graph
[legend]
Collaboration diagram for LLDragHandle:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLDragHandle (const LLString &name, const LLRect &rect, const LLString &title)
virtual ~LLDragHandle ()
virtual void setValue (const LLSD &value)
void setForeground (BOOL b)
BOOL getForeground () const
void setMaxTitleWidth (S32 max_width)
S32 getMaxTitleWidth () const
void setTitleVisible (BOOL visible)
virtual void setTitle (const LLString &title)=0
virtual const LLStringgetTitle () const =0
virtual BOOL handleHover (S32 x, S32 y, MASK mask)
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleMouseUp (S32 x, S32 y, MASK mask)

Protected Member Functions

LLTextBoxgetTitleBox () const
void setTitleBox (LLTextBox *)

Private Attributes

S32 mDragLastScreenX
S32 mDragLastScreenY
S32 mLastMouseScreenX
S32 mLastMouseScreenY
LLCoordGL mLastMouseDir
LLColor4 mDragHighlightColor
LLColor4 mDragShadowColor
LLTextBoxmTitleBox
S32 mMaxTitleWidth
BOOL mForeground

Static Private Attributes

static S32 sSnapMargin = 5


Detailed Description

Definition at line 44 of file lldraghandle.h.


Constructor & Destructor Documentation

LLDragHandle::LLDragHandle ( const LLString name,
const LLRect rect,
const LLString title 
)

Definition at line 58 of file lldraghandle.cpp.

References LLControlGroup::getS32(), LLUI::sConfigGroup, LLView::setSaveToXML(), and sSnapMargin.

Here is the call graph for this function:

virtual LLDragHandle::~LLDragHandle (  )  [inline, virtual]

Definition at line 48 of file lldraghandle.h.

References NULL, and setTitleBox().

Here is the call graph for this function:


Member Function Documentation

void LLDragHandle::setValue ( const LLSD value  )  [virtual]

Reimplemented from LLView.

Definition at line 367 of file lldraghandle.cpp.

References LLSD::asString(), and setTitle().

Here is the call graph for this function:

void LLDragHandle::setForeground ( BOOL  b  )  [inline]

Definition at line 52 of file lldraghandle.h.

References mForeground.

Referenced by LLFloater::setForeground().

Here is the caller graph for this function:

BOOL LLDragHandle::getForeground (  )  const [inline]

Definition at line 53 of file lldraghandle.h.

References mForeground.

Referenced by LLDragHandleLeft::draw(), and LLDragHandleTop::draw().

Here is the caller graph for this function:

void LLDragHandle::setMaxTitleWidth ( S32  max_width  )  [inline]

Definition at line 54 of file lldraghandle.h.

References llmin(), and mMaxTitleWidth.

Referenced by LLFloater::updateButtons().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLDragHandle::getMaxTitleWidth (  )  const [inline]

Definition at line 55 of file lldraghandle.h.

References mMaxTitleWidth.

Referenced by LLDragHandleTop::reshapeTitleBox().

Here is the caller graph for this function:

void LLDragHandle::setTitleVisible ( BOOL  visible  ) 

Definition at line 75 of file lldraghandle.cpp.

References mTitleBox, and LLView::setVisible().

Referenced by LLFloater::setIsChrome(), and LLFloater::setTitleVisible().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void LLDragHandle::setTitle ( const LLString title  )  [pure virtual]

Implemented in LLDragHandleTop, and LLDragHandleLeft.

Referenced by LLFloater::setTitle(), and setValue().

Here is the caller graph for this function:

virtual const LLString& LLDragHandle::getTitle (  )  const [pure virtual]

Implemented in LLDragHandleTop, and LLDragHandleLeft.

Referenced by LLFloater::getShortTitle(), and LLFloater::getTitle().

Here is the caller graph for this function:

BOOL LLDragHandle::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLDragHandle::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 275 of file lldraghandle.cpp.

References gFocusMgr, LLView::localPointToScreen(), mDragLastScreenX, mDragLastScreenY, mLastMouseScreenX, mLastMouseScreenY, LLFocusMgr::setMouseCapture(), and TRUE.

Referenced by LLFloater::handleMouseDown().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLDragHandle::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 290 of file lldraghandle.cpp.

References gFocusMgr, LLView::hasMouseCapture(), NULL, LLFocusMgr::setMouseCapture(), and TRUE.

Here is the call graph for this function:

LLTextBox* LLDragHandle::getTitleBox (  )  const [inline, protected]

Definition at line 66 of file lldraghandle.h.

References mTitleBox.

Referenced by LLDragHandleLeft::draw(), LLDragHandleTop::draw(), LLDragHandleTop::getTitle(), and LLDragHandleTop::reshapeTitleBox().

Here is the caller graph for this function:

void LLDragHandle::setTitleBox ( LLTextBox titlebox  )  [protected]

Definition at line 83 of file lldraghandle.cpp.

References LLView::addChild(), mTitleBox, and LLView::removeChild().

Referenced by LLDragHandleLeft::setTitle(), LLDragHandleTop::setTitle(), and ~LLDragHandle().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 70 of file lldraghandle.h.

Referenced by handleHover(), and handleMouseDown().

Definition at line 71 of file lldraghandle.h.

Referenced by handleHover(), and handleMouseDown().

Definition at line 72 of file lldraghandle.h.

Referenced by handleHover(), and handleMouseDown().

Definition at line 73 of file lldraghandle.h.

Referenced by handleHover(), and handleMouseDown().

Definition at line 74 of file lldraghandle.h.

Referenced by handleHover().

Definition at line 75 of file lldraghandle.h.

Definition at line 76 of file lldraghandle.h.

Definition at line 77 of file lldraghandle.h.

Referenced by getTitleBox(), setTitleBox(), and setTitleVisible().

Definition at line 78 of file lldraghandle.h.

Referenced by getMaxTitleWidth(), and setMaxTitleWidth().

Definition at line 79 of file lldraghandle.h.

Referenced by getForeground(), and setForeground().

S32 LLDragHandle::sSnapMargin = 5 [static, private]

Definition at line 82 of file lldraghandle.h.

Referenced by handleHover(), and LLDragHandle().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:43:50 2008 for SecondLife by  doxygen 1.5.5