|
| | DtVrfHierarchyPageLogic (makVrv::DtDe &de, DtVrfHierarchyPage *iface) |
| | CTOR. More...
|
| |
| virtual | ~DtVrfHierarchyPageLogic () |
| |
| virtual void | slot_itemSelectionChanged () |
| |
| virtual void | slot_rightClickOnItem (QPoint global) |
| |
| virtual QTreeWidgetItem * | itemForState (const DtObjectListViewItem::DtVrfObjectState s) const |
| |
| virtual void | expandToLevel (unsigned int i) |
| |
| virtual void | collapseToLevel (unsigned int i) |
| |
| virtual void | viewItemExpanded (QTreeWidgetItem *i) |
| |
| virtual void | viewItemCollapsed (QTreeWidgetItem *i) |
| |
| virtual DtObjectListViewItem * | itemByUUID (const DtUUID &uuid) const |
| |
| virtual bool | isForceRootNode (makVrv::DtUniqueID) const |
| |
| virtual bool | isOrganizedRootNode (QTreeWidgetItem *) const |
| |
| virtual int | forceForRootNode (makVrv::DtUniqueID) const |
| |
| virtual void | deparent (const QStringList &)=0 |
| |
| virtual void | reparent (const QStringList &children, makVrv::DtUniqueID parentId)=0 |
| |
| virtual bool | processHierarchyItem (makVrv::DtElementIDHierarchyNode *, bool force=false) |
| | Call to process this item and add to tree. Returns true if item successfully added. More...
|
| |
| virtual void | setShowObjectConsoleWarning (bool b) |
| |
| virtual bool | showObjectConsoleWarningIcon () const |
| |
| virtual void | setTextFilter (const QString &) |
| |
| virtual void | setShowEchelonIdColumn (bool) |
| | Whether or not to show echelon id column. More...
|
| |
| virtual bool | showEchelonIdColumn () const |
| |
| virtual QTreeWidgetItem * | rootNodeForItem (DtObjectListViewItem *) const |
| |
| virtual QTreeWidgetItem * | parentNodeForItem (DtObjectListViewItem *) const |
| |
| virtual void | activate () |
| | Activates the logic for when the gui is created. More...
|
| |
| virtual int | sortColumn () const |
| | Column used to sort by after initial sort. More...
|
| |
| virtual int | initialSortColumn () const |
| |
| virtual void | setDoubleClickAttachesAndCenters (bool b) |
| |
| bool | doubleClickAttachesAndCenters () const |
| |
| virtual void | setInitiallyExpand (bool) |
| |
| bool | initiallyExpand () const |
| |
| virtual void | setGrayOutHiddenItems (bool) |
| |
| bool | grayOutHiddenItems () const |
| |
|
| virtual DtObjectListViewItem * | addOrganizedRootNode (const QString &name, const DtFilename &iconFile, const DtVrfSelectionFilter &filter, int index=-1, const QString &beforeItem="") |
| |
| virtual bool | removeOrganizedRootNode (const QString &) |
| | This will remove an organized root node by the given name as it appears in the list view. More...
|
| |
| virtual void | addOrganizedParentNode (ParentNodeContext, const DtVrfSelectionFilter &potentialParent, const DtVrfSelectionFilter &potentialChild) |
| | This will add (given a unique context) an organization of parent nodes that have two filters: 1) The first filter will be used to create a short list of objects that can be considered parent nodes 2) Given that short list, this filter will be applied to see if the object in question can be parented under that node. More...
|
| |
| virtual void | removeOrganizedParentNode (ParentNodeContext) |
| |
|
| virtual bool | handleStealthObjects () const |
| | Return true to handle stealth objects. Default is false. More...
|
| |
| virtual void | slot_gumballSettingsChanged (bool b) |
| |
| virtual void | checkForInitialExpansion (DtObjectListViewItem *) |
| |
| virtual bool | passesFogOfWarFilters (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *s) const |
| |
| virtual void | scenarioClosed () |
| |
| virtual void | moveItemToNewForceNode (makVrv::DtUniqueID, int force) |
| |
virtual
makVrv::DtSimEntryUpdater::UpdateRate | currentUpdateRate (makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *sv) const |
| |
| virtual void | entityStateChanged (makVrv::DtElementID, DtSharedVrfVrlApplicationSettings::EntityStates, bool) |
| | Sent when entity state has changed, if this entity show/hide indicator if this is a message awaiting state change. More...
|
| |
| virtual void | slot_onTick () |
| |
| virtual void | slot_onStateViewAdded (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *s) |
| | Called when a state view is added. More...
|
| |
| virtual bool | addNode (makVrv::DtElementIDHierarchyNode *) const |
| | Return false to not add node. Default is true. More...
|
| |
| virtual bool | isValidState (makVrv::DtUniqueID) const |
| | Checks to make sure this is a valid item to add to the hierarchy. More...
|
| |
| virtual void | filterItems () |
| | Filters out items based on fog of war status. More...
|
| |
| virtual void | filterTDLItems () |
| | Filters out only TDL items base on TDL status. More...
|
| |
| virtual void | stateViewUpdated () |
| |
| virtual void | resorted () |
| |
virtual
DtVrfStateViewCollectionManager & | vrfStateViewCollectionManager () const |
| |
| virtual void | hookOrganizedParentToChildren () |
| |
| virtual void | onDataChanged (DtObjectListViewItem *item) |
| |
| virtual void | forcesChanged () |
| |
| virtual void | unhandledStateView (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *) |
| |
| virtual void | slot_itemDoubleClicked (QTreeWidgetItem *) |
| |
| virtual void | clearExpansionStateFor (DtObjectListViewItem *) |
| |
| virtual void | removeNode (makVrv::DtElementID) |
| |
| virtual bool | positionNodeInHierarchy (makVrv::DtElementIDHierarchyNode *, bool force=false) |
| |
| virtual void | hookChildToParent (makVrv::DtElementIDHierarchyNode *, bool forceUpdate=false) |
| |
| virtual void | hookParentToChildren (makVrv::DtElementIDHierarchyNode *, bool forceUpdate=false) |
| |
| virtual DtObjectListViewItem * | createItemFor (makVrv::DtElementIDHierarchyNode *) |
| |
| virtual QVariant | echelonId (const DtObjectListViewItem *) const |
| |
| virtual void | slot_stateViewAboutToBeRemoved (const makVrv::DtStateView< DtVrfObjectDataState > &s) |
| |
| virtual void | cleanupHierarchyItem (DtObjectListViewItem *item) |
| |
| virtual void | createdHierarchyItem (DtObjectListViewItem *item) |
| |
| virtual void | deferredItemSelectionChanged () |
| | Public to allow disconnect from subclasses. Do not call directly. More...
|
| |
| virtual void | addDataFunctions (DtObjectListViewItem *item) |
| |
| virtual void | addSortingFunctions (DtObjectListViewItem *item) |
| |
| virtual void | slot_externalSelectionChanged (const makVrv::DtSelectionManager::IdSet &selected, const makVrv::DtSelectionManager::IdSet &deselected) |
| |
| virtual void | updateCollapseButtons () |
| |
| virtual void | updateCollapseButtons (QTreeWidgetItem *) |
| |
| virtual void | createCollapseButton (unsigned int) |
| |
| virtual void | expandToLevel (unsigned int level, QTreeWidgetItem *lvi) |
| |
| virtual void | collapseToLevel (unsigned int level, QTreeWidgetItem *lvi) |
| |
| virtual void | hierarchyItemsModified (const makVrv::DtElementAttributeManager::EntryAttributesList &)=0 |
| | Called when the echelon hierarchy has changed, process the changes. More...
|
| |
| virtual short | supportsAttribute () const =0 |
| |
| virtual void | hierarchyItemsRemoved (const makVrv::DtElementData::UniqueIdList &) |
| |
| virtual void | setupForceRootNodes () |
| |
| virtual bool | sortBySubordinatePosition (const DtObjectListViewItem &rhs, const DtObjectListViewItem &lhs) |
| |
| virtual void | checkPendingOperations () |
| |
| virtual void | checkFogOfWar (DtObjectListViewItem *, int oldForce=-1, int newForce=-1) |
| |
| virtual void | onForceChanged (DtObjectListViewItem *, int oldForce=-1, int newForce=-1) |
| |
| virtual void | onDamageStateChanged (DtObjectListViewItem *, bool isDestroyed=false) |
| |
| virtual void | onActivatedStateChanged (DtObjectListViewItem *, bool isActivated=true) |
| |
| virtual void | onMarkingTextFilterChanged (DtObjectListViewItem *) |
| |
| virtual void | slot_extendedApplicationOptionsChanged () |
| |
| virtual void | updateRootNodeVisibility (DtObjectListViewItem *) |
| |
| virtual void | slot_onUpdateRateChanged (makVrv::DtUniqueID id, int rate) |
| |
| virtual void | completeRateChange (makVrv::DtUniqueID id) |
| |
| virtual void | itemPositioned (DtObjectListViewItem *) |
| | Called when a list item is positioned. No-op at this level. More...
|
| |
| virtual void | checkParentVisibility (DtObjectListViewItem *) |
| | Called when a child is added or removed from a parent – check the parent visibility if it needs to change. More...
|
| |
| virtual void | restoreExpansionState (QTreeWidgetItem *, bool expanded) |
| |
| virtual void | initialize () |
| |
| virtual void | resetVisuals () |
| |
| virtual void | resetIconColor (DtRwColor, const std::vector< makVrv::DtUniqueID > &ids) |
| | Used to reset icons for items whose icon color has been changed with setIconColor() More...
|
| |
| virtual void | slot_uuidChanged (makVrv::DtUniqueID id, const DtUUID &oldUUID, const DtUUID &newUUID) |
| |
| virtual void | slot_objectVisibilityChanged (makVrv::DtUniqueID id, bool) |
| |
| virtual void | addToPotentialParents (DtObjectListViewItem *) |
| |
| virtual void | removeFromPotentialParents (DtObjectListViewItem *) |
| |
|
| virtual DtObjectListViewItem * | addForceLevelRootNode (int, const DtString &forceName) |
| |
| virtual DtObjectListViewItem* makVrf::DtVrfHierarchyPageLogic::addOrganizedRootNode |
( |
const QString & |
name, |
|
|
const DtFilename & |
iconFile, |
|
|
const DtVrfSelectionFilter & |
filter, |
|
|
int |
index = -1, |
|
|
const QString & |
beforeItem = "" |
|
) |
| |
|
virtual |
This section will deal with the adding of organized nodes. There are two types of organized nodes that can be added. One by force (which is protected and only used by the class) and one which is a more general folder (which is part of the public API). Each child can only appear under one node due to the organization of the items in this folder, and, unless otherwise specified, will be organized by echelon hierarchy. The order is which to add it into the existing order. This will not maintain an order, so, the next add could adjust where this item is placed. If -1 is given the item will be placed before the first force node. Note that if a new folder is added items will not be reparented to this new folder, so, make sure to add it before any items are added to the simulation
If beforeItem is not an empty string, visually place before the named item