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

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

Public Member Functions

 LLLayoutStack (eLayoutOrientation orientation)
virtual ~LLLayoutStack ()
void draw ()
LLXMLNodePtr getXML (bool save_children=true) const
void removeCtrl (LLUICtrl *ctrl)
S32 getMinWidth () const
S32 getMinHeight () const
void addPanel (LLPanel *panel, S32 min_width, S32 min_height, BOOL auto_resize, BOOL user_resize, S32 index=S32_MAX)
void removePanel (LLPanel *panel)

Static Public Member Functions

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

Private Types

typedef std::vector
< LLEmbeddedPanel * > 
e_panel_list_t

Private Member Functions

void updateLayout (BOOL force_resize=FALSE)
void calcMinExtents ()
S32 getDefaultHeight (S32 cur_height)
S32 getDefaultWidth (S32 cur_width)
LLEmbeddedPanelfindEmbeddedPanel (LLPanel *panelp) const

Private Attributes

const eLayoutOrientation mOrientation
e_panel_list_t mPanels
S32 mMinWidth
S32 mMinHeight
S32 mPanelSpacing

Classes

struct  LLEmbeddedPanel


Detailed Description

Definition at line 274 of file llpanel.h.


Member Typedef Documentation

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

Definition at line 308 of file llpanel.h.


Member Enumeration Documentation

Enumerator:
HORIZONTAL 
VERTICAL 

Definition at line 277 of file llpanel.h.


Constructor & Destructor Documentation

LLLayoutStack::LLLayoutStack ( eLayoutOrientation  orientation  ) 

Definition at line 1104 of file llpanel.cpp.

Referenced by fromXML().

Here is the caller graph for this function:

LLLayoutStack::~LLLayoutStack (  )  [virtual]

Definition at line 1112 of file llpanel.cpp.

References mPanels.


Member Function Documentation

void LLLayoutStack::draw ( void   )  [virtual]

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

Reimplemented from LLView.

Definition at line 1162 of file llpanel.cpp.

References LLView::getXML().

Here is the call graph for this function:

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

Reimplemented from LLView.

Definition at line 1145 of file llpanel.cpp.

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

Here is the call graph for this function:

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

S32 LLLayoutStack::getMinWidth (  )  const [inline]

Definition at line 292 of file llpanel.h.

References mMinWidth.

S32 LLLayoutStack::getMinHeight (  )  const [inline]

Definition at line 293 of file llpanel.h.

References mMinHeight.

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

Definition at line 1273 of file llpanel.cpp.

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

Referenced by fromXML().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLayoutStack::removePanel ( LLPanel panel  ) 

Definition at line 1292 of file llpanel.cpp.

References LLView::removeChild().

Here is the call graph for this function:

void LLLayoutStack::updateLayout ( BOOL  force_resize = FALSE  )  [private]

void LLLayoutStack::calcMinExtents (  )  [private]

Definition at line 1583 of file llpanel.cpp.

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

Referenced by removeCtrl(), and updateLayout().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLLayoutStack::getDefaultHeight ( S32  cur_height  )  [private]

Definition at line 1249 of file llpanel.cpp.

References LLView::getRect(), HORIZONTAL, llmax(), mMinHeight, and mOrientation.

Referenced by updateLayout().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLLayoutStack::getDefaultWidth ( S32  cur_width  )  [private]

Definition at line 1261 of file llpanel.cpp.

References LLView::getRect(), llmax(), mMinWidth, mOrientation, and VERTICAL.

Referenced by updateLayout().

Here is the call graph for this function:

Here is the caller graph for this function:

LLLayoutStack::LLEmbeddedPanel * LLLayoutStack::findEmbeddedPanel ( LLPanel panelp  )  const [private]

Definition at line 1570 of file llpanel.cpp.

References mPanels, and NULL.

Referenced by removeCtrl().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 312 of file llpanel.h.

Referenced by calcMinExtents(), getDefaultWidth(), and getMinWidth().

Definition at line 313 of file llpanel.h.

Referenced by calcMinExtents(), getDefaultHeight(), and getMinHeight().

Definition at line 314 of file llpanel.h.

Referenced by calcMinExtents(), fromXML(), and updateLayout().


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

Generated on Fri May 16 08:51:23 2008 for SecondLife by  doxygen 1.5.5