#include <QTModelManagerView.h>
|
| QTModelManagerView (QTModelManager *manager, QObject *parent=nullptr) |
|
QTModelManager & | manager () |
|
virtual | ~QTModelManagerView ()=default |
|
UUID | getID (const QModelIndex &model_index) const |
|
Model | model (const QModelIndex &model_index) const |
|
Model | model (uint04 row, const QModelIndex &parent) const |
|
bool | hasCached (const UUID &id) const |
|
QModelIndex | getIndex (const Model &model) const |
|
QModelIndex | getIndex (const UUID &id) const |
|
QIcon::Mode | iconMode (const QModelIndex &index) const |
|
ModelCache | createCache (const Model &model, bool recursive, bool parent_visible) const |
|
void | updateModel3DVisible (const UUID &id, bool visible) |
|
void | recursiveCacheRemove (const UUID &id) |
|
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
|
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
|
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
|
Qt::ItemFlags | flags (const QModelIndex &index) const override |
|
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
|
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
|
QModelIndex | parent (const QModelIndex &index) const override |
|
void | setRootModels (const Buffer< UUID > &roots) |
|
const Buffer< UUID > & | rootModels () const |
|
void | setIsRootFilter (const std::function< bool(const Model &)> &filter) |
|
void | addModel (UUID id) |
|
QVariant | data (const UUID &id, int role) const |
|
void | refreshAll () |
|
◆ QTModelManagerView()
◆ ~QTModelManagerView()
◆ addModel()
◆ clearAll
◆ columnCount()
int columnCount |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
override |
◆ createCache()
◆ data() [1/2]
QVariant data |
( |
const QModelIndex & | index, |
|
|
int | role = Qt::DisplayRole ) const |
|
override |
◆ data() [2/2]
QVariant data |
( |
const UUID & | id, |
|
|
int | role ) const |
◆ flags()
Qt::ItemFlags flags |
( |
const QModelIndex & | index | ) |
const |
|
override |
◆ getID()
UUID getID |
( |
const QModelIndex & | model_index | ) |
const |
◆ getIndex() [1/2]
QModelIndex getIndex |
( |
const Model & | model | ) |
const |
◆ getIndex() [2/2]
QModelIndex getIndex |
( |
const UUID & | id | ) |
const |
◆ hasCached()
bool hasCached |
( |
const UUID & | id | ) |
const |
◆ headerData()
QVariant headerData |
( |
int | section, |
|
|
Qt::Orientation | orientation, |
|
|
int | role = Qt::DisplayRole ) const |
|
override |
◆ iconMode()
QIcon::Mode iconMode |
( |
const QModelIndex & | index | ) |
const |
◆ index()
QModelIndex index |
( |
int | row, |
|
|
int | column, |
|
|
const QModelIndex & | parent = QModelIndex() ) const |
|
override |
◆ manager()
◆ model() [1/2]
Model model |
( |
const QModelIndex & | model_index | ) |
const |
◆ model() [2/2]
Model model |
( |
uint04 | row, |
|
|
const QModelIndex & | parent ) const |
◆ modelAdded
◆ modelDeleted
◆ modelFocussed
void modelFocussed |
( |
UUID | id, |
|
|
bool | selected ) |
|
protectedslot |
◆ modelUpdated
void modelUpdated |
( |
UUID | id | ) |
|
|
protectedslot |
◆ modelUpdatedSlot
void modelUpdatedSlot |
( |
const Buffer< UUID > & | updated_ids | ) |
|
|
protectedslot |
◆ objectSelected
void objectSelected |
( |
Buffer< UUID > | id, |
|
|
bool | selected ) |
|
protectedslot |
◆ parent()
QModelIndex parent |
( |
const QModelIndex & | index | ) |
const |
|
override |
◆ projectChanged
void projectChanged |
( |
UUID | id | ) |
|
|
protectedslot |
◆ recursiveCacheRemove()
void recursiveCacheRemove |
( |
const UUID & | id | ) |
|
◆ refreshAll()
◆ rootModels()
◆ rowCount()
int rowCount |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
overridevirtual |
◆ setData()
bool setData |
( |
const QModelIndex & | index, |
|
|
const QVariant & | value, |
|
|
int | role = Qt::EditRole ) |
|
override |
◆ setIsRootFilter()
void setIsRootFilter |
( |
const std::function< bool(const Model &)> & | filter | ) |
|
|
inline |
◆ setRootModels()
void setRootModels |
( |
const Buffer< UUID > & | roots | ) |
|
◆ topLevelChanged
◆ updateModel3DVisible()
void updateModel3DVisible |
( |
const UUID & | id, |
|
|
bool | visible ) |
◆ m_cached_indices
◆ m_index_ids
◆ m_manager
◆ m_project_id
◆ m_root_filter
std::function<bool(const Model&)> m_root_filter |
|
protected |
◆ m_root_models
◆ m_tree_capture_id
The documentation for this class was generated from the following files: