KPanner - resizeable screen regions
Kpanner is a simple widget, very similar to Motifs XmPanedWindow. Basically, KPanner creates two child widgets, separated by a dragable bar. The user can now resize the window areas by repositioning this bar.How to use: -----------
The class name is KPanner.
KPanner *p = new KPanner(parent, name, flags, i_size);
flags can be one of the following:
KPanner::O_VERTICAL KPanner::O_HORIZONTAL
i_size is the initial location of the separator (measured in percent of full widget size, e.g. if you specify a value of 50, the client widgets will have exactly the same size).
To obtain the panners child widgets (which is necessary, because they will act as parents for the widgets to manage), KPanner provides two class methods:
QWidget *child0() returns the leftmost (or topmost for horizontal panners) child.
QWidget *child1() returns the rightmost (or bottom for horizontal panners) child
set the separator, so that it will divide the clients at i_size percent of full widget size. For vertical panners, this is measured from the left edge, and for horizontal panners it is measured from the top edge.
If the value for i_size is invalid (less than 0 or greater than 100), it will be set to 50.
This also applies to the value of i_size used with the constructor.
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling