34#include <NDEVR/QTModelManager.h>
35#include <NDEVR/QTDesignObject.h>
36#include <QAbstractItemModel>
60 QModelIndex
index(
int row,
int column,
const QModelIndex&
parent = QModelIndex())
const override;
61 QModelIndex
parent(
const QModelIndex& child)
const override;
62 int rowCount(
const QModelIndex&
parent = QModelIndex())
const override;
67 QVariant
data(
const QModelIndex&
index,
int role = Qt::DisplayRole)
const override;
68 bool setData(
const QModelIndex&
index,
const QVariant& value,
int role = Qt::EditRole)
override;
85 void setCurrentLayer(
UUID layer);
87 void clearCurrentLayer();
89 void objectsSelectedSlot(
Buffer<UUID> objects,
bool selected);
90 void currentLayerDeletedSlot();
91 void currentLayerUpdatedSlot();
92 void layerSelectedSlot(
UUID layer);
97 void updateLayerCombo();
99 bool event(QEvent* ev)
override;
107 Ui::LayerWidgetUI*
ui;
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition Dictionary.h:48
Definition Pointer.hpp:303
Definition LayerWidget.h:56
Buffer< UUID > m_layers
Definition LayerWidget.h:74
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition LayerWidget.cpp:68
void onClearAllSlot()
Definition LayerWidget.cpp:49
void layerUpdated(UUID layer)
Definition LayerWidget.cpp:39
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
Definition LayerWidget.cpp:58
Dictionary< UUID, LayerCacheObject > m_layer_cache
Definition LayerWidget.h:76
const Buffer< UUID > & layers() const
Definition LayerWidget.h:66
bool hasChildren(const QModelIndex &parent=QModelIndex()) const override
Definition LayerWidget.cpp:78
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Definition LayerWidget.cpp:149
QModelIndex parent(const QModelIndex &child) const override
Definition LayerWidget.cpp:64
void layerAddedSlot(Buffer< UUID > layer)
Definition LayerWidget.cpp:27
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
Definition LayerWidget.cpp:187
QTModelManager * m_manager
Definition LayerWidget.h:75
QVector< int > cacheObject(UUID id)
Definition LayerWidget.cpp:85
int columnCount(const QModelIndex &parent=QModelIndex()) const override
Definition LayerWidget.cpp:74
LayerModel(QTModelManager *manager)
Definition LayerWidget.cpp:15
Definition LayerTable.h:6
Definition QTModelManager.h:94
Represents a color in the RGB space with optional alpha transparency.
Definition RGBColor.h:53
Definition FontEditor.h:6
Definition BaseValues.hpp:272
Definition LayerWidget.h:47
bool is_visible
Definition LayerWidget.h:52
bool is_selected
Definition LayerWidget.h:53
RGBColor color
Definition LayerWidget.h:51
QIcon icon
Definition LayerWidget.h:48
QString description
Definition LayerWidget.h:50
QString name
Definition LayerWidget.h:49