34#include <NDEVR/QTModelManager.h>
35#include <NDEVR/QTDesignObject.h>
36#include <QAbstractItemModel>
66 QModelIndex
index(
int row,
int column,
const QModelIndex&
parent = QModelIndex())
const override;
67 QModelIndex
parent(
const QModelIndex& child)
const override;
73 QVariant
data(
const QModelIndex&
index,
int role = Qt::DisplayRole)
const override;
74 bool setData(
const QModelIndex&
index,
const QVariant& value,
int role = Qt::EditRole)
override;
116 Ui::LayerWidgetUI*
ui;
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
A hash-based key-value store, useful for quick associative lookups. Key features include:
Definition Dictionary.h:61
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:320
Used for showing Layers in a table using the QAbstractItemModel interface.
Definition LayerWidget.h:62
Buffer< UUID > m_layers
Definition LayerWidget.h:80
int rowCount(const QModelIndex &parent=QModelIndex()) const override
void layerUpdated(UUID layer)
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
Dictionary< UUID, LayerCacheObject > m_layer_cache
Definition LayerWidget.h:82
const Buffer< UUID > & layers() const
Definition LayerWidget.h:72
bool hasChildren(const QModelIndex &parent=QModelIndex()) const override
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
QModelIndex parent(const QModelIndex &child) const override
void layerAddedSlot(Buffer< UUID > layer)
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
QTModelManager * m_manager
Definition LayerWidget.h:81
QVector< int > cacheObject(UUID id)
int columnCount(const QModelIndex &parent=QModelIndex()) const override
LayerModel(QTModelManager *manager)
A table showing a list of Layers.
Definition LayerTable.h:9
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
Definition QTModelManager.h:105
Represents a color in the RGB space with optional alpha transparency.
Definition RGBColor.h:54
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:60
Definition FontEditor.h:6
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...
Definition BaseValues.hpp:233
Stores cached information for the LayerModel.
Definition LayerWidget.h:50
bool is_visible
Definition LayerWidget.h:55
bool is_selected
Definition LayerWidget.h:56
RGBColor color
Definition LayerWidget.h:54
QIcon icon
Definition LayerWidget.h:51
QString description
Definition LayerWidget.h:53
QString name
Definition LayerWidget.h:52