#include <Table.h>
Saving and Restoring | |
MyTable * | d_table |
QStringList | col_format |
QStringList | col_label |
QList< int > | col_plot_type |
QList< int > | colTypes |
QStringList | commands |
QStringList | comments |
int | d_numeric_precision |
double ** | d_saved_cells |
bool | d_show_comments |
int | selectedCol |
QStringList | colComments () |
void | colWidthModified (int, int, int) |
Notifies the main application that the width of a table column has been modified by the user. | |
QString | comment (int col) |
bool | commentsEnabled () |
void | notifyChanges () |
This slot notifies the main application that the table has been modified. Triggers the update of 2D plots. | |
void | restore (const QStringList &lst) |
Not implemented yet. | |
virtual void | save (const QString &fn, const QString &geometry, bool=false) |
QString | saveColumnTypes () |
QString | saveColumnWidths () |
QString | saveCommands () |
QString | saveComments () |
QString | saveHeader () |
QString | saveHiddenColumnsInfo () |
QString | saveReadOnlyInfo () |
void | setBackgroundColor (const QColor &col) |
void | setColComment (int col, const QString &s) |
void | setColComments (const QStringList &lst) |
void | setHeaderColor (const QColor &col) |
void | setHeaderFont (const QFont &fnt) |
void | setTextColor (const QColor &col) |
void | setTextFont (const QFont &fnt) |
void | showComments (bool on=true) |
int | verticalHeaderWidth () |
void | changedColHeader (const QString &, const QString &) |
void | colValuesDialog () |
void | createTable (const QString &, int, int, const QString &) |
void | modifiedData (Table *, const QString &) |
void | optionsDialog () |
void | removedCol (const QString &) |
void | resizedTable (QWidget *) |
void | showContextMenu (bool selection) |
void | clearCol () |
void | setColumnHeader (int index, const QString &label) |
Internal function to change the column header. | |
Public Types | |
enum | ColType { Numeric = 0, Text = 1, Date = 2, Time = 3, Month = 4, Day = 5 } |
enum | ImportMode { NewColumns, NewRows, Overwrite } |
enum | PlotDesignation { All = -1, None = 0, X = 1, Y = 2, Z = 3, xErr = 4, yErr = 5, Label = 6 } |
Public Slots | |
bool | calculate () |
Compute selected cells from column formulae; use current cell if there's no selection. | |
bool | calculate (int col, int startRow, int endRow, bool forceMuParser=true, bool notifyChanges=true) |
Compute specified cells from column formula. | |
double | cell (int row, int col) |
Return the value of the cell as a double. | |
void | cellEdited (int, int col) |
void | clearCell (int row, int col) |
QVarLengthArray< double > | col (int ycol) |
int | colIndex (const QString &name) |
QString | colLabel (int col) |
QString | colName (int col) |
QStringList | colNames () |
int | colPlotDesignation (int col) |
QString | columnFormat (int col) |
void | columnNumericFormat (int col, int *f, int *precision) |
void | columnNumericFormat (int col, char *f, int *precision) |
QStringList | columnsList () |
int | columnType (int col) |
Q3ValueList< int > | columnTypes () |
int | columnWidth (int col) |
QStringList | columnWidths () |
int | colX (int col) |
int | colY (int col) |
void | copy (Table *m) |
QStringList | drawableColumnSelection () |
bool | exportASCII (const QString &fname, const QString &separator, bool withLabels=false, bool exportComments=false, bool exportSelection=false) |
void | exportPDF (const QString &fileName) |
int | firstSelectedColumn () |
int | firstXCol () |
void | freeMemory () |
QStringList | getColumnsFormat () |
QStringList | getCommands () |
void | goToColumn (int col) |
Scroll to column (column starts with 1). | |
void | goToRow (int row) |
Scroll to row (row starts with 1). | |
void | importASCII (const QString &fname, const QString &sep, int ignoredLines, bool renameCols, bool stripSpaces, bool simplifySpaces, bool importComments, const QString &commentString, bool readOnly=false, ImportMode importAs=Overwrite, int endLine=0, int maxRows=-1) |
void | init (int rows, int cols) |
bool | isColumnSelected (int col, bool full=false) |
bool | isEmptyColumn (int col) |
bool | isEmptyRow (int row) |
bool | isReadOnlyColumn (int col) |
bool | isRowSelected (int row, bool full=false) |
void | loadHeader (QStringList header) |
void | moveCurrentCell () |
bool | muParserCalculate (int col, int startRow, int endRow, bool notifyChanges=true) |
Compute specified cells from column formula (optimized for muParser). | |
int | nonEmptyRows () |
bool | noXColumn () |
bool | noYColumn () |
int | numCols () |
int | numRows () |
int | numSelectedRows () |
Q3ValueList< int > | plotDesignations () |
void | print (const QString &fileName) |
void | print () |
void | resizeCols (int) |
void | resizeRows (int) |
void | saveToMemory () |
void | saveToMemory (double **cells) |
int | selectedColsNumber () |
int | selectedColumn () |
QStringList | selectedColumns () |
QStringList | selectedErrColumns () |
QStringList | selectedYColumns () |
QStringList | selectedYLabels () |
void | setAscValues () |
void | setCell (int row, int col, double val) |
void | setColName (int col, const QString &text, bool enumerateRight=false) |
void | setColNumericFormat (int f, int prec, int col, bool updateCells=true) |
void | setColPlotDesignation (int col, PlotDesignation pd) |
void | setColumnsFormat (const QStringList &lst) |
void | setColumnType (int col, ColType val) |
void | setColumnTypes (const QStringList &ctl) |
void | setColumnTypes (Q3ValueList< int > ctl) |
void | setColumnWidth (int col, int width) |
void | setColumnWidth (int width, bool allCols) |
void | setColWidths (const QStringList &widths) |
void | setCommand (int col, const QString &com) |
Set formula for column col. | |
void | setCommands (const QString &com) |
Set all column formulae. | |
void | setCommands (const QStringList &com) |
Set all column formulae. | |
bool | setDateFormat (const QString &format, int col, bool updateCells=true) |
void | setDayFormat (const QString &format, int col, bool updateCells=true) |
void | setHeader (QStringList header) |
void | setHeaderColType () |
void | setMonthFormat (const QString &format, int col, bool updateCells=true) |
void | setNumCols (int cols) |
void | setNumRows (int rows) |
void | setPlotDesignation (PlotDesignation pd, bool rightColumns=false) |
void | setRandomValues () |
void | setReadOnlyColumn (int col, bool on=true) |
void | setSelectedCol (int col) |
void | setText (int row, int col, const QString &text) |
void | setTextFormat (int col) |
bool | setTimeFormat (const QString &format, int col, bool updateCells=true) |
MyTable * | table () |
QString | text (int row, int col) |
void | updateValues (Table *, const QString &columnName) |
Recalculates values in all columns with formulas containing. | |
QStringList | YColumns () |
Column Operations | |
void | addCol (PlotDesignation pd=Y) |
void | addColumns (int c) |
void | hideColumn (int col, bool=true) |
void | hideSelectedColumns () |
void | insertCol () |
void | insertCols (int start, int count) |
bool | isColumnHidden (int col) |
void | moveColumn (int, int, int) |
void | moveColumnBy (int cols) |
void | removeCol (const QStringList &list) |
void | removeCol () |
void | showAllColumns () |
void | swapColumns (int, int) |
void | clear () |
void | clearSelection () |
void | copySelection () |
void | cutSelection () |
Selection Operations. | |
void | deselect () |
void | pasteSelection () |
void | selectAllTable () |
Event Handlers | |
void | customEvent (QEvent *e) |
bool | eventFilter (QObject *object, QEvent *e) |
Filters other object's events (customizes title bar's context menu). | |
Row Operations | |
void | deleteRows (int startRow, int endRow) |
void | deleteSelectedRows () |
void | insertRow () |
Normalization | |
void | normalize () |
void | normalizeCol (int col=-1) |
void | normalizeSelection () |
Sorting | |
void | sort (int type=0, int order=0, const QString &leadCol=QString()) |
Sort all columns as in sortColumns(const QStringList&,int,int,const QString&). | |
void | sortColAsc () |
Sort the current column in ascending order. | |
void | sortColDesc () |
Sort the current column in descending order. | |
void | sortColumn (int col=-1, int order=0) |
Sort the specified column. | |
void | sortColumns (const QStringList &cols, int type=0, int order=0, const QString &leadCol=QString()) |
Sort the specified columns. | |
void | sortColumns (int type=0, int order=0, const QString &leadCol=QString()) |
Sort selected columns as in sortColumns(const QStringList&,int,int,const QString&). | |
void | sortColumnsDialog () |
Display a dialog with some options for sorting the selected columns. | |
void | sortTableDialog () |
Display a dialog with some options for sorting all columns. | |
Public Member Functions | |
Q3TableSelection | getSelection () |
void | setAutoUpdateValues (bool on=true) |
void | setNumericPrecision (int prec) |
Sets the number of significant digits. | |
virtual QString | sizeToString () |
Size of the widget as a string. | |
Table (ScriptingEnv *env, int r, int c, const QString &label, ApplicationWindow *parent, const QString &name=QString(), Qt::WFlags f=0) | |
void | updateDecimalSeparators (const QLocale &oldSeparators) |
Updates the decimal separators when importing ASCII files on user request. |
enum Table::ColType |
enum Table::ImportMode |
Table::Table | ( | ScriptingEnv * | env, | |
int | r, | |||
int | c, | |||
const QString & | label, | |||
ApplicationWindow * | parent, | |||
const QString & | name = QString() , |
|||
Qt::WFlags | f = 0 | |||
) |
References init().
void Table::addCol | ( | PlotDesignation | pd = Y |
) | [slot] |
References col_format, col_label, col_plot_type, colTypes, commands, comments, d_numeric_precision, d_table, MdiSubWindow::modifiedWindow(), Numeric, and setHeaderColType().
Referenced by ApplicationWindow::addColToTable(), Correlation::addResultCurve(), Convolution::addResultCurve(), and ApplicationWindow::defineErrorBars().
void Table::addColumns | ( | int | c | ) | [slot] |
References col_format, col_label, col_plot_type, colTypes, commands, comments, d_numeric_precision, d_table, Numeric, and Y.
Referenced by importASCII(), pasteSelection(), resizeCols(), and setNumCols().
bool Table::calculate | ( | ) | [slot] |
Compute selected cells from column formulae; use current cell if there's no selection.
References col(), and getSelection().
Referenced by updateValues().
bool Table::calculate | ( | int | col, | |
int | startRow, | |||
int | endRow, | |||
bool | forceMuParser = true , |
|||
bool | notifyChanges = true | |||
) | [slot] |
Compute specified cells from column formula.
References col_label, colName(), colTypes, columnNumericFormat(), commands, Script::compile(), d_table, Script::eval(), modifiedData(), MdiSubWindow::modifiedWindow(), muParserCalculate(), ScriptingEnv::newScript(), Numeric, numRows(), print(), resizeRows(), scripted::scriptEnv, and Script::setDouble().
Referenced by SetColValuesDialog::apply().
double Table::cell | ( | int | row, | |
int | col | |||
) | [slot] |
Return the value of the cell as a double.
References d_table.
Referenced by FFTDialog::activateCurve(), Graph3D::addData(), muParserScript::col(), FrequencyCountDialog::FrequencyCountDialog(), Graph3D::loadData(), normalizeCol(), save(), FFT::setDataFromTable(), Correlation::setDataFromTable(), Convolution::setDataFromTable(), FFTDialog::setTable(), Fit::setWeightingData(), sortColumn(), sortColumns(), muParserScript::tableCell(), muParserScript::tablecol(), DataCurve::tableRow(), ApplicationWindow::tableToMatrix(), TableStatistics::update(), Graph3D::updateDataXY(), and Graph3D::updateScales().
void Table::cellEdited | ( | int | row, | |
int | col | |||
) | [slot] |
References colName(), columnNumericFormat(), columnType(), d_table, Script::eval(), modifiedData(), MdiSubWindow::modifiedWindow(), ScriptingEnv::newScript(), Numeric, scripted::scriptEnv, Script::setInt(), and text().
Referenced by init().
void Table::changedColHeader | ( | const QString & | , | |
const QString & | ||||
) | [signal] |
Referenced by importASCII(), setColName(), and TableStatistics::TableStatistics().
void Table::clear | ( | ) | [slot] |
References colName(), d_table, modifiedData(), and MdiSubWindow::modifiedWindow().
Referenced by ApplicationWindow::clearTable().
void Table::clearCell | ( | int | row, | |
int | col | |||
) | [slot] |
References colName(), d_table, modifiedData(), and MdiSubWindow::modifiedWindow().
Referenced by DataPickerTool::removePoint().
void Table::clearCol | ( | ) | [private] |
void Table::clearSelection | ( | ) | [slot] |
References clearCol(), col(), col_label, colIndex(), colName(), d_table, modifiedData(), MdiSubWindow::modifiedWindow(), MdiSubWindow::name(), selectedCol, and selectedColumns().
Referenced by cutSelection().
QVarLengthArray< double > Table::col | ( | int | ycol | ) | [slot] |
References columnNumericFormat(), d_table, numCols(), and Y.
Referenced by calculate(), clearSelection(), ApplicationWindow::defineErrorBars(), eventFilter(), moveCurrentCell(), normalizeSelection(), removeCol(), restore(), saveCommands(), saveToMemory(), setAscValues(), setPlotDesignation(), setRandomValues(), and sortColumns().
int Table::colIndex | ( | const QString & | name | ) | [slot] |
References col_label.
Referenced by FFTDialog::activateCurve(), Graph::addCurves(), Graph3D::addData(), Graph3D::changeDataColumn(), clearSelection(), RangeSelectorTool::clearSelection(), ApplicationWindow::defineErrorBars(), RangeSelectorTool::emitStatusText(), ImportOPJ::importGraphs(), Graph::insertCurve(), Graph3D::insertNewData(), ApplicationWindow::integrate(), VectorCurve::loadData(), QwtPieCurve::loadData(), QwtHistogram::loadData(), QwtErrorPlotCurve::loadData(), DataCurve::loadData(), BoxCurve::loadData(), DataCurve::loadLabels(), DataPickerTool::movePoint(), ApplicationWindow::multilayerPlot(), normalizeSelection(), ApplicationWindow::openPlotXYZ(), LegendWidget::parse(), pasteSelection(), RangeSelectorTool::pasteSelection(), DataPickerTool::pasteSelection(), PlotWizard::plot3D(), ApplicationWindow::plotXYZ(), removeCol(), DataPickerTool::removePoint(), TranslateCurveTool::selectCurvePoint(), TranslateCurveTool::selectDestination(), setAscValues(), Filter::setDataFromTable(), FFT::setDataFromTable(), Correlation::setDataFromTable(), Convolution::setDataFromTable(), Graph::setLabelsTextFormat(), setPlotDesignation(), setRandomValues(), ApplicationWindow::setReadOnlyCol(), ApplicationWindow::setReadOnlyColumns(), ApplicationWindow::setReadWriteColumns(), Graph3D::setScales(), DataPickerTool::setSelection(), FFTDialog::setTable(), Fit::setWeightingData(), ApplicationWindow::showTable(), sortColumns(), ApplicationWindow::swapColumns(), DataCurve::tableRow(), TableStatistics::update(), and Graph3D::updateData().
QString Table::colLabel | ( | int | col | ) | [inline, slot] |
QString Table::colName | ( | int | col | ) | [slot] |
References col_label.
Referenced by Graph::addCurves(), Correlation::addResultCurve(), Convolution::addResultCurve(), DrawPointTool::appendPoint(), calculate(), cellEdited(), Graph3D::changeDataColumn(), clear(), clearCell(), clearCol(), clearSelection(), ApplicationWindow::defineErrorBars(), FFT::fftTable(), FrequencyCountDialog::FrequencyCountDialog(), importASCII(), ImportOPJ::importGraphs(), Graph::insertCurve(), ApplicationWindow::integrate(), Graph3D::loadData(), muParserCalculate(), normalizeCol(), notifyChanges(), ApplicationWindow::openGraph(), pasteSelection(), ApplicationWindow::plot3DBars(), ApplicationWindow::plot3DRibbon(), ApplicationWindow::plot3DScatter(), ApplicationWindow::plot3DTrajectory(), ApplicationWindow::plotXYZ(), ApplicationWindow::removeWindowFromLists(), resizeCols(), resizeRows(), Filter::setDataFromTable(), sortColumn(), sortColumns(), TableStatistics::TableStatistics(), and TableStatistics::update().
QStringList Table::colNames | ( | ) | [inline, slot] |
int Table::colPlotDesignation | ( | int | col | ) | [inline, slot] |
QString Table::columnFormat | ( | int | col | ) | [inline, slot] |
References col_format.
Referenced by Graph::insertCurve(), DataCurve::loadData(), DataCurve::tableRow(), and TableDialog::updateColumn().
void Table::columnNumericFormat | ( | int | col, | |
int * | f, | |||
int * | precision | |||
) | [slot] |
References col_format.
void Table::columnNumericFormat | ( | int | col, | |
char * | f, | |||
int * | precision | |||
) | [slot] |
References col_format.
Referenced by calculate(), cellEdited(), col(), muParserCalculate(), normalizeCol(), pasteSelection(), RangeSelectorTool::pasteSelection(), DataPickerTool::pasteSelection(), TranslateCurveTool::selectDestination(), setAscValues(), setCell(), setColNumericFormat(), setRandomValues(), sortColumn(), sortColumns(), TableDialog::updateColumn(), and updateDecimalSeparators().
QStringList Table::columnsList | ( | ) | [slot] |
References col_label, and d_table.
Referenced by PlotDialog::setActiveCurve(), and FFTDialog::setTable().
int Table::columnType | ( | int | col | ) | [inline, slot] |
References colTypes.
Referenced by cellEdited(), Graph::insertCurve(), QwtErrorPlotCurve::loadData(), DataCurve::loadData(), DataPickerTool::movePoint(), ApplicationWindow::openTable(), DataPickerTool::removePoint(), TranslateCurveTool::selectDestination(), setAscValues(), Filter::setDataFromTable(), sortColumn(), sortColumns(), DataCurve::tableRow(), TableStatistics::update(), and TableDialog::updateColumn().
int Table::columnWidth | ( | int | col | ) | [slot] |
QStringList Table::columnWidths | ( | ) | [slot] |
References d_table.
void Table::colValuesDialog | ( | ) | [signal] |
void Table::colWidthModified | ( | int | , | |
int | , | |||
int | ||||
) | [slot] |
Notifies the main application that the width of a table column has been modified by the user.
References MdiSubWindow::modifiedWindow(), and setHeaderColType().
Referenced by init().
int Table::colX | ( | int | col | ) | [slot] |
References col_plot_type, d_table, and X.
Referenced by Graph::addCurves(), Graph3D::changeDataColumn(), ImportOPJ::importGraphs(), Graph::insertCurve(), Graph3D::insertNewData(), ApplicationWindow::integrate(), and ApplicationWindow::plotXYZ().
int Table::colY | ( | int | col | ) | [slot] |
References col_plot_type, d_table, and Y.
Referenced by Graph::addCurves(), Graph3D::changeDataColumn(), ImportOPJ::importGraphs(), Graph3D::insertNewData(), and ApplicationWindow::plotXYZ().
QString Table::comment | ( | int | col | ) | [slot] |
bool Table::commentsEnabled | ( | ) | [inline, slot] |
void Table::copy | ( | Table * | m | ) | [slot] |
References col_format, col_label, col_plot_type, colComments(), colNames(), columnTypes(), columnWidth(), commands, comments, commentsEnabled(), d_show_comments, d_table, getColumnsFormat(), getCommands(), isColumnHidden(), isReadOnlyColumn(), plotDesignations(), setColumnTypes(), setHeaderColType(), and text().
Referenced by ApplicationWindow::clone().
void Table::copySelection | ( | ) | [slot] |
References MdiSubWindow::applicationWindow(), d_table, ApplicationWindow::endOfLine(), and text().
Referenced by cutSelection().
void Table::createTable | ( | const QString & | , | |
int | , | |||
int | , | |||
const QString & | ||||
) | [signal] |
void Table::customEvent | ( | QEvent * | e | ) | [slot] |
References SCRIPTING_CHANGE_EVENT, and scripted::scriptingChangeEvent().
void Table::cutSelection | ( | ) | [slot] |
void Table::deleteRows | ( | int | startRow, | |
int | endRow | |||
) | [slot] |
References d_table, and notifyChanges().
Referenced by deleteSelectedRows(), and ApplicationWindow::showDeleteRowsDialog().
void Table::deleteSelectedRows | ( | ) | [slot] |
References d_table, and deleteRows().
void Table::deselect | ( | ) | [slot] |
References d_table.
QStringList Table::drawableColumnSelection | ( | ) | [slot] |
References col_label, col_plot_type, d_table, Label, xErr, Y, and yErr.
Referenced by ApplicationWindow::fitLinear(), and ApplicationWindow::generate2DGraph().
bool Table::eventFilter | ( | QObject * | object, | |
QEvent * | e | |||
) | [slot] |
Filters other object's events (customizes title bar's context menu).
Reimplemented from MdiSubWindow.
References col(), d_table, MdiSubWindow::eventFilter(), MdiSubWindow::modifiedWindow(), numSelectedRows(), optionsDialog(), selectedCol, selectedColsNumber(), and MdiSubWindow::showContextMenu().
bool Table::exportASCII | ( | const QString & | fname, | |
const QString & | separator, | |||
bool | withLabels = false , |
|||
bool | exportComments = false , |
|||
bool | exportSelection = false | |||
) | [slot] |
References MdiSubWindow::applicationWindow(), colNames(), comments, d_table, ApplicationWindow::endOfLine(), and text().
void Table::exportPDF | ( | const QString & | fileName | ) | [virtual, slot] |
int Table::firstSelectedColumn | ( | ) | [slot] |
int Table::firstXCol | ( | ) | [slot] |
void Table::freeMemory | ( | ) | [slot] |
References d_saved_cells, and d_table.
Referenced by TableDialog::closeEvent(), and ImportOPJ::importTables().
QStringList Table::getColumnsFormat | ( | ) | [inline, slot] |
QStringList Table::getCommands | ( | ) | [inline, slot] |
References commands.
Referenced by SetColValuesDialog::apply(), copy(), and SetColValuesDialog::updateColumn().
Q3TableSelection Table::getSelection | ( | ) |
void Table::goToColumn | ( | int | col | ) | [slot] |
void Table::goToRow | ( | int | row | ) | [slot] |
Scroll to row (row starts with 1).
References d_table, and numRows().
Referenced by DataPickerTool::selectTableRow().
void Table::hideColumn | ( | int | col, | |
bool | hide = true | |||
) | [slot] |
void Table::hideSelectedColumns | ( | ) | [slot] |
void Table::importASCII | ( | const QString & | fname, | |
const QString & | sep, | |||
int | ignoredLines, | |||
bool | renameCols, | |||
bool | stripSpaces, | |||
bool | simplifySpaces, | |||
bool | importComments, | |||
const QString & | commentString, | |||
bool | readOnly = false , |
|||
ImportMode | importAs = Overwrite , |
|||
int | endLine = 0 , |
|||
int | maxRows = -1 | |||
) | [slot] |
References addColumns(), MdiSubWindow::applicationWindow(), changedColHeader(), col_format, col_label, col_plot_type, colLabel(), colName(), colTypes, commands, comments, d_table, modifiedData(), MdiSubWindow::name(), NewColumns, NewRows, Overwrite, MdiSubWindow::parseAsciiFile(), removedCol(), setHeaderColType(), and showComments().
Referenced by ApplicationWindow::importASCII(), and ApplicationWindow::plotFile().
void Table::init | ( | int | rows, | |
int | cols | |||
) | [slot] |
References MdiSubWindow::applicationWindow(), cellEdited(), col_format, col_label, col_plot_type, colTypes, colWidthModified(), commands, comments, d_numeric_precision, d_saved_cells, d_show_comments, d_table, moveColumn(), moveCurrentCell(), notifyChanges(), Numeric, selectAllTable(), selectedCol, setAutoUpdateValues(), setHeaderColType(), X, and Y.
Referenced by Table().
void Table::insertCol | ( | ) | [slot] |
References insertCols(), and selectedCol.
void Table::insertCols | ( | int | start, | |
int | count | |||
) | [slot] |
References col_format, col_label, col_plot_type, colTypes, commands, comments, d_numeric_precision, d_table, MdiSubWindow::modifiedWindow(), Numeric, setHeaderColType(), and Y.
Referenced by insertCol().
void Table::insertRow | ( | ) | [slot] |
References d_table, and MdiSubWindow::modifiedWindow().
bool Table::isColumnHidden | ( | int | col | ) | [inline, slot] |
bool Table::isColumnSelected | ( | int | col, | |
bool | full = false | |||
) | [inline, slot] |
bool Table::isEmptyColumn | ( | int | col | ) | [slot] |
bool Table::isEmptyRow | ( | int | row | ) | [slot] |
bool Table::isReadOnlyColumn | ( | int | col | ) | [slot] |
bool Table::isRowSelected | ( | int | row, | |
bool | full = false | |||
) | [inline, slot] |
void Table::loadHeader | ( | QStringList | header | ) | [slot] |
References col_label, col_plot_type, Label, None, setHeaderColType(), X, xErr, Y, yErr, and Z.
Referenced by ApplicationWindow::openTable(), ApplicationWindow::openTableStatistics(), and restore().
void Table::modifiedData | ( | Table * | , | |
const QString & | ||||
) | [signal] |
Referenced by calculate(), cellEdited(), clear(), clearCell(), clearCol(), clearSelection(), importASCII(), muParserCalculate(), normalizeCol(), notifyChanges(), pasteSelection(), resizeRows(), setAscValues(), setAutoUpdateValues(), setRandomValues(), sortColumn(), sortColumns(), TableStatistics::TableStatistics(), and TableStatistics::update().
void Table::moveColumn | ( | int | , | |
int | fromIndex, | |||
int | toIndex | |||
) | [slot] |
References col_format, col_label, col_plot_type, colTypes, commands, comments, and setHeaderColType().
Referenced by init().
void Table::moveColumnBy | ( | int | cols | ) | [slot] |
References col_format, col_label, col_plot_type, colTypes, commands, comments, d_table, selectedCol, setHeaderColType(), setSelectedCol(), and swapColumns().
Referenced by ApplicationWindow::moveColumnFirst(), ApplicationWindow::moveColumnLast(), ApplicationWindow::moveColumnLeft(), and ApplicationWindow::moveColumnRight().
void Table::moveCurrentCell | ( | ) | [slot] |
bool Table::muParserCalculate | ( | int | col, | |
int | startRow, | |||
int | endRow, | |||
bool | notifyChanges = true | |||
) | [slot] |
Compute specified cells from column formula (optimized for muParser).
References muParserScript::codeLines(), colName(), colTypes, columnNumericFormat(), commands, muParserScript::compile(), d_table, muParserScript::defineVariable(), muParserScript::eval(), muParserScript::evalSingleLineToString(), modifiedData(), MdiSubWindow::modifiedWindow(), Numeric, numRows(), print(), resizeRows(), and scripted::scriptEnv.
Referenced by calculate().
int Table::nonEmptyRows | ( | ) | [slot] |
References d_table, and isEmptyRow().
void Table::normalize | ( | ) | [slot] |
References col_label, d_table, MdiSubWindow::modifiedWindow(), and normalizeCol().
Referenced by ApplicationWindow::normalizeActiveTable().
void Table::normalizeCol | ( | int | col = -1 |
) | [slot] |
References cell(), colName(), colTypes, columnNumericFormat(), d_table, modifiedData(), selectedCol, and Text.
Referenced by normalize(), and normalizeSelection().
void Table::normalizeSelection | ( | ) | [slot] |
References col(), col_label, colIndex(), d_table, MdiSubWindow::modifiedWindow(), normalizeCol(), and selectedColumns().
Referenced by ApplicationWindow::normalizeSelection().
void Table::notifyChanges | ( | ) | [slot] |
This slot notifies the main application that the table has been modified. Triggers the update of 2D plots.
Reimplemented from MdiSubWindow.
References colName(), d_table, modifiedData(), and MdiSubWindow::modifiedWindow().
Referenced by RangeSelectorTool::clearSelection(), deleteRows(), ApplicationWindow::importASCII(), init(), RangeSelectorTool::pasteSelection(), DataPickerTool::pasteSelection(), TableDialog::setDateTimeFormat(), TableDialog::setDayFormat(), TableDialog::setMonthFormat(), and TableDialog::setNumericFormat().
bool Table::noXColumn | ( | ) | [slot] |
References col_plot_type, d_table, and X.
Referenced by ApplicationWindow::validFor2DPlot(), and ApplicationWindow::validFor3DPlot().
bool Table::noYColumn | ( | ) | [slot] |
int Table::numCols | ( | ) | [slot] |
References d_table.
Referenced by Correlation::addResultCurve(), Convolution::addResultCurve(), TableDialog::apply(), SetColValuesDialog::apply(), ApplicationWindow::clone(), col(), muParserScript::col(), ApplicationWindow::columnsList(), ApplicationWindow::defineErrorBars(), ApplicationWindow::fitLinear(), goToColumn(), DataCurve::loadLabels(), ApplicationWindow::moveColumnLast(), ApplicationWindow::openTable(), ApplicationWindow::openTableStatistics(), ApplicationWindow::removeWindowFromLists(), restore(), saveCommands(), setColumnTypes(), setCommands(), TableDialog::setDateTimeFormat(), TableDialog::setDayFormat(), Graph::setLabelsTextFormat(), TableDialog::setMonthFormat(), TableDialog::setNumericFormat(), SetColValuesDialog::setTable(), TableDialog::setTextFormat(), ApplicationWindow::showColsDialog(), ApplicationWindow::showColStatistics(), Fit::showConfidenceLimits(), CurvesDialog::showCurrentFolder(), Fit::showPredictionLimits(), Fit::showResiduals(), ApplicationWindow::showTableContextMenu(), muParserScript::tableCell(), muParserScript::tablecol(), ApplicationWindow::tableToMatrix(), TableStatistics::update(), TableDialog::updateColumn(), SetColValuesDialog::updateColumn(), AssociationsDialog::updateTable(), updateValues(), ApplicationWindow::validFor2DPlot(), ApplicationWindow::validFor3DPlot(), and Fit::writeParametersToTable().
int Table::numRows | ( | ) | [slot] |
References d_table.
Referenced by Graph3D::addData(), Correlation::addResultCurve(), DrawPointTool::appendPoint(), FrequencyCountDialog::apply(), calculate(), ApplicationWindow::clone(), muParserScript::col(), DataCurve::DataCurve(), ApplicationWindow::defineErrorBars(), FrequencyCountDialog::FrequencyCountDialog(), goToRow(), ImportOPJ::importTables(), Graph::insertCurve(), DataCurve::isFullRange(), Graph3D::loadData(), moveCurrentCell(), muParserCalculate(), Graph::openBoxDiagram(), ApplicationWindow::openGraph(), Graph::plotBoxDiagram(), Graph::plotPie(), Graph::plotVectorCurve(), CurveRangeDialog::setCurveToModify(), Filter::setDataFromTable(), FFT::setDataFromTable(), Correlation::setDataFromTable(), Convolution::setDataFromTable(), setDayFormat(), DataCurve::setFullRange(), Graph::setLabelsTextFormat(), setMonthFormat(), SetColValuesDialog::setTable(), Fit::setWeightingData(), ApplicationWindow::showDeleteRowsDialog(), ApplicationWindow::showRowsDialog(), ApplicationWindow::showRowStatistics(), ApplicationWindow::showTableContextMenu(), muParserScript::tableCell(), muParserScript::tablecol(), TableStatistics::TableStatistics(), ApplicationWindow::tableToMatrix(), TableStatistics::update(), Graph3D::updateDataXY(), Graph3D::updateScales(), updateValues(), and Fit::writeParametersToTable().
int Table::numSelectedRows | ( | ) | [slot] |
References d_table.
Referenced by eventFilter(), ApplicationWindow::showRowStatistics(), and ApplicationWindow::showTableContextMenu().
void Table::optionsDialog | ( | ) | [signal] |
Referenced by eventFilter().
void Table::pasteSelection | ( | ) | [slot] |
Q3ValueList<int> Table::plotDesignations | ( | ) | [inline, slot] |
void Table::print | ( | const QString & | fileName | ) | [slot] |
References MdiSubWindow::applicationWindow(), d_table, and text().
void Table::print | ( | ) | [virtual, slot] |
void Table::removeCol | ( | const QStringList & | list | ) | [slot] |
References col(), col_format, col_label, col_plot_type, colIndex(), colTypes, commands, comments, d_table, MdiSubWindow::modifiedWindow(), MdiSubWindow::name(), and removedCol().
void Table::removeCol | ( | ) | [slot] |
void Table::removedCol | ( | const QString & | ) | [signal] |
Referenced by importASCII(), removeCol(), resizeCols(), and TableStatistics::TableStatistics().
void Table::resizeCols | ( | int | c | ) | [slot] |
References addColumns(), col_format, col_label, col_plot_type, colName(), colTypes, commands, comments, d_table, MdiSubWindow::modifiedWindow(), MdiSubWindow::name(), removedCol(), setHeaderColType(), and text().
Referenced by ApplicationWindow::showColsDialog(), and TableStatistics::TableStatistics().
void Table::resizedTable | ( | QWidget * | ) | [signal] |
void Table::resizeRows | ( | int | r | ) | [slot] |
References colName(), d_table, modifiedData(), MdiSubWindow::modifiedWindow(), and text().
Referenced by calculate(), muParserCalculate(), ApplicationWindow::showRowsDialog(), and TableStatistics::TableStatistics().
void Table::restore | ( | const QStringList & | ) | [virtual, slot] |
Not implemented yet.
Reimplemented from MdiSubWindow.
References col(), commands, loadHeader(), numCols(), setColComments(), setColumnTypes(), setColWidths(), and setCommands().
void Table::save | ( | const QString & | fn, | |
const QString & | geometry, | |||
bool | saveAsTemplate = false | |||
) | [virtual, slot] |
Reimplemented from MdiSubWindow.
Reimplemented in TableStatistics.
References MdiSubWindow::birthDate(), MdiSubWindow::captionPolicy(), cell(), colTypes, d_table, isEmptyRow(), Numeric, saveColumnTypes(), saveColumnWidths(), saveCommands(), saveComments(), saveHeader(), saveHiddenColumnsInfo(), saveReadOnlyInfo(), and MdiSubWindow::windowLabel().
Referenced by TableStatistics::save().
QString Table::saveColumnTypes | ( | ) | [slot] |
QString Table::saveColumnWidths | ( | ) | [slot] |
QString Table::saveCommands | ( | ) | [slot] |
QString Table::saveComments | ( | ) | [slot] |
QString Table::saveHeader | ( | ) | [slot] |
References col_plot_type, colLabel(), d_table, Label, X, xErr, Y, yErr, and Z.
Referenced by TableStatistics::save(), and save().
QString Table::saveHiddenColumnsInfo | ( | ) | [slot] |
QString Table::saveReadOnlyInfo | ( | ) | [slot] |
void Table::saveToMemory | ( | ) | [slot] |
References col(), col_format, colTypes, d_saved_cells, d_table, Date, Numeric, and Time.
void Table::saveToMemory | ( | double ** | cells | ) | [inline, slot] |
int Table::selectedColsNumber | ( | ) | [slot] |
int Table::selectedColumn | ( | ) | [inline, slot] |
References selectedCol.
Referenced by TableDialog::apply(), SetColValuesDialog::apply(), ApplicationWindow::customColumnActions(), ApplicationWindow::moveColumnFirst(), ApplicationWindow::moveColumnLast(), TableDialog::nextColumn(), SetColValuesDialog::nextColumn(), ApplicationWindow::plot3DBars(), ApplicationWindow::plot3DRibbon(), ApplicationWindow::plot3DScatter(), ApplicationWindow::plot3DTrajectory(), TableDialog::prevColumn(), SetColValuesDialog::prevColumn(), TableDialog::setDateTimeFormat(), TableDialog::setDayFormat(), TableDialog::setMonthFormat(), TableDialog::setNumericFormat(), SetColValuesDialog::setTable(), TableDialog::setTextFormat(), TableDialog::TableDialog(), and ApplicationWindow::validFor3DPlot().
QStringList Table::selectedColumns | ( | ) | [slot] |
References col_label, d_table, and MdiSubWindow::name().
Referenced by ApplicationWindow::autoCorrelate(), clearSelection(), ApplicationWindow::convolute(), ApplicationWindow::correlate(), ApplicationWindow::deconvolute(), ApplicationWindow::normalizeActiveTable(), normalizeSelection(), ApplicationWindow::normalizeSelection(), ApplicationWindow::plot3DBars(), ApplicationWindow::plot3DRibbon(), ApplicationWindow::plot3DScatter(), ApplicationWindow::plot3DTrajectory(), ApplicationWindow::plotPie(), ApplicationWindow::plotVectXYAM(), ApplicationWindow::plotVectXYXY(), removeCol(), setAscValues(), setPlotDesignation(), setRandomValues(), ApplicationWindow::setReadOnlyCol(), ApplicationWindow::setReadOnlyColumns(), ApplicationWindow::setReadWriteColumns(), FFTDialog::setTable(), ApplicationWindow::showColMenu(), ApplicationWindow::showColStatistics(), ApplicationWindow::showColumnOptionsDialog(), ApplicationWindow::showColumnValuesDialog(), ApplicationWindow::showTableContextMenu(), ApplicationWindow::sortActiveTable(), sortColumns(), sortColumnsDialog(), and ApplicationWindow::swapColumns().
QStringList Table::selectedErrColumns | ( | ) | [slot] |
References col_label, col_plot_type, d_table, xErr, and yErr.
QStringList Table::selectedYColumns | ( | ) | [slot] |
References col_label, col_plot_type, d_table, MdiSubWindow::name(), and Y.
Referenced by ApplicationWindow::fitLinear(), ApplicationWindow::integrate(), ApplicationWindow::multilayerPlot(), ApplicationWindow::plotDoubleYAxis(), ApplicationWindow::validFor2DPlot(), and ApplicationWindow::zoomRectanglePlot().
QStringList Table::selectedYLabels | ( | ) | [slot] |
void Table::setAscValues | ( | ) | [slot] |
References col(), col_format, colIndex(), colTypes, columnNumericFormat(), columnType(), d_table, modifiedData(), MdiSubWindow::modifiedWindow(), MdiSubWindow::name(), Numeric, selectedCol, selectedColumns(), and setText().
Referenced by ApplicationWindow::setAscValues().
void Table::setAutoUpdateValues | ( | bool | on = true |
) |
void Table::setBackgroundColor | ( | const QColor & | col | ) | [slot] |
References d_table.
void Table::setCell | ( | int | row, | |
int | col, | |||
double | val | |||
) | [slot] |
References columnNumericFormat(), and d_table.
Referenced by DrawPointTool::appendPoint(), FrequencyCountDialog::apply(), ApplicationWindow::defineErrorBars(), ApplicationWindow::fitLinear(), ApplicationWindow::integrate(), ApplicationWindow::matrixToTable(), ApplicationWindow::openTable(), Fit::showConfidenceLimits(), Fit::showPredictionLimits(), and Fit::showResiduals().
void Table::setColComment | ( | int | col, | |
const QString & | s | |||
) | [slot] |
References comments, d_show_comments, d_table, and setHeaderColType().
Referenced by TableDialog::apply(), ImportOPJ::importTables(), Fit::showConfidenceLimits(), and Fit::showPredictionLimits().
void Table::setColComments | ( | const QStringList & | lst | ) | [inline, slot] |
References comments.
Referenced by ApplicationWindow::openTable(), ApplicationWindow::openTableStatistics(), and restore().
void Table::setColName | ( | int | col, | |
const QString & | text, | |||
bool | enumerateRight = false | |||
) | [slot] |
References changedColHeader(), col_label, commands, d_table, MdiSubWindow::modifiedWindow(), and setHeaderColType().
Referenced by Correlation::addResultCurve(), Convolution::addResultCurve(), TableDialog::apply(), FrequencyCountDialog::apply(), ApplicationWindow::fitLinear(), ImportOPJ::importTables(), ApplicationWindow::integrate(), Fit::showConfidenceLimits(), Fit::showPredictionLimits(), Fit::showResiduals(), and TableStatistics::TableStatistics().
void Table::setColNumericFormat | ( | int | f, | |
int | prec, | |||
int | col, | |||
bool | updateCells = true | |||
) | [slot] |
References col_format, colTypes, columnNumericFormat(), d_saved_cells, d_table, Numeric, setText(), and text().
Referenced by ImportOPJ::importTables(), and TableDialog::setNumericFormat().
void Table::setColPlotDesignation | ( | int | col, | |
PlotDesignation | pd | |||
) | [slot] |
References col_plot_type, colTypes, d_table, Label, and Text.
Referenced by Correlation::addResultCurve(), Convolution::addResultCurve(), ImportOPJ::importTables(), ApplicationWindow::openTable(), ApplicationWindow::openTableStatistics(), Fit::parametersTable(), and TableStatistics::TableStatistics().
void Table::setColumnHeader | ( | int | index, | |
const QString & | label | |||
) | [private] |
Internal function to change the column header.
References comments, d_show_comments, and d_table.
Referenced by setHeaderColType().
void Table::setColumnsFormat | ( | const QStringList & | lst | ) | [slot] |
References col_format.
void Table::setColumnType | ( | int | col, | |
ColType | val | |||
) | [inline, slot] |
void Table::setColumnTypes | ( | const QStringList & | ctl | ) | [slot] |
References col_format, colTypes, and numCols().
void Table::setColumnTypes | ( | Q3ValueList< int > | ctl | ) | [inline, slot] |
References colTypes.
Referenced by copy(), ApplicationWindow::openTable(), ApplicationWindow::openTableStatistics(), and restore().
void Table::setColumnWidth | ( | int | col, | |
int | width | |||
) | [slot] |
References d_table, and MdiSubWindow::modifiedWindow().
void Table::setColumnWidth | ( | int | width, | |
bool | allCols | |||
) | [slot] |
References d_table, MdiSubWindow::modifiedWindow(), and selectedCol.
Referenced by TableDialog::apply(), ImportOPJ::importTables(), and TableDialog::setColumnWidth().
void Table::setColWidths | ( | const QStringList & | widths | ) | [slot] |
References d_table.
Referenced by ApplicationWindow::openTable(), ApplicationWindow::openTableStatistics(), and restore().
void Table::setCommand | ( | int | col, | |
const QString & | com | |||
) | [slot] |
Set formula for column col.
References commands.
Referenced by SetColValuesDialog::apply(), ImportOPJ::importTables(), ApplicationWindow::openTable(), and ApplicationWindow::openTableStatistics().
void Table::setCommands | ( | const QString & | com | ) | [slot] |
void Table::setCommands | ( | const QStringList & | com | ) | [slot] |
Set all column formulae.
References commands, and numCols().
Referenced by ApplicationWindow::openTable(), ApplicationWindow::openTableStatistics(), restore(), and setCommands().
bool Table::setDateFormat | ( | const QString & | format, | |
int | col, | |||
bool | updateCells = true | |||
) | [slot] |
References col_format, colTypes, d_saved_cells, d_table, and Date.
Referenced by ImportOPJ::importTables(), and TableDialog::setDateTimeFormat().
void Table::setDayFormat | ( | const QString & | format, | |
int | col, | |||
bool | updateCells = true | |||
) | [slot] |
References col_format, colTypes, d_saved_cells, d_table, Day, and numRows().
Referenced by ImportOPJ::importTables(), and TableDialog::setDayFormat().
void Table::setHeader | ( | QStringList | header | ) | [slot] |
void Table::setHeaderColor | ( | const QColor & | col | ) | [slot] |
void Table::setHeaderColType | ( | ) | [slot] |
References col_label, col_plot_type, d_table, Label, setColumnHeader(), X, xErr, Y, yErr, and Z.
Referenced by addCol(), Correlation::addResultCurve(), Convolution::addResultCurve(), colWidthModified(), copy(), importASCII(), ImportOPJ::importTables(), init(), insertCols(), loadHeader(), moveColumn(), moveColumnBy(), ApplicationWindow::openTable(), Fit::parametersTable(), pasteSelection(), resizeCols(), setColComment(), setColName(), TableDialog::setColumnWidth(), setHeader(), setNumCols(), setPlotDesignation(), showComments(), swapColumns(), and TableStatistics::TableStatistics().
void Table::setHeaderFont | ( | const QFont & | fnt | ) | [slot] |
void Table::setMonthFormat | ( | const QString & | format, | |
int | col, | |||
bool | updateCells = true | |||
) | [slot] |
References col_format, colTypes, d_saved_cells, d_table, Month, and numRows().
Referenced by ImportOPJ::importTables(), and TableDialog::setMonthFormat().
void Table::setNumCols | ( | int | cols | ) | [slot] |
References addColumns(), col_format, col_label, col_plot_type, colTypes, commands, comments, d_table, and setHeaderColType().
Referenced by ApplicationWindow::openTableStatistics(), and Fit::writeParametersToTable().
void Table::setNumericPrecision | ( | int | prec | ) |
Sets the number of significant digits.
References col_format, colTypes, d_numeric_precision, d_table, and Numeric.
Referenced by ApplicationWindow::customTable().
void Table::setNumRows | ( | int | rows | ) | [slot] |
References d_table.
Referenced by Correlation::addResultCurve(), DrawPointTool::appendPoint(), FrequencyCountDialog::apply(), and Fit::writeParametersToTable().
void Table::setPlotDesignation | ( | PlotDesignation | pd, | |
bool | rightColumns = false | |||
) | [slot] |
References col(), col_plot_type, colIndex(), colTypes, d_table, Label, MdiSubWindow::modifiedWindow(), None, Numeric, selectedCol, selectedColumns(), setHeaderColType(), and Text.
Referenced by ApplicationWindow::disregardCol(), ApplicationWindow::setLabelCol(), TableDialog::setPlotDesignation(), ApplicationWindow::setXCol(), ApplicationWindow::setXErrCol(), ApplicationWindow::setYCol(), ApplicationWindow::setYErrCol(), and ApplicationWindow::setZCol().
void Table::setRandomValues | ( | ) | [slot] |
References col(), colIndex(), columnNumericFormat(), d_table, modifiedData(), MdiSubWindow::modifiedWindow(), MdiSubWindow::name(), selectedCol, and selectedColumns().
Referenced by ApplicationWindow::setRandomValues().
void Table::setReadOnlyColumn | ( | int | col, | |
bool | on = true | |||
) | [slot] |
void Table::setSelectedCol | ( | int | col | ) | [inline, slot] |
void Table::setText | ( | int | row, | |
int | col, | |||
const QString & | text | |||
) | [slot] |
References d_table.
Referenced by Filter::addResultCurve(), Correlation::addResultCurve(), Convolution::addResultCurve(), FrequencyCountDialog::apply(), RangeSelectorTool::clearSelection(), ApplicationWindow::fitLinear(), MultiPeakFit::generateFitCurve(), ImportOPJ::importTables(), ApplicationWindow::integrate(), DataPickerTool::movePoint(), ApplicationWindow::newHiddenTable(), ApplicationWindow::newTable(), ApplicationWindow::openTable(), Differentiation::output(), RangeSelectorTool::pasteSelection(), DataPickerTool::pasteSelection(), TableStatistics::renameCol(), TranslateCurveTool::selectDestination(), setAscValues(), setColNumericFormat(), PlotDialog::showStatistics(), TableStatistics::TableStatistics(), TableStatistics::update(), and Fit::writeParametersToTable().
void Table::setTextColor | ( | const QColor & | col | ) | [slot] |
References d_table.
void Table::setTextFont | ( | const QFont & | fnt | ) | [slot] |
void Table::setTextFormat | ( | int | col | ) | [slot] |
References colTypes, and Text.
Referenced by ImportOPJ::importTables(), and TableDialog::setTextFormat().
bool Table::setTimeFormat | ( | const QString & | format, | |
int | col, | |||
bool | updateCells = true | |||
) | [slot] |
References col_format, colTypes, d_saved_cells, d_table, and Time.
Referenced by ImportOPJ::importTables(), and TableDialog::setDateTimeFormat().
void Table::showAllColumns | ( | ) | [slot] |
void Table::showComments | ( | bool | on = true |
) | [slot] |
References d_show_comments, d_table, and setHeaderColType().
Referenced by ConfigDialog::apply(), ApplicationWindow::customTable(), and importASCII().
void Table::showContextMenu | ( | bool | selection | ) | [signal] |
QString Table::sizeToString | ( | ) | [virtual] |
void Table::sort | ( | int | type = 0 , |
|
int | order = 0 , |
|||
const QString & | leadCol = QString() | |||
) | [slot] |
Sort all columns as in sortColumns(const QStringList&,int,int,const QString&).
References col_label, and sortColumns().
Referenced by sortColumnsDialog(), and sortTableDialog().
void Table::sortColAsc | ( | ) | [slot] |
Sort the current column in ascending order.
References d_table, and sortColumn().
void Table::sortColDesc | ( | ) | [slot] |
Sort the current column in descending order.
References d_table, and sortColumn().
void Table::sortColumn | ( | int | col = -1 , |
|
int | order = 0 | |||
) | [slot] |
Sort the specified column.
col | the column to be sorted | |
order | 0 means ascending, anything else means descending |
References cell(), colName(), columnNumericFormat(), columnType(), d_table, modifiedData(), MdiSubWindow::modifiedWindow(), and Text.
Referenced by sortColAsc(), sortColDesc(), and sortColumns().
void Table::sortColumns | ( | const QStringList & | cols, | |
int | type = 0 , |
|||
int | order = 0 , |
|||
const QString & | leadCol = QString() | |||
) | [slot] |
Sort the specified columns.
cols | the columns to be sorted | |
type | 0 means sort individually (as in sortColumn()), anything else means together | |
order | 0 means ascending, anything else means descending | |
leadCol | for sorting together, the column which determines the permutation |
References cell(), col(), colIndex(), colName(), columnNumericFormat(), columnType(), d_table, modifiedData(), MdiSubWindow::modifiedWindow(), sortColumn(), text(), and Text.
void Table::sortColumns | ( | int | type = 0 , |
|
int | order = 0 , |
|||
const QString & | leadCol = QString() | |||
) | [slot] |
Sort selected columns as in sortColumns(const QStringList&,int,int,const QString&).
References selectedColumns().
Referenced by sort(), and sortColumnsDialog().
void Table::sortColumnsDialog | ( | ) | [slot] |
Display a dialog with some options for sorting the selected columns.
The sorting itself is done using sortColumns(int,int,const QString&).
References MdiSubWindow::applicationWindow(), SortDialog::insertColumnsList(), selectedColumns(), sort(), and sortColumns().
Referenced by ApplicationWindow::sortSelection().
void Table::sortTableDialog | ( | ) | [slot] |
Display a dialog with some options for sorting all columns.
The sorting itself is done using sort(int,int,const QString&).
References MdiSubWindow::applicationWindow(), colNames(), SortDialog::insertColumnsList(), and sort().
Referenced by ApplicationWindow::sortActiveTable().
void Table::swapColumns | ( | int | col1, | |
int | col2 | |||
) | [slot] |
References col_format, col_label, col_plot_type, colTypes, commands, comments, d_table, and setHeaderColType().
Referenced by moveColumnBy(), and ApplicationWindow::swapColumns().
MyTable* Table::table | ( | ) | [inline, slot] |
References d_table.
Referenced by ApplicationWindow::connectTable(), ApplicationWindow::fitLinear(), FrequencyCountDialog::FrequencyCountDialog(), ApplicationWindow::openTable(), SetColValuesDialog::setTable(), ApplicationWindow::showColumnValuesDialog(), Fit::showConfidenceLimits(), ApplicationWindow::showFrequencyCountDialog(), Fit::showPredictionLimits(), Fit::showResiduals(), ApplicationWindow::showTable(), TableDialog::updateColumn(), SetColValuesDialog::updateColumn(), and Fit::writeParametersToTable().
QString Table::text | ( | int | row, | |
int | col | |||
) | [slot] |
References d_table.
Referenced by Graph3D::addData(), cellEdited(), muParserScript::col(), copy(), copySelection(), ApplicationWindow::defineErrorBars(), RangeSelectorTool::emitStatusText(), exportASCII(), FrequencyCountDialog::FrequencyCountDialog(), Graph::insertCurve(), isEmptyColumn(), isEmptyRow(), Graph3D::loadData(), VectorCurve::loadData(), QwtPieCurve::loadData(), QwtHistogram::loadData(), QwtErrorPlotCurve::loadData(), DataCurve::loadData(), BoxCurve::loadData(), DataCurve::loadLabels(), LegendWidget::parse(), pasteSelection(), print(), TableStatistics::removeCol(), TableStatistics::renameCol(), resizeCols(), resizeRows(), TranslateCurveTool::selectDestination(), setColNumericFormat(), Filter::setDataFromTable(), Convolution::setDataFromTable(), Graph::setLabelsTextFormat(), DataPickerTool::setSelection(), ApplicationWindow::showFrequencyCountDialog(), sortColumns(), muParserScript::tableCell(), muParserScript::tablecol(), DataCurve::tableRow(), TableStatistics::update(), Graph3D::updateDataXY(), and Graph3D::updateScales().
void Table::updateDecimalSeparators | ( | const QLocale & | oldSeparators | ) |
Updates the decimal separators when importing ASCII files on user request.
References colTypes, columnNumericFormat(), d_table, and Numeric.
Referenced by ApplicationWindow::importASCII().
void Table::updateValues | ( | Table * | t, | |
const QString & | columnName | |||
) | [slot] |
Recalculates values in all columns with formulas containing.
columnName |
References calculate(), col_label, colLabel(), colTypes, commands, numCols(), Numeric, and numRows().
Referenced by setAutoUpdateValues().
int Table::verticalHeaderWidth | ( | ) | [inline, slot] |
QStringList Table::YColumns | ( | ) | [slot] |
References col_label, col_plot_type, d_table, MdiSubWindow::name(), and Y.
Referenced by ApplicationWindow::plotFile().
QStringList Table::col_format [private] |
Referenced by addCol(), addColumns(), columnFormat(), columnNumericFormat(), copy(), getColumnsFormat(), importASCII(), init(), insertCols(), moveColumn(), moveColumnBy(), removeCol(), resizeCols(), saveColumnTypes(), saveToMemory(), setAscValues(), setColNumericFormat(), setColumnsFormat(), setColumnTypes(), setDateFormat(), setDayFormat(), setMonthFormat(), setNumCols(), setNumericPrecision(), setTimeFormat(), and swapColumns().
QStringList Table::col_label [private] |
Referenced by addCol(), addColumns(), calculate(), clearSelection(), colIndex(), colLabel(), colName(), colNames(), columnsList(), copy(), drawableColumnSelection(), importASCII(), init(), insertCols(), loadHeader(), moveColumn(), moveColumnBy(), normalize(), normalizeSelection(), removeCol(), resizeCols(), selectedColumns(), selectedErrColumns(), selectedYColumns(), selectedYLabels(), setColName(), setHeader(), setHeaderColType(), setNumCols(), sort(), swapColumns(), updateValues(), and YColumns().
QList<int> Table::col_plot_type [private] |
Referenced by addCol(), addColumns(), colPlotDesignation(), colX(), colY(), copy(), drawableColumnSelection(), firstXCol(), importASCII(), init(), insertCols(), loadHeader(), moveColumn(), moveColumnBy(), noXColumn(), noYColumn(), plotDesignations(), removeCol(), resizeCols(), saveHeader(), selectedErrColumns(), selectedYColumns(), selectedYLabels(), setColPlotDesignation(), setHeaderColType(), setNumCols(), setPlotDesignation(), swapColumns(), and YColumns().
QList<int> Table::colTypes [private] |
Referenced by addCol(), addColumns(), calculate(), columnType(), columnTypes(), importASCII(), init(), insertCols(), moveColumn(), moveColumnBy(), muParserCalculate(), normalizeCol(), removeCol(), resizeCols(), save(), saveColumnTypes(), saveToMemory(), setAscValues(), setColNumericFormat(), setColPlotDesignation(), setColumnType(), setColumnTypes(), setDateFormat(), setDayFormat(), setMonthFormat(), setNumCols(), setNumericPrecision(), setPlotDesignation(), setTextFormat(), setTimeFormat(), swapColumns(), updateDecimalSeparators(), and updateValues().
QStringList Table::commands [private] |
Referenced by addCol(), addColumns(), calculate(), copy(), getCommands(), importASCII(), init(), insertCols(), moveColumn(), moveColumnBy(), muParserCalculate(), removeCol(), resizeCols(), restore(), saveCommands(), setColName(), setCommand(), setCommands(), setNumCols(), swapColumns(), and updateValues().
QStringList Table::comments [private] |
int Table::d_numeric_precision [private] |
Referenced by addCol(), addColumns(), init(), insertCols(), and setNumericPrecision().
double** Table::d_saved_cells [private] |
Referenced by freeMemory(), init(), saveToMemory(), setColNumericFormat(), setDateFormat(), setDayFormat(), setMonthFormat(), and setTimeFormat().
bool Table::d_show_comments [private] |
Referenced by commentsEnabled(), copy(), init(), setColComment(), setColumnHeader(), and showComments().
MyTable* Table::d_table [protected] |
Referenced by addCol(), addColumns(), calculate(), cell(), cellEdited(), clear(), clearCell(), clearCol(), clearSelection(), col(), columnsList(), columnWidth(), columnWidths(), colX(), colY(), comment(), copy(), copySelection(), deleteRows(), deleteSelectedRows(), deselect(), drawableColumnSelection(), eventFilter(), exportASCII(), firstSelectedColumn(), firstXCol(), freeMemory(), getSelection(), goToColumn(), goToRow(), hideColumn(), hideSelectedColumns(), importASCII(), init(), insertCols(), insertRow(), isColumnHidden(), isColumnSelected(), isEmptyColumn(), isEmptyRow(), isReadOnlyColumn(), isRowSelected(), moveColumnBy(), moveCurrentCell(), muParserCalculate(), nonEmptyRows(), normalize(), normalizeCol(), normalizeSelection(), notifyChanges(), noXColumn(), noYColumn(), numCols(), numRows(), numSelectedRows(), pasteSelection(), print(), TableStatistics::removeCol(), removeCol(), resizeCols(), resizeRows(), save(), saveColumnTypes(), saveColumnWidths(), saveComments(), saveHeader(), saveHiddenColumnsInfo(), saveReadOnlyInfo(), saveToMemory(), selectAllTable(), selectedColsNumber(), selectedColumns(), selectedErrColumns(), selectedYColumns(), selectedYLabels(), setAscValues(), setBackgroundColor(), setCell(), setColComment(), setColName(), setColNumericFormat(), setColPlotDesignation(), setColumnHeader(), setColumnWidth(), setColWidths(), setDateFormat(), setDayFormat(), setHeaderColor(), setHeaderColType(), setHeaderFont(), setMonthFormat(), setNumCols(), setNumericPrecision(), setNumRows(), setPlotDesignation(), setRandomValues(), setReadOnlyColumn(), setText(), setTextColor(), setTextFont(), setTimeFormat(), showAllColumns(), showComments(), sizeToString(), sortColAsc(), sortColDesc(), sortColumn(), sortColumns(), swapColumns(), table(), TableStatistics::TableStatistics(), text(), updateDecimalSeparators(), verticalHeaderWidth(), and YColumns().
int Table::selectedCol [private] |