diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
commit | 7346aee26bf190a7e70333c40fab4caca847cd27 (patch) | |
tree | 4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /kicker-applets/math/parser.h | |
parent | 23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff) | |
download | tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker-applets/math/parser.h')
-rw-r--r-- | kicker-applets/math/parser.h | 24 |
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. |