VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 (DtSimulationModelSet *)
 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 QString findAppropriateFile (DtSimulationModelSet *set, const DtString &, bool tryLikeUiMap=true) const
 Returns the appropriate ui file for the parameter that wants to be edited.
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 ()
QWidgetcontrols ()
DtString parameterType () const
virtual void clearUiElements ()

Static Public Member Functions

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

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 ()
virtual const DtReaderWritercontainerWithVariables (const DtObjectType &, QString element, const QString &container) const
 Returns the reader/writer type if found in the platform file and any elements in that container has a variable.
virtual void showHiddenControls (bool)
virtual void popUpDialogForEditing ()

Protected Member Functions

virtual bool bindSignalSlot (DtUiElement *, QObject *, ControlsMap &map)
virtual bool bindSignalSlot (std::string signalSlot, DtUiElement *container, QObject *widget, ControlsMap &controlsMap)
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.
virtual bool anyEnabledChildren (const QObjectList &) const

Protected Attributes

makVrv::DtDemyDe
QWidgetmyCanvas
QWidgetmyControls
std::string myUiFile
QFile myLoadedUiFile
std::set
< makVrf::DtEntityMapperKey
myEditing
UiElements myUiElements
std::vector< DtUiElement * > myAdvancedControls
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 ( DtSimulationModelSet )
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)

virtual QString DtUiForParameter::findAppropriateFile ( DtSimulationModelSet set,
const DtString ,
bool  tryLikeUiMap = true 
) const
virtual

Returns the appropriate ui file for the parameter that wants to be edited.

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

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

static std::string DtUiForParameter::likeUi ( const char parameter)
static
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
QWidget* DtUiForParameter::controls ( )
inline
DtString DtUiForParameter::parameterType ( ) const
inline
virtual void DtUiForParameter::clearUiElements ( )
virtual
virtual bool DtUiForParameter::bindSignalSlot ( DtUiElement ,
QObject ,
ControlsMap map 
)
protectedvirtual
virtual bool DtUiForParameter::bindSignalSlot ( std::string  signalSlot,
DtUiElement container,
QObject widget,
ControlsMap controlsMap 
)
protectedvirtual
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.

virtual bool DtUiForParameter::anyEnabledChildren ( const QObjectList &  ) const
protectedvirtual
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
virtual const DtReaderWriter* DtUiForParameter::containerWithVariables ( const DtObjectType &  ,
QString  element,
const QString &  container 
) const
protectedvirtualslot

Returns the reader/writer type if found in the platform file and any elements in that container has a variable.

virtual void DtUiForParameter::showHiddenControls ( bool  )
protectedvirtualslot
virtual void DtUiForParameter::popUpDialogForEditing ( )
protectedvirtualslot

Member Data Documentation

makVrv::DtDe& DtUiForParameter::myDe
protected
QWidget* DtUiForParameter::myCanvas
protected
QWidget* DtUiForParameter::myControls
protected
std::string DtUiForParameter::myUiFile
protected
QFile DtUiForParameter::myLoadedUiFile
protected
std::set<makVrf::DtEntityMapperKey> DtUiForParameter::myEditing
protected
UiElements DtUiForParameter::myUiElements
protected
std::vector<DtUiElement*> DtUiForParameter::myAdvancedControls
protected
DtElementChangedCallbackFcn DtUiForParameter::myElementChangedCallbackFunction
protected

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)