Mercurial > hg > dmlib
view editor/edres.h @ 2577:04c035342960
Attribute code in dmperlin.[ch] to be heavily based on Ken Perlin's original C
implementation, which can be found, for example, at
https://cs.nyu.edu/~perlin/doc/oscar.html#noise
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 12 Mar 2022 02:42:16 +0200 |
parents | e2ac08228a0f |
children |
line wrap: on
line source
#ifndef RESOURCEMODEL_H #define RESOURCEMODEL_H #include <QAbstractTableModel> #include <QPair> #include <QList> class QEDResourceModel : public QAbstractTableModel { Q_OBJECT public: QEDResourceModel(QObject *parent = 0); int rowCount(const QModelIndex &parent) const; int columnCount(const QModelIndex &parent) const; QVariant data(const QModelIndex &index, int role) const; QVariant headerData(int section, Qt::Orientation orientation, int role) const; Qt::ItemFlags flags(const QModelIndex &index) const; // bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole); // QList< QPair<QString, QString> > getList(); private: }; #endif