Isis 3 Programmer Reference
Isis::TreeViewContent Class Reference

#include <TreeViewContent.h>

Inheritance diagram for Isis::TreeViewContent:
Inheritance graph
Collaboration diagram for Isis::TreeViewContent:
Collaboration graph

Public Slots

void refresh ()
 

Signals

void treeSelectionChanged ()
 
void treeSelectionChanged (QList< AbstractTreeItem * >)
 

Public Member Functions

 TreeViewContent (QWidget *parent)
 
QSize minimumSizeHint () const
 
QSize sizeHint () const
 
AbstractTreeModelgetModel ()
 
void setModel (AbstractTreeModel *someModel)
 

Protected Member Functions

bool eventFilter (QObject *target, QEvent *event)
 
void keyPressEvent (QKeyEvent *event)
 
void leaveEvent (QEvent *event)
 
void mouseDoubleClickEvent (QMouseEvent *event)
 
void mouseMoveEvent (QMouseEvent *event)
 
void mousePressEvent (QMouseEvent *event)
 
void mouseReleaseEvent (QMouseEvent *event)
 
void paintEvent (QPaintEvent *event)
 
void resizeEvent (QResizeEvent *event)
 
void scrollContentsBy (int dx, int dy)
 

Private Slots

void scrollTo (QList< AbstractTreeItem * >)
 
void scrollTo (AbstractTreeItem *)
 
void setAlternatingRowColors (bool)
 
void updateItemList ()
 

Private Member Functions

 TreeViewContent (const TreeViewContent &other)
 
TreeViewContentoperator= (const TreeViewContent &other)
 
void nullify ()
 
void paintItemText (QPainter *, int, QPoint, QPoint)
 
void drawCollapsedArrow (QPainter *, QRect)
 
void drawExpandedArrow (QPainter *, QRect)
 
QRect getArrowRect (AbstractTreeItem *item) const
 

Private Attributes

TreeViewm_parentView
 
AbstractTreeModelm_model
 
QList< AbstractTreeItem *> * m_items
 
QPair< AbstractTreeItem *, bool > * m_pressedItem
 The bool is true if the arrow in the item was pressed. More...
 
QPair< AbstractTreeItem *, bool > * m_hoveredItem
 The bool is true if the mouse is hovering over the arrow. More...
 
AbstractTreeItemm_lastDirectlySelectedItem
 
QList< AbstractTreeItem * > * m_lastShiftSelection
 
QPoint * m_mousePressPos
 
int m_rowHeight
 
int m_contentWidth
 
bool m_alternatingRowColors
 

Static Private Attributes

static const int ITEM_PADDING = 4
 
static const int ITEM_INDENTATION = 23
 

Detailed Description

Author
????-??-?? Unknown
History:

2012-09-28 Kimberly Oyama - Changed member variables to be prefixed with "m_".

2017-07-25 Summer Stapleton - Removed the CnetViz namespace. Fixes #5054.

Definition at line 29 of file TreeViewContent.h.

Member Data Documentation

◆ m_hoveredItem

QPair< AbstractTreeItem *, bool >* Isis::TreeViewContent::m_hoveredItem
private

The bool is true if the mouse is hovering over the arrow.

Definition at line 92 of file TreeViewContent.h.

◆ m_pressedItem

QPair< AbstractTreeItem *, bool >* Isis::TreeViewContent::m_pressedItem
private

The bool is true if the arrow in the item was pressed.

Definition at line 89 of file TreeViewContent.h.


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