VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes
DtLayoutElement Class Reference
Inheritance diagram for DtLayoutElement:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtLayoutElement (const DtString &name, DtReaderWriterRegistry *const parentRegistry=NULL)
 Constructor.
virtual ~DtLayoutElement ()
 Destructor.
 DtLayoutElement (const DtLayoutElement &orig)
 Copy constructor.
DtLayoutElementoperator= (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 DtStringtitle () const
virtual QWidgetcreateLabelWidget (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 QWidgetjoinLabelAndControl (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
QWidgetmyBox

Constructor & Destructor Documentation

DtLayoutElement::DtLayoutElement ( const DtString name,
DtReaderWriterRegistry *const  parentRegistry = NULL 
)

Constructor.

virtual DtLayoutElement::~DtLayoutElement ( ) [virtual]

Destructor.

Copy constructor.


Member Function Documentation

DtLayoutElement& DtLayoutElement::operator= ( const DtLayoutElement orig)

Assignment operator.

virtual void DtLayoutElement::addSpacing ( ) [virtual]
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.


Member Data Documentation

Reimplemented from DtUiElement.

QLayout* DtLayoutElement::myLayout [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)