Kexi API Documentation (2.0 alpha)

KexiFlowLayout Class Reference

#include <kexiflowlayout.h>

Inheritance diagram for KexiFlowLayout:

QLayout List of all members.

Detailed Description

a special "flow" layout

Definition at line 27 of file kexiflowlayout.h.

Public Member Functions

 KexiFlowLayout (QWidget *parent, int border=0, int space=-1, const char *name=0)
 KexiFlowLayout (QLayout *parent, int space=-1, const char *name=0)
 KexiFlowLayout (int space=-1, const char *name=0)
 ~KexiFlowLayout ()
QPtrList< QWidget > * widgetList () const
void setOrientation (Orientation orientation)
Qt::Orientation orientation () const
void setJustified (bool justify)
bool isJustified () const
virtual void addItem (QLayoutItem *item)
virtual void addSpacing (int size)
virtual QLayoutIterator iterator ()
virtual void invalidate ()
virtual bool hasHeightForWidth () const
virtual int heightForWidth (int width) const
virtual QSize sizeHint () const
virtual QSize minimumSize () const
virtual QSizePolicy::ExpandData expanding () const
virtual bool isEmpty ()

Protected Member Functions

virtual void setGeometry (const QRect &)
int simulateLayout (const QRect &r)
int doHorizontalLayout (const QRect &, bool testonly=false)
int doVerticalLayout (const QRect &, bool testonly=false)


Constructor & Destructor Documentation

KexiFlowLayout::KexiFlowLayout QWidget parent,
int  border = 0,
int  space = -1,
const char *  name = 0
 

Definition at line 69 of file kexiflowlayout.cpp.

KexiFlowLayout::KexiFlowLayout QLayout parent,
int  space = -1,
const char *  name = 0
 

Definition at line 77 of file kexiflowlayout.cpp.

KexiFlowLayout::KexiFlowLayout int  space = -1,
const char *  name = 0
 

Definition at line 85 of file kexiflowlayout.cpp.

KexiFlowLayout::~KexiFlowLayout  ) 
 

Definition at line 93 of file kexiflowlayout.cpp.


Member Function Documentation

void KexiFlowLayout::addItem QLayoutItem *  item  )  [virtual]
 

Definition at line 99 of file kexiflowlayout.cpp.

Referenced by addSpacing().

void KexiFlowLayout::addSpacing int  size  )  [virtual]
 

Definition at line 105 of file kexiflowlayout.cpp.

References addItem().

int KexiFlowLayout::doHorizontalLayout const QRect &  r,
bool  testOnly = false
[protected]
 

do not consider hidden widgets

Definition at line 221 of file kexiflowlayout.cpp.

References sizeHint().

Referenced by setGeometry(), and simulateLayout().

int KexiFlowLayout::doVerticalLayout const QRect &  r,
bool  testOnly = false
[protected]
 

do not consider hidden widgets

Definition at line 338 of file kexiflowlayout.cpp.

References sizeHint().

Referenced by setGeometry(), and simulateLayout().

QSizePolicy::ExpandData KexiFlowLayout::expanding  )  const [virtual]
 

Definition at line 193 of file kexiflowlayout.cpp.

bool KexiFlowLayout::hasHeightForWidth  )  const [virtual]
 

Definition at line 146 of file kexiflowlayout.cpp.

int KexiFlowLayout::heightForWidth int  width  )  const [virtual]
 

Definition at line 152 of file kexiflowlayout.cpp.

References m_cached_hfw, m_cached_width, and simulateLayout().

void KexiFlowLayout::invalidate  )  [virtual]
 

Definition at line 131 of file kexiflowlayout.cpp.

bool KexiFlowLayout::isEmpty  )  [virtual]
 

Definition at line 140 of file kexiflowlayout.cpp.

bool KexiFlowLayout::isJustified  )  const [inline]
 

Definition at line 47 of file kexiflowlayout.h.

QLayoutIterator KexiFlowLayout::iterator  )  [virtual]
 

Definition at line 114 of file kexiflowlayout.cpp.

QSize KexiFlowLayout::minimumSize  )  const [virtual]
 

Definition at line 177 of file kexiflowlayout.cpp.

References simulateLayout().

Qt::Orientation KexiFlowLayout::orientation  )  const [inline]
 

Returns:
layout's orientation.

Definition at line 44 of file kexiflowlayout.h.

Referenced by KFormDesigner::Container::createFlowLayout().

void KexiFlowLayout::setGeometry const QRect &   )  [protected, virtual]
 

Definition at line 202 of file kexiflowlayout.cpp.

References doHorizontalLayout(), and doVerticalLayout().

void KexiFlowLayout::setJustified bool  justify  )  [inline]
 

Definition at line 46 of file kexiflowlayout.h.

Referenced by KFormDesigner::FormIO::readChildNodes().

void KexiFlowLayout::setOrientation Orientation  orientation  )  [inline]
 

Sets layout's orientation to orientation. Default orientation is Vertical.

Definition at line 41 of file kexiflowlayout.h.

Referenced by KFormDesigner::FormIO::readChildNodes(), and KFormDesigner::Container::setLayout().

int KexiFlowLayout::simulateLayout const QRect &  r  )  [protected]
 

Definition at line 212 of file kexiflowlayout.cpp.

References doHorizontalLayout(), and doVerticalLayout().

Referenced by heightForWidth(), minimumSize(), and sizeHint().

QSize KexiFlowLayout::sizeHint  )  const [virtual]
 

Definition at line 166 of file kexiflowlayout.cpp.

References simulateLayout().

Referenced by doHorizontalLayout(), and doVerticalLayout().

QPtrList< QWidget > * KexiFlowLayout::widgetList  )  const
 

Returns:
the widgets in the order of the layout, ie as it is stored in m_list. You must delete the list after using it.

Definition at line 120 of file kexiflowlayout.cpp.

Referenced by KFormDesigner::FormIO::saveWidget().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:00 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003