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

List of all members.

Public Member Functions

 DtUiForParameter (const DtString &name, DtReaderWriterRegistry *const parentRegistry=NULL)
 Constructor.
virtual ~DtUiForParameter ()
 Destructor.
 DtUiForParameter (const DtUiForParameter &orig)
 Copy constructor.
DtUiForParameteroperator= (const DtUiForParameter &orig)
 Assignment operator.
const DtStringparameterType () const
const DtStringobjectTypeTemplate () const
const DtStringinheritFrom () const
const DtStringlabel () const
bool canBeAssigned () const
void setInheritFrom (const DtString &)
virtual QWidgetcreateControls (DtVrfObjectParameters *, DtElementChangedCallbackFcn f, void *usr)
virtual void inheritFrom (DtUiForParameter *)
virtual DtUiElementfindElement (const DtString &) const
virtual bool isModified () const
virtual void mergeInto (const DtString &readerWriterName, bool after, DtUiElement *element)
 Merges the given UI element either before or after the reader-writer-named element.
virtual DtUiForParameterclone ()
virtual void setModelModified (DtModelSetEntry *)
virtual void uiEvent (const DtUiElementEvent &)
virtual QMap< QString, QVariant > uiState () const
virtual void setUiState (const QMap< QString, QVariant > &)
DtUiForParameterSignallersignalHandler ()

Protected Member Functions

virtual DtlObjPtr getData (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &)
 This method must be overridden by a subclass.
virtual void emptyList ()
virtual void copyList (const DtUiForParameter &orig)

Protected Attributes

DtRwBoolean myCanBeAssigned
DtRwString myParameterType
DtRwString myInheritFrom
DtRwString myLabel
DtRwString myObjectTypeTemplate
DtUiForParameterSignaller mySignalHandler
virtual void processElementChanged (DtUiElement *element)
 Callback invoked whenever one of the elements is modified.
static void elementChangedCallback (DtUiElement *element, void *usr)
 Callback invoked whenever one of the elements is modified.

Constructor & Destructor Documentation

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

Constructor.

virtual DtUiForParameter::~DtUiForParameter ( ) [virtual]

Destructor.

Copy constructor.


Member Function Documentation

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

Assignment operator.

const DtString & DtUiForParameter::parameterType ( ) const [inline]

References myParameterType.

const DtString & DtUiForParameter::objectTypeTemplate ( ) const [inline]

References myObjectTypeTemplate.

const DtString & DtUiForParameter::inheritFrom ( ) const [inline]

References myInheritFrom.

const DtString & DtUiForParameter::label ( ) const [inline]

References myLabel.

References myCanBeAssigned.

void DtUiForParameter::setInheritFrom ( const DtString s) [inline]

References myInheritFrom.

virtual void DtUiForParameter::inheritFrom ( DtUiForParameter ) [virtual]
virtual DtUiElement* DtUiForParameter::findElement ( const DtString ) const [virtual]
virtual bool DtUiForParameter::isModified ( ) const [virtual]
virtual void DtUiForParameter::mergeInto ( const DtString readerWriterName,
bool  after,
DtUiElement element 
) [virtual]

Merges the given UI element either before or after the reader-writer-named element.

virtual DtUiForParameter* DtUiForParameter::clone ( ) [virtual]
static void DtUiForParameter::elementChangedCallback ( DtUiElement element,
void *  usr 
) [static]

Callback invoked whenever one of the elements is modified.

Notifies all other elements (not the one that was just changed) of the change.

virtual void DtUiForParameter::processElementChanged ( DtUiElement element) [virtual]

Callback invoked whenever one of the elements is modified.

Notifies all other elements (not the one that was just changed) of the change.

virtual void DtUiForParameter::setModelModified ( DtModelSetEntry ) [virtual]
virtual void DtUiForParameter::uiEvent ( const DtUiElementEvent ) [virtual]
virtual QMap<QString, QVariant> DtUiForParameter::uiState ( ) const [virtual]
virtual void DtUiForParameter::setUiState ( const QMap< QString, QVariant > &  ) [virtual]
virtual DtlObjPtr DtUiForParameter::getData ( DtlObjPtr  args,
const DtFilename &  searchPath,
const DtVariableBindingsList variableBindings 
) [protected, virtual]

This method must be overridden by a subclass.

Within this method, new instances of the DtReaderWriter subclass that is being handled by this list must be created, and then retrieved from the mtl stream, using the getSelf member of that item.

Here is some sample code that could be used to implement a override of this class: (This is used in the DtRwIntegerList::getData() method)
 DtlObjPtr nameObj = DtcCar(args);
 DtRwInt* value = new DtRwInt(nameObj->pname());
 value->getSelf(args, searchPath, variableBindings);
 this->add(value);
 return DtcCdr(DtcCdr(args));

Implements DtRwList.

virtual void DtUiForParameter::emptyList ( ) [protected, virtual]
virtual void DtUiForParameter::copyList ( const DtUiForParameter orig) [protected, virtual]

Member Data Documentation

Referenced by canBeAssigned().

Referenced by parameterType().

Referenced by inheritFrom(), and setInheritFrom().

Referenced by label().

Referenced by objectTypeTemplate().


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)