34 #include <QVarLengthArray>
44 MyTable(QWidget * parent = 0,
const char * name = 0);
45 MyTable(
int numRows,
int numCols, QWidget * parent = 0,
const char * name = 0);
82 double avg(
int col,
int startRow = 0,
int endRow = -1);
83 double sum(
int col,
int startRow = 0,
int endRow = -1);
86 Table*
extractData(
const QString&
name,
const QString& condition,
int startRow = 0,
int endRow = -1);
87 static QDateTime
dateTime(
double val);
89 static double fromTime(
const QTime& t);
105 QString
text(
int row,
int col);
109 void setColName(
int col,
const QString&
text,
bool enumerateRight =
false,
bool warn =
true);
136 void print(QPrinter *);
137 void print(
const QString& fileName);
151 virtual void insertCols(
int start,
int count);
184 void sort(
int type = 0,
int order = 0,
const QString& leadCol = QString());
186 void sortColumns(
int type = 0,
int order = 0,
const QString& leadCol = QString());
193 void sortColumns(
const QStringList& cols,
int type = 0,
int order = 0,
const QString& leadCol = QString());
208 QVarLengthArray<double>
col(
int ycol);
215 int colY(
int col,
int xCol = -1);
254 void init(
int rows,
int cols);
305 bool setDateFormat(
const QString& format,
int col,
bool updateCells =
true);
306 bool setTimeFormat(
const QString& format,
int col,
bool updateCells =
true);
308 void setDayFormat(
const QString& format,
int col,
bool updateCells =
true);
310 bool exportExcel(
const QString& fname,
bool withLabels,
bool exportComments,
bool exportSelection);
311 bool exportOdsSpreadsheet(
const QString& fname,
bool withLabels,
bool exportComments,
bool exportSelection);
312 bool exportODF(
const QString& fname,
bool withLabels,
bool exportComments,
bool exportSelection);
313 bool exportASCII(
const QString& fname,
const QString& separator,
bool withLabels =
false,
314 bool exportComments =
false,
bool exportSelection =
false);
315 void importASCII(
const QString &fname,
const QString &sep =
"\t",
int ignoredLines = 0,
bool renameCols =
false,
316 bool stripSpaces =
false,
bool simplifySpaces =
false,
bool importComments =
false,
317 const QString& commentString =
"",
bool readOnly =
false,
318 ImportMode importAs =
Overwrite,
const QLocale& importLocale = QLocale(),
int endLine = 0,
int maxRows = -1,
319 const QList<int>& newColTypes = QList<int>(),
const QStringList& colFormats = QStringList());
323 virtual void save(
const QString &fn,
const QString& geometry,
bool =
false);
324 void restore(
const QStringList& lst);