![]() |
VR-Forces 4.0.4 Class Documentation
|

Public Member Functions | |
| DtUiAggregateFormationEditor (const DtString &name, DtReaderWriterRegistry *const parentRegistry=NULL) | |
| Constructor. | |
| virtual | ~DtUiAggregateFormationEditor () |
| Destructor. | |
| DtUiAggregateFormationEditor (const DtUiAggregateFormationEditor &orig) | |
| Copy constructor. | |
| DtUiAggregateFormationEditor & | operator= (const DtUiAggregateFormationEditor &orig) |
| Assignment operator. | |
| virtual QWidget * | createLabelWidget (QWidget *parent) |
| Create and return the label widget for this element. | |
| virtual QWidget * | createControls (QWidget *) |
| Creates and returns the non-label part of the element. | |
| virtual bool | isFormationModified (const DtString &formation) const |
| Returns true if the formation is modified. | |
| virtual void | uiState (QMap< QString, QVariant > &state) const |
| State is a dictionary of a string that uniquely identifies a control and its state. | |
| virtual void | setUiState (const QMap< QString, QVariant > &) |
| DtFormationAutoLayoutFactory * | formationAutoLayoutFactory () |
Protected Member Functions | |
| virtual DtUiElement * | clone () |
| virtual void | decorateElement () |
| Sets element decoration depending on the isModified state of the element. | |
| virtual void | setFromParameters (DtReaderWriter *parentRw) |
| virtual void | elementChanged () |
| virtual void | setModelModified (DtModelSetEntry *m) |
| Called when the model is modified. Default is no-op. | |
| virtual void | selectionUpdated (const QVector< DtModelKey > &) |
| virtual QMap< QString, QVariant > | uiState () const |
| virtual DtNewFormationDialog * | createNewFormationDialog () const |
| virtual void | processUiEvent (const DtUiElementEvent &e) |
| If expand/collapse event, expand/collapse hierarchy. | |
| virtual void | sendEvent (DtUiElementEvent::DtUiElementEventTypes type, const QString &path) |
| virtual void | edit () |
| virtual void | expand () |
| virtual void | collapse () |
| virtual void | collapseAllOneLevel () |
| virtual void | expandAllOneLevel () |
| virtual void | toggleBoundingBoxes () |
| virtual void | toggleSnapToGrid () |
| virtual void | formationModified () |
| virtual void | autoLayout () |
| virtual void | setSubordinateFormation () |
| virtual void | copyFormations () |
| virtual void | scaleFactorChanged (int) |
| virtual DtFormationEditor * | createFormationEditor (QWidget *) |
| virtual void | reworkFormationFileName (DtFormationTableEntry *entry) |
| If the formation is modified, and the formation file is used by another entry, change the name to make it unique. | |
| virtual bool | fileInUse (DtFormationTableEntry *) const |
| virtual QVector < DtFormationTableEntry * > | entriesThatUseFormationFile (const DtFormationTable *, DtFormationTableEntry *) const |
| virtual void | formationFileNames (const DtFilename &oldUnsub, const DtFilename &oldFile, const DtFilename &newFormationFile, QString &newFile, QString &newUnsubName) const |
| virtual void | removeFromHierarchy (int) |
| Removes the item at the specified index from all the formations referenced by this. | |
| virtual void | removeFormationEntry (DtFormation *formation, int iPosition, int maxId) |
| virtual QVector < DtFormationEntry * > | allFormationEntriesForLeader (DtFormation *form, int promId) const |
| virtual void | setAsDefault () |
| virtual void | renameFormation () |
| virtual void | addFormation () |
| virtual void | removeSelectedFormation () |
| virtual void | repositionInFormation (int iFrom, int iTo) |
| virtual void | replaceObjectInFormation (int iPos) |
| virtual void | addObjectTypeAtPosition (DtVrfSubObjectParameterEntry *entry, int pos) |
| Adds a new item to be edited at the specified position. | |
| virtual void | validateExpandCollapse () |
| virtual QString | addFormationToFormationList (QString entryRwName, const QString &basedOnFormation="") |
| virtual void | addNewFormation (QString entryRwName, const QString &basedOnFormation="") |
| virtual void | formationChanged () |
| virtual bool | isModified () const |
Protected Attributes | |
| QGroupBox * | myGroupBox |
| DtFormationEditor * | myFormationEditor |
| DtFormationTabBar * | myFormations |
| DtVrfSubObjectParameterList * | mySubordinates |
| DtRwString | mySubordinateList |
| DtUiAggregateFormationSignalHandler | myAggregateSignalHandler |
| QPushButton * | myAddFormation |
| QPushButton * | myRemoveFormation |
| QPushButton * | myRenameFormation |
| QPushButton * | mySetDefaultFormation |
| QPushButton * | myAutoLayout |
| QPushButton * | myExpand |
| QPushButton * | myCollapse |
| QPushButton * | myCopyFormations |
| QCheckBox * | myBoundingBoxes |
| QCheckBox * | mySnapToGrid |
| QLabel * | myScaleFactorLabel |
| QSpinBox * | myScaleFactor |
| DtObjectType | myObjectType |
Static Protected Attributes | |
| static DtFormationAutoLayoutFactory | theFormationAutoLayoutFactory |
Friends | |
| class | DtUiAggregateFormationSignalHandler |
| DtUiAggregateFormationEditor::DtUiAggregateFormationEditor | ( | const DtString & | name, |
| DtReaderWriterRegistry *const | parentRegistry = NULL |
||
| ) |
Constructor.
| virtual DtUiAggregateFormationEditor::~DtUiAggregateFormationEditor | ( | ) | [virtual] |
Destructor.
| DtUiAggregateFormationEditor::DtUiAggregateFormationEditor | ( | const DtUiAggregateFormationEditor & | orig | ) |
Copy constructor.
| DtUiAggregateFormationEditor& DtUiAggregateFormationEditor::operator= | ( | const DtUiAggregateFormationEditor & | orig | ) |
Assignment operator.
| virtual QWidget* DtUiAggregateFormationEditor::createLabelWidget | ( | QWidget * | parent | ) | [inline, virtual] |
Create and return the label widget for this element.
May return NULL if not special label element is needed.
Reimplemented from DtUiElement.
| virtual QWidget* DtUiAggregateFormationEditor::createControls | ( | QWidget * | parent | ) | [virtual] |
Creates and returns the non-label part of the element.
Reimplemented from DtUiElement.
| virtual bool DtUiAggregateFormationEditor::isFormationModified | ( | const DtString & | formation | ) | const [virtual] |
Returns true if the formation is modified.
| virtual void DtUiAggregateFormationEditor::uiState | ( | QMap< QString, QVariant > & | state | ) | const [virtual] |
State is a dictionary of a string that uniquely identifies a control and its state.
Reimplemented from DtUiElement.
| virtual void DtUiAggregateFormationEditor::setUiState | ( | const QMap< QString, QVariant > & | ) | [virtual] |
Reimplemented from DtUiElement.
| virtual DtUiElement* DtUiAggregateFormationEditor::clone | ( | ) | [protected, virtual] |
Implements DtUiElement.
| virtual void DtUiAggregateFormationEditor::decorateElement | ( | ) | [protected, virtual] |
Sets element decoration depending on the isModified state of the element.
This version changes myLabel font.
Reimplemented from DtUiElement.
| virtual void DtUiAggregateFormationEditor::setFromParameters | ( | DtReaderWriter * | parentRw | ) | [protected, virtual] |
Reimplemented from DtUiElement.
| virtual void DtUiAggregateFormationEditor::elementChanged | ( | ) | [protected, virtual] |
Reimplemented from DtUiElement.
| virtual void DtUiAggregateFormationEditor::setModelModified | ( | DtModelSetEntry * | ) | [protected, virtual] |
Called when the model is modified. Default is no-op.
Reimplemented from DtUiElement.
| virtual void DtUiAggregateFormationEditor::selectionUpdated | ( | const QVector< DtModelKey > & | ) | [protected, virtual] |
| virtual QMap<QString, QVariant> DtUiAggregateFormationEditor::uiState | ( | ) | const [protected, virtual] |
| virtual DtNewFormationDialog* DtUiAggregateFormationEditor::createNewFormationDialog | ( | ) | const [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::processUiEvent | ( | const DtUiElementEvent & | e | ) | [protected, virtual] |
If expand/collapse event, expand/collapse hierarchy.
Reimplemented from DtUiElement.
| virtual void DtUiAggregateFormationEditor::sendEvent | ( | DtUiElementEvent::DtUiElementEventTypes | type, |
| const QString & | path | ||
| ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::edit | ( | ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::expand | ( | ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::collapse | ( | ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::collapseAllOneLevel | ( | ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::expandAllOneLevel | ( | ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::toggleBoundingBoxes | ( | ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::toggleSnapToGrid | ( | ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::formationModified | ( | ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::autoLayout | ( | ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::setSubordinateFormation | ( | ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::copyFormations | ( | ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::scaleFactorChanged | ( | int | ) | [protected, virtual] |
| virtual DtFormationEditor* DtUiAggregateFormationEditor::createFormationEditor | ( | QWidget * | ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::reworkFormationFileName | ( | DtFormationTableEntry * | entry | ) | [protected, virtual] |
If the formation is modified, and the formation file is used by another entry, change the name to make it unique.
| virtual bool DtUiAggregateFormationEditor::fileInUse | ( | DtFormationTableEntry * | ) | const [protected, virtual] |
| virtual QVector<DtFormationTableEntry*> DtUiAggregateFormationEditor::entriesThatUseFormationFile | ( | const DtFormationTable * | , |
| DtFormationTableEntry * | |||
| ) | const [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::formationFileNames | ( | const DtFilename & | oldUnsub, |
| const DtFilename & | oldFile, | ||
| const DtFilename & | newFormationFile, | ||
| QString & | newFile, | ||
| QString & | newUnsubName | ||
| ) | const [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::removeFromHierarchy | ( | int | ) | [protected, virtual] |
Removes the item at the specified index from all the formations referenced by this.
| virtual void DtUiAggregateFormationEditor::removeFormationEntry | ( | DtFormation * | formation, |
| int | iPosition, | ||
| int | maxId | ||
| ) | [protected, virtual] |
| virtual QVector<DtFormationEntry*> DtUiAggregateFormationEditor::allFormationEntriesForLeader | ( | DtFormation * | form, |
| int | promId | ||
| ) | const [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::setAsDefault | ( | ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::renameFormation | ( | ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::addFormation | ( | ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::removeSelectedFormation | ( | ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::repositionInFormation | ( | int | iFrom, |
| int | iTo | ||
| ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::replaceObjectInFormation | ( | int | iPos | ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::addObjectTypeAtPosition | ( | DtVrfSubObjectParameterEntry * | entry, |
| int | pos | ||
| ) | [protected, virtual] |
Adds a new item to be edited at the specified position.
| virtual void DtUiAggregateFormationEditor::validateExpandCollapse | ( | ) | [protected, virtual] |
| virtual QString DtUiAggregateFormationEditor::addFormationToFormationList | ( | QString | entryRwName, |
| const QString & | basedOnFormation = "" |
||
| ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::addNewFormation | ( | QString | entryRwName, |
| const QString & | basedOnFormation = "" |
||
| ) | [protected, virtual] |
| virtual void DtUiAggregateFormationEditor::formationChanged | ( | ) | [protected, virtual] |
| virtual bool DtUiAggregateFormationEditor::isModified | ( | ) | const [protected, virtual] |
Reimplemented from DtUiElement.
friend class DtUiAggregateFormationSignalHandler [friend] |
QGroupBox* DtUiAggregateFormationEditor::myGroupBox [protected] |
DtUiAggregateFormationSignalHandler DtUiAggregateFormationEditor::myAggregateSignalHandler [protected] |
QPushButton* DtUiAggregateFormationEditor::myAddFormation [protected] |
QPushButton* DtUiAggregateFormationEditor::myAutoLayout [protected] |
QPushButton* DtUiAggregateFormationEditor::myExpand [protected] |
QPushButton* DtUiAggregateFormationEditor::myCollapse [protected] |
QCheckBox* DtUiAggregateFormationEditor::myBoundingBoxes [protected] |
QCheckBox* DtUiAggregateFormationEditor::mySnapToGrid [protected] |
QLabel* DtUiAggregateFormationEditor::myScaleFactorLabel [protected] |
QSpinBox* DtUiAggregateFormationEditor::myScaleFactor [protected] |
DtFormationAutoLayoutFactory DtUiAggregateFormationEditor::theFormationAutoLayoutFactory [static, protected] |