VR-Forces 4.2 Class Documentation
List of all members | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes
DtUiForParameter Class Reference
Inheritance diagram for DtUiForParameter:
Inheritance graph
[legend]

Public Slots

virtual void uiEvent (const DtUiElementEvent &)

Signals

void uiEventSignal (const DtUiElementEvent &)

Public Member Functions

 DtUiForParameter (makVrv::DtDe &de, const std::string &uiFile)
 Constructor.
virtual ~DtUiForParameter ()
 Destructor.
virtual QWidgetcreateControls ()
 When creating controls and loading from the ui file, the system will try and match either the objectname of the object as the control to create or the element_type property (for items that might appear more than once, such as systems)
virtual void init (const std::set< makVrf::DtEntityMapperKey > &, DtElementChangedCallbackFcn)
virtual DtUiElementfindElement (const DtString &) const
virtual bool isModified () const
virtual void buildMapOfAvailableControls (QWidget *parent, ControlsMap &) const
 Builds a map of available controls to map reader/writer items to.
QWidgetcanvas ()
DtString parameterType () const
virtual void clearUiElements ()

Static Public Member Functions

static void addUiMapping (const char *parameter, const char *like)
 Adds a mapping such that if a parameter type ui file is not found, use the one "like" it.

Protected Types

typedef std::map< std::string,
QWidget * > 
ControlsMap
typedef std::vector
< DtReaderWriter * > 
RwVector
typedef std::map< DtString,
RwVector
RwDataItems
typedef std::map< std::string,
DtUiElement * > 
UiElements

Protected Slots

virtual void canvasDestroyed ()
virtual void controlsDestroyed ()
virtual void elementDestroyed ()

Protected Member Functions

virtual std::string uiElementName (const DtString &elementName) const
 Converts a reader/writer name to a valid ui element name.
virtual void convertDataElementsToUiElements (const std::vector< DtSimulationModelSetLoader::EntityData * > &)
 Convert all elements in the modified environment to ui data elements.
virtual void commonBindings (const std::vector< DtSimulationModelSetLoader::EntityData * > &, RwDataItems &original, RwDataItems &modified) const
 For the data items fills in the common original items and common modified items that are present for all data items.
virtual void addAllRwItems (RwDataItems &, DtVariableBindingsList *) const
 Adds all rw items found in the bindings lists to the map.
virtual void intersectRwItems (RwDataItems &, DtVariableBindingsList *) const
 Only keep the intersection of items.

Protected Attributes

makVrv::DtDe & myDe
QWidgetmyCanvas
QWidgetmyControls
std::string myUiFile
QPushButtonmyShowMoreButton
UiElements myUiElements
DtElementChangedCallbackFcn myElementChangedCallbackFunction
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.

Member Typedef Documentation

typedef std::map<std::string, QWidget*> DtUiForParameter::ControlsMap
protected
typedef std::vector<DtReaderWriter*> DtUiForParameter::RwVector
protected
typedef std::map<DtString, RwVector> DtUiForParameter::RwDataItems
protected
typedef std::map<std::string, DtUiElement*> DtUiForParameter::UiElements
protected

Constructor & Destructor Documentation

DtUiForParameter::DtUiForParameter ( makVrv::DtDe &  de,
const std::string &  uiFile 
)

Constructor.

virtual DtUiForParameter::~DtUiForParameter ( )
virtual

Destructor.

Member Function Documentation

virtual QWidget* DtUiForParameter::createControls ( )
virtual

When creating controls and loading from the ui file, the system will try and match either the objectname of the object as the control to create or the element_type property (for items that might appear more than once, such as systems)

static void DtUiForParameter::addUiMapping ( const char *  parameter,
const char *  like 
)
static

Adds a mapping such that if a parameter type ui file is not found, use the one "like" it.

virtual void DtUiForParameter::init ( const std::set< makVrf::DtEntityMapperKey > &  ,
DtElementChangedCallbackFcn   
)
virtual
virtual DtUiElement* DtUiForParameter::findElement ( const DtString ) const
virtual
virtual bool DtUiForParameter::isModified ( ) const
virtual
virtual void DtUiForParameter::buildMapOfAvailableControls ( QWidget parent,
ControlsMap  
) const
virtual

Builds a map of available controls to map reader/writer items to.

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.

QWidget* DtUiForParameter::canvas ( )
inline
DtString DtUiForParameter::parameterType ( ) const
inline
virtual void DtUiForParameter::clearUiElements ( )
virtual
virtual std::string DtUiForParameter::uiElementName ( const DtString elementName) const
protectedvirtual

Converts a reader/writer name to a valid ui element name.

virtual void DtUiForParameter::convertDataElementsToUiElements ( const std::vector< DtSimulationModelSetLoader::EntityData * > &  )
protectedvirtual

Convert all elements in the modified environment to ui data elements.

Any element not matched will be disabled

virtual void DtUiForParameter::commonBindings ( const std::vector< DtSimulationModelSetLoader::EntityData * > &  ,
RwDataItems original,
RwDataItems modified 
) const
protectedvirtual

For the data items fills in the common original items and common modified items that are present for all data items.

virtual void DtUiForParameter::addAllRwItems ( RwDataItems ,
DtVariableBindingsList  
) const
protectedvirtual

Adds all rw items found in the bindings lists to the map.

virtual void DtUiForParameter::intersectRwItems ( RwDataItems ,
DtVariableBindingsList  
) const
protectedvirtual

Only keep the intersection of items.

void DtUiForParameter::uiEventSignal ( const DtUiElementEvent )
signal
virtual void DtUiForParameter::uiEvent ( const DtUiElementEvent )
virtualslot
virtual void DtUiForParameter::canvasDestroyed ( )
protectedvirtualslot
virtual void DtUiForParameter::controlsDestroyed ( )
protectedvirtualslot
virtual void DtUiForParameter::elementDestroyed ( )
protectedvirtualslot

Member Data Documentation

makVrv::DtDe& DtUiForParameter::myDe
protected
QWidget* DtUiForParameter::myCanvas
protected
QWidget* DtUiForParameter::myControls
protected
std::string DtUiForParameter::myUiFile
protected
QPushButton* DtUiForParameter::myShowMoreButton
protected
UiElements DtUiForParameter::myUiElements
protected
DtElementChangedCallbackFcn DtUiForParameter::myElementChangedCallbackFunction
protected

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

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)