A Qt compatible ItemModel for interfacing with a DesignObjectLookup.
More...
#include <QTModelManagerView.h>
|
| void | addModel (UUID id) |
| |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| |
| ModelCache | createCache (const Model &model, bool recursive, bool parent_visible) const |
| |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| |
| QVariant | data (const UUID &id, int role) const |
| |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| |
| UUID | getID (const QModelIndex &model_index) const |
| |
| QModelIndex | getIndex (const Model &model) const |
| |
| QModelIndex | getIndex (const UUID &id) const |
| |
| bool | hasCached (const UUID &id) const |
| |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| |
| QIcon::Mode | iconMode (const QModelIndex &index) const |
| |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
| |
| QTModelManager & | manager () |
| |
| Model | model (const QModelIndex &model_index) const |
| |
| Model | model (uint04 row, const QModelIndex &parent) const |
| |
| QModelIndex | parent (const QModelIndex &index) const override |
| |
| | QTModelManagerView (QTModelManager *manager, QObject *parent=nullptr) |
| |
| void | recursiveCacheRemove (const UUID &id) |
| |
| void | refreshAll () |
| |
| const Buffer< UUID > & | rootModels () const |
| |
| virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| |
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
| |
| void | setIsRootFilter (const std::function< bool(const Model &)> &filter) |
| |
| void | setRootModels (const Buffer< UUID > &roots) |
| |
| void | updateModel3DVisible (const UUID &id, bool visible) |
| |
| virtual | ~QTModelManagerView ()=default |
| |
A Qt compatible ItemModel for interfacing with a DesignObjectLookup.
◆ QTModelManagerView()
◆ ~QTModelManagerView()
◆ addModel()
◆ clearAll
◆ columnCount()
| int columnCount |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
override |
◆ createCache()
| ModelCache createCache |
( |
const Model & | model, |
|
|
bool | recursive, |
|
|
bool | parent_visible ) const |
◆ 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()
| virtual 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 file: