31 #ifndef FUTURE_MATRIX_H
32 #define FUTURE_MATRIX_H
34 #ifndef LEGACY_CODE_0_2_x
35 #include "core/AbstractScriptingEngine.h"
41 class QContextMenuEvent;
46 #define _Matrix_initial_rows_ 10
47 #define _Matrix_initial_columns_ 3
52 #ifndef LEGACY_CODE_0_2_x
73 #ifndef LEGACY_CODE_0_2_x
74 Matrix(AbstractScriptingEngine *engine,
int rows,
int cols,
const QString&
name);
76 Matrix(
void *,
int rows,
int cols,
const QString&
name);
82 virtual QIcon
icon()
const;
93 virtual QWidget *
view();
147 double cell(
int row,
int col)
const;
149 void setCell(
int row,
int col,
double value );
151 QVector<qreal>
columnCells(
int col,
int first_row,
int last_row);
153 void setColumnCells(
int col,
int first_row,
int last_row,
const QVector<qreal> & values);
155 QVector<qreal>
rowCells(
int row,
int first_column,
int last_column);
157 void setRowCells(
int row,
int first_column,
int last_column,
const QVector<qreal> & values);
159 QString
text(
int row,
int col);
180 virtual void save(QXmlStreamWriter *)
const;
263 #ifdef LEGACY_CODE_0_2_x
264 void recalculateSelectedCells();
276 void dataChanged(
int top,
int left,
int bottom,
int right);
280 #ifdef LEGACY_CODE_0_2_x
401 double cell(
int row,
int col)
const;
403 void setCell(
int row,
int col,
double value);
405 QVector<qreal>
columnCells(
int col,
int first_row,
int last_row);
407 void setColumnCells(
int col,
int first_row,
int last_row,
const QVector<qreal> & values);
409 QVector<qreal>
rowCells(
int row,
int first_column,
int last_column);
411 void setRowCells(
int row,
int first_column,
int last_column,
const QVector<qreal> & values);