|
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef TreeViewContent_H
2 #define TreeViewContent_H
13 #include <QAbstractScrollArea>
18 template<
typename T >
class QList;
25 class AbstractTreeItem;
26 class AbstractTreeModel;
77 void paintItemText(QPainter *,
int, QPoint, QPoint);
78 void drawCollapsedArrow(QPainter *, QRect);
79 void drawExpandedArrow(QPainter *, QRect);
86 void setAlternatingRowColors(
bool);
87 void updateItemList();
104 QPoint *m_mousePressPos;
107 bool m_alternatingRowColors;
111 static const int ITEM_PADDING = 4;
112 static const int ITEM_INDENTATION = 23;
QSize getVisibleSize(int indentation) const
indentation is in pixels
Definition: AbstractTreeModel.cpp:414
@ Point
Definition: AbstractTreeItem.h:46
void refresh()
Definition: TreeViewContent.cpp:129
virtual AbstractTreeItem * getFirstVisibleChild() const =0
@ AllItems
Definition: AbstractTreeModel.h:55
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
void setGlobalSelection(bool selected, InterestingItemsFlag=AllItems)
Definition: AbstractTreeModel.cpp:483
void mouseMoveEvent(QMouseEvent *event)
Definition: TreeViewContent.cpp:276
Base class for tree models.
Definition: AbstractTreeModel.h:47
void setModel(AbstractTreeModel *someModel)
Definition: TreeViewContent.cpp:98
@ Measure
Definition: AbstractTreeItem.h:47
virtual bool isSelectable() const
Definition: AbstractTreeItem.cpp:141
void mousePressEvent(QMouseEvent *event)
Definition: TreeViewContent.cpp:164
void keyPressEvent(QKeyEvent *event)
Definition: TreeViewContent.cpp:308
virtual void setExpanded(bool newState)
Definition: AbstractTreeItem.cpp:117
void scrollContentsBy(int dx, int dy)
Definition: TreeViewContent.cpp:393
virtual void setSelected(bool newState)
Definition: AbstractTreeItem.cpp:126
virtual bool isSelected() const
Definition: AbstractTreeItem.cpp:136
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
QSize minimumSizeHint() const
Definition: TreeViewContent.cpp:83
virtual QList< AbstractTreeItem * > getChildren() const =0
void treeSelectionChanged(QList< AbstractTreeItem * >)
Definition: TreeViewContent.h:36
QSize sizeHint() const
Definition: TreeViewContent.cpp:88
void treeSelectionChanged()
void leaveEvent(QEvent *event)
Definition: TreeViewContent.cpp:301
Isis exception class.
Definition: IException.h:91
#define ASSERT(x)
Definition: IsisDebug.h:134
bool isFiltering() const
Definition: AbstractTreeModel.cpp:355
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:23
virtual ~TreeViewContent()
Definition: TreeViewContent.cpp:65
void mouseDoubleClickEvent(QMouseEvent *event)
Definition: TreeViewContent.cpp:153
Definition: TreeView.h:31
virtual InternalPointerType getPointerType() const =0
void paintEvent(QPaintEvent *event)
Definition: TreeViewContent.cpp:321
void mouseReleaseEvent(QMouseEvent *event)
Definition: TreeViewContent.cpp:261
Adds specific functionality to C++ strings.
Definition: IString.h:165
AbstractTreeModel * getModel()
Definition: TreeViewContent.cpp:93
void resizeEvent(QResizeEvent *event)
Definition: TreeViewContent.cpp:385
bool eventFilter(QObject *target, QEvent *event)
Definition: TreeViewContent.cpp:148
Base class for an item in the tree.
Definition: AbstractTreeItem.h:39
int indexOfVisibleItem(AbstractTreeItem const *item, InterestingItemsFlag=AllItems, bool=false) const
Definition: AbstractTreeModel.cpp:308
QList< AbstractTreeItem * > getItems(int, int, InterestingItemsFlag=AllItems, bool=false)
Definition: AbstractTreeModel.cpp:121
virtual bool isExpanded() const
Definition: AbstractTreeItem.cpp:121
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
TreeViewContent(QWidget *parent)
Definition: TreeViewContent.cpp:36