3 #include <QScriptEngine>
10 set_Type(
"Data Column");
34 return engine->newQObject(data.data());
39 QObject *qobj = obj.toQObject();
84 if (i >= 0 && i <
count()) {
static void deallocate(int sz, int width, int height)
static QcepDataColumnPtr newDataColumn(QcepSettingsSaverWPtr saver, QString name, int npts, QcepObject *parent)
virtual int rowCount() const
QcepDataColumn(QcepSettingsSaverWPtr saver, QString name, int npts, QcepObject *parent)
QSharedPointer< QcepDataColumn > QcepDataColumnPtr
virtual void resize(int n)
QVector< double > m_Vector
static QScriptValue toColumnScriptValue(QScriptEngine *engine, const QcepDataColumnPtr &data)
virtual ~QcepDataColumn()
static void allocate(int sz, int width, int height)
QSharedPointer< QcepDataObject > QcepDataObjectPtr
static void fromColumnScriptValue(const QScriptValue &obj, QcepDataColumnPtr &data)
virtual int columnCount() const
virtual void setValue(int i, const double value)
virtual int count() const
virtual QString description() const
virtual double value(int i) const
QWeakPointer< QcepSettingsSaver > QcepSettingsSaverWPtr
QcepSettingsSaverWPtr saver()