[KLF Backend][KLF Tools][KLF Home]
KLatexFormula Project
Public Types | Public Slots | Public Member Functions | Properties
KLFFlowLayout Class Reference

A Layout that places widgets left to right, top to bottom. More...

#include <klfflowlayout.h>

List of all members.

Public Types

enum  Flush { NoFlush = 0, FlushSparse, FlushBegin, FlushEnd }

Public Slots

void clearAll (bool deleteItems=true)
void setHorizontalSpacing (int spacing)
void setVerticalSpacing (int spacing)
void setFlush (Flush f)

Public Member Functions

 KLFFlowLayout (QWidget *parent, int margin=-1, int hspacing=-1, int vspacing=-1)
virtual ~KLFFlowLayout ()
virtual void addItem (QLayoutItem *item)
virtual void addItem (QLayoutItem *item, int hstretch, int vstretch)
virtual void addLayout (QLayout *l, int hstretch=0, int vstretch=0)
virtual void addWidget (QWidget *w, int hstretch=0, int vstretch=0, Qt::Alignment align=0)
int horizontalSpacing () const
int verticalSpacing () const
Flush flush () const
virtual int count () const
virtual QLayoutItem * itemAt (int index) const
virtual QLayoutItem * takeAt (int index)
virtual Qt::Orientations expandingDirections () const
virtual bool hasHeightForWidth () const
virtual int heightForWidth (int width) const
virtual QSize minimumSize () const
virtual QSize maximumSize () const
virtual QSize sizeHint () const
void setGeometry (const QRect &rect)
virtual void invalidate ()
virtual bool event (QEvent *event)
virtual bool eventFilter (QObject *obj, QEvent *event)

Properties

Flush flush
int horizontalSpacing
int verticalSpacing

Detailed Description

A Layout that places widgets left to right, top to bottom.

Definition at line 38 of file klfflowlayout.h.


Member Enumeration Documentation

How to deal with too much space:

Enumerator:
NoFlush 

Give the extra space to the widgets to stretch, don't flush.

FlushSparse 

Distribute the extra space inbetween the widgets to fill the line.

FlushBegin 

Leave all extra space at end of line.

FlushEnd 

Leave all extra space at beginning of line.

Definition at line 49 of file klfflowlayout.h.


Constructor & Destructor Documentation

KLFFlowLayout::KLFFlowLayout ( QWidget *  parent,
int  margin = -1,
int  hspacing = -1,
int  vspacing = -1 
)

Definition at line 417 of file klfflowlayout.cpp.

Definition at line 429 of file klfflowlayout.cpp.


Member Function Documentation

virtual void KLFFlowLayout::addItem ( QLayoutItem *  item) [inline, virtual]

Add a QLayoutItem to the layout. Ownership of the object is taken by the layout: it will be deleted by the layout.

Definition at line 61 of file klfflowlayout.h.

References addItem().

Referenced by addItem(), addLayout(), and addWidget().

void KLFFlowLayout::addItem ( QLayoutItem *  item,
int  hstretch,
int  vstretch 
) [virtual]

Definition at line 445 of file klfflowlayout.cpp.

References invalidate().

void KLFFlowLayout::addLayout ( QLayout *  l,
int  hstretch = 0,
int  vstretch = 0 
) [virtual]

Definition at line 463 of file klfflowlayout.cpp.

References addItem().

void KLFFlowLayout::addWidget ( QWidget *  w,
int  hstretch = 0,
int  vstretch = 0,
Qt::Alignment  align = 0 
) [virtual]

Definition at line 453 of file klfflowlayout.cpp.

References addItem().

Referenced by KLFFlowListWidget::insertItem().

void KLFFlowLayout::clearAll ( bool  deleteItems = true) [slot]

Definition at line 582 of file klfflowlayout.cpp.

References takeAt().

int KLFFlowLayout::count ( ) const [virtual]

Definition at line 497 of file klfflowlayout.cpp.

bool KLFFlowLayout::event ( QEvent event) [virtual]

Definition at line 435 of file klfflowlayout.cpp.

bool KLFFlowLayout::eventFilter ( QObject obj,
QEvent event 
) [virtual]

Definition at line 440 of file klfflowlayout.cpp.

Definition at line 522 of file klfflowlayout.cpp.

bool KLFFlowLayout::hasHeightForWidth ( ) const [virtual]

Definition at line 527 of file klfflowlayout.cpp.

int KLFFlowLayout::heightForWidth ( int  width) const [virtual]

Definition at line 531 of file klfflowlayout.cpp.

void KLFFlowLayout::invalidate ( ) [virtual]
QLayoutItem * KLFFlowLayout::itemAt ( int  index) const [virtual]

Definition at line 501 of file klfflowlayout.cpp.

QSize KLFFlowLayout::maximumSize ( ) const [virtual]

Definition at line 548 of file klfflowlayout.cpp.

References QSize::expandedTo(), and klfDbg.

QSize KLFFlowLayout::minimumSize ( ) const [virtual]

Definition at line 540 of file klfflowlayout.cpp.

References klfDbg.

void KLFFlowLayout::setFlush ( Flush  f) [slot]
void KLFFlowLayout::setGeometry ( const QRect rect)

Definition at line 555 of file klfflowlayout.cpp.

References invalidate(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and klfDbg.

void KLFFlowLayout::setHorizontalSpacing ( int  spacing) [slot]

Definition at line 473 of file klfflowlayout.cpp.

References invalidate().

void KLFFlowLayout::setVerticalSpacing ( int  spacing) [slot]

Definition at line 482 of file klfflowlayout.cpp.

References invalidate().

QSize KLFFlowLayout::sizeHint ( ) const [virtual]

Definition at line 567 of file klfflowlayout.cpp.

References klfDbg.

QLayoutItem * KLFFlowLayout::takeAt ( int  index) [virtual]

Definition at line 509 of file klfflowlayout.cpp.

Referenced by clearAll().


Property Documentation

Definition at line 43 of file klfflowlayout.h.

Definition at line 43 of file klfflowlayout.h.

int KLFFlowLayout::verticalSpacing [read, write]

Definition at line 44 of file klfflowlayout.h.


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

Generated by doxygen 1.7.6.1. The KLatexFormula website is hosted on sourceforge.net