00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef PUTILS_H
00018 #define PUTILS_H
00019
00020 #include <qstring.h>
00021 #include <qobject.h>
00022 #include <qimage.h>
00023 #include <qasciidict.h>
00024
00030 class pUtils : public QObject
00031 {
00032 public:
00036 pUtils();
00040 ~pUtils(){};
00047 static QString roman(int num,bool uppercase);
00053 static QString getImageName(QString *hrefname);
00059 static unsigned int intsqrt(unsigned long val );
00065 static int intsin(int val);
00071 static int intcos(int val);
00077 static int inttan(int val);
00083 static int qfsqrt(int val);
00084 private:
00088 static int genroman(int i, int j, char c, QString *s);
00092 static QAsciiDict<char> *dict;
00093 };
00094 #endif
00095