27 lines
590 B
C
27 lines
590 B
C
|
#ifndef ABSTRACTGUIDEDEDITORMODEL_H
|
||
|
#define ABSTRACTGUIDEDEDITORMODEL_H
|
||
|
|
||
|
#include <cstdlib>
|
||
|
#include <QObject>
|
||
|
#include "guidededitorelement.h"
|
||
|
|
||
|
class AbstractGuidedEditorModel : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
explicit AbstractGuidedEditorModel(QObject *parent = 0);
|
||
|
virtual ~AbstractGuidedEditorModel();
|
||
|
|
||
|
virtual uint getCount()=0;
|
||
|
virtual GuidedEditorElement& getElement(uint index) = 0;
|
||
|
virtual void setElementValue(const uint index, const QString value)= 0;
|
||
|
|
||
|
signals:
|
||
|
void dataChanged();
|
||
|
void dataChanged(uint index);
|
||
|
|
||
|
public slots:
|
||
|
};
|
||
|
|
||
|
#endif // ABSTRACTGUIDEDEDITORMODEL_H
|