class KPanner

In file ../ui/kpanner.h:

## class KPanner : public QWidget

> KPanner - resizeable screen regions

## Inheritance:

### public members:

  enum | some flags
  void | setSeparator (int) Set window division.
  void | setAbsSeparator (int) Set panner to an absoulte pixel value.
  void | setLimits (int, int) Set the range in which the panner may be moved.

## Documentation

> 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

enum
  some flags

void setSeparator (int)
  (0 <= int <= 100)

  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.

void setAbsSeparator (int)
  Same as setSeparator(), but i_size is interpreted as an absolute (pixel) value. The i_size parameter must be greater than current l_limit and less than current u_limit.

void setLimits (int, int)
  Set lower and upper limits as a range for the divider widget. The divider cannot be moved outside of these limits. The values are pixel values. The lower limit (l_limit) must be a positive integer between 0 and the maximum width (height) of the panner. The upper limit (u_limit) may be either positive (if you want to measure it from the left (upper) edge), or negative (if you want to measure it from the right (lower) edge).

#### this class has no child classes.

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling