27#ifndef ENTRYLISTMODEL_H
28#define ENTRYLISTMODEL_H
32#include <peak/node_map/peak_node_map.hpp>
34#include <QAbstractListModel>
68 int rowCount(
const QModelIndex& index = QModelIndex())
const override;
69 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
70 void setNode(
const std::shared_ptr<peak::core::nodes::EnumerationNode>& node);
84 QHash<int, QByteArray>
roleNames()
const override;
87 std::shared_ptr<peak::core::nodes::EnumerationNode>
m_node;
88 std::vector<std::shared_ptr<EntryListObject>>
m_objects{};
int currentIndex
Definition entrylistmodel.h:44
Q_INVOKABLE QStringList entryDisplayNameList()
Definition entrylistmodel.cpp:174
void setCurrentIndex(int newIndex)
Definition entrylistmodel.cpp:186
QMutex mutex
Definition entrylistmodel.h:92
void setNode(const std::shared_ptr< peak::core::nodes::EnumerationNode > &node)
Definition entrylistmodel.cpp:109
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Definition entrylistmodel.cpp:71
QStringList m_entryDisplayNames
Definition entrylistmodel.h:90
~EntryListModel() override=default
int m_currentIndex
Definition entrylistmodel.h:91
int rowCount(const QModelIndex &index=QModelIndex()) const override
Definition entrylistmodel.cpp:66
std::vector< std::shared_ptr< EntryListObject > > m_objects
Definition entrylistmodel.h:88
bool operator!=(const EntryListModel &other)
Definition entrylistmodel.cpp:61
QHash< int, QByteArray > roleNames() const override
Definition entrylistmodel.cpp:272
Q_INVOKABLE EntryListObject * get(const QString &name)
Definition entrylistmodel.cpp:144
bool operator==(const EntryListModel &other)
Definition entrylistmodel.cpp:32
void currentIndexChanged()
std::shared_ptr< peak::core::nodes::EnumerationNode > m_node
Definition entrylistmodel.h:87
int count
Definition entrylistmodel.h:45
bool updateAll()
Definition entrylistmodel.cpp:229
void updateCurrentIndex()
Definition entrylistmodel.cpp:289
Roles
Definition entrylistmodel.h:48
@ TooltipRole
Definition entrylistmodel.h:51
@ VisibilityRole
Definition entrylistmodel.h:53
@ AvailableRole
Definition entrylistmodel.h:56
@ AccessStatusRole
Definition entrylistmodel.h:59
@ SymbolicValueRole
Definition entrylistmodel.h:55
@ NameRole
Definition entrylistmodel.h:49
@ WriteableRole
Definition entrylistmodel.h:58
@ DisplayNameRole
Definition entrylistmodel.h:50
@ NumericValueRole
Definition entrylistmodel.h:54
@ ReadableRole
Definition entrylistmodel.h:57
@ DescriptionRole
Definition entrylistmodel.h:52
QStringList m_entryNames
Definition entrylistmodel.h:89
Definition entrylistobject.h:37
The EntryListObject is a prototype for camera property nodes of type "EnumerationEntry"....