![]() |
XII Release 0.1.0
|
Custom model for layers, used in xiiQtLayerPanel. More...
#include <LayerAdapter.moc.h>
Public Member Functions | |
| xiiQtLayerModel (xiiScene2Document *pDocument) | |
Public Member Functions inherited from xiiQtDocumentTreeModel | |
| xiiQtDocumentTreeModel (const xiiDocumentObjectManager *pTree, const xiiUuid &root=xiiUuid()) | |
| const xiiDocumentObjectManager * | GetDocumentTree () const |
| void | AddAdapter (xiiQtDocumentTreeModelAdapter *pAdapter) |
| Adds an adapter. There can only be one adapter for any object type. Added adapters are taken ownership of by the model. | |
| QModelIndex | ComputeModelIndex (const xiiDocumentObject *pObject) const |
| Returns the QModelIndex for the given object. Returned value is invalid if object is not mapped in model. | |
| void | SetAllowDragDrop (bool bAllow) |
| Enable drag&drop support, disabled by default. | |
| const xiiDocumentObject * | GetObject (const QModelIndex index) const |
| Returns the ezDocumentObject that the index points to. | |
| virtual QModelIndex | index (int iRow, int iColumn, const QModelIndex &parent=QModelIndex()) const override |
| virtual QModelIndex | parent (const QModelIndex &child) const override |
| virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| virtual Qt::ItemFlags | flags (const QModelIndex &index) const override |
| virtual QVariant | data (const QModelIndex &index, int iRole=Qt::DisplayRole) const override |
| virtual bool | setData (const QModelIndex &index, const QVariant &value, int iRole) override |
| virtual Qt::DropActions | supportedDropActions () const override |
| virtual bool | canDropMimeData (const QMimeData *pData, Qt::DropAction action, int iRow, int iColumn, const QModelIndex &parent) const override |
| virtual bool | dropMimeData (const QMimeData *pData, Qt::DropAction action, int iRow, int iColumn, const QModelIndex &parent) override |
| virtual QStringList | mimeTypes () const override |
| virtual QMimeData * | mimeData (const QModelIndexList &indexes) const override |
Additional Inherited Members | |
Static Public Member Functions inherited from xiiQtDocumentTreeModel | |
| static bool | MoveObjects (const xiiDragDropInfo &info) |
Protected Member Functions inherited from xiiQtDocumentTreeModel | |
| virtual void | TreeEventHandler (const xiiDocumentObjectStructureEvent &e) |
Protected Attributes inherited from xiiQtDocumentTreeModel | |
| const xiiDocumentObjectManager * | m_pDocumentTree = nullptr |
| const xiiUuid | m_Root |
| xiiHashTable< const xiiRTTI *, xiiQtDocumentTreeModelAdapter * > | m_Adapters |
| bool | m_bAllowDragDrop = false |
| xiiString | m_sTargetContext = "scenetree" |
Custom model for layers, used in xiiQtLayerPanel.