diff options
Diffstat (limited to 'kexi/plugins/tables/kexitabledesignercommands.h')
-rw-r--r-- | kexi/plugins/tables/kexitabledesignercommands.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/kexi/plugins/tables/kexitabledesignercommands.h b/kexi/plugins/tables/kexitabledesignercommands.h index 355aabe2..1e6225e3 100644 --- a/kexi/plugins/tables/kexitabledesignercommands.h +++ b/kexi/plugins/tables/kexitabledesignercommands.h @@ -20,12 +20,12 @@ #ifndef KEXITABLEDESIGNER_COMMANDS_H #define KEXITABLEDESIGNER_COMMANDS_H -#include <qmap.h> -#include <qdict.h> -#include <qptrlist.h> -#include <qptrdict.h> -#include <qvariant.h> -#include <qguardedptr.h> +#include <tqmap.h> +#include <tqdict.h> +#include <tqptrlist.h> +#include <tqptrdict.h> +#include <tqvariant.h> +#include <tqguardedptr.h> #include <kcommand.h> #include <kexidb/alter.h> @@ -33,11 +33,11 @@ #include "kexitabledesignerview.h" -class QWidget; -class QRect; -class QPoint; -class QStringList; -class QCString; +class TQWidget; +class TQRect; +class TQPoint; +class TQStringList; +class TQCString; namespace KexiTableDesignerCommands { @@ -52,10 +52,10 @@ class Command : public KCommand //! Can return 0 if the action should not be passed to AlterTableHandler virtual KexiDB::AlterTableHandler::ActionBase* createAction() { return 0; } - virtual QString debugString() { return name(); } + virtual TQString debugString() { return name(); } protected: - QGuardedPtr<KexiTableDesignerView> m_view; + TQGuardedPtr<KexiTableDesignerView> m_view; }; //! @short Undo/redo command used for when changing a property for a table field @@ -70,21 +70,21 @@ class ChangeFieldPropertyCommand : public Command on execute() and unexecute(). */ ChangeFieldPropertyCommand( KexiTableDesignerView* view, - const KoProperty::Set& set, const QCString& propertyName, - const QVariant& oldValue, const QVariant& newValue, + const KoProperty::Set& set, const TQCString& propertyName, + const TQVariant& oldValue, const TQVariant& newValue, KoProperty::Property::ListData* const oldListData = 0, KoProperty::Property::ListData* const newListData = 0); virtual ~ChangeFieldPropertyCommand(); - virtual QString name() const; + virtual TQString name() const; virtual void execute(); virtual void unexecute(); virtual KexiDB::AlterTableHandler::ActionBase* createAction(); - virtual QString debugString(); + virtual TQString debugString(); protected: KexiDB::AlterTableHandler::ChangeFieldPropertyAction m_alterTableAction; - QVariant m_oldValue; + TQVariant m_oldValue; // int m_fieldUID; KoProperty::Property::ListData* m_oldListData, *m_listData; }; @@ -100,12 +100,12 @@ class RemoveFieldCommand : public Command virtual ~RemoveFieldCommand(); - virtual QString name() const; + virtual TQString name() const; virtual void execute(); virtual void unexecute(); virtual KexiDB::AlterTableHandler::ActionBase* createAction(); - virtual QString debugString(); + virtual TQString debugString(); protected: KexiDB::AlterTableHandler::RemoveFieldAction m_alterTableAction; @@ -121,13 +121,13 @@ class InsertFieldCommand : public Command int fieldIndex/*, const KexiDB::Field& field*/, const KoProperty::Set& set ); virtual ~InsertFieldCommand(); - virtual QString name() const; + virtual TQString name() const; virtual void execute(); virtual void unexecute(); virtual KexiDB::AlterTableHandler::ActionBase* createAction(); - virtual QString debugString() { - return name() + "\nAT ROW " + QString::number(m_alterTableAction->index()) //m_alterTableAction.index()) + virtual TQString debugString() { + return name() + "\nAT ROW " + TQString::number(m_alterTableAction->index()) //m_alterTableAction.index()) + ", FIELD: " + m_set["caption"].value().toString(); //m_alterTableAction.field().debugString(); } @@ -150,12 +150,12 @@ class ChangePropertyVisibilityCommand : public Command (it's invalid but allowed in design time). */ ChangePropertyVisibilityCommand( KexiTableDesignerView* view, - const KoProperty::Set& set, const QCString& propertyName, + const KoProperty::Set& set, const TQCString& propertyName, bool visible); virtual ~ChangePropertyVisibilityCommand(); - virtual QString name() const; + virtual TQString name() const; virtual void execute(); virtual void unexecute(); @@ -174,7 +174,7 @@ class InsertEmptyRowCommand : public Command InsertEmptyRowCommand( KexiTableDesignerView* view, int row ); virtual ~InsertEmptyRowCommand(); - virtual QString name() const; + virtual TQString name() const; virtual void execute(); virtual void unexecute(); |