VR-Forces 4.2 Class Documentation
List of all members | 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]

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.

DtTMEchelonTree::DtTMEchelonTree ( const DtTMEchelonTree orig)
private

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
DtTreeWidget * DtTMEchelonTree::listView ( )
inline

References myListView.

virtual void DtTMEchelonTree::commonInit ( )
protectedvirtual

Called by other init routines.

Calls createListView() to create the list view.

virtual void DtTMEchelonTree::initColumnHeadings ( DtTreeWidget listView)
protectedvirtual

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

virtual DtTreeWidget* DtTMEchelonTree::createListView ( QWidget parent)
protectedvirtual

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

virtual DtScrollButtonArea* DtTMEchelonTree::createCollapseButtonConainer ( QWidget parent)
protectedvirtual

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

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

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 ( )
virtualslot
virtual void DtTMEchelonTree::syncFromEchelonView ( )
virtualslot
virtual void DtTMEchelonTree::setMaintainEchelonSync ( bool  )
virtualslot
virtual void DtTMEchelonTree::syncFromHierarchy ( )
virtualslot
virtual void DtTMEchelonTree::setSelection ( const QVector< DtModelKey > &  )
virtualslot
virtual void DtTMEchelonTree::clearSelection ( )
virtualslot
virtual void DtTMEchelonTree::setSelectionAll ( )
virtualslot
void DtTMEchelonTree::setEmbarkationHierarchy ( const DtEchelonHierarchy h)
inlineslot
const DtEchelonHierarchy * DtTMEchelonTree::embarkationHierarchy ( ) const
inlineslot
virtual void DtTMEchelonTree::tick ( )
virtualslot

Sort if we are marked as dirty.

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

Recursivly collapses all open depth(level) nodes.

virtual void DtTMEchelonTree::expandToLevel ( unsigned int  level,
QTreeWidgetItem  
)
protectedvirtual

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

virtual void DtTMEchelonTree::updateEchelonIdColumn ( )
protectedvirtual

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

DtTreeWidget* DtTMEchelonTree::myListView
protected

Referenced by listView().

QVector<DtModelKey> DtTMEchelonTree::mySelectedKeys
protected
DtEchelonView* DtTMEchelonTree::myEchelonView
protected
const DtEchelonHierarchy* DtTMEchelonTree::myHierarchy
protected
const DtEchelonHierarchy* DtTMEchelonTree::myEmbarkationHierarchy
protected
bool DtTMEchelonTree::myMaintainEchelonSync
protected
QHash<DtModelKey, QTreeWidgetItem*> DtTMEchelonTree::myKeyList
protected
QList<DtExpandCollapseButton*> DtTMEchelonTree::myCollapseButtonVector
protected

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.

DtScrollButtonArea* DtTMEchelonTree::myCollapseButtonWidget
protected
QPixmap DtTMEchelonTree::myPlusPixmap
protected
QPixmap DtTMEchelonTree::myMinusPixmap
protected
const int DtTMEchelonTree::theEntityIdColumn
staticprotected
const char* DtTMEchelonTree::thePlusImageData[]
staticprotected
const char* DtTMEchelonTree::theMinusImageData[]
staticprotected
bool DtTMEchelonTree::mySelectionModeEnabled
protected
bool DtTMEchelonTree::myDirty
protected
bool DtTMEchelonTree::myUpdateCollapseButtons
protected
bool DtTMEchelonTree::mySendingSelectionSignal
protected

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

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)