summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2006-05-25 22:35:51 (UTC)
committer mickeyl <mickeyl>2006-05-25 22:35:51 (UTC)
commit7cfd27c0f29c6d7e2b90ce718d762433b82c1fe3 (patch) (side-by-side diff)
tree817b7d3383348b4654c63b216c31de71e73ef6c9
parentdebf4dfe9a9ca9103aa9f8fa2db5f0b5fed08952 (diff)
downloadopie-7cfd27c0f29c6d7e2b90ce718d762433b82c1fe3.zip
opie-7cfd27c0f29c6d7e2b90ce718d762433b82c1fe3.tar.gz
opie-7cfd27c0f29c6d7e2b90ce718d762433b82c1fe3.tar.bz2
g++ 4.1.1 fix
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/infowin.h2
-rw-r--r--noncore/apps/opie-sheet/sheet.h2
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
@@ -49,97 +49,97 @@ typedef struct typeCellData
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 &parameters, int NumOfParams);
QString getParameter(const QString &parameters, 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 &param1, const QString &param2, const QString &param3);
double functionSumSQ(const QString &param1, const QString &param2); //sum of squares
QString functionIndex(const QString &param1, const QString &param2, 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);