summaryrefslogtreecommitdiffstats
path: root/katapult/plugins/catalogs/calculatorcatalog/calculatorcatalog.h
diff options
context:
space:
mode:
Diffstat (limited to 'katapult/plugins/catalogs/calculatorcatalog/calculatorcatalog.h')
-rw-r--r--katapult/plugins/catalogs/calculatorcatalog/calculatorcatalog.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/katapult/plugins/catalogs/calculatorcatalog/calculatorcatalog.h b/katapult/plugins/catalogs/calculatorcatalog/calculatorcatalog.h
index 88f03cc..e5f7d00 100644
--- a/katapult/plugins/catalogs/calculatorcatalog/calculatorcatalog.h
+++ b/katapult/plugins/catalogs/calculatorcatalog/calculatorcatalog.h
@@ -25,15 +25,15 @@
#include <kgenericfactory.h>
-#include <qmap.h>
-#include <qptrlist.h>
-#include <qstring.h>
-#include <qvaluevector.h>
+#include <tqmap.h>
+#include <tqptrlist.h>
+#include <tqstring.h>
+#include <tqvaluevector.h>
#include "expression.h"
#include "katapultcatalog.h"
-class QWidget;
+class TQWidget;
typedef double (*FunPtr)(double);
@@ -43,6 +43,7 @@ typedef double (*FunPtr)(double);
class CalculatorCatalog : public KatapultCatalog
{
Q_OBJECT
+ TQ_OBJECT
public:
@@ -59,13 +60,13 @@ class CalculatorCatalog : public KatapultCatalog
FunPtr fptr;
};
- CalculatorCatalog(QObject*, const char*, const QStringList&);
+ CalculatorCatalog(TQObject*, const char*, const TQStringList&);
virtual ~CalculatorCatalog();
//virtual void initialize();
virtual void readSettings(KConfigBase*);
virtual void writeSettings(KConfigBase*);
- virtual QWidget* configure();
+ virtual TQWidget* configure();
int getVarID(const char*);
double getVar(int) const;
@@ -75,7 +76,7 @@ class CalculatorCatalog : public KatapultCatalog
bool scientific() const;
bool degrees() const;
bool clipboard() const;
- QString formatString() const;
+ TQString formatString() const;
const Function* functionTable() const;
protected:
@@ -84,26 +85,26 @@ class CalculatorCatalog : public KatapultCatalog
private:
- typedef QMap<QString, int> VarNameToIdMap;
- typedef QValueVector<double> VarIdToValueVector;
+ typedef TQMap<TQString, int> VarNameToIdMap;
+ typedef TQValueVector<double> VarIdToValueVector;
static const Function radiansFunctionTable[];
static const Function degreesFunctionTable[];
void reset();
- bool accepts(const QString&) const;
+ bool accepts(const TQString&) const;
Expression _result; // The one result (there's always one).
VarNameToIdMap varNameToId; // Maps strings to IDs.
VarIdToValueVector varIdToValue; // Maps IDs to values.
- QString _pendingVarName; // Pending while rest of assignment is parsed.
+ TQString _pendingVarName; // Pending while rest of assignment is parsed.
int _fracDigits; // Number of fractional digits.
bool _bScientific; // Normal or scientific mode?
bool _bDegrees; // Radians or degrees?
bool _bClipboard; // Copy to clipboard?
- QString _formatString; // for clipboard copy
+ TQString _formatString; // for clipboard copy
private slots:
@@ -111,7 +112,7 @@ class CalculatorCatalog : public KatapultCatalog
void scientificChanged(bool);
void degreesChanged(bool);
void clipboardChanged(bool);
- void formatStringChanged(const QString&);
+ void formatStringChanged(const TQString&);
};