|
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef AbstractTreeModel_H
2 #define AbstractTreeModel_H
19 template<
typename A,
typename B >
struct QPair;
25 class AbstractTreeItem;
66 InterestingItemsFlag =
AllItems,
bool =
false);
70 InterestingItemsFlag =
AllItems,
bool =
false);
114 int topLevelItemCount);
128 InterestingItemsFlag flags,
bool ignoreExpansion)
const;
130 InterestingItemsFlag flags);
131 static bool itemIsInteresting(
137 void applyFilterDone();
138 void rebuildItemsDone();
169 bool m_filterRunning;
170 bool m_rebuildRunning;
172 bool m_rebuildPending;
182 :
public std::unary_function< AbstractTreeItem *const &, bool > {
185 FilterFunctor(FilterFunctor
const &other);
188 FilterFunctor &operator=(FilterFunctor
const &);
191 static void updateTopLevelLinks(
201 Q_DECLARE_OPERATORS_FOR_FLAGS(AbstractTreeModel::InterestingItemsFlag)
QSize getVisibleSize(int indentation) const
indentation is in pixels
Definition: AbstractTreeModel.cpp:414
void setFrozen(bool)
Definition: AbstractTreeModel.cpp:331
void setLastVisibleFilteredItem(AbstractTreeItem *item)
Definition: RootItem.cpp:26
@ Point
Definition: AbstractTreeItem.h:46
void filterCountsChanged(int visibleTopLevelItemCount, int topLevelItemCount)
This signal is emitted after filtering to provide the number of visible top-level items remaining aft...
@ PointItems
Definition: AbstractTreeModel.h:52
@ AllItems
Definition: AbstractTreeModel.h:55
AbstractTreeItem * parent() const
Definition: AbstractTreeItem.cpp:46
const AbstractTreeItem * getLastVisibleFilteredItem() const
Definition: RootItem.cpp:31
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
int getItemCount(InterestingItemsFlag) const
Definition: AbstractTreeModel.cpp:261
void setGlobalSelection(bool selected, InterestingItemsFlag=AllItems)
Definition: AbstractTreeModel.cpp:483
QFutureWatcher< QAtomicPointer< RootItem > > * getRebuildWatcher() const
Definition: AbstractTreeModel.cpp:390
void rebuildProgressChanged(int)
Base class for tree models.
Definition: AbstractTreeModel.h:47
void filterProgressChanged(int)
void stopWorking()
Definition: AbstractTreeModel.cpp:405
A leaf item that is not ready for user interaction.
Definition: BusyLeafItem.h:33
@ Measure
Definition: AbstractTreeItem.h:47
TreeView * getView() const
Definition: AbstractTreeModel.cpp:400
RootItem * rootItem
Definition: AbstractTreeModel.h:153
virtual AbstractTreeItem * getNextVisiblePeer() const
Definition: AbstractTreeItem.cpp:76
void setDrivable(bool drivableStatus)
RootItem * getRootItem() const
Definition: AbstractTreeModel.cpp:395
virtual void setSelected(bool newState)
Definition: AbstractTreeItem.cpp:126
void clear()
Definition: AbstractTreeModel.cpp:375
virtual bool isSelected() const
Definition: AbstractTreeItem.cpp:136
void applyFilter()
Definition: AbstractTreeModel.cpp:441
virtual void rebuildItems()=0
bool isFrozen() const
Definition: AbstractTreeModel.cpp:345
void setRebuilding(bool running)
Definition: AbstractTreeModel.h:81
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
ControlNet * getControlNetwork() const
Definition: AbstractTreeModel.cpp:384
@ ImageItems
Definition: AbstractTreeModel.h:54
void setFilter(FilterWidget *newFilter)
Definition: AbstractTreeModel.cpp:365
QList< AbstractTreeItem * > getSelectedItems(InterestingItemsFlag=AllItems, bool=false)
Definition: AbstractTreeModel.cpp:232
virtual AbstractTreeItem * getLastVisibleChild() const =0
void treeSelectionChanged(QList< AbstractTreeItem * >)
virtual QList< AbstractTreeItem * > getChildren() const =0
virtual QList< AbstractTreeItem * > getChildren() const
Definition: AbstractParentItem.cpp:55
virtual AbstractTreeItem * getFirstVisibleChild() const
Definition: AbstractParentItem.cpp:61
QMutex * getMutex() const
Definition: AbstractTreeModel.cpp:256
bool isRebuilding() const
Definition: AbstractTreeModel.cpp:360
void tableSelectionChanged(QList< AbstractTreeItem * >)
a control network
Definition: ControlNet.h:257
virtual int getDataWidth() const
Definition: AbstractTreeItem.cpp:156
Isis exception class.
Definition: IException.h:91
int getTopLevelItemCount() const
Definition: AbstractTreeModel.cpp:266
#define ASSERT(x)
Definition: IsisDebug.h:134
FilterWidget * getFilterWidget() const
bool isFiltering() const
Definition: AbstractTreeModel.cpp:355
@ MeasureItems
Definition: AbstractTreeModel.h:53
virtual int getDepth() const
Definition: AbstractTreeItem.cpp:167
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
void rebuildProgressRangeChanged(int, int)
@ None
Definition: AbstractTreeItem.h:45
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:23
@ ImageAndNet
Definition: AbstractTreeItem.h:48
virtual int childCount() const
Definition: AbstractParentItem.cpp:78
This is free and unencumbered software released into the public domain.
Definition: AbstractTableModel.h:24
This is free and unencumbered software released into the public domain.
Definition: ConcurrentControlNetReader.h:20
virtual int childCount() const =0
InterestingItems
Definition: AbstractTreeModel.h:51
Definition: TreeView.h:31
int getVisibleTopLevelItemCount() const
Definition: AbstractTreeModel.cpp:291
AbstractTreeModel(ControlNet *controlNet, TreeView *v, QObject *parent=0)
Definition: AbstractTreeModel.cpp:44
void filterProgressRangeChanged(int, int)
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
InternalPointerType
Definition: AbstractTreeItem.h:44
void queueRebuild()
Definition: AbstractTreeModel.cpp:350
int getVisibleItemCount(InterestingItemsFlag, bool) const
Definition: AbstractTreeModel.cpp:270
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
virtual ~AbstractTreeModel()
Definition: AbstractTreeModel.cpp:88
The root of a tree.
Definition: RootItem.h:37