view edres.h @ 510:43ea59887c69

Start work on making C64 formats encoding possible by changing DMDecodeOps to DMEncDecOps and adding fields and op enums for custom encode functions, renaming, etc. Split generic op sanity checking into a separate function in preparation for its use in generic encoding function.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 19 Nov 2012 15:06:01 +0200
parents d34922e6a244
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