[KLF Backend][KLF Tools][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 ()
 

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::KLFGridFlowLayout ( int  columns,
QWidget *  parent 
)

Definition at line 369 of file klfcolorchooser.cpp.

References _ncols.

◆ ~KLFGridFlowLayout()

virtual KLFGridFlowLayout::~KLFGridFlowLayout ( )
inlinevirtual

Definition at line 386 of file klfguiutil.h.

Member Function Documentation

◆ clearAll()

void KLFGridFlowLayout::clearAll ( )

Definition at line 385 of file klfcolorchooser.cpp.

References _curcol, _currow, QList::clear(), mGridFlowWidgets, and QList::size().

◆ insertGridFlowWidget()

void KLFGridFlowLayout::insertGridFlowWidget ( QWidget *  w,
Qt::Alignment  align = 0 
)
virtual

Definition at line 375 of file klfcolorchooser.cpp.

References _curcol, _currow, _ncols, QList::append(), and mGridFlowWidgets.

◆ ncolumns()

virtual int KLFGridFlowLayout::ncolumns ( ) const
inlinevirtual

Definition at line 388 of file klfguiutil.h.

References Qt::Alignment.

Member Data Documentation

◆ _curcol

int KLFGridFlowLayout::_curcol
protected

Definition at line 397 of file klfguiutil.h.

Referenced by clearAll(), and insertGridFlowWidget().

◆ _currow

int KLFGridFlowLayout::_currow
protected

Definition at line 397 of file klfguiutil.h.

Referenced by clearAll(), and insertGridFlowWidget().

◆ _ncols

int KLFGridFlowLayout::_ncols
protected

Definition at line 396 of file klfguiutil.h.

Referenced by insertGridFlowWidget(), and KLFGridFlowLayout().

◆ mGridFlowWidgets

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.13