diff options
Diffstat (limited to 'kalarm/undo.h')
-rw-r--r-- | kalarm/undo.h | 38 |
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 |