![]() |
MAK RTIspy API Documentation for HLA 1516
|
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 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 |
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().
Destructor.
References clearRidParams(), myDynamicButtons, and myQtSignalMapper.
| void DtRidWidget::addButton | ( | const QString & | buttonText | ) | [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 DtFederationsViewDialog::clearRidParams(), 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(), myFloatRidParameters, myIntRidParameters, myShowingParentGroup, myStringRidParameters, DtGenericConfigWidget::propertyEditView(), and refreshValues().
Referenced by displayFlatProperties(), displayParentGroups(), displaySubsetOnly(), setRidParams(), and DtFederationsViewDialog::showRidDialog().
| void DtRidWidget::displayFlatProperties | ( | ) | [protected, slot] |
References displayAllProperties(), and myShowingParentGroup.
Referenced by propHeaderClicked().
| void DtRidWidget::displayParentGroups | ( | ) | [protected, slot] |
References displayAllProperties(), and myShowingParentGroup.
Referenced by propHeaderClicked().
| void DtRidWidget::displaySubsetOnly | ( | const QString & | nameOnButton | ) | [protected, slot] |
References DtGenericConfigWidget::addProperty(), DtGenericConfigWidget::addToProperty(), displayAllProperties(), myDisplayGroups, myFloatRidParameters, myIntRidParameters, myShowAllText, myShowingParentGroup, myStringRidParameters, and DtGenericConfigWidget::propertyEditView().
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.
| void DtRidWidget::init | ( | ) | [protected, virtual] |
Initialize internal data. Called from the constructors.
Reimplemented from DtGenericConfigWidget.
References DtGenericConfigWidget::myImpl, DtGenericConfigWidget::myPropertyEditView, and DtGenericConfigWidget::myViewOnly.
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 | ) |
| void DtRidWidget::processAccept | ( | ) | [virtual] |
| void DtRidWidget::processReject | ( | ) | [virtual] |
| void DtRidWidget::propHeaderClicked | ( | int | col | ) | [protected, slot] |
References displayFlatProperties(), displayParentGroups(), DtGenericConfigWidget::myPropertyEditView, and DtGenericConfigWidget::propertyEditView().
Referenced by DtRidWidget().
| void DtRidWidget::refreshValues | ( | ) |
| QString DtRidWidget::ridFileName | ( | ) | const [inline] |
| void DtRidWidget::saveToFile | ( | const QString & | fileName | ) | const |
| void DtRidWidget::setLoadingState | ( | bool | loading | ) | [virtual] |
References DtGenericConfigWidget::myImpl, DtGenericConfigWidget::myPropertyEditView, and myRidFilename.
Referenced by DtFederationsViewDialog::showRidDialog(), and DtFederationsViewDialog::updateRidParams().
| 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().
Referenced by DtFederationsViewDialog::updateRidParams().
| void DtRidWidget::showWidget | ( | ) |
std::set<MAKRti::DtString> DtRidWidget::myAllKnownRidParameters [protected] |
Referenced by addSpecificProperty(), destroyAllRidParameters(), and knownProperty().
std::map<MAKRti::DtString, int> DtRidWidget::myCompliantGroup [protected] |
Referenced by refreshValues().
std::map<MAKRti::DtString, std::set<MAKRti::DtString> > DtRidWidget::myDisplayGroups [protected] |
Referenced by addPropertyGrouping(), and displaySubsetOnly().
std::set<QPushButton*> DtRidWidget::myDynamicButtons [protected] |
Referenced by addButton(), and ~DtRidWidget().
std::map<MAKRti::DtString, DtRIDParameters::DtFloatRidParameter> DtRidWidget::myFloatRidParameters [protected] |
std::map<MAKRti::DtString, DtRIDParameters::DtIntRidParameter> DtRidWidget::myIntRidParameters [protected] |
const DtRIDParameters* DtRidWidget::myParams [protected] |
Referenced by clearRidParams(), destroyRidParameter(), refreshValues(), and setRidParams().
QSignalMapper* DtRidWidget::myQtSignalMapper [protected] |
Referenced by addButton(), DtRidWidget(), and ~DtRidWidget().
| QString DtRidWidget::myRidFilename |
Referenced by setLoadingState(), and setRidFileName().
const QString DtRidWidget::myShowAllText [private] |
Referenced by displaySubsetOnly().
bool DtRidWidget::myShowingParentGroup [protected] |
Referenced by displayAllProperties(), displayFlatProperties(), displayParentGroups(), and displaySubsetOnly().
std::map<MAKRti::DtString, DtRIDParameters::DtStringRidParameter> DtRidWidget::myStringRidParameters [protected] |
QString DtRidWidget::theCompliantText = "Compliant" [static, protected] |