#include </home/clem/local/src/opie/noncore/apps/opie-sheet/sheet.h>
Collaboration diagram for Sheet:

Public Slots | |
| void | slotCellSelected (int row, int col) |
| void | slotCellChanged (int row, int col) |
| void | editCut () |
| void | editCopy () |
| void | editPaste (bool onlyContents=FALSE) |
| void | editClear () |
| void | swapCells (int row1, int col1, int row2, int col2) |
Signals | |
| void | currentDataChanged (const QString &data) |
| void | cellClicked (const QString &cell) |
| void | sheetModified () |
Public Member Functions | |
| Sheet (int numRows, int numCols, QWidget *parent) | |
| ~Sheet () | |
| void | ReCalc (void) |
| void | setData (const QString &data) |
| QString | getData () |
| void | setName (const QString &data) |
| QString | getName () |
| void | setPen (int row, int col, int vertical, const QPen &pen) |
| QPen | getPen (int row, int col, int vertical) |
| void | setBrush (int row, int col, const QBrush &brush) |
| QBrush | getBrush (int row, int col) |
| void | setTextAlign (int row, int col, Qt::AlignmentFlags flags) |
| Qt::AlignmentFlags | getAlignment (int row, int col) |
| void | setTextFont (int row, int col, const QFont &font, const QColor &color) |
| QFont | getFont (int row, int col) |
| QColor | getFontColor (int row, int col) |
| void | lockClicks (bool lock=TRUE) |
| void | copySheetData (QList< typeCellData > *destSheetData) |
| void | setSheetData (QList< typeCellData > *srcSheetData) |
| void | getSelection (int *row1, int *col1, int *row2, int *col2) |
| void | insertRows (int no=1, bool allColumns=TRUE) |
| void | insertColumns (int no=1, bool allRows=TRUE) |
| void | dataFindReplace (const QString &find, const QString &replace, bool matchCase=TRUE, bool allCells=TRUE, bool entireCell=FALSE, bool replace=FALSE, bool replaceAll=FALSE) |
Static Public Member Functions | |
| static int | getHeaderColumn (const QString §ion) |
| static QString | getHeaderString (int section) |
Private Member Functions | |
| bool | findRowColumn (const QString &variable, int *row, int *col, bool giveError=FALSE) |
| QString | findCellName (int row, int col) |
| bool | findRange (const QString &variable1, const QString &variable2, int *row1, int *col1, int *row2, int *col2) |
| QString | calculateVariable (const QString &variable) |
| QString | calculateFunction (const QString &func, const QString ¶meters, int NumOfParams) |
| QString | getParameter (const QString ¶meters, int paramNo, bool giveError=FALSE, const QString funcName="") |
| QString | dataParser (const QString &cell, const QString &data) |
| QString | dataParserHelper (const QString &data) |
| typeCellData * | createCellData (int row, int col) |
| typeCellData * | findCellData (int row, int col) |
| double | functionCountIf (const QString ¶m1, const QString ¶m2, const QString ¶m3) |
| double | functionSumSQ (const QString ¶m1, const QString ¶m2) |
| QString | functionIndex (const QString ¶m1, const QString ¶m2, int indx) |
| double | BesselI0 (double x) |
| double | BesselI (int n, double x) |
| double | BesselK0 (double x) |
| double | BesselI1 (double x) |
| double | BesselK1 (double x) |
| double | BesselK (int n, double x) |
| double | BesselJ0 (double x) |
| double | BesselY0 (double x) |
| double | BesselJ1 (double x) |
| double | BesselY1 (double x) |
| double | BesselY (int n, double x) |
| double | BesselJ (int n, double x) |
| double | GammaLn (double xx) |
| double | Factorial (double n) |
| double | GammaP (double a, double x) |
| double | GammaQ (double a, double x) |
| void | GammaSeries (double *gamser, double a, double x, double *gln) |
| void | GammaContinuedFraction (double *gammcf, double a, double x, double *gln) |
| double | ErrorFunction (double x) |
| double | ErrorFunctionComplementary (double x) |
| double | Beta (double z, double w) |
| double | BetaContinuedFraction (double a, double b, double x) |
| double | BetaIncomplete (double a, double b, double x) |
| double | functionVariance (const QString ¶m1, const QString ¶m2) |
| double | functionVariancePopulation (const QString ¶m1, const QString ¶m2) |
| double | functionSkew (const QString ¶m1, const QString ¶m2) |
| double | functionKurt (const QString ¶m1, const QString ¶m2) |
| double | functionSum (const QString ¶m1, const QString ¶m2) |
| double | functionAvg (const QString ¶m1, const QString ¶m2) |
| double | functionMax (const QString ¶m1, const QString ¶m2) |
| double | functionMin (const QString ¶m1, const QString ¶m2) |
| double | functionCount (const QString ¶m1, const QString ¶m2) |
| void | paintCell (QPainter *p, int row, int col, const QRect &cr, bool selected) |
| void | viewportMousePressEvent (QMouseEvent *e) |
| void | viewportMouseMoveEvent (QMouseEvent *e) |
| void | viewportMouseReleaseEvent (QMouseEvent *e) |
Private Attributes | |
| bool | clicksLocked |
| int | selectionNo |
| typeCellBorders | defaultBorders |
| typeCellData | defaultCellData |
| QList< typeCellData > | sheetData |
| QList< typeCellData > | clipboardData |
| QString | pressedCell |
| QString | releasedCell |
| QString | sheetName |
| QStringList | listDataParser |
|
||||||||||||||||
|
|
|
|
||||||||||||
|
Definition at line 281 of file sheet.cpp. References BesselI0(), fabs(), and sqrt(). Referenced by calculateFunction(). |
|
|
Definition at line 243 of file sheet.cpp. References fabs(), sqrt(), and Opie::MM::y. Referenced by BesselI(), and BesselK0(). |
|
|
Definition at line 262 of file sheet.cpp. References fabs(), sqrt(), and Opie::MM::y. Referenced by BesselK1(). |
|
||||||||||||
|
Definition at line 469 of file sheet.cpp. References BesselJ0(), BesselJ1(), fabs(), and sqrt(). Referenced by calculateFunction(). |
|
|
Definition at line 361 of file sheet.cpp. References fabs(), sqrt(), and Opie::MM::y. Referenced by BesselJ(), and BesselY0(). |
|
|
Definition at line 407 of file sheet.cpp. References fabs(), sqrt(), and Opie::MM::y. Referenced by BesselJ(), and BesselY1(). |
|
||||||||||||
|
Definition at line 344 of file sheet.cpp. References BesselK0(), and BesselK1(). Referenced by calculateFunction(). |
|
|
Definition at line 312 of file sheet.cpp. References BesselI0(), sqrt(), and Opie::MM::y. Referenced by BesselK(). |
|
|
Definition at line 328 of file sheet.cpp. References BesselI1(), sqrt(), and Opie::MM::y. Referenced by BesselK(). |
|
||||||||||||
|
Definition at line 452 of file sheet.cpp. References BesselY0(), and BesselY1(). Referenced by calculateFunction(). |
|
|
Definition at line 384 of file sheet.cpp. References BesselJ0(), sqrt(), and Opie::MM::y. Referenced by BesselY(). |
|
|
Definition at line 429 of file sheet.cpp. References BesselJ1(), sqrt(), and Opie::MM::y. Referenced by BesselY(). |
|
||||||||||||
|
Definition at line 636 of file sheet.cpp. References GammaLn(). Referenced by calculateFunction(). |
|
||||||||||||||||
|
Definition at line 642 of file sheet.cpp. Referenced by BetaIncomplete(). |
|
||||||||||||||||
|
Definition at line 673 of file sheet.cpp. References BetaContinuedFraction(), and GammaLn(). Referenced by calculateFunction(). |
|
||||||||||||||||
|
Definition at line 950 of file sheet.cpp. References QString::append(), BesselI(), BesselJ(), BesselK(), BesselY(), Beta(), BetaIncomplete(), calculateVariable(), col, ErrorFunction(), ErrorFunctionComplementary(), fabs(), Factorial(), FALSE, QString::find(), findRowColumn(), functionAvg(), functionCount(), functionCountIf(), functionIndex(), functionKurt(), functionMax(), functionMin(), functionSkew(), functionSum(), functionSumSQ(), functionVariance(), functionVariancePopulation(), GammaLn(), GammaP(), GammaQ(), getParameter(), QString::left(), QString::length(), QString::lower(), M_PI, QString::mid(), NULL, QString::number(), QString::right(), row, sqrt(), text, QString::toDouble(), TRUE, and QString::upper(). Referenced by dataParserHelper(). |
|
|
Definition at line 218 of file sheet.cpp. References col, dataParser(), FALSE, findRowColumn(), QString::number(), printf, row, and text. Referenced by calculateFunction(), dataParser(), functionCount(), functionCountIf(), functionMax(), functionMin(), functionSum(), and functionSumSQ(). |
|
|
Referenced by viewportMouseReleaseEvent(). |
|
|
Definition at line 2006 of file sheet.cpp. References sheetData. Referenced by MainWindow::documentSave(), and MainWindow::slotSheetChanged(). |
|
||||||||||||
|
Definition at line 96 of file sheet.cpp. References typeCellData::alignment, typeCellData::background, typeCellData::borders, typeCellData::col, typeCellData::data, defaultCellData, typeCellData::font, typeCellData::fontColor, NULL, typeCellData::row, and sheetData. Referenced by editPaste(), setBrush(), setPen(), setTextAlign(), setTextFont(), slotCellChanged(), and swapCells(). |
|
|
Referenced by slotCellSelected(). |
|
||||||||||||||||||||||||||||||||
|
Definition at line 2269 of file sheet.cpp. References typeCellData::col, typeCellData::data, dataParser(), FALSE, findCellName(), getSelection(), typeCellData::row, sheetData, slotCellChanged(), tr, TRUE, QString::upper(), and warning(). Referenced by FindDialog::exec(). |
|
||||||||||||
|
Definition at line 1868 of file sheet.cpp. References QValueList< T >::append(), calculateVariable(), dataParserHelper(), QValueList< T >::end(), QValueList< T >::find(), getParameter(), i, QString::isEmpty(), listDataParser, QString::mid(), QValueList< T >::remove(), QString::remove(), and QString::replace(). Referenced by calculateVariable(), dataFindReplace(), editPaste(), insertColumns(), insertRows(), setSheetData(), slotCellChanged(), and swapCells(). |
|
|
Definition at line 1804 of file sheet.cpp. References calculateFunction(), Expression::CompiledBody, Expression::CompiledBodyType, FUNCTION_TOKEN, i, QString::left(), QString::mid(), NULL, NUMBER_TOKEN, Expression::Parse(), QString::right(), STRING_TOKEN, TRUE, and VARIABLE_TOKEN. Referenced by dataParser(). |
|
|
Definition at line 2152 of file sheet.cpp. References col, getSelection(), row, and slotCellChanged(). Referenced by editCut(). |
|
|
Definition at line 2166 of file sheet.cpp. References clipboardData, typeCellData::col, col, findCellData(), getSelection(), typeCellData::row, and row. Referenced by editCut(). |
|
|
Definition at line 2190 of file sheet.cpp. References editClear(), and editCopy(). |
|
|
Definition at line 2196 of file sheet.cpp. References clipboardData, typeCellData::col, createCellData(), typeCellData::data, dataParser(), findCellData(), findCellName(), typeCellData::row, and sheetModified(). Referenced by MainWindow::slotEditPaste(), and MainWindow::slotEditPasteContents(). |
|
|
Definition at line 626 of file sheet.cpp. References GammaP(). Referenced by calculateFunction(). |
|
|
Definition at line 631 of file sheet.cpp. References GammaP(), and GammaQ(). Referenced by calculateFunction(). |
|
|
Definition at line 534 of file sheet.cpp. References GammaLn(). Referenced by calculateFunction(). |
|
||||||||||||
|
Definition at line 75 of file sheet.cpp. References typeCellData::col, NULL, typeCellData::row, and sheetData. Referenced by editCopy(), editPaste(), getAlignment(), getBrush(), getData(), getFont(), getFontColor(), getPen(), paintCell(), setBrush(), setPen(), setTextAlign(), setTextFont(), slotCellChanged(), slotCellSelected(), and swapCells(). |
|
||||||||||||
|
Definition at line 2001 of file sheet.cpp. References getHeaderString(), and QString::number(). Referenced by dataFindReplace(), editPaste(), insertColumns(), insertRows(), setSheetData(), slotCellChanged(), swapCells(), and viewportMouseReleaseEvent(). |
|
||||||||||||||||||||||||||||
|
Definition at line 186 of file sheet.cpp. References col, FALSE, findRowColumn(), row, and TRUE. Referenced by functionCount(), functionCountIf(), functionIndex(), functionKurt(), functionMax(), functionMin(), functionSkew(), functionSum(), functionSumSQ(), functionVariance(), and functionVariancePopulation(). |
|
||||||||||||||||||||
|
Definition at line 205 of file sheet.cpp. References FALSE, getHeaderColumn(), tr, and TRUE. Referenced by calculateFunction(), calculateVariable(), and findRange(). |
|
||||||||||||
|
Definition at line 898 of file sheet.cpp. References functionCount(), and functionSum(). Referenced by calculateFunction(), functionKurt(), functionSkew(), functionVariance(), and functionVariancePopulation(). |
|
||||||||||||
|
Definition at line 904 of file sheet.cpp. References calculateVariable(), col, d1, findRange(), row, and text. Referenced by calculateFunction(), and functionAvg(). |
|
||||||||||||||||
|
Definition at line 931 of file sheet.cpp. References calculateVariable(), col, findRange(), row, and text. Referenced by calculateFunction(). |
|
||||||||||||||||
|
Definition at line 710 of file sheet.cpp. References col, findRange(), row, and text. Referenced by calculateFunction(). |
|
||||||||||||
|
Definition at line 786 of file sheet.cpp. References col, findRange(), functionAvg(), functionVariancePopulation(), row, sqrt(), and text. Referenced by calculateFunction(). |
|
||||||||||||
|
Definition at line 869 of file sheet.cpp. References calculateVariable(), col, d1, FALSE, findRange(), max, row, text, and TRUE. Referenced by calculateFunction(). |
|
||||||||||||
|
Definition at line 840 of file sheet.cpp. References calculateVariable(), col, d1, FALSE, findRange(), min, row, text, and TRUE. Referenced by calculateFunction(). |
|
||||||||||||
|
Definition at line 762 of file sheet.cpp. References col, findRange(), functionAvg(), functionVariancePopulation(), row, sqrt(), and text. Referenced by calculateFunction(). |
|
||||||||||||
|
Definition at line 685 of file sheet.cpp. References calculateVariable(), col, d1, findRange(), row, and text. Referenced by calculateFunction(), and functionAvg(). |
|
||||||||||||
|
Definition at line 813 of file sheet.cpp. References calculateVariable(), col, d1, findRange(), row, and text. Referenced by calculateFunction(). |
|
||||||||||||
|
Definition at line 744 of file sheet.cpp. References col, findRange(), functionAvg(), row, and text. Referenced by calculateFunction(). |
|
||||||||||||
|
Definition at line 726 of file sheet.cpp. References col, findRange(), functionAvg(), row, and text. Referenced by calculateFunction(), functionKurt(), and functionSkew(). |
|
||||||||||||||||||||
|
Definition at line 601 of file sheet.cpp. References d, fabs(), GammaLn(), and i. Referenced by GammaP(). |
|
|
Definition at line 521 of file sheet.cpp. References Opie::MM::x, and Opie::MM::y. Referenced by Beta(), BetaIncomplete(), calculateFunction(), Factorial(), GammaContinuedFraction(), and GammaSeries(). |
|
||||||||||||
|
Definition at line 541 of file sheet.cpp. References GammaContinuedFraction(), and GammaSeries(). Referenced by calculateFunction(), ErrorFunction(), ErrorFunctionComplementary(), and GammaQ(). |
|
||||||||||||
|
Definition at line 560 of file sheet.cpp. References GammaP(). Referenced by calculateFunction(), and ErrorFunctionComplementary(). |
|
||||||||||||||||||||
|
Definition at line 567 of file sheet.cpp. References fabs(), and GammaLn(). Referenced by GammaP(). |
|
||||||||||||
|
Definition at line 2080 of file sheet.cpp. References typeCellData::alignment, defaultCellData, and findCellData(). Referenced by CellFormat::exec(). |
|
||||||||||||
|
Definition at line 2062 of file sheet.cpp. References typeCellData::background, defaultCellData, and findCellData(). Referenced by CellFormat::exec(). |
|
|
Definition at line 1898 of file sheet.cpp. References typeCellData::data, and findCellData(). Referenced by MainWindow::slotEditCancel(). |
|
||||||||||||
|
Definition at line 2099 of file sheet.cpp. References defaultCellData, findCellData(), and typeCellData::font. Referenced by CellFormat::exec(). |
|
||||||||||||
|
Definition at line 2106 of file sheet.cpp. References defaultCellData, findCellData(), and typeCellData::fontColor. Referenced by CellFormat::exec(). |
|
|
Definition at line 2316 of file sheet.cpp. References QString::isEmpty(), QString::left(), and QString::length(). Referenced by SortDialog::exec(), and findRowColumn(). |
|
|
Definition at line 2310 of file sheet.cpp. Referenced by SortDialog::fillFieldCombo(), findCellName(), insertColumns(), and Sheet(). |
|
|
Definition at line 2046 of file sheet.cpp. References sheetName. Referenced by MainWindow::documentSave(), MainWindow::slotSheetChanged(), MainWindow::slotSheetRemove(), and MainWindow::slotSheetRename(). |
|
||||||||||||||||||||
|
Definition at line 166 of file sheet.cpp. References QString::find(), i, QString::left(), QString::mid(), NULL, and tr. Referenced by calculateFunction(), and dataParser(). |
|
||||||||||||||||
|
Definition at line 2127 of file sheet.cpp. References typeCellData::borders, typeCellBorders::bottom, defaultCellData, findCellData(), and typeCellBorders::right. Referenced by CellFormat::exec(). |
|
||||||||||||||||||||
|
Definition at line 2134 of file sheet.cpp. References selectionNo. Referenced by dataFindReplace(), editClear(), editCopy(), SortDialog::exec(), CellFormat::exec(), MainWindow::slotColumnAdjust(), MainWindow::slotColumnHide(), MainWindow::slotColumnShow(), MainWindow::slotColumnWidth(), MainWindow::slotRowAdjust(), MainWindow::slotRowHeight(), MainWindow::slotRowHide(), and MainWindow::slotRowShow(). |
|
||||||||||||
|
Definition at line 2243 of file sheet.cpp. References typeCellData::col, col, typeCellData::data, dataParser(), DEFAULT_COL_WIDTH, findCellName(), getHeaderString(), i, typeCellData::row, row, sheetData, and sheetModified(). Referenced by MainWindow::slotInsertCells(), and MainWindow::slotInsertCols(). |
|
||||||||||||
|
Definition at line 2221 of file sheet.cpp. References typeCellData::col, col, typeCellData::data, dataParser(), findCellName(), typeCellData::row, row, sheetData, and sheetModified(). Referenced by MainWindow::slotInsertCells(), and MainWindow::slotInsertRows(). |
|
|
Definition at line 1906 of file sheet.cpp. References clicksLocked. Referenced by MainWindow::slotCellSelect(). |
|
||||||||||||||||||||||||
|
Definition at line 1911 of file sheet.cpp. References typeCellData::alignment, typeCellData::background, typeCellData::borders, typeCellBorders::bottom, defaultCellData, FALSE, findCellData(), typeCellData::font, typeCellData::fontColor, typeCellBorders::right, sheetData, and str. |
|
|
Definition at line 136 of file sheet.cpp. References typeCellData::col, typeCellData::row, sheetData, and slotCellChanged(). Referenced by MainWindow::slotImportExcel(), and MainWindow::slotSheetChanged(). |
|
||||||||||||||||
|
Definition at line 2051 of file sheet.cpp. References typeCellData::background, createCellData(), findCellData(), and sheetModified(). Referenced by CellFormat::exec(). |
|
|
Definition at line 1891 of file sheet.cpp. References slotCellChanged(). Referenced by MainWindow::slotEditAccept(). |
|
|
Definition at line 2040 of file sheet.cpp. References sheetModified(), and sheetName. Referenced by MainWindow::documentOpen(), MainWindow::selectorFileNew(), MainWindow::slotImportExcel(), MainWindow::slotSheetChanged(), and MainWindow::slotSheetRename(). |
|
||||||||||||||||||||
|
Definition at line 2113 of file sheet.cpp. References typeCellData::borders, typeCellBorders::bottom, createCellData(), findCellData(), typeCellBorders::right, and sheetModified(). Referenced by CellFormat::exec(). |
|
|
Definition at line 2019 of file sheet.cpp. References typeCellData::col, typeCellData::data, dataParser(), findCellName(), typeCellData::row, sheetData, and sheetModified(). Referenced by MainWindow::documentOpen(), MainWindow::selectorFileNew(), MainWindow::slotImportExcel(), and MainWindow::slotSheetChanged(). |
|
||||||||||||||||
|
Definition at line 2069 of file sheet.cpp. References typeCellData::alignment, createCellData(), findCellData(), and sheetModified(). Referenced by CellFormat::exec(). |
|
||||||||||||||||||||
|
Definition at line 2087 of file sheet.cpp. References createCellData(), findCellData(), typeCellData::font, typeCellData::fontColor, and sheetModified(). Referenced by CellFormat::exec(). |
|
|
Referenced by editPaste(), insertColumns(), insertRows(), setBrush(), setName(), setPen(), setSheetData(), setTextAlign(), setTextFont(), slotCellChanged(), and swapCells(). |
|
||||||||||||
|
Definition at line 112 of file sheet.cpp. References typeCellData::col, createCellData(), typeCellData::data, dataParser(), findCellData(), findCellName(), typeCellData::row, sheetData, sheetModified(), and text. Referenced by dataFindReplace(), editClear(), ReCalc(), setData(), and Sheet(). |
|
||||||||||||
|
Definition at line 85 of file sheet.cpp. References currentDataChanged(), typeCellData::data, and findCellData(). Referenced by Sheet(). |
|
||||||||||||||||||||
|
Definition at line 150 of file sheet.cpp. References typeCellData::col, createCellData(), QString::data(), typeCellData::data, dataParser(), findCellData(), findCellName(), typeCellData::row, and sheetModified(). Referenced by SortDialog::exec(). |
|
|
Definition at line 1963 of file sheet.cpp. References clicksLocked, and selectionNo. |
|
|
Definition at line 1945 of file sheet.cpp. References clicksLocked, and selectionNo. |
|
|
Definition at line 1983 of file sheet.cpp. References cellClicked(), clicksLocked, findCellName(), and selectionNo. |
|
|
Definition at line 105 of file sheet.h. Referenced by lockClicks(), Sheet(), viewportMouseMoveEvent(), viewportMousePressEvent(), and viewportMouseReleaseEvent(). |
|
|
Definition at line 114 of file sheet.h. Referenced by editCopy(), editPaste(), and Sheet(). |
|
|
Definition at line 110 of file sheet.h. Referenced by Sheet(). |
|
|
Definition at line 111 of file sheet.h. Referenced by createCellData(), getAlignment(), getBrush(), getFont(), getFontColor(), getPen(), paintCell(), and Sheet(). |
|
|
Definition at line 116 of file sheet.h. Referenced by dataParser(). |
|
|
|
|
|
|
|
|
Definition at line 109 of file sheet.h. Referenced by getSelection(), Sheet(), viewportMouseMoveEvent(), viewportMousePressEvent(), and viewportMouseReleaseEvent(). |
|
|
Definition at line 114 of file sheet.h. Referenced by copySheetData(), createCellData(), dataFindReplace(), findCellData(), insertColumns(), insertRows(), paintCell(), ReCalc(), setSheetData(), Sheet(), and slotCellChanged(). |
|
|
|
1.4.2