VR-Forces 4.0.4 Class Documentation
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
DtTMEchelonTree Class Reference
Inheritance diagram for DtTMEchelonTree:
Inheritance graph
[legend]

List of all members.

Public Slots

virtual void addSymbol (const DtModelKey &)
virtual void removeSymbol (const DtModelKey &)
virtual void updateSymbol (const DtModelKey &key, int changed)
virtual void updateSymbol (const DtModelData &d, int changed)
virtual void expandSymbol (const DtModelKey &)
virtual void collapseSymbol (const DtModelKey &)
virtual bool repositionSymbol (const DtModelKey &)
 Verify that the symbols position in the list view hierarchy matches that of the echelonHierarchy, and if not, call moveItemInListHierarchy to relocate it correctly.
virtual void syncToEchelonView ()
virtual void syncFromEchelonView ()
virtual void setMaintainEchelonSync (bool)
virtual void syncFromHierarchy ()
virtual void setSelection (const QVector< DtModelKey > &)
virtual void clearSelection ()
virtual void setSelectionAll ()
void setEmbarkationHierarchy (const DtEchelonHierarchy *)
const DtEchelonHierarchyembarkationHierarchy () const
virtual void tick ()
 Sort if we are marked as dirty.
virtual void setupEchelonIdColumn (bool show)

Signals

void selectionChanged (const QVector< DtModelKey > &)
void selectionAdded (const QVector< DtModelKey > &)
void clearSelection (bool)
void symbolExpanded (const DtModelKey &)
void symbolCollapsed (const DtModelKey &)
void showInformationClicked (const DtModelData &)

Public Member Functions

 DtTMEchelonTree (QWidget *parent=NULL, const Qt::WindowFlags &f=0)
 constructor
virtual ~DtTMEchelonTree ()
 Destructor.
virtual void init (const DtEchelonHierarchy *hierarchy)
 Call one of the two init() functions before using.
virtual void init (DtEchelonView *view)
 Inits with a view.
virtual void setListViewEventFilter (QWidget *filter)
 Set widgets that can be used to filter events for the list view.
virtual void removeListViewEventFilter (QWidget *filter)
virtual void setSelectionModeEnabled (bool b)
DtTreeWidgetlistView ()
virtual bool maintainEchelonSync () const

Protected Slots

virtual void updateSelection (bool signal=true)
virtual void scrollRangeChanged (int x, int y)
virtual void viewItemExpanded (QTreeWidgetItem *item)
virtual void viewItemCollapsed (QTreeWidgetItem *item)
virtual void expandToLevel (unsigned int level)
virtual void collapseToLevel (unsigned int level)
virtual void scrollCollapseButtons (int x)
virtual void doubleClicked (QTreeWidgetItem *li, int col)

Protected Member Functions

virtual void commonInit ()
 Called by other init routines.
virtual void initColumnHeadings (DtTreeWidget &listView)
 Adds column headings to the list view. Add at least one.
virtual DtTreeWidgetcreateListView (QWidget *parent)
 Creates the list view widget and returns a pointer to it.
virtual DtScrollButtonAreacreateCollapseButtonConainer (QWidget *parent)
 Creates the widget in which the expand/collapse buttons will reside.
virtual void initListItem (QTreeWidgetItem *, const DtModelKey &)
virtual QTreeWidgetItemaddListItem (const DtModelKey &)
virtual QTreeWidgetItemcreateListItem (QTreeWidgetItem *parent, const DtModelKey &key)
virtual void moveItemInListHierarchy (QTreeWidgetItem *item, QTreeWidgetItem *newParent)
virtual void updateCollapseButtons ()
virtual void updateCollapseButtons (QTreeWidgetItem *)
virtual void createCollapseButton (unsigned int level)
virtual void collapseToLevel (unsigned int level, QTreeWidgetItem *)
 Recursivly collapses all open depth(level) nodes.
virtual void expandToLevel (unsigned int level, QTreeWidgetItem *)
 Recursivly expands all nodes < depth(level) starting at firstLvi.
virtual void updateEchelonIdColumn ()
 Updates the text for all known items for the echelonIdColumn.

Protected Attributes

DtTreeWidgetmyListView
QVector< DtModelKeymySelectedKeys
DtEchelonViewmyEchelonView
const DtEchelonHierarchymyHierarchy
const DtEchelonHierarchymyEmbarkationHierarchy
bool myMaintainEchelonSync
QHash< DtModelKey,
QTreeWidgetItem * > 
myKeyList
QList< DtExpandCollapseButton * > myCollapseButtonVector
 The global expand/collapse buttons run along the top of the list view allowin the user to expand or collapse an entire level at once.
DtScrollButtonAreamyCollapseButtonWidget
QPixmap myPlusPixmap
QPixmap myMinusPixmap
bool mySelectionModeEnabled
bool myDirty
bool myUpdateCollapseButtons
bool mySendingSelectionSignal

Static Protected Attributes

static const int theEntityIdColumn
static const char * thePlusImageData []
static const char * theMinusImageData []

Private Member Functions

 DtTMEchelonTree (const DtTMEchelonTree &orig)
 Not implemented.
DtTMEchelonTreeoperator= (const DtTMEchelonTree &rhs)
 Not implemented.

Constructor & Destructor Documentation

DtTMEchelonTree::DtTMEchelonTree ( QWidget parent = NULL,
const Qt::WindowFlags &  f = 0 
)

constructor

virtual DtTMEchelonTree::~DtTMEchelonTree ( ) [virtual]

Destructor.

Not implemented.


Member Function Documentation

virtual void DtTMEchelonTree::init ( const DtEchelonHierarchy hierarchy) [virtual]

Call one of the two init() functions before using.

Inits with a hierarchy, and not a view.

virtual void DtTMEchelonTree::init ( DtEchelonView view) [virtual]

Inits with a view.

The hierarchy which this view is over will be used as the hierarchy. Echelon Tree will maintain sync with this view by default.

virtual void DtTMEchelonTree::setListViewEventFilter ( QWidget filter) [virtual]

Set widgets that can be used to filter events for the list view.

This is so subclassing the list view to capture events is not necessary

virtual void DtTMEchelonTree::removeListViewEventFilter ( QWidget filter) [virtual]
virtual void DtTMEchelonTree::setSelectionModeEnabled ( bool  b) [virtual]

References myListView.

virtual void DtTMEchelonTree::commonInit ( ) [protected, virtual]

Called by other init routines.

Calls createListView() to create the list view.

virtual void DtTMEchelonTree::initColumnHeadings ( DtTreeWidget listView) [protected, virtual]

Adds column headings to the list view. Add at least one.

virtual DtTreeWidget* DtTMEchelonTree::createListView ( QWidget parent) [protected, virtual]

Creates the list view widget and returns a pointer to it.

virtual DtScrollButtonArea* DtTMEchelonTree::createCollapseButtonConainer ( QWidget parent) [protected, virtual]

Creates the widget in which the expand/collapse buttons will reside.

virtual void DtTMEchelonTree::initListItem ( QTreeWidgetItem ,
const DtModelKey  
) [protected, virtual]
virtual bool DtTMEchelonTree::maintainEchelonSync ( ) const [virtual]
virtual QTreeWidgetItem* DtTMEchelonTree::addListItem ( const DtModelKey ) [protected, virtual]
virtual QTreeWidgetItem* DtTMEchelonTree::createListItem ( QTreeWidgetItem parent,
const DtModelKey key 
) [protected, virtual]
virtual void DtTMEchelonTree::moveItemInListHierarchy ( QTreeWidgetItem item,
QTreeWidgetItem newParent 
) [protected, virtual]
void DtTMEchelonTree::selectionChanged ( const QVector< DtModelKey > &  ) [signal]
void DtTMEchelonTree::selectionAdded ( const QVector< DtModelKey > &  ) [signal]
void DtTMEchelonTree::symbolExpanded ( const DtModelKey ) [signal]
void DtTMEchelonTree::symbolCollapsed ( const DtModelKey ) [signal]
virtual void DtTMEchelonTree::addSymbol ( const DtModelKey ) [virtual, slot]
virtual void DtTMEchelonTree::removeSymbol ( const DtModelKey ) [virtual, slot]
virtual void DtTMEchelonTree::updateSymbol ( const DtModelKey key,
int  changed 
) [virtual, slot]
virtual void DtTMEchelonTree::updateSymbol ( const DtModelData d,
int  changed 
) [virtual, slot]
virtual void DtTMEchelonTree::expandSymbol ( const DtModelKey ) [virtual, slot]
virtual void DtTMEchelonTree::collapseSymbol ( const DtModelKey ) [virtual, slot]
virtual bool DtTMEchelonTree::repositionSymbol ( const DtModelKey ) [virtual, slot]

Verify that the symbols position in the list view hierarchy matches that of the echelonHierarchy, and if not, call moveItemInListHierarchy to relocate it correctly.

Returns true if the item was repositioned.

virtual void DtTMEchelonTree::syncToEchelonView ( ) [virtual, slot]
virtual void DtTMEchelonTree::syncFromEchelonView ( ) [virtual, slot]
virtual void DtTMEchelonTree::setMaintainEchelonSync ( bool  ) [virtual, slot]
virtual void DtTMEchelonTree::syncFromHierarchy ( ) [virtual, slot]
virtual void DtTMEchelonTree::setSelection ( const QVector< DtModelKey > &  ) [virtual, slot]
virtual void DtTMEchelonTree::clearSelection ( ) [virtual, slot]
virtual void DtTMEchelonTree::setSelectionAll ( ) [virtual, slot]
virtual void DtTMEchelonTree::tick ( ) [virtual, slot]

Sort if we are marked as dirty.

virtual void DtTMEchelonTree::setupEchelonIdColumn ( bool  show) [virtual, slot]
virtual void DtTMEchelonTree::updateSelection ( bool  signal = true) [protected, virtual, slot]
virtual void DtTMEchelonTree::scrollRangeChanged ( int  x,
int  y 
) [protected, virtual, slot]
virtual void DtTMEchelonTree::viewItemExpanded ( QTreeWidgetItem item) [protected, virtual, slot]
virtual void DtTMEchelonTree::viewItemCollapsed ( QTreeWidgetItem item) [protected, virtual, slot]
virtual void DtTMEchelonTree::expandToLevel ( unsigned int  level) [protected, virtual, slot]
virtual void DtTMEchelonTree::collapseToLevel ( unsigned int  level) [protected, virtual, slot]
virtual void DtTMEchelonTree::scrollCollapseButtons ( int  x) [protected, virtual, slot]
virtual void DtTMEchelonTree::doubleClicked ( QTreeWidgetItem li,
int  col 
) [protected, virtual, slot]
virtual void DtTMEchelonTree::updateCollapseButtons ( ) [protected, virtual]
virtual void DtTMEchelonTree::updateCollapseButtons ( QTreeWidgetItem ) [protected, virtual]
virtual void DtTMEchelonTree::createCollapseButton ( unsigned int  level) [protected, virtual]
virtual void DtTMEchelonTree::collapseToLevel ( unsigned int  level,
QTreeWidgetItem  
) [protected, virtual]

Recursivly collapses all open depth(level) nodes.

virtual void DtTMEchelonTree::expandToLevel ( unsigned int  level,
QTreeWidgetItem  
) [protected, virtual]

Recursivly expands all nodes < depth(level) starting at firstLvi.

virtual void DtTMEchelonTree::updateEchelonIdColumn ( ) [protected, virtual]

Updates the text for all known items for the echelonIdColumn.

Called when the column is shown

DtTMEchelonTree& DtTMEchelonTree::operator= ( const DtTMEchelonTree rhs) [private]

Not implemented.


Member Data Documentation

Referenced by listView().

The global expand/collapse buttons run along the top of the list view allowin the user to expand or collapse an entire level at once.

QPixmap DtTMEchelonTree::myPlusPixmap [protected]
QPixmap DtTMEchelonTree::myMinusPixmap [protected]
const int DtTMEchelonTree::theEntityIdColumn [static, protected]
const char* DtTMEchelonTree::thePlusImageData[] [static, protected]
const char* DtTMEchelonTree::theMinusImageData[] [static, protected]

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)