summaryrefslogtreecommitdiffstats
path: root/kalarm/undo.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kalarm/undo.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/undo.h')
-rw-r--r--kalarm/undo.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/kalarm/undo.h b/kalarm/undo.h
index 99e06f979..0af181530 100644
--- a/kalarm/undo.h
+++ b/kalarm/undo.h
@@ -23,8 +23,8 @@
/** @file undo.h - undo/redo facility */
-#include <qvaluelist.h>
-#include <qstringlist.h>
+#include <tqvaluelist.h>
+#include <tqstringlist.h>
class KAEvent;
class UndoItem;
@@ -40,31 +40,31 @@ class Undo : public QObject
static void saveAdd(const KAEvent&);
static void saveEdit(const KAEvent& oldEvent, const KAEvent& newEvent);
static void saveDelete(const KAEvent&);
- static void saveDeletes(const QValueList<KAEvent>&);
+ static void saveDeletes(const TQValueList<KAEvent>&);
static void saveReactivate(const KAEvent&);
- static void saveReactivates(const QValueList<KAEvent>&);
- static bool undo(QWidget* parent, const QString& action)
+ static void saveReactivates(const TQValueList<KAEvent>&);
+ static bool undo(TQWidget* parent, const TQString& action)
{ return undo(mUndoList.begin(), UNDO, parent, action); }
- static bool undo(int id, QWidget* parent, const QString& action)
+ static bool undo(int id, TQWidget* parent, const TQString& action)
{ return undo(findItem(id, UNDO), UNDO, parent, action); }
- static bool redo(QWidget* parent, const QString& action)
+ static bool redo(TQWidget* parent, const TQString& action)
{ return undo(mRedoList.begin(), REDO, parent, action); }
- static bool redo(int id, QWidget* parent, const QString& action)
+ static bool redo(int id, TQWidget* parent, const TQString& action)
{ return undo(findItem(id, REDO), REDO, parent, action); }
static void clear();
static bool haveUndo() { return !mUndoList.isEmpty(); }
static bool haveRedo() { return !mRedoList.isEmpty(); }
- static QString actionText(Type);
- static QString actionText(Type, int id);
- static QString description(Type, int id);
- static QValueList<int> ids(Type);
+ static TQString actionText(Type);
+ static TQString actionText(Type, int id);
+ static TQString description(Type, int id);
+ static TQValueList<int> ids(Type);
static void emitChanged();
// Types for use by UndoItem class and its descendants
- typedef QValueList<UndoItem*> List;
+ typedef TQValueList<UndoItem*> List;
signals:
- void changed(const QString& undo, const QString& redo);
+ void changed(const TQString& undo, const TQString& redo);
protected:
// Methods for use by UndoItem class
@@ -73,14 +73,14 @@ class Undo : public QObject
static void replace(UndoItem* old, UndoItem* New);
private:
- typedef QValueList<UndoItem*>::Iterator Iterator;
+ typedef TQValueList<UndoItem*>::Iterator Iterator;
- Undo(QObject* parent) : QObject(parent) { }
- static void removeRedos(const QString& eventID);
- static bool undo(Iterator, Type, QWidget* parent, const QString& action);
+ Undo(TQObject* parent) : TQObject(parent) { }
+ static void removeRedos(const TQString& eventID);
+ static bool undo(Iterator, Type, TQWidget* parent, const TQString& action);
static UndoItem* getItem(int id, Type);
static Iterator findItem(int id, Type);
- void emitChanged(const QString& undo, const QString& redo)
+ void emitChanged(const TQString& undo, const TQString& redo)
{ emit changed(undo, redo); }
static Undo* mInstance; // the one and only Undo instance