kexi

#include <kexiflowlayout.h>

Inherits TQLayout.

Public Member Functions

 KexiFlowLayout (TQWidget *parent, int border=0, int space=-1, const char *name=0)
 
 KexiFlowLayout (TQLayout *parent, int space=-1, const char *name=0)
 
 KexiFlowLayout (int space=-1, const char *name=0)
 
TQPtrList< TQWidget > * widgetList () const
 
void setOrientation (TQt::Orientation orientation)
 
TQt::Orientation orientation () const
 
void setJustified (bool justify)
 
bool isJustified () const
 
virtual void addItem (TQLayoutItem *item)
 
virtual void addSpacing (int size)
 
virtual TQLayoutIterator iterator ()
 
virtual void invalidate ()
 
virtual bool hasHeightForWidth () const
 
virtual int heightForWidth (int width) const
 
virtual TQSize sizeHint () const
 
virtual TQSize minimumSize () const
 
virtual TQSizePolicy::ExpandData expanding () const
 
virtual bool isEmpty ()
 

Protected Member Functions

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

Detailed Description

a special "flow" layout

Definition at line 27 of file kexiflowlayout.h.

Constructor & Destructor Documentation

◆ KexiFlowLayout() [1/3]

KexiFlowLayout::KexiFlowLayout ( TQWidget *  parent,
int  border = 0,
int  space = -1,
const char *  name = 0 
)

Definition at line 69 of file kexiflowlayout.cpp.

◆ KexiFlowLayout() [2/3]

KexiFlowLayout::KexiFlowLayout ( TQLayout *  parent,
int  space = -1,
const char *  name = 0 
)

Definition at line 77 of file kexiflowlayout.cpp.

◆ KexiFlowLayout() [3/3]

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

Definition at line 85 of file kexiflowlayout.cpp.

◆ ~KexiFlowLayout()

KexiFlowLayout::~KexiFlowLayout ( )

Definition at line 93 of file kexiflowlayout.cpp.

Member Function Documentation

◆ addItem()

void KexiFlowLayout::addItem ( TQLayoutItem *  item)
virtual

Definition at line 99 of file kexiflowlayout.cpp.

◆ addSpacing()

void KexiFlowLayout::addSpacing ( int  size)
virtual

Definition at line 105 of file kexiflowlayout.cpp.

◆ doHorizontalLayout()

int KexiFlowLayout::doHorizontalLayout ( const TQRect &  r,
bool  testonly = false 
)
protected

do not consider hidden widgets

Definition at line 221 of file kexiflowlayout.cpp.

◆ doVerticalLayout()

int KexiFlowLayout::doVerticalLayout ( const TQRect &  r,
bool  testonly = false 
)
protected

do not consider hidden widgets

Definition at line 338 of file kexiflowlayout.cpp.

◆ expanding()

TQSizePolicy::ExpandData KexiFlowLayout::expanding ( ) const
virtual

Definition at line 193 of file kexiflowlayout.cpp.

◆ hasHeightForWidth()

bool KexiFlowLayout::hasHeightForWidth ( ) const
virtual

Definition at line 146 of file kexiflowlayout.cpp.

◆ heightForWidth()

int KexiFlowLayout::heightForWidth ( int  width) const
virtual

Definition at line 152 of file kexiflowlayout.cpp.

◆ invalidate()

void KexiFlowLayout::invalidate ( )
virtual

Definition at line 131 of file kexiflowlayout.cpp.

◆ isEmpty()

bool KexiFlowLayout::isEmpty ( )
virtual

Definition at line 140 of file kexiflowlayout.cpp.

◆ isJustified()

bool KexiFlowLayout::isJustified ( ) const
inline

Definition at line 47 of file kexiflowlayout.h.

◆ iterator()

TQLayoutIterator KexiFlowLayout::iterator ( )
virtual

Definition at line 114 of file kexiflowlayout.cpp.

◆ minimumSize()

TQSize KexiFlowLayout::minimumSize ( ) const
virtual

Definition at line 177 of file kexiflowlayout.cpp.

◆ orientation()

TQt::Orientation KexiFlowLayout::orientation ( ) const
inline
Returns
layout's orientation.

Definition at line 44 of file kexiflowlayout.h.

◆ setGeometry()

void KexiFlowLayout::setGeometry ( const TQRect &  r)
protectedvirtual

Definition at line 202 of file kexiflowlayout.cpp.

◆ setJustified()

void KexiFlowLayout::setJustified ( bool  justify)
inline

Definition at line 46 of file kexiflowlayout.h.

◆ setOrientation()

void KexiFlowLayout::setOrientation ( TQt::Orientation  orientation)
inline

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

Definition at line 41 of file kexiflowlayout.h.

◆ simulateLayout()

int KexiFlowLayout::simulateLayout ( const TQRect &  r)
protected

Definition at line 212 of file kexiflowlayout.cpp.

◆ sizeHint()

TQSize KexiFlowLayout::sizeHint ( ) const
virtual

Definition at line 166 of file kexiflowlayout.cpp.

◆ widgetList()

TQPtrList< TQWidget > * 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.


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