LLScrollableContainerView Class Reference

#include <llscrollcontainer.h>

Inheritance diagram for LLScrollableContainerView:

Inheritance graph
[legend]
Collaboration diagram for LLScrollableContainerView:

Collaboration graph
[legend]

List of all members.

Public Types

enum  SCROLL_ORIENTATION { VERTICAL, HORIZONTAL, SCROLLBAR_COUNT }

Public Member Functions

 LLScrollableContainerView (const LLString &name, const LLRect &rect, LLView *scrolled_view, BOOL is_opaque=FALSE, const LLColor4 &bg_color=LLColor4(0, 0, 0, 0))
 LLScrollableContainerView (const LLString &name, const LLRect &rect, LLUICtrl *scrolled_ctrl, BOOL is_opaque=FALSE, const LLColor4 &bg_color=LLColor4(0, 0, 0, 0))
virtual ~LLScrollableContainerView (void)
void setScrolledView (LLView *view)
virtual void setValue (const LLSD &value)
void calcVisibleSize (S32 *visible_width, S32 *visible_height, BOOL *show_h_scrollbar, BOOL *show_v_scrollbar) const
void calcVisibleSize (const LLRect &doc_rect, S32 *visible_width, S32 *visible_height, BOOL *show_h_scrollbar, BOOL *show_v_scrollbar) const
void setBorderVisible (BOOL b)
void scrollToShowRect (const LLRect &rect, const LLCoordGL &desired_offset)
void setReserveScrollCorner (BOOL b)
const LLRectgetScrolledViewRect () const
void pageUp (S32 overlap=0)
void pageDown (S32 overlap=0)
void goToTop ()
void goToBottom ()
S32 getBorderWidth () const
BOOL needsToScroll (S32 x, S32 y, SCROLL_ORIENTATION axis) const
virtual void reshape (S32 width, S32 height, BOOL called_from_parent=TRUE)
virtual BOOL handleKeyHere (KEY key, MASK mask)
virtual BOOL handleScrollWheel (S32 x, S32 y, S32 clicks)
virtual BOOL handleDragAndDrop (S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, LLString &tooltip_msg)
virtual BOOL handleToolTip (S32 x, S32 y, LLString &msg, LLRect *sticky_rect)
virtual void draw ()
virtual LLXMLNodePtr getXML (bool save_children=true) const

Static Public Member Functions

static LLViewfromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory)

Private Member Functions

void init ()
virtual void scrollHorizontal (S32 new_pos)
virtual void scrollVertical (S32 new_pos)
void updateScroll ()

Private Attributes

LLScrollbarmScrollbar [SCROLLBAR_COUNT]
LLViewmScrolledView
S32 mSize
BOOL mIsOpaque
LLColor4 mBackgroundColor
LLRect mInnerRect
LLViewBordermBorder
BOOL mReserveScrollCorner
BOOL mAutoScrolling
F32 mAutoScrollRate


Detailed Description

Definition at line 55 of file llscrollcontainer.h.


Member Enumeration Documentation

Enumerator:
VERTICAL 
HORIZONTAL 
SCROLLBAR_COUNT 

Definition at line 60 of file llscrollcontainer.h.


Constructor & Destructor Documentation

LLScrollableContainerView::LLScrollableContainerView ( const LLString name,
const LLRect rect,
LLView scrolled_view,
BOOL  is_opaque = FALSE,
const LLColor4 bg_color = LLColor4(0,0,0,0) 
)

Definition at line 67 of file llscrollcontainer.cpp.

References LLView::addChild(), init(), and mScrolledView.

Referenced by fromXML().

Here is the call graph for this function:

Here is the caller graph for this function:

LLScrollableContainerView::LLScrollableContainerView ( const LLString name,
const LLRect rect,
LLUICtrl scrolled_ctrl,
BOOL  is_opaque = FALSE,
const LLColor4 bg_color = LLColor4(0,0,0,0) 
)

Definition at line 89 of file llscrollcontainer.cpp.

References LLView::addChild(), and init().

Here is the call graph for this function:

LLScrollableContainerView::~LLScrollableContainerView ( void   )  [virtual]

Definition at line 152 of file llscrollcontainer.cpp.

References i, mScrollbar, mScrolledView, NULL, S32, and SCROLLBAR_COUNT.


Member Function Documentation

void LLScrollableContainerView::setScrolledView ( LLView view  )  [inline]

Definition at line 70 of file llscrollcontainer.h.

References mScrolledView.

Referenced by LLFloaterCustomize::initScrollingPanelList().

Here is the caller graph for this function:

virtual void LLScrollableContainerView::setValue ( const LLSD value  )  [inline, virtual]

Reimplemented from LLView.

Definition at line 72 of file llscrollcontainer.h.

References mInnerRect, and LLRectBase< Type >::setValue().

Here is the call graph for this function:

void LLScrollableContainerView::calcVisibleSize ( S32 visible_width,
S32 visible_height,
BOOL show_h_scrollbar,
BOOL show_v_scrollbar 
) const

Definition at line 370 of file llscrollcontainer.cpp.

References LLView::getRect(), and mScrolledView.

Referenced by LLFolderView::arrange(), draw(), LLFolderView::reshape(), LLContainerView::reshape(), reshape(), scrollToShowRect(), LLFolderView::startRenamingSelectedItem(), and updateScroll().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScrollableContainerView::calcVisibleSize ( const LLRect doc_rect,
S32 visible_width,
S32 visible_height,
BOOL show_h_scrollbar,
BOOL show_v_scrollbar 
) const

void LLScrollableContainerView::setBorderVisible ( BOOL  b  ) 

Definition at line 577 of file llscrollcontainer.cpp.

References mBorder, and LLView::setVisible().

Here is the call graph for this function:

void LLScrollableContainerView::scrollToShowRect ( const LLRect rect,
const LLCoordGL desired_offset 
)

void LLScrollableContainerView::setReserveScrollCorner ( BOOL  b  )  [inline]

Definition at line 79 of file llscrollcontainer.h.

References mReserveScrollCorner.

Referenced by LLFloaterPermissionsMgr::LLFloaterPermissionsMgr(), and LLInventoryPanel::postBuild().

Here is the caller graph for this function:

const LLRect& LLScrollableContainerView::getScrolledViewRect (  )  const [inline]

Definition at line 80 of file llscrollcontainer.h.

References LLView::getRect(), and mScrolledView.

Here is the call graph for this function:

void LLScrollableContainerView::pageUp ( S32  overlap = 0  ) 

Definition at line 652 of file llscrollcontainer.cpp.

References mScrollbar, LLScrollbar::pageUp(), and VERTICAL.

Referenced by LLFolderView::handleKeyHere().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScrollableContainerView::pageDown ( S32  overlap = 0  ) 

Definition at line 657 of file llscrollcontainer.cpp.

References mScrollbar, LLScrollbar::pageDown(), and VERTICAL.

Referenced by LLFolderView::handleKeyHere().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScrollableContainerView::goToTop (  ) 

Definition at line 662 of file llscrollcontainer.cpp.

References mScrollbar, LLScrollbar::setDocPos(), and VERTICAL.

Referenced by LLFolderView::handleKeyHere().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScrollableContainerView::goToBottom (  ) 

Definition at line 667 of file llscrollcontainer.cpp.

References mScrollbar, LLScrollbar::setDocPos(), and VERTICAL.

Referenced by LLFolderView::handleKeyHere().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLScrollableContainerView::getBorderWidth (  )  const

Definition at line 672 of file llscrollcontainer.cpp.

References LLViewBorder::getBorderWidth(), and mBorder.

Referenced by LLFolderView::scrollToShowItem().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLScrollableContainerView::needsToScroll ( S32  x,
S32  y,
LLScrollableContainerView::SCROLL_ORIENTATION  axis 
) const

Definition at line 245 of file llscrollcontainer.cpp.

References FALSE, LLScrollbar::getDocPos(), LLRectBase< Type >::getHeight(), LLView::getVisible(), LLRectBase< Type >::getWidth(), mInnerRect, mScrollbar, S32, SCROLLBAR_SIZE, and TRUE.

Referenced by LLInventoryView::handleDragAndDrop().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScrollableContainerView::reshape ( S32  width,
S32  height,
BOOL  called_from_parent = TRUE 
) [virtual]

BOOL LLScrollableContainerView::handleKeyHere ( KEY  key,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 215 of file llscrollcontainer.cpp.

References FALSE, i, mScrollbar, S32, SCROLLBAR_COUNT, and TRUE.

BOOL LLScrollableContainerView::handleScrollWheel ( S32  x,
S32  y,
S32  clicks 
) [virtual]

Reimplemented from LLView.

Definition at line 228 of file llscrollcontainer.cpp.

References i, mScrollbar, S32, SCROLLBAR_COUNT, and TRUE.

Referenced by LLFolderView::handleScrollWheel().

Here is the caller graph for this function:

BOOL LLScrollableContainerView::handleDragAndDrop ( S32  x,
S32  y,
MASK  mask,
BOOL  drop,
EDragAndDropType  cargo_type,
void *  cargo_data,
EAcceptance accept,
LLString tooltip_msg 
) [virtual]

BOOL LLScrollableContainerView::handleToolTip ( S32  x,
S32  y,
LLString msg,
LLRect sticky_rect 
) [virtual]

Reimplemented from LLView.

Definition at line 343 of file llscrollcontainer.cpp.

References LLView::getRect(), LLView::handleToolTip(), i, LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, mScrollbar, mScrolledView, S32, SCROLLBAR_COUNT, and TRUE.

Here is the call graph for this function:

void LLScrollableContainerView::draw ( void   )  [virtual]

LLXMLNodePtr LLScrollableContainerView::getXML ( bool  save_children = true  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 683 of file llscrollcontainer.cpp.

References LLView::getXML(), mBackgroundColor, mIsOpaque, mScrolledView, LLColor4::mV, and TRUE.

Here is the call graph for this function:

LLView * LLScrollableContainerView::fromXML ( LLXMLNodePtr  node,
LLView parent,
LLUICtrlFactory factory 
) [static]

void LLScrollableContainerView::init ( void   )  [private]

void LLScrollableContainerView::scrollHorizontal ( S32  new_pos  )  [private, virtual]

Definition at line 165 of file llscrollcontainer.cpp.

References LLView::getRect(), mInnerRect, LLRectBase< Type >::mLeft, mScrolledView, S32, and LLView::translate().

Referenced by updateScroll().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScrollableContainerView::scrollVertical ( S32  new_pos  )  [private, virtual]

Definition at line 177 of file llscrollcontainer.cpp.

References LLView::getRect(), mInnerRect, mScrolledView, LLRectBase< Type >::mTop, S32, and LLView::translate().

Referenced by updateScroll().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScrollableContainerView::updateScroll (  )  [private]


Member Data Documentation

Definition at line 115 of file llscrollcontainer.h.

Definition at line 116 of file llscrollcontainer.h.

Referenced by draw(), and getXML().

Definition at line 117 of file llscrollcontainer.h.

Referenced by draw(), and getXML().

Definition at line 120 of file llscrollcontainer.h.

Referenced by setReserveScrollCorner(), and updateScroll().

Definition at line 121 of file llscrollcontainer.h.

Referenced by draw(), and handleDragAndDrop().

Definition at line 122 of file llscrollcontainer.h.

Referenced by draw(), and handleDragAndDrop().


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

Generated on Fri May 16 09:02:32 2008 for SecondLife by  doxygen 1.5.5