[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project
Public Member Functions | Protected Attributes | List of all members
KLFGridFlowLayout Class Reference

A Layout that lays out its children in a grid, flowing left to right, top to bottom. More...

#include <klfguiutil.h>

Inheritance diagram for KLFGridFlowLayout:
Inheritance graph
[legend]
Collaboration diagram for KLFGridFlowLayout:
Collaboration graph
[legend]

Public Member Functions

 KLFGridFlowLayout (int columns, QWidget *parent)
 
virtual ~KLFGridFlowLayout ()
 
virtual int ncolumns () const
 
virtual void insertGridFlowWidget (QWidget *w, Qt::Alignment align=0)
 
void clearAll ()
 
- Public Member Functions inherited from QGridLayout
 QGridLayout (QWidget *parent)
 
 QGridLayout ()
 
 addItem (QLayoutItem *item, int row, int column, int rowSpan=1, int columnSpan=1, Qt::Alignment alignment=0)
 
 addLayout (QLayout *layout, int row, int column, Qt::Alignment alignment=0)
 
 addLayout (QLayout *layout, int row, int column, int rowSpan, int columnSpan, Qt::Alignment alignment=0)
 
 addWidget (QWidget *widget, int row, int column, Qt::Alignment alignment=0)
 
 addWidget (QWidget *widget, int fromRow, int fromColumn, int rowSpan, int columnSpan, Qt::Alignment alignment=0)
 
 cellRect (int row, int column)
 
 columnCount ()
 
 columnMinimumWidth (int column)
 
 columnStretch (int column)
 
 getItemPosition (int index, int *row, int *column, int *rowSpan, int *columnSpan)
 
 Corner QGridLayout::originCorner()
 
 rowCount ()
 
 rowMinimumHeight (int row)
 
 rowStretch (int row)
 
 setColumnMinimumWidth (int column, int minSize)
 
 setColumnStretch (int column, int stretch)
 
 setOriginCorner (Qt::Corner corner)
 
 setRowMinimumHeight (int row, int minSize)
 
 setRowStretch (int row, int stretch)
 
 setSpacing (int spacing)
 
 spacing ()
 
 QGridLayout (QWidget *parent, int nRows, int nCols=1, int margin=0, int space=-1, const char *name=0)
 
 QGridLayout (int nRows, int nCols=1, int spacing=-1, const char *name=0)
 
 QGridLayout (QLayout *parentLayout, int nRows=1, int nCols=1, int spacing=-1, const char *name=0)
 
 addColSpacing (int col, int minsize)
 
 addMultiCell (QLayoutItem *l, int fromRow, int toRow, int fromCol, int toCol, Qt::Alignment align=0)
 
 addMultiCellLayout (QLayout *layout, int fromRow, int toRow, int fromCol, int toCol, Qt::Alignment align=0)
 
 addMultiCellWidget (QWidget *widget, int fromRow, int toRow, int fromCol, int toCol, Qt::Alignment align=0)
 
 addRowSpacing (int row, int minsize)
 
 cellGeometry (int row, int column)
 
 colSpacing (int col)
 
 colStretch (int col)
 
 expand (int nRows, int nCols)
 
 findWidget (QWidget *w, int *row, int *column)
 
 numCols ()
 
 numRows ()
 
 Corner QGridLayout::origin()
 
 rowSpacing (int row)
 
 setColSpacing (int col, int minSize)
 
 setColStretch (int col, int stretch)
 
 setOrigin (Qt::Corner corner)
 
 setRowSpacing (int row, int minSize)
 
 QGroupBox (QWidget *parent, const char *name)
 
 QGroupBox (const QString &title, QWidget *parent, const char *name)
 

Protected Attributes

QList< QWidget * > mGridFlowWidgets
 
int _ncols
 
int _currow
 
int _curcol
 

Detailed Description

A Layout that lays out its children in a grid, flowing left to right, top to bottom.

Used eg. in KLF's color dialog to display the standard color panels

Be sure to insert items into the layout with insertGridFlowWidget()

Definition at line 381 of file klfguiutil.h.

Constructor & Destructor Documentation

KLFGridFlowLayout::KLFGridFlowLayout ( int  columns,
QWidget parent 
)

Definition at line 216 of file klfcolorchooser.cpp.

References _ncols, and QGridLayout::addItem().

virtual KLFGridFlowLayout::~KLFGridFlowLayout ( )
inlinevirtual

Definition at line 386 of file klfguiutil.h.

Member Function Documentation

void KLFGridFlowLayout::clearAll ( )
void KLFGridFlowLayout::insertGridFlowWidget ( QWidget w,
Qt::Alignment  align = 0 
)
virtual
virtual int KLFGridFlowLayout::ncolumns ( ) const
inlinevirtual

Definition at line 388 of file klfguiutil.h.

Member Data Documentation

int KLFGridFlowLayout::_curcol
protected

Definition at line 397 of file klfguiutil.h.

Referenced by clearAll(), and insertGridFlowWidget().

int KLFGridFlowLayout::_currow
protected

Definition at line 397 of file klfguiutil.h.

Referenced by clearAll(), and insertGridFlowWidget().

int KLFGridFlowLayout::_ncols
protected

Definition at line 396 of file klfguiutil.h.

Referenced by insertGridFlowWidget(), and KLFGridFlowLayout().

QList<QWidget*> KLFGridFlowLayout::mGridFlowWidgets
protected

Definition at line 395 of file klfguiutil.h.

Referenced by clearAll(), and insertGridFlowWidget().


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

Generated by doxygen 1.8.11