KLGridGroup Class Reference

[KLE Index] [KLE Hierarchy] [Headers]


KLGridGroup Provides a grid (=table) layout More...

#include <klelib/klgroup.h>

Inherits: KLGroup

Public Members


Detailed Description

KLGridGroup

Provides a grid (=table) layout.


KLGridGroup(ulong rowColCount = 2, bool rowGrid = false) [public]

Contructs a Gridgroup with rowColCount Coloums or Rows. rowGrid says, if this a coloum(false) or a row grid

Note: Before you can show a grid, you MUST make sure that the count of showed nodes % rowColCount == 0. Otherwise you will get an assert and nothing displayed

If you want to change the attributes rowColCount, you should stop the layouting (if the widget is showed).

Known Bug: It ignores any weight settings fully (at the moment)

See Also:
setRowColCount

bool rowGrid() [public]

TRUE when a rowGrid. This means, that the grid uses its mebers to fill up rows: (e.g. you´ve 20 members and a rowColCount of 4)

1 | 5 | 9 | 13| 17|
--+---+---+---+---+
2 | 6 |10 | 14| 18|
--+---+---+---+---+
3 | 7 |11 | 15| 19|
--+---+---+---+---+
4 | 8 |12 | 16| 20|

(of course, there are no seperators between the cols and rows)

if rowGrid = false, it will look like this:

1  | 2  | 3  | 4
5  | 6  | 7  | 8 
9  | 10 | 11 | 12
13 | 14 | 15 | 16
17 | 18 | 19 | 20

See Also:
KLGridGroup

ulong rowColCount() [public]

Count of rows or coloums. If it are rows or coloums depends on rowTab()

See Also:
KLGridGroup

void setRowGrid(bool) [public]

Sets rowGrid.

Will force a relayout

See Also:
rowGrid

void setRowColCount(ulong) [public]

Sets the row or coloum count

Will force a relayout

See Also:
rowColCount

void validateGrid() [public]

Validates the grid. This means, that the grid will be filled up with KLReplaceMe´s so that the assertion mebmercount % rowColCount() == 0 is true.

After filling up, it will try to remove as much KLReplaceMe´s from the end as possible


Documentation generated by emmy@gate on Tue Sep 22 21:13:27 MEST 1998
Kdoc