MMSVBoxWidget Class Reference

With this class you can get a vertical box. More...

#include <mmsvboxwidget.h>

Inheritance diagram for MMSVBoxWidget:

List of all members.


Public Member Functions

 MMSVBoxWidget (MMSWindow *root)
MMSWidgetcopyWidget ()
void add (MMSWidget *widget)

Private Member Functions

bool create (MMSWindow *root)
void calcSize (int *num_spacers, int *last_spacer, int *required_pix, int *remain_pix, int *avail_pix, int *fixed_pix, int *dyn_pix, int *min_dyn_pix, float dyn_reduce_factor)
void recalculateChildren ()
void setContentSizeFromChildren ()
 Internal method: Can be overridden by a specific widget which calculate it's own size from children.

Detailed Description

With this class you can get a vertical box.

The vbox widget is a container for other widgets. You can add more than one child widget to a vbox. Widgets different from MMSHBoxWidget/MMSVBoxWidget can only have one child widget. The child widgets will be vertical arranged. The vbox widget cannot be focused and displays nothing.

Author:
Jens Schneider

Definition at line 46 of file mmsvboxwidget.h.


Constructor & Destructor Documentation

MMSVBoxWidget::MMSVBoxWidget ( MMSWindow root  ) 

Definition at line 35 of file mmsvboxwidget.cpp.


Member Function Documentation

bool MMSVBoxWidget::create ( MMSWindow root  )  [private]

Definition at line 39 of file mmsvboxwidget.cpp.

void MMSVBoxWidget::calcSize ( int *  num_spacers,
int *  last_spacer,
int *  required_pix,
int *  remain_pix,
int *  avail_pix,
int *  fixed_pix,
int *  dyn_pix,
int *  min_dyn_pix,
float  dyn_reduce_factor 
) [private]

Definition at line 64 of file mmsvboxwidget.cpp.

void MMSVBoxWidget::recalculateChildren (  )  [private, virtual]

Reimplemented from MMSWidget.

Definition at line 127 of file mmsvboxwidget.cpp.

void MMSVBoxWidget::setContentSizeFromChildren (  )  [private, virtual]

Internal method: Can be overridden by a specific widget which calculate it's own size from children.

Reimplemented from MMSWidget.

Definition at line 215 of file mmsvboxwidget.cpp.

MMSWidget * MMSVBoxWidget::copyWidget (  )  [virtual]

Implements MMSWidget.

Definition at line 44 of file mmsvboxwidget.cpp.

void MMSVBoxWidget::add ( MMSWidget widget  )  [virtual]

Reimplemented from MMSWidget.

Definition at line 54 of file mmsvboxwidget.cpp.


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