LLLayoutStack Class Reference

#include <llpanel.h>

Inheritance diagram for LLLayoutStack:

Inheritance graph
[legend]
Collaboration diagram for LLLayoutStack:

Collaboration graph
[legend]
List of all members.

Public Types

typedef enum LLLayoutStack::e_layout_orientation eLayoutOrientation
 HORIZONTAL
 VERTICAL
enum  e_layout_orientation { HORIZONTAL, VERTICAL }

Public Member Functions

 LLLayoutStack (eLayoutOrientation orientation)
virtual ~LLLayoutStack ()
void draw ()
void reshape (S32 width, S32 height, BOOL called_from_parent)
LLXMLNodePtr getXML (bool save_children=true) const
void removeCtrl (LLUICtrl *ctrl)
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
S32 getMinWidth ()
S32 getMinHeight ()
void addPanel (LLPanel *panel, S32 min_width, S32 min_height, BOOL auto_resize, S32 index=S32_MAX)
void removePanel (LLPanel *panel)
void updateLayout (BOOL force_resize=FALSE)

Static Public Member Functions

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

Protected Types

typedef std::vector< LLEmbeddedPanel * > e_panel_list_t

Protected Member Functions

LLEmbeddedPanelfindEmbeddedPanel (LLPanel *panelp)
void calcMinExtents ()
S32 getMinStackSize ()
S32 getCurStackSize ()

Protected Attributes

eLayoutOrientation mOrientation
e_panel_list_t mPanels
S32 mMinWidth
S32 mMinHeight

Classes

struct  LLEmbeddedPanel

Detailed Description

Definition at line 266 of file llpanel.h.


Member Typedef Documentation

typedef std::vector<LLEmbeddedPanel*> LLLayoutStack::e_panel_list_t [protected]

Definition at line 305 of file llpanel.h.

typedef enum LLLayoutStack::e_layout_orientation LLLayoutStack::eLayoutOrientation


Member Enumeration Documentation

enum LLLayoutStack::e_layout_orientation

Enumerator:
HORIZONTAL 
VERTICAL 

Definition at line 269 of file llpanel.h.


Constructor & Destructor Documentation

LLLayoutStack::LLLayoutStack ( eLayoutOrientation  orientation  ) 

Definition at line 1196 of file llpanel.cpp.

Referenced by fromXML().

LLLayoutStack::~LLLayoutStack (  )  [virtual]

Definition at line 1203 of file llpanel.cpp.


Member Function Documentation

void LLLayoutStack::addPanel ( LLPanel panel,
S32  min_width,
S32  min_height,
BOOL  auto_resize,
S32  index = S32_MAX 
)

Definition at line 1320 of file llpanel.cpp.

References LLView::addChild(), FALSE, llclamp(), mOrientation, mPanels, LLLayoutStack::LLEmbeddedPanel::mResizeBar, S32, LLView::sendChildToFront(), LLView::setEnabled(), and TRUE.

Referenced by fromXML().

void LLLayoutStack::calcMinExtents (  )  [protected]

Definition at line 1606 of file llpanel.cpp.

References HORIZONTAL, llmax(), mMinHeight, mMinWidth, mOrientation, mPanels, and PANEL_STACK_GAP.

Referenced by removeCtrl(), and updateLayout().

void LLLayoutStack::draw (  )  [virtual]

Reimplemented from LLView.

Definition at line 1207 of file llpanel.cpp.

References LLView::drawChild(), LLRectBase< Type >::getHeight(), LLView::getLocalRect(), LLRectBase< Type >::getWidth(), HORIZONTAL, llround(), mMinHeight, mMinWidth, mOrientation, mPanels, LLView::mRect, and updateLayout().

LLLayoutStack::LLEmbeddedPanel * LLLayoutStack::findEmbeddedPanel ( LLPanel panelp  )  [protected]

Definition at line 1593 of file llpanel.cpp.

References mPanels, and NULL.

Referenced by removeCtrl().

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

Definition at line 1261 of file llpanel.cpp.

References addPanel(), LLPanel::fromXML(), HORIZONTAL, LLView::initFromXML(), llendl, LLLayoutStack(), llwarns, LLPointer< Type >::notNull(), S32, LLView::setFollowsNone(), TRUE, and VERTICAL.

S32 LLLayoutStack::getCurStackSize (  )  [protected]

S32 LLLayoutStack::getMinHeight (  ) 

Definition at line 1315 of file llpanel.cpp.

References mMinHeight.

S32 LLLayoutStack::getMinStackSize (  )  [protected]

S32 LLLayoutStack::getMinWidth (  ) 

Definition at line 1310 of file llpanel.cpp.

References mMinWidth.

virtual LLString LLLayoutStack::getWidgetTag (  )  const [inline, virtual]

Implements LLView.

Definition at line 283 of file llpanel.h.

References LL_LAYOUT_STACK_TAG.

virtual EWidgetType LLLayoutStack::getWidgetType (  )  const [inline, virtual]

Implements LLView.

Definition at line 282 of file llpanel.h.

References WIDGET_TYPE_LAYOUT_STACK.

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

Reimplemented from LLView.

Definition at line 1254 of file llpanel.cpp.

References LLView::getXML().

void LLLayoutStack::removeCtrl ( LLUICtrl ctrl  )  [virtual]

Reimplemented from LLView.

Definition at line 1233 of file llpanel.cpp.

References calcMinExtents(), findEmbeddedPanel(), mPanels, and LLView::removeCtrl().

void LLLayoutStack::removePanel ( LLPanel panel  ) 

Definition at line 1351 of file llpanel.cpp.

References LLView::removeChild().

void LLLayoutStack::reshape ( S32  width,
S32  height,
BOOL  called_from_parent 
) [virtual]

Reimplemented from LLView.

Definition at line 1248 of file llpanel.cpp.

References LLView::reshape().

void LLLayoutStack::updateLayout ( BOOL  force_resize = FALSE  ) 

Definition at line 1357 of file llpanel.cpp.

References calcMinExtents(), FALSE, LLRectBase< Type >::getHeight(), LLCriticalDamp::getInterpolant(), LLRectBase< Type >::getWidth(), HORIZONTAL, lerp(), llassert_always, llmax(), llround(), LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, mMinHeight, mMinWidth, mOrientation, mPanels, LLView::mRect, LLRectBase< Type >::mRight, LLRectBase< Type >::mTop, NULL, PANEL_STACK_GAP, RESIZE_BAR_OVERLAP, S32, LLView::setVisible(), TRUE, and VERTICAL.

Referenced by draw().


Member Data Documentation

S32 LLLayoutStack::mMinHeight [protected]

Definition at line 309 of file llpanel.h.

Referenced by calcMinExtents(), draw(), getMinHeight(), and updateLayout().

S32 LLLayoutStack::mMinWidth [protected]

Definition at line 308 of file llpanel.h.

Referenced by calcMinExtents(), draw(), getMinWidth(), and updateLayout().

eLayoutOrientation LLLayoutStack::mOrientation [protected]

Definition at line 303 of file llpanel.h.

Referenced by addPanel(), calcMinExtents(), draw(), and updateLayout().

e_panel_list_t LLLayoutStack::mPanels [protected]

Definition at line 306 of file llpanel.h.

Referenced by addPanel(), calcMinExtents(), draw(), findEmbeddedPanel(), removeCtrl(), and updateLayout().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:27 2010 for Second Life Viewer by  doxygen 1.4.7