![]() |
MAK RTIspy API Documentation for HLA Evolved
|
DtRidWidget provides an interface for getting RID settings. More...
Inheritance diagram for DtRidWidget:
Collaboration diagram for DtRidWidget:Public Member Functions | |
| DtRidWidget (bool viewOnly, QWidget *parent=0) | |
| Construct a base rid widget. | |
| ~DtRidWidget () | |
| Destructor. | |
| void | setRidParams (const DtRIDParameters *ridParams, const MAKRti::DtString &filename=MAKRti::DtString::nullString()) |
| Sets or clears the RID parameters to display. | |
| void | clearRidParams () |
| bool | addSpecificProperty (MAKRti::DtString name, const DtRIDParameters::DtStringRidParameter &stringRid) |
| bool | addSpecificProperty (MAKRti::DtString name, const DtRIDParameters::DtIntRidParameter &intRid) |
| bool | addSpecificProperty (MAKRti::DtString name, const DtRIDParameters::DtFloatRidParameter &floatRid) |
| void | addPropertyGrouping (MAKRti::DtString buttonText, const std::set< MAKRti::DtString > &propertyNames) |
| bool | knownProperty (const QString &propertyName) const |
| int | getSpecificIntProperty (const QString &propertyName) const |
| QString | getSpecificStringProperty (const QString &propertyName) const |
| float | getSpecificFloatProperty (const QString &propertyName) const |
| bool | knownProperty (const MAKRti::DtString &propertyName) const |
| int | getSpecificIntProperty (const MAKRti::DtString &propertyName) const |
| MAKRti::DtString | getSpecificStringProperty (const MAKRti::DtString &propertyName) const |
| float | getSpecificFloatProperty (const MAKRti::DtString &propertyName) const |
| bool | changeSpecificProperty (const QString &propertyName, int newValue) |
| bool | changeSpecificProperty (const QString &propertyName, const QString &newValue) |
| bool | changeSpecificProperty (const QString &propertyName, float newValue) |
| bool | changeSpecificProperty (const MAKRti::DtString propertyName, int newValue) |
| bool | changeSpecificProperty (const MAKRti::DtString propertyName, const MAKRti::DtString &newValue) |
| bool | changeSpecificProperty (const MAKRti::DtString propertyName, float newValue) |
| void | refreshValues () |
| void | showWidget () |
| void | enableSettings () |
| void | disableSettings () |
| void | saveToFile (const QString &fileName) const |
| void | loadFromFile (const QString &fileName) |
| void | displayAllProperties () |
| void | destroyAllRidParameters () |
| void | destroyRidParameter (MAKRti::DtString name) |
| QString | ridFileName () const |
| void | setRidFileName (const QString &myRidFileName) |
| virtual void | processAccept () |
| virtual void | processReject () |
| virtual void | setLoadingState (bool loading) |
Public Member Functions inherited from DtGenericConfigWidget | |
| DtGenericConfigWidget (bool viewOnly, QWidget *parent=0) | |
| Construct a base GenericConfig widget. | |
| ~DtGenericConfigWidget () | |
| Destructor. | |
| void | addProperty (const DtProperty &p) |
| Add a DtProperty to the property list. | |
| void | addToProperty (const DtProperty &p) |
| Extend existing DtProperty. | |
| void | setProperty (QString prop, int value) |
| void | setProperty (QString prop, QString value) |
| void | setProperty (QString prop, bool value) |
| void | setProperty (QString prop, double value) |
| void | setProperty (QString prop, const QStringList &value) |
| virtual bool | property (QString name, int &value) const |
| virtual bool | property (QString name, QString &value) const |
| virtual bool | property (QString name, double &value) const |
| virtual bool | property (QString name, bool &value) const |
| virtual bool | property (QString name, QStringList &value) const |
| virtual bool | property (QString name) const |
| DtPropertyEditView * | propertyEditView () |
| Return a pointer to the internal DtPropertyEditView object. | |
| const DtPropertyEditView * | propertyEditView () const |
Public Attributes | |
| QString | myRidFilename |
Protected Slots | |
| void | displaySubsetOnly (const QString &nameOnButton) |
| void | displayFlatProperties () |
| void | displayParentGroups () |
| void | propHeaderClicked (int) |
Protected Member Functions | |
| void | init () |
| Initialize internal data. Called from the constructors. | |
| void | addButton (const QString &buttonText) |
Protected Attributes | |
| std::set< QPushButton * > | myDynamicButtons |
| std::map< MAKRti::DtString, DtRIDParameters::DtFloatRidParameter > | myFloatRidParameters |
| std::map< MAKRti::DtString, DtRIDParameters::DtIntRidParameter > | myIntRidParameters |
| std::map< MAKRti::DtString, DtRIDParameters::DtStringRidParameter > | myStringRidParameters |
| std::set< MAKRti::DtString > | myAllKnownRidParameters |
| std::map< MAKRti::DtString, std::set< MAKRti::DtString > > | myDisplayGroups |
| std::map< MAKRti::DtString, int > | myCompliantGroup |
| QSignalMapper * | myQtSignalMapper |
| const DtRIDParameters * | myParams |
| bool | myShowingParentGroup |
Protected Attributes inherited from DtGenericConfigWidget | |
| DtPropertyEditView * | myPropertyEditView |
| bool | myViewOnly |
| Ui_genericConfigWidgetUi * | myImpl |
Static Protected Attributes | |
| static QString | theCompliantText = "Compliant" |
Private Attributes | |
| const QString | myShowAllText |
DtRidWidget provides an interface for getting RID settings.
| DtRidWidget::DtRidWidget | ( | bool | viewOnly, |
| QWidget * | parent = 0 |
||
| ) |
Construct a base rid widget.
References connect(), displaySubsetOnly(), init(), myQtSignalMapper, DtGenericConfigWidget::propertyEditView(), and propHeaderClicked().
| DtRidWidget::~DtRidWidget | ( | ) |
Destructor.
References clearRidParams(), myDynamicButtons, and myQtSignalMapper.
|
protected |
References connect(), displaySubsetOnly(), myDynamicButtons, DtGenericConfigWidget::myImpl, and myQtSignalMapper.
Referenced by addPropertyGrouping().
| void DtRidWidget::addPropertyGrouping | ( | MAKRti::DtString | buttonText, |
| const std::set< MAKRti::DtString > & | propertyNames | ||
| ) |
References addButton(), and myDisplayGroups.
| bool DtRidWidget::addSpecificProperty | ( | MAKRti::DtString | name, |
| const DtRIDParameters::DtStringRidParameter & | stringRid | ||
| ) |
References DtRIDParameters::DtStringRidParameter::currVal(), DtRIDParameters::DtStringRidParameter::defaultVal(), DtRIDParameters::DtRidParameter::isEditable(), knownProperty(), DtRIDParameters::DtRidParameter::label(), myAllKnownRidParameters, myStringRidParameters, DtRIDParameters::DtRidParameter::parentLabel(), DtRIDParameters::DtRidParameter::rangeString(), and DtRIDParameters::DtRidParameter::toolTip().
Referenced by setRidParams().
| bool DtRidWidget::addSpecificProperty | ( | MAKRti::DtString | name, |
| const DtRIDParameters::DtIntRidParameter & | intRid | ||
| ) |
References DtRIDParameters::DtIntRidParameter::currVal(), DtRIDParameters::DtIntRidParameter::defaultVal(), DtRIDParameters::DtRidParameter::isEditable(), knownProperty(), DtRIDParameters::DtRidParameter::label(), myAllKnownRidParameters, myIntRidParameters, DtRIDParameters::DtRidParameter::parentLabel(), DtRIDParameters::DtRidParameter::rangeString(), and DtRIDParameters::DtRidParameter::toolTip().
| bool DtRidWidget::addSpecificProperty | ( | MAKRti::DtString | name, |
| const DtRIDParameters::DtFloatRidParameter & | floatRid | ||
| ) |
References DtRIDParameters::DtFloatRidParameter::currVal(), DtRIDParameters::DtFloatRidParameter::defaultVal(), DtRIDParameters::DtRidParameter::isEditable(), knownProperty(), DtRIDParameters::DtRidParameter::label(), myAllKnownRidParameters, myFloatRidParameters, DtRIDParameters::DtRidParameter::parentLabel(), DtRIDParameters::DtRidParameter::rangeString(), and DtRIDParameters::DtRidParameter::toolTip().
| bool DtRidWidget::changeSpecificProperty | ( | const QString & | propertyName, |
| int | newValue | ||
| ) |
Referenced by changeSpecificProperty(), and refreshWidgetValues().
| bool DtRidWidget::changeSpecificProperty | ( | const QString & | propertyName, |
| const QString & | newValue | ||
| ) |
References changeSpecificProperty().
| bool DtRidWidget::changeSpecificProperty | ( | const QString & | propertyName, |
| float | newValue | ||
| ) |
References changeSpecificProperty().
| bool DtRidWidget::changeSpecificProperty | ( | const MAKRti::DtString | propertyName, |
| int | newValue | ||
| ) |
| bool DtRidWidget::changeSpecificProperty | ( | const MAKRti::DtString | propertyName, |
| const MAKRti::DtString & | newValue | ||
| ) |
| bool DtRidWidget::changeSpecificProperty | ( | const MAKRti::DtString | propertyName, |
| float | newValue | ||
| ) |
| void DtRidWidget::clearRidParams | ( | ) |
References destroyAllRidParameters(), and myParams.
Referenced by setRidParams(), and ~DtRidWidget().
| void DtRidWidget::destroyAllRidParameters | ( | ) |
References destroyRidParameter(), myAllKnownRidParameters, myFloatRidParameters, myIntRidParameters, and myStringRidParameters.
Referenced by clearRidParams().
| void DtRidWidget::destroyRidParameter | ( | MAKRti::DtString | name | ) |
| void DtRidWidget::disableSettings | ( | ) |
| void DtRidWidget::displayAllProperties | ( | ) |
References DtGenericConfigWidget::addProperty(), DtGenericConfigWidget::addToProperty(), DtProperty::appendChild(), DtPropertyTypeFactory::create(), DtPropertyTypeFactory::doubleType(), DtPropertyTypeFactory::intType(), myFloatRidParameters, myIntRidParameters, myShowingParentGroup, myStringRidParameters, DtGenericConfigWidget::propertyEditView(), refreshValues(), and DtPropertyTypeFactory::stringType().
Referenced by displayFlatProperties(), displayParentGroups(), displaySubsetOnly(), and setRidParams().
|
protectedslot |
References displayAllProperties(), and myShowingParentGroup.
Referenced by propHeaderClicked().
|
protectedslot |
References displayAllProperties(), and myShowingParentGroup.
Referenced by propHeaderClicked().
|
protectedslot |
References DtGenericConfigWidget::addProperty(), DtGenericConfigWidget::addToProperty(), DtProperty::appendChild(), DtPropertyTypeFactory::create(), displayAllProperties(), DtPropertyTypeFactory::doubleType(), DtPropertyTypeFactory::intType(), myDisplayGroups, myFloatRidParameters, myIntRidParameters, myShowAllText, myShowingParentGroup, myStringRidParameters, DtGenericConfigWidget::propertyEditView(), and DtPropertyTypeFactory::stringType().
Referenced by addButton(), and DtRidWidget().
| void DtRidWidget::enableSettings | ( | ) |
| float DtRidWidget::getSpecificFloatProperty | ( | const QString & | propertyName | ) | const |
| float DtRidWidget::getSpecificFloatProperty | ( | const MAKRti::DtString & | propertyName | ) | const |
References myFloatRidParameters.
| int DtRidWidget::getSpecificIntProperty | ( | const QString & | propertyName | ) | const |
| int DtRidWidget::getSpecificIntProperty | ( | const MAKRti::DtString & | propertyName | ) | const |
References myIntRidParameters.
| QString DtRidWidget::getSpecificStringProperty | ( | const QString & | propertyName | ) | const |
| MAKRti::DtString DtRidWidget::getSpecificStringProperty | ( | const MAKRti::DtString & | propertyName | ) | const |
References myStringRidParameters.
|
protectedvirtual |
Initialize internal data. Called from the constructors.
Reimplemented from DtGenericConfigWidget.
References DtGenericConfigWidget::myImpl, DtGenericConfigWidget::myPropertyEditView, DtGenericConfigWidget::myViewOnly, and DtPropertyEditView::setEditable().
Referenced by DtRidWidget().
| bool DtRidWidget::knownProperty | ( | const QString & | propertyName | ) | const |
Referenced by addSpecificProperty(), and refreshValues().
| bool DtRidWidget::knownProperty | ( | const MAKRti::DtString & | propertyName | ) | const |
References myAllKnownRidParameters.
| void DtRidWidget::loadFromFile | ( | const QString & | fileName | ) |
|
virtual |
|
virtual |
|
protectedslot |
References displayFlatProperties(), displayParentGroups(), DtGenericConfigWidget::myPropertyEditView, and DtGenericConfigWidget::propertyEditView().
Referenced by DtRidWidget().
| void DtRidWidget::refreshValues | ( | ) |
References DtRIDParameters::fullyCompliantParameters(), DtIconAndTextureManager::getIcon(), DtIconAndTextureManager::getInstance(), knownProperty(), myCompliantGroup, myFloatRidParameters, myIntRidParameters, myParams, myStringRidParameters, DtGenericConfigWidget::propertyEditView(), and refreshWidgetValues().
Referenced by displayAllProperties().
|
inline |
| void DtRidWidget::saveToFile | ( | const QString & | fileName | ) | const |
|
virtual |
References DtGenericConfigWidget::myImpl, DtGenericConfigWidget::myPropertyEditView, and myRidFilename.
Referenced by DtAssistantFederationsViewMgr::createRidDialog().
| void DtRidWidget::setRidFileName | ( | const QString & | myRidFileName | ) |
References DtGenericConfigWidget::myImpl, and myRidFilename.
Referenced by setRidParams().
| void DtRidWidget::setRidParams | ( | const DtRIDParameters * | ridParams, |
| const MAKRti::DtString & | filename = MAKRti::DtString::nullString() |
||
| ) |
Sets or clears the RID parameters to display.
References addSpecificProperty(), clearRidParams(), displayAllProperties(), DtRIDParameters::floatRidParameters(), DtRIDParameters::getFullPathToRidFile(), DtRIDParameters::intRidParameters(), myParams, setRidFileName(), and DtRIDParameters::stringRidParameters().
| void DtRidWidget::showWidget | ( | ) |
|
protected |
Referenced by addSpecificProperty(), destroyAllRidParameters(), and knownProperty().
|
protected |
Referenced by refreshValues().
|
protected |
Referenced by addPropertyGrouping(), and displaySubsetOnly().
|
protected |
Referenced by addButton(), and ~DtRidWidget().
|
protected |
|
protected |
|
protected |
Referenced by clearRidParams(), destroyRidParameter(), refreshValues(), and setRidParams().
|
protected |
Referenced by addButton(), DtRidWidget(), and ~DtRidWidget().
| QString DtRidWidget::myRidFilename |
Referenced by setLoadingState(), and setRidFileName().
|
private |
Referenced by displaySubsetOnly().
|
protected |
Referenced by displayAllProperties(), displayFlatProperties(), displayParentGroups(), and displaySubsetOnly().
|
protected |
|
staticprotected |