VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
DtUiAggregateCompositionEditor Class Reference
Inheritance diagram for DtUiAggregateCompositionEditor:
Inheritance graph
[legend]

List of all members.

Public Types

typedef std::list< DtObjectTypeDtObjectTypeList

Public Member Functions

 DtUiAggregateCompositionEditor (const DtString &name, DtReaderWriterRegistry *const parentRegistry=NULL)
 Constructor.
virtual ~DtUiAggregateCompositionEditor ()
 Destructor.
 DtUiAggregateCompositionEditor (const DtUiAggregateCompositionEditor &orig)
 Copy constructor.
DtUiAggregateCompositionEditoroperator= (const DtUiAggregateCompositionEditor &orig)
 Assignment operator.
virtual QWidgetcreateLabelWidget (QWidget *parent)
 Create and return the label widget for this element.
virtual QWidgetcreateControls (QWidget *)
 Creates and returns the non-label part of the element.
virtual bool canMoveUp () const
virtual bool canMoveDown () const

Protected Member Functions

virtual DtUiElementclone ()
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 *)
 Called when the model is modified. Default is no-op.
virtual bool createHierarchy (DtVrfSubObjectParameterList *, QTreeWidgetItem *parent, DtObjectTypeList ancestorList=DtObjectTypeList())
virtual bool createHierarchy (DtVrfSubObjectParameterEntry *, QTreeWidgetItem *parent, DtObjectTypeList ancestorList=DtObjectTypeList())
virtual DtFormationHierarchyViewcreateHierarchy (QWidget *parent) const
 Creates a new aggregate hierarchy list.
virtual QTreeWidgetItemaddHierarchyItem (const DtObjectType &) const
 Adds a list item to the hierarchy based on the object type.
virtual void hierarchySelectionChanged ()
 Called when the selection has changed in the hierarchy selection.
virtual void addToHierarchy ()
 Adds selected element to the hierarchy.
virtual void replaceInHierarchy ()
 Replaces the currently selected item in the hierarchy with the new one.
virtual void removeFromHierarchy ()
 Removes the selected element from the hierarchy.
virtual void removeFromHierarchy (DtVrfSubObjectParameterEntry *entry)
 Removes the element referring to the specified entry from the hierarchy.
virtual void moveUp ()
 Moves the selected item up in the hierarchy.
virtual void moveDown ()
 Moves the selected item down in the hierarchy.
virtual void moveInHierarchy (int iFrom, int iTo)
 Moves the item in the hierarchy from position from to position two.
virtual void resetHierarchyFromList ()
 Recreates hierarchy from list box.
virtual void editSelectedItem ()
 Changes the interface to edit the item that is currently selected.
virtual void expandItem (QTreeWidgetItem *)
virtual void collapseItem (QTreeWidgetItem *)
virtual void sendEvent (DtUiElementEvent::DtUiElementEventTypes type, QTreeWidgetItem *i)
virtual void sendEvent (DtUiElementEvent::DtUiElementEventTypes type, const QList< QTreeWidgetItem * > &i)
virtual void processUiEvent (const DtUiElementEvent &e)
 Process ui event. Default does nothing.
virtual void updateButtons ()
virtual void addObjectToHierarchy (const DtObjectType &)
virtual void replaceObjectInHierarchy (const DtObjectType &)

Protected Attributes

QPushButtonmyAddToHierarchy
QPushButtonmyRemoveFromHierarchy
QPushButtonmyReplaceInHierarchy
DtFormationHierarchyViewmyHierarchy
QPushButtonmyMoveUp
QPushButtonmyMoveDown
QGroupBox * myGroupBox
DtUiAggregateCompositionSignalHandler myAggregateSignalHandler
DtModelSetEntrymySelectedModel
DtAddObjectToHierarchymyAddToHierarchyDialog
DtObjectType myObjectType

Friends

class DtUiAggregateCompositionSignalHandler

Member Typedef Documentation


Constructor & Destructor Documentation

Constructor.

Destructor.

Copy constructor.


Member Function Documentation

DtUiAggregateCompositionEditor& DtUiAggregateCompositionEditor::operator= ( const DtUiAggregateCompositionEditor orig)

Assignment operator.

virtual QWidget* DtUiAggregateCompositionEditor::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.

Creates and returns the non-label part of the element.

Reimplemented from DtUiElement.

virtual bool DtUiAggregateCompositionEditor::canMoveUp ( ) const [virtual]
virtual DtUiElement* DtUiAggregateCompositionEditor::clone ( ) [protected, virtual]

Implements DtUiElement.

virtual void DtUiAggregateCompositionEditor::decorateElement ( ) [protected, virtual]

Sets element decoration depending on the isModified state of the element.

This version changes myLabel font.

Reimplemented from DtUiElement.

virtual void DtUiAggregateCompositionEditor::setFromParameters ( DtReaderWriter parentRw) [protected, virtual]

Reimplemented from DtUiElement.

virtual void DtUiAggregateCompositionEditor::elementChanged ( ) [protected, virtual]

Reimplemented from DtUiElement.

virtual void DtUiAggregateCompositionEditor::setModelModified ( DtModelSetEntry ) [protected, virtual]

Called when the model is modified. Default is no-op.

Reimplemented from DtUiElement.

Returns:
True if successful. False if the new hierarchy is invalid.
Returns:
True if successful. False if the new hierarchy is invalid.
virtual DtFormationHierarchyView* DtUiAggregateCompositionEditor::createHierarchy ( QWidget parent) const [protected, virtual]

Creates a new aggregate hierarchy list.

virtual QTreeWidgetItem* DtUiAggregateCompositionEditor::addHierarchyItem ( const DtObjectType ) const [protected, virtual]

Adds a list item to the hierarchy based on the object type.

Will use the currently loaded model set to get name and icon. If no entry exists in the model set, will use the string representation of the object type

virtual void DtUiAggregateCompositionEditor::hierarchySelectionChanged ( ) [protected, virtual]

Called when the selection has changed in the hierarchy selection.

virtual void DtUiAggregateCompositionEditor::addToHierarchy ( ) [protected, virtual]

Adds selected element to the hierarchy.

If an element is selected in the hierarchy, adds it above the selected element, else appends element to hierarchy

virtual void DtUiAggregateCompositionEditor::replaceInHierarchy ( ) [protected, virtual]

Replaces the currently selected item in the hierarchy with the new one.

virtual void DtUiAggregateCompositionEditor::removeFromHierarchy ( ) [protected, virtual]

Removes the selected element from the hierarchy.

Removes the element referring to the specified entry from the hierarchy.

virtual void DtUiAggregateCompositionEditor::moveUp ( ) [protected, virtual]

Moves the selected item up in the hierarchy.

virtual void DtUiAggregateCompositionEditor::moveDown ( ) [protected, virtual]

Moves the selected item down in the hierarchy.

virtual void DtUiAggregateCompositionEditor::moveInHierarchy ( int  iFrom,
int  iTo 
) [protected, virtual]

Moves the item in the hierarchy from position from to position two.

virtual void DtUiAggregateCompositionEditor::resetHierarchyFromList ( ) [protected, virtual]

Recreates hierarchy from list box.

virtual void DtUiAggregateCompositionEditor::editSelectedItem ( ) [protected, virtual]

Changes the interface to edit the item that is currently selected.

virtual void DtUiAggregateCompositionEditor::expandItem ( QTreeWidgetItem ) [protected, virtual]
virtual void DtUiAggregateCompositionEditor::collapseItem ( QTreeWidgetItem ) [protected, virtual]
virtual void DtUiAggregateCompositionEditor::sendEvent ( DtUiElementEvent::DtUiElementEventTypes  type,
const QList< QTreeWidgetItem * > &  i 
) [protected, virtual]
virtual void DtUiAggregateCompositionEditor::processUiEvent ( const DtUiElementEvent ) [protected, virtual]

Process ui event. Default does nothing.

Reimplemented from DtUiElement.

virtual void DtUiAggregateCompositionEditor::updateButtons ( ) [protected, virtual]
virtual void DtUiAggregateCompositionEditor::addObjectToHierarchy ( const DtObjectType ) [protected, virtual]
virtual void DtUiAggregateCompositionEditor::replaceObjectInHierarchy ( const DtObjectType ) [protected, virtual]

Friends And Related Function Documentation


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)