-rw-r--r-- | noncore/apps/opie-reader/infowin.h | 2 | ||||
-rw-r--r-- | noncore/apps/opie-sheet/sheet.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/opie-reader/infowin.h b/noncore/apps/opie-reader/infowin.h index 6f0fb99..c003998 100644 --- a/noncore/apps/opie-reader/infowin.h +++ b/noncore/apps/opie-reader/infowin.h @@ -1,39 +1,39 @@ #ifndef __INFOWIN_H #define __INFOWIN_H #include <qlabel.h> class QString; class QMultiLineEdit; class infowin : public QWidget { Q_OBJECT QLabel* fileSize; QLabel* textSize; QLabel* ratio; QLabel* location; QLabel* read; QLabel* docread; QLabel* docSize; QLabel* docLocation; QLabel* zoom; QMultiLineEdit* aboutbox; public: - infowin::infowin( QWidget *parent=0, const char *name=0, WFlags f = 0); + infowin( QWidget *parent=0, const char *name=0, WFlags f = 0); void setFileSize(int sz) { fileSize->setNum(sz); } void setTextSize(int sz) { textSize->setNum(sz); } void setRatio(int sz) { ratio->setText(QString().setNum(sz)+"%"); } void setLocation(int sz) { location->setNum(sz); } void setRead(int sz) { read->setText(QString().setNum(sz)+"%"); } void setDocRead(int sz) { docread->setText(QString().setNum(sz)+"%"); } void setZoom(int sz) { zoom->setText(QString().setNum(sz)+"%"); } void setDocSize(int sz) { docSize->setNum(sz); } void setDocLocation(int sz) { docLocation->setNum(sz); } void setAbout(const QString& s); private slots: void infoClose() { emit Close(); } signals: void Close(); }; #endif diff --git a/noncore/apps/opie-sheet/sheet.h b/noncore/apps/opie-sheet/sheet.h index 92c8061..8938511 100644 --- a/noncore/apps/opie-sheet/sheet.h +++ b/noncore/apps/opie-sheet/sheet.h @@ -33,129 +33,129 @@ #ifndef SHEET_H #define SHEET_H /* QT */ #include <qtable.h> #include <qstack.h> typedef struct typeCellBorders { QPen right, bottom; }; typedef struct typeCellData { int col, row; typeCellBorders borders; QBrush background; Qt::AlignmentFlags alignment; QColor fontColor; QFont font; QString data; }; #define NONE_TOKEN 0 #define NUMBER_TOKEN 1 #define VARIABLE_TOKEN 2 #define FUNCTION_TOKEN 3 #define SYMBOL_TOKEN 4 #define STRING_TOKEN 5 class Expression { public: QString Body; QList<QString> CompiledBody; QList<int> CompiledBodyType; QString SYMBOL; QString MATHSYMBOL; QArray<int> ArgsOfFunc; int FuncDepth; bool ErrorFound; int n; // holds the current parser position QString chunk; // the piece in the parser we are on int SymbGroup; // the current type QString InExpr; QChar chunk0(void); // retunrs the first char of expression; Expression(QString expr1);// constructor bool isSymbol(QChar ch); bool isMathSymbol(QChar ch); void GetNext(); void First(); void Third(); void Fourth(); void Fifth(); void Sixth(); void Seventh(); void Eighth(); void Ninth(); - bool Expression::Parse(); //parses the expression in RPN format; + bool Parse(); //parses the expression in RPN format; }; class Sheet: public QTable { Q_OBJECT // Variables bool clicksLocked; int selectionNo; typeCellBorders defaultBorders; typeCellData defaultCellData; // QT objects QList<typeCellData> sheetData, clipboardData; QString pressedCell, releasedCell, sheetName; QStringList listDataParser; // Private 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); //LOGICAL / INFO double functionCountIf(const QString ¶m1, const QString ¶m2, const QString ¶m3); double functionSumSQ(const QString ¶m1, const QString ¶m2); //sum of squares QString functionIndex(const QString ¶m1, const QString ¶m2, int indx); //math functions computations 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); |