1 #ifndef AbstractTreeModel_H 2 #define AbstractTreeModel_H 11 template<
typename A,
typename B >
struct QPair;
17 class AbstractTreeItem;
58 InterestingItemsFlag =
AllItems,
bool =
false);
62 InterestingItemsFlag =
AllItems,
bool =
false);
106 int topLevelItemCount);
120 InterestingItemsFlag flags,
bool ignoreExpansion)
const;
122 InterestingItemsFlag flags);
123 static bool itemIsInteresting(
129 void applyFilterDone();
130 void rebuildItemsDone();
161 bool m_filterRunning;
162 bool m_rebuildRunning;
164 bool m_rebuildPending;
174 :
public std::unary_function< AbstractTreeItem *const &, bool > {
177 FilterFunctor(FilterFunctor
const &other);
180 FilterFunctor &operator=(FilterFunctor
const &);
183 static void updateTopLevelLinks(
193 Q_DECLARE_OPERATORS_FOR_FLAGS(AbstractTreeModel::InterestingItemsFlag)
void queueRebuild()
Definition: AbstractTreeModel.cpp:342
void filterProgressChanged(int)
void treeSelectionChanged(QList< AbstractTreeItem *>)
Definition: AbstractTreeModel.h:47
AbstractTreeModel(ControlNet *controlNet, TreeView *v, QObject *parent=0)
Definition: AbstractTreeModel.cpp:36
QSize getVisibleSize(int indentation) const
indentation is in pixels
Definition: AbstractTreeModel.cpp:406
QFutureWatcher< QAtomicPointer< RootItem > > * getRebuildWatcher() const
Definition: AbstractTreeModel.cpp:382
void stopWorking()
Definition: AbstractTreeModel.cpp:397
int indexOfVisibleItem(AbstractTreeItem const *item, InterestingItemsFlag=AllItems, bool=false) const
Definition: AbstractTreeModel.cpp:300
void setGlobalSelection(bool selected, InterestingItemsFlag=AllItems)
Definition: AbstractTreeModel.cpp:475
void rebuildProgressChanged(int)
QList< AbstractTreeItem *> getSelectedItems(InterestingItemsFlag=AllItems, bool=false)
Definition: AbstractTreeModel.cpp:224
Base class for tree models.
Definition: AbstractTreeModel.h:39
void filterCountsChanged(int visibleTopLevelItemCount, int topLevelItemCount)
This signal is emitted after filtering to provide the number of visible top-level items remaining aft...
RootItem * rootItem
Definition: AbstractTreeModel.h:145
void setDrivable(bool drivableStatus)
void applyFilter()
Definition: AbstractTreeModel.cpp:433
TreeView * getView() const
Definition: AbstractTreeModel.cpp:392
Definition: ConcurrentControlNetReader.h:34
bool isFrozen() const
Definition: AbstractTreeModel.cpp:337
void clear()
Definition: AbstractTreeModel.cpp:367
Definition: AbstractTreeModel.h:46
bool isRebuilding() const
Definition: AbstractTreeModel.cpp:352
a control network
Definition: ControlNet.h:271
Definition: TreeView.h:23
int getTopLevelItemCount() const
Definition: AbstractTreeModel.cpp:258
Definition: AbstractTableModel.h:16
QMutex * getMutex() const
Definition: AbstractTreeModel.cpp:248
RootItem * getRootItem() const
Definition: AbstractTreeModel.cpp:387
void setRebuilding(bool running)
Definition: AbstractTreeModel.h:73
ControlNet * getControlNetwork() const
Definition: AbstractTreeModel.cpp:376
void rebuildProgressRangeChanged(int, int)
virtual void rebuildItems()=0
void tableSelectionChanged(QList< AbstractTreeItem *>)
bool isFiltering() const
Definition: AbstractTreeModel.cpp:347
InterestingItems
Definition: AbstractTreeModel.h:43
void setFilter(FilterWidget *newFilter)
Definition: AbstractTreeModel.cpp:357
Definition: AbstractTreeModel.h:44
A leaf item that is not ready for user interaction.
Definition: BusyLeafItem.h:25
Definition: BoxcarCachingAlgorithm.h:29
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
FilterWidget * getFilterWidget() const
void filterProgressRangeChanged(int, int)
void setFrozen(bool)
Definition: AbstractTreeModel.cpp:323
Base class for an item in the tree.
Definition: AbstractTreeItem.h:31
int getVisibleItemCount(InterestingItemsFlag, bool) const
Definition: AbstractTreeModel.cpp:262
Definition: CubeIoHandler.h:39
virtual ~AbstractTreeModel()
Definition: AbstractTreeModel.cpp:80
int getVisibleTopLevelItemCount() const
Definition: AbstractTreeModel.cpp:283
QList< AbstractTreeItem *> getItems(int, int, InterestingItemsFlag=AllItems, bool=false)
Definition: AbstractTreeModel.cpp:113
Definition: AbstractTreeModel.h:45
int getItemCount(InterestingItemsFlag) const
Definition: AbstractTreeModel.cpp:253
The root of a tree.
Definition: RootItem.h:30