summaryrefslogtreecommitdiffstats
path: root/src/valuemanager.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-09 19:45:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-09 19:45:27 +0000
commitf4f8ac034fa04404e2fcd5029ba050c537c07d7a (patch)
tree0daa81b0533ce203c33d5571dcb842257dba4cd0 /src/valuemanager.h
parent4488b6112c4e22493ed88c68035b980a5b42228d (diff)
downloadabakus-f4f8ac034fa04404e2fcd5029ba050c537c07d7a.tar.gz
abakus-f4f8ac034fa04404e2fcd5029ba050c537c07d7a.zip
TQt4 port Abakus
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/abakus@1231045 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/valuemanager.h')
-rw-r--r--src/valuemanager.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/src/valuemanager.h b/src/valuemanager.h
index a0c3007..8233dc5 100644
--- a/src/valuemanager.h
+++ b/src/valuemanager.h
@@ -19,46 +19,47 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <qobject.h>
-#include <qmap.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqobject.h>
+#include <tqmap.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
#include "numerictypes.h"
-class ValueManager : public QObject
+class ValueManager : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- typedef QMap<QString, Abakus::number_t> valueMap;
+ typedef TQMap<TQString, Abakus::number_t> valueMap;
static ValueManager *instance();
- Abakus::number_t value(const QString &name) const;
+ Abakus::number_t value(const TQString &name) const;
- bool isValueSet(const QString &name) const;
- bool isValueReadOnly(const QString &name) const;
+ bool isValueSet(const TQString &name) const;
+ bool isValueReadOnly(const TQString &name) const;
- void setValue(const QString &name, const Abakus::number_t value);
- void removeValue(const QString &name);
+ void setValue(const TQString &name, const Abakus::number_t value);
+ void removeValue(const TQString &name);
- QStringList valueNames() const;
+ TQStringList valueNames() const;
/**
* Returns a textual description of a constant built-into abakus.
*/
- static QString description(const QString &valueName);
+ static TQString description(const TQString &valueName);
signals:
- void signalValueAdded(const QString &name, Abakus::number_t value);
- void signalValueRemoved(const QString &name);
- void signalValueChanged(const QString &name, Abakus::number_t newValue);
+ void signalValueAdded(const TQString &name, Abakus::number_t value);
+ void signalValueRemoved(const TQString &name);
+ void signalValueChanged(const TQString &name, Abakus::number_t newValue);
public slots:
void slotRemoveUserVariables();
private:
- ValueManager(QObject *parent = 0, const char *name = "value manager");
+ ValueManager(TQObject *tqparent = 0, const char *name = "value manager");
static ValueManager *m_manager;
valueMap m_values;