QwuiGridLayout Class Reference

A grid layout. This layout can be used to organise child widgets in a table. More...

#include <qwuigridlayout.h>

Inheritance diagram for QwuiGridLayout:
QwuiLayout QwuiLayoutItem

List of all members.

Classes

class  Item

Public Member Functions

 QwuiGridLayout (QwuiWebget *parent, Unit unit=RelativeStrength)
 QwuiGridLayout (Unit unit=RelativeStrength)
virtual ~QwuiGridLayout ()
virtual LayoutType type () const
virtual void insertItem (QwuiLayoutItem *item, int row, int column, int rowSpan=1, int columnSpan=1)
void insertWebget (QwuiWebget *w, int row, int column, int rowSpan=1, int columnSpan=1)
void insertStretch (int row, int column, int rowSpan=1, int columnSpan=1)
virtual void removeItem (QwuiLayoutItem *item)
void setRowSize (int row, int size)
int rowSize (int row)
void setColumnSize (int column, int size)
int columnSize (int column)
int rowCount () const
int columnCount () const
virtual int count () const
virtual int indexOf (QwuiWebget *w) const
QPair< int, int > coordsOf (QwuiLayoutItem *item) const
virtual bool contains (QwuiWebget *w) const
virtual QwuiLayoutItemitemAt (int index) const
virtual QwuiLayoutItemtakeAt (int index)
virtual void render ()

Private Types

typedef QList< ItemItemList
typedef QList< ItemListItemMatrix

Private Member Functions

void expandTo (int rows, int columns)
void reduce ()

Private Attributes

ItemMatrix m_items
QList< int > m_rowSizes
QList< int > m_columnSizes
int m_count

Detailed Description

A grid layout. This layout can be used to organise child widgets in a table.


Member Typedef Documentation

typedef QList<Item> QwuiGridLayout::ItemList [private]
typedef QList<ItemList> QwuiGridLayout::ItemMatrix [private]

Constructor & Destructor Documentation

QwuiGridLayout::QwuiGridLayout ( QwuiWebget parent,
Unit  unit = RelativeStrength 
)
QwuiGridLayout::QwuiGridLayout ( Unit  unit = RelativeStrength  ) 
QwuiGridLayout::~QwuiGridLayout (  )  [virtual]

Member Function Documentation

int QwuiGridLayout::columnCount (  )  const
int QwuiGridLayout::columnSize ( int  column  ) 
bool QwuiGridLayout::contains ( QwuiWebget w  )  const [virtual]

Implements QwuiLayout.

QPair< int, int > QwuiGridLayout::coordsOf ( QwuiLayoutItem item  )  const
int QwuiGridLayout::count (  )  const [virtual]

Implements QwuiLayout.

void QwuiGridLayout::expandTo ( int  rows,
int  columns 
) [private]
int QwuiGridLayout::indexOf ( QwuiWebget w  )  const [virtual]

Implements QwuiLayout.

void QwuiGridLayout::insertItem ( QwuiLayoutItem item,
int  row,
int  column,
int  rowSpan = 1,
int  columnSpan = 1 
) [virtual]
void QwuiGridLayout::insertStretch ( int  row,
int  column,
int  rowSpan = 1,
int  columnSpan = 1 
)
void QwuiGridLayout::insertWebget ( QwuiWebget w,
int  row,
int  column,
int  rowSpan = 1,
int  columnSpan = 1 
)
QwuiLayoutItem * QwuiGridLayout::itemAt ( int  index  )  const [virtual]

Implements QwuiLayout.

void QwuiGridLayout::reduce (  )  [private]
void QwuiGridLayout::removeItem ( QwuiLayoutItem item  )  [virtual]

Implements QwuiLayout.

void QwuiGridLayout::render (  )  [virtual]

Implements QwuiLayout.

int QwuiGridLayout::rowCount (  )  const
int QwuiGridLayout::rowSize ( int  row  ) 
void QwuiGridLayout::setColumnSize ( int  column,
int  size 
)
void QwuiGridLayout::setRowSize ( int  row,
int  size 
)
QwuiLayoutItem * QwuiGridLayout::takeAt ( int  index  )  [virtual]

Implements QwuiLayout.

QwuiLayout::LayoutType QwuiGridLayout::type (  )  const [virtual]

Implements QwuiLayout.


Member Data Documentation

QList<int> QwuiGridLayout::m_columnSizes [private]
int QwuiGridLayout::m_count [private]
QList<int> QwuiGridLayout::m_rowSizes [private]

The documentation for this class was generated from the following files:
Generated on Fri Jun 4 01:18:58 2010 for QtWui : Web User Interfaces for Qt by  doxygen 1.6.3