![]() |
VR-Forces 4.2 Class Documentation
|
class DtEchelonView: More...

Public Slots | |
| virtual void | addNode (const DtModelKey &key) |
| Adds a new node to the expand/collapse list. | |
| virtual void | removeNode (const DtModelKey &key) |
| Removes a node from the expand/collapse list. | |
| virtual void | setExpanded (const DtModelKey &key, bool expand, QVector< DtModelKey > *remove=NULL, QVector< DtModelKey > *add=NULL) |
| Expands or collapsed an item. | |
| virtual void | expandAllToLevel (int level, QVector< DtModelKey > *remove=NULL, QVector< DtModelKey > *add=NULL) |
| Expands all items above the specified level and collapses all items at or below that level. | |
| virtual void | expandNode (const DtModelKey &key, QVector< DtModelKey > *remove=NULL, QVector< DtModelKey > *add=NULL) |
| Expands a non-leaf node. | |
| virtual void | collapseNode (const DtModelKey &key, QVector< DtModelKey > *remove=NULL, QVector< DtModelKey > *add=NULL) |
| Collapses a node. | |
| virtual void | collapseParentNode (const DtModelKey &key, QVector< DtModelKey > *remove=NULL, QVector< DtModelKey > *add=NULL) |
| Collapses the parent node of a node. | |
Signals | |
| void | nodeExpanded (const DtModelKey &, QVector< DtModelKey > *remove, QVector< DtModelKey > *add) |
| Emitted when an node is expanded. | |
| void | nodeCollapsed (const DtModelKey &, QVector< DtModelKey > *remove, QVector< DtModelKey > *add) |
| Emitted when an node is collapsed. | |
| void | selectionChanged (const QVector< DtModelKey > &) |
| void | selectionAdded (const QVector< DtModelKey > &) |
| void | clearSelection (bool) |
| void | showInformationClicked (const DtModelData &) |
| void | deleteRequested () |
Public Member Functions | |
| DtEchelonView (const DtEchelonHierarchy *hier, const DtEchelonViewOptions *opt=NULL) | |
| Default constructor. | |
| virtual | ~DtEchelonView () |
| Destructor. | |
| virtual bool | init () |
| Must be called after construction. | |
| virtual void | syncWithHierarchy () |
| Removes all nodes, then add all nodes currently in the hierarchy. | |
| virtual bool | expanded (const DtModelKey &key) const |
| Get whether or not this item is currently expanded. | |
| virtual bool | parentsExpanded (const DtModelKey &key) const |
| Returns true if every node, starting with this node's parent, up to the root node are all expanded. | |
| virtual void | setHierarchy (const DtEchelonHierarchy *hier) |
| Provided for completeness. Not for casual use. | |
| virtual const DtEchelonHierarchy * | hierarchy () const |
| virtual void | setOptions (DtEchelonViewOptions *options) |
| virtual const DtEchelonViewOptions * | options () const |
| void | setEmbarkationHierarchy (DtEchelonHierarchy *) |
| const DtEchelonHierarchy * | embarkationHierarchy () const |
| virtual void | setSelection (const QVector< DtModelKey > &selectionList) |
| DtTMEchelonTree * | echelonTree () const |
| virtual void | tick () |
| Ticks the echelon tree. | |
| virtual void | selectionModeChanged (DtBaseWindow *w) |
| virtual void | disableView (const QString &) |
| Call to "disable" the view by replacing the tree view with a label with the specified string. | |
| virtual void | enableView () |
| virtual void | initConnections () |
Static Public Member Functions | |
| static DtEchelonView * | create (const DtEchelonHierarchy *hier, const DtEchelonViewOptions *options) |
| Returns a newly created instance of a DtEchelonView. | |
Protected Member Functions | |
| virtual DtTMEchelonTree * | createEchelonTree (QWidget *parent) |
| Creates the echelon tree widget. Called by init. | |
Protected Attributes | |
| QHash< DtModelKey, bool > | myExpansionDict |
| Dictionary keyed to ModelDataKeys which keeps whether each node is expanded or not. | |
| const DtEchelonHierarchy * | myHierarchy |
| const DtEchelonHierarchy * | myEmbarkationHierarchy |
| const DtEchelonViewOptions * | myOptions |
| bool | myAmOptionsOwner |
| True if this instance new()ed myOptions (and therefore will delete). | |
| QVBoxLayout * | myLayout |
| DtTMEchelonTree * | myEchelonTree |
| QLabel * | myDisabledReason |
Private Member Functions | |
| DtEchelonView () | |
| Default constructor not implemented. | |
| DtEchelonView (const DtEchelonView &orig) | |
| Copy constructor. | |
| DtEchelonView & | operator= (const DtEchelonView &rhs) |
| Assignment operator. | |
class DtEchelonView:
An instance of DtEchelonView maintains the current expdand/collapse view of an echelon hierarchy. It connects to a DtEchelonHierarchy to maintain sycronization. Multiple ExpandViews may be connected to the same hierarchy and maintain seperate views. It derives from QObject in order to use the Qt signal/slot callback system.
| DtEchelonView::DtEchelonView | ( | const DtEchelonHierarchy * | hier, |
| const DtEchelonViewOptions * | opt = NULL |
||
| ) |
Default constructor.
|
virtual |
Destructor.
|
private |
Default constructor not implemented.
|
private |
Copy constructor.
|
virtual |
Must be called after construction.
|
virtual |
Removes all nodes, then add all nodes currently in the hierarchy.
No expanded/collapsed signals are sent with this operation.
|
virtual |
Get whether or not this item is currently expanded.
|
virtual |
Returns true if every node, starting with this node's parent, up to the root node are all expanded.
|
virtual |
Provided for completeness. Not for casual use.
|
virtual |
|
virtual |
|
virtual |
|
inline |
References myEchelonTree, myEmbarkationHierarchy, and DtTMEchelonTree::setEmbarkationHierarchy().
|
inline |
References myEmbarkationHierarchy.
|
virtual |
|
inline |
References myEchelonTree.
|
virtual |
Ticks the echelon tree.
|
virtual |
|
virtual |
Call to "disable" the view by replacing the tree view with a label with the specified string.
Call enableView to reenable
|
virtual |
|
virtual |
|
static |
Returns a newly created instance of a DtEchelonView.
|
virtualslot |
Adds a new node to the expand/collapse list.
If the node is higher than the current view level (in myOptions) in will be expanded initially. Otherwise, it will be collapsed initailly.
|
virtualslot |
Removes a node from the expand/collapse list.
|
virtualslot |
Expands or collapsed an item.
If remove or add is NULL, the map is not effected and it assumed the method caller will effect the map selection with the keys found in remove and/or add
|
virtualslot |
Expands all items above the specified level and collapses all items at or below that level.
|
virtualslot |
Expands a non-leaf node.
|
virtualslot |
Collapses a node.
|
virtualslot |
Collapses the parent node of a node.
|
signal |
Emitted when an node is expanded.
|
signal |
Emitted when an node is collapsed.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
protectedvirtual |
Creates the echelon tree widget. Called by init.
|
private |
Assignment operator.
|
protected |
Dictionary keyed to ModelDataKeys which keeps whether each node is expanded or not.
|
protected |
|
protected |
Referenced by embarkationHierarchy(), and setEmbarkationHierarchy().
|
protected |
|
protected |
True if this instance new()ed myOptions (and therefore will delete).
|
protected |
|
protected |
Referenced by echelonTree(), and setEmbarkationHierarchy().
|
protected |