![]() |
VR-Forces 4.0.4 Class Documentation
|

Public Member Functions | |
| DtLayoutElement (const DtString &name, DtReaderWriterRegistry *const parentRegistry=NULL) | |
| Constructor. | |
| virtual | ~DtLayoutElement () |
| Destructor. | |
| DtLayoutElement (const DtLayoutElement &orig) | |
| Copy constructor. | |
| DtLayoutElement & | operator= (const DtLayoutElement &orig) |
| Assignment operator. | |
| virtual void | addSpacing () |
| virtual DtlObjPtr | getData (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings) |
| void | setTitle (const DtString &s) |
| const DtString & | title () const |
| virtual QWidget * | createLabelWidget (QWidget *parent) |
| Create and return the label widget for this element. | |
| virtual void | addWidget (DtUiElement *, QWidget *label, QWidget *control, QWidget *parent)=0 |
| Adds label and control to the layout. | |
| virtual QWidget * | joinLabelAndControl (QWidget *label, QWidget *control, QWidget *parent) |
| Puts the label and control widget together with a horizontal layout, and returns the new widget. | |
Protected Attributes | |
| DtString | myTitle |
| QLayout * | myLayout |
| QWidget * | myBox |
| DtLayoutElement::DtLayoutElement | ( | const DtString & | name, |
| DtReaderWriterRegistry *const | parentRegistry = NULL |
||
| ) |
Constructor.
| virtual DtLayoutElement::~DtLayoutElement | ( | ) | [virtual] |
Destructor.
| DtLayoutElement::DtLayoutElement | ( | const DtLayoutElement & | orig | ) |
Copy constructor.
| DtLayoutElement& DtLayoutElement::operator= | ( | const DtLayoutElement & | orig | ) |
Assignment operator.
| virtual void DtLayoutElement::addSpacing | ( | ) | [virtual] |
Reimplemented in DtVerticalLayoutElement, DtHorizontalLayoutElement, and DtGridLayoutElement.
| virtual DtlObjPtr DtLayoutElement::getData | ( | DtlObjPtr | args, |
| const DtFilename & | searchPath, | ||
| const DtVariableBindingsList & | variableBindings | ||
| ) | [virtual] |
Reimplemented in DtGridLayoutElement.
| void DtLayoutElement::setTitle | ( | const DtString & | s | ) | [inline, virtual] |
Reimplemented from DtUiElement.
| const DtString& DtLayoutElement::title | ( | ) | const [inline] |
References DtUiElement::myTitle.
| virtual QWidget* DtLayoutElement::createLabelWidget | ( | QWidget * | parent | ) | [inline, virtual] |
Create and return the label widget for this element.
May return NULL if not special label element is needed.
Reimplemented from DtUiElement.
| virtual void DtLayoutElement::addWidget | ( | DtUiElement * | , |
| QWidget * | label, | ||
| QWidget * | control, | ||
| QWidget * | parent | ||
| ) | [pure virtual] |
Adds label and control to the layout.
label may be NULL, in which case control will take the entire area for this widget.
Implemented in DtVerticalLayoutElement, DtHorizontalLayoutElement, and DtGridLayoutElement.
| virtual QWidget* DtLayoutElement::joinLabelAndControl | ( | QWidget * | label, |
| QWidget * | control, | ||
| QWidget * | parent | ||
| ) | [virtual] |
Puts the label and control widget together with a horizontal layout, and returns the new widget.
parent in the parent of the new widget. If label is NULL, control is returned directly.
DtString DtLayoutElement::myTitle [protected] |
Reimplemented from DtUiElement.
QLayout* DtLayoutElement::myLayout [protected] |
QWidget* DtLayoutElement::myBox [protected] |