summaryrefslogtreecommitdiffstats
path: root/kicker-applets/math/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'kicker-applets/math/parser.h')
-rw-r--r--kicker-applets/math/parser.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/kicker-applets/math/parser.h b/kicker-applets/math/parser.h
index 44e82ba..4ee0e7d 100644
--- a/kicker-applets/math/parser.h
+++ b/kicker-applets/math/parser.h
@@ -30,8 +30,8 @@
* \brief Contains the parser core class Parser. */
// Qt includes
-#include <qstring.h>
-#include <qvaluevector.h>
+#include <tqstring.h>
+#include <tqvaluevector.h>
#ifndef parser_included
#define parser_included
@@ -125,23 +125,23 @@ public:
~Parser();
/// Evaluates the given expression.
- double eval(QString);
+ double eval(TQString);
/// Evaluates the function with the given name at the position.
- double fkt(QString, double);
+ double fkt(TQString, double);
/// Evaluates the function with the given index at the position.
double fkt(int ix, double x) {return ufkt[ix].fkt(x);}
/// Adds a user defined function with the given equation.
- int addfkt(QString);
+ int addfkt(TQString);
/// Removes the function with the given name.
- int delfkt(QString);
+ int delfkt(TQString);
/// Removes the function with the given index.
int delfkt(int);
/// Returns name and expression of the function with the given index.
- int getfkt(int, QString&, QString&);
+ int getfkt(int, TQString&, TQString&);
/// Checks, if at the given index a function is stored.
int chkfix(int);
/// Returns the index of the function with the given name.
- int getfix(QString);
+ int getfix(TQString);
/// Returns the lowest index in the array of user defined functions which is empty,
/// or -1, if the array is full.
int getNextIndex();
@@ -154,7 +154,7 @@ public:
/// sets the angletype. TRUE is radians and FALSE degrees
void setAngleMode(int);
- QValueVector<Constant> constant;
+ TQValueVector<Constant> constant;
/// Error codes.
/**
@@ -188,9 +188,9 @@ public:
unsigned char *mem; ///< Pointer to the allocated memory for the tokens.
unsigned char *mptr; ///< Pointer to the token.
QString fname; ///< Name of the function.
- QString fvar; ///< Dummy variable.
- QString fpar; ///< Parameter.
- QString fstr; ///< Function expression.
+ TQString fvar; ///< Dummy variable.
+ TQString fpar; ///< Parameter.
+ TQString fstr; ///< Function expression.
int memsize; ///< Size of token memory
int stacksize; ///< Size of the stack.
double k, ///< Function parameter.