diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-03-26 12:35:35 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-03-26 14:10:15 +0100 |
commit | 38dca4b75c471ddf950e2f9f03801c550d7d26fd (patch) | |
tree | f5923ce5d84971f1f394baf7411146f078c02fab /part/commands_edit.h | |
parent | e28665ce3b2e9ec6f09b4c021db7443cac3c4128 (diff) | |
download | kxmleditor-38dca4b75c471ddf950e2f9f03801c550d7d26fd.tar.gz kxmleditor-38dca4b75c471ddf950e2f9f03801c550d7d26fd.zip |
Initial TQt conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'part/commands_edit.h')
-rw-r--r-- | part/commands_edit.h | 164 |
1 files changed, 82 insertions, 82 deletions
diff --git a/part/commands_edit.h b/part/commands_edit.h index c713861..776ebfc 100644 --- a/part/commands_edit.h +++ b/part/commands_edit.h @@ -21,7 +21,7 @@ #include <klocale.h> -#include <qobjectlist.h> +#include <tqobjectlist.h> /** @file @@ -35,21 +35,21 @@ class KXEDeleteNodeCommand : public KXECommand { public: /** @brief Constructor */ - KXEDeleteNodeCommand(KXEDocument*, QDomNode &); + KXEDeleteNodeCommand(KXEDocument*, TQDomNode &); /** @brief Destructor */ ~KXEDeleteNodeCommand(); /** @brief Performs node removal.*/ virtual void execute(); /** @brief Node removal rollback.*/ virtual void unexecute(); - virtual QString name() const { return i18n("Delete node"); } + virtual TQString name() const { return i18n("Delete node"); } protected: /** @short Stores infromation about parent node of the node to be deleted. */ - QDomNode m_domParentNode; + TQDomNode m_domParentNode; /** @short Stores infromation the node to be deleted. */ - QDomNode m_domNode; + TQDomNode m_domNode; /** @short Stores infromation about sibling node of the node to be deleted. */ - QDomNode m_afterNode; + TQDomNode m_afterNode; }; /** @short Command for removing element attributes. @@ -58,19 +58,19 @@ class KXEDeleteAttrCommand : public KXECommand { public: /** @brief Constructor */ - KXEDeleteAttrCommand(KXEDocument*, QDomElement &, QDomAttr &); + KXEDeleteAttrCommand(KXEDocument*, TQDomElement &, TQDomAttr &); /** @brief Destructor */ ~KXEDeleteAttrCommand(); /** @brief Preforms attributte removal. */ virtual void execute(); /** @brief Attributte removal rollback. */ virtual void unexecute(); - virtual QString name() const { return i18n("Delete attribute"); } + virtual TQString name() const { return i18n("Delete attribute"); } protected: /** @brief Stores attribute owner. */ - QDomElement m_domOwnerElement; + TQDomElement m_domOwnerElement; /** @brief Attribute about to be removed. */ - QDomAttr m_domAttr; + TQDomAttr m_domAttr; }; /** @@ -80,15 +80,15 @@ class KXEDeleteAllAttribCommand : public KXECommand { public: /** @brief Constructor */ - KXEDeleteAllAttribCommand(KXEDocument*, QDomElement &); + KXEDeleteAllAttribCommand(KXEDocument*, TQDomElement &); /** @brief Destructor */ ~KXEDeleteAllAttribCommand(); virtual void execute(); virtual void unexecute(); - virtual QString name() const { return i18n("Delete all attributes"); } + virtual TQString name() const { return i18n("Delete all attributes"); } protected: - QDomElement m_domOwnerElement; - QPtrList<QDomAttr> m_listRemovedAttributes; + TQDomElement m_domOwnerElement; + TQPtrList<TQDomAttr> m_listRemovedAttributes; }; /** @@ -98,10 +98,10 @@ class KXECutCommand : public KXEDeleteNodeCommand { public: /** @brief Constructor */ - KXECutCommand(KXEDocument*, QDomNode &); + KXECutCommand(KXEDocument*, TQDomNode &); /** @brief Destructor */ ~KXECutCommand(); - virtual QString name() const { return i18n("Cut node"); } + virtual TQString name() const { return i18n("Cut node"); } }; /** @@ -111,15 +111,15 @@ class KXEPasteToDocumentCommand : public KXECommand { public: /** @brief Constructor */ - KXEPasteToDocumentCommand(KXEDocument*, QDomDocument *, QDomElement &); + KXEPasteToDocumentCommand(KXEDocument*, TQDomDocument *, TQDomElement &); /** @brief Destructor */ ~KXEPasteToDocumentCommand(); virtual void execute(); virtual void unexecute(); - virtual QString name() const { return i18n("Paste node to document"); } + virtual TQString name() const { return i18n("Paste node to document"); } protected: - QDomDocument * m_pDomTargetDoc; - QDomElement m_domSourceElement; + TQDomDocument * m_pDomTargetDoc; + TQDomElement m_domSourceElement; }; /** @@ -129,47 +129,47 @@ class KXEPasteToElementCommand : public KXECommand { public: /** @brief Constructor */ - KXEPasteToElementCommand(KXEDocument*, QDomElement &, QDomNode &); + KXEPasteToElementCommand(KXEDocument*, TQDomElement &, TQDomNode &); /** @brief Destructor */ ~KXEPasteToElementCommand(); virtual void execute(); virtual void unexecute(); - virtual QString name() const { return i18n("Paste node to element"); } + virtual TQString name() const { return i18n("Paste node to element"); } protected: - QDomElement m_domTargetElement; - QDomNode m_domSourceNode; + TQDomElement m_domTargetElement; + TQDomNode m_domSourceNode; }; class KXEPasteToProcInstrCommand : public KXECommand { public: /** @brief Constructor */ - KXEPasteToProcInstrCommand(KXEDocument*, QDomProcessingInstruction &, QDomProcessingInstruction &); + KXEPasteToProcInstrCommand(KXEDocument*, TQDomProcessingInstruction &, TQDomProcessingInstruction &); /** @brief Destructor */ ~KXEPasteToProcInstrCommand(); virtual void execute(); virtual void unexecute(); - virtual QString name() const { return i18n("Paste node to proc. instruction"); } + virtual TQString name() const { return i18n("Paste node to proc. instruction"); } protected: - QDomProcessingInstruction m_domTargetProcInstr; - QString m_strNewData; - QString m_strOldData; + TQDomProcessingInstruction m_domTargetProcInstr; + TQString m_strNewData; + TQString m_strOldData; }; class KXEPasteToCharDataCommand : public KXECommand { public: /** @brief Constructor */ - KXEPasteToCharDataCommand(KXEDocument*, QDomCharacterData &, QDomCharacterData &); + KXEPasteToCharDataCommand(KXEDocument*, TQDomCharacterData &, TQDomCharacterData &); /** @brief Destructor */ ~KXEPasteToCharDataCommand(); virtual void execute(); virtual void unexecute(); - virtual QString name() const { return i18n("Paste node to char. data"); } + virtual TQString name() const { return i18n("Paste node to char. data"); } protected: - QDomCharacterData m_domTargetCharData; - QString m_strNewData; - QString m_strOldData; + TQDomCharacterData m_domTargetCharData; + TQString m_strNewData; + TQString m_strOldData; }; /** @@ -179,16 +179,16 @@ class KXEDragDropMoveCommand : public KXECommand { public: /** @brief Constructor */ - KXEDragDropMoveCommand(KXEDocument*, QDomElement &, QDomNode &); + KXEDragDropMoveCommand(KXEDocument*, TQDomElement &, TQDomNode &); /** @brief Destructor */ ~KXEDragDropMoveCommand(); virtual void execute(); virtual void unexecute(); - virtual QString name() const { return i18n("Drag&&drop node"); } + virtual TQString name() const { return i18n("Drag&&drop node"); } protected: - QDomElement m_domTargetElement; - QDomNode m_domSourceNode; - QDomNode m_domPreviousParentNode; + TQDomElement m_domTargetElement; + TQDomNode m_domSourceNode; + TQDomNode m_domPreviousParentNode; }; /** @@ -198,15 +198,15 @@ class KXEUpCommand : public KXECommand { public: /** @brief Constructor */ - KXEUpCommand(KXEDocument*, QDomNode &); + KXEUpCommand(KXEDocument*, TQDomNode &); /** @brief Destructor */ ~KXEUpCommand(); virtual void execute(); virtual void unexecute(); - virtual QString name() const { return i18n("Move node up"); } + virtual TQString name() const { return i18n("Move node up"); } protected: - QDomNode m_domParentNode; - QDomNode m_domNode; + TQDomNode m_domParentNode; + TQDomNode m_domNode; }; /** @@ -216,31 +216,31 @@ class KXEDownCommand : public KXECommand { public: /** @brief Constructor */ - KXEDownCommand(KXEDocument*, QDomNode &); + KXEDownCommand(KXEDocument*, TQDomNode &); /** @brief Destructor */ ~KXEDownCommand(); virtual void execute(); virtual void unexecute(); - virtual QString name() const { return i18n("Move node down"); } + virtual TQString name() const { return i18n("Move node down"); } protected: - QDomNode m_domParentNode; - QDomNode m_domNode; + TQDomNode m_domParentNode; + TQDomNode m_domNode; }; class KXEEditCharDataCommand : public KXECommand { public: /** @brief Constructor */ - KXEEditCharDataCommand(KXEDocument*, QDomCharacterData &, const QString); + KXEEditCharDataCommand(KXEDocument*, TQDomCharacterData &, const TQString); /** @brief Destructor */ ~KXEEditCharDataCommand(); virtual void execute(); virtual void unexecute(); - virtual QString name() const { return i18n("Editing character data"); } + virtual TQString name() const { return i18n("Editing character data"); } protected: - QDomCharacterData m_domCharacterData; - QString m_strNewContents; - QString m_strOldContents; + TQDomCharacterData m_domCharacterData; + TQString m_strNewContents; + TQString m_strOldContents; }; /** @@ -250,16 +250,16 @@ class KXEEditProcInstrCommand : public KXECommand { public: /** @brief Constructor */ - KXEEditProcInstrCommand(KXEDocument*, QDomProcessingInstruction &, const QString); + KXEEditProcInstrCommand(KXEDocument*, TQDomProcessingInstruction &, const TQString); /** @brief Destructor */ ~KXEEditProcInstrCommand(); virtual void execute(); virtual void unexecute(); - virtual QString name() const { return i18n("Editing proc. instruction"); } + virtual TQString name() const { return i18n("Editing proc. instruction"); } protected: - QDomProcessingInstruction m_domProcInstr; - QString m_strNewData; - QString m_strOldData; + TQDomProcessingInstruction m_domProcInstr; + TQString m_strNewData; + TQString m_strOldData; }; /** @@ -269,18 +269,18 @@ class KXEEditElementCommand : public KXECommand { public: /** @brief Constructor */ - KXEEditElementCommand(KXEDocument*, QDomElement &, const QString, const QString); + KXEEditElementCommand(KXEDocument*, TQDomElement &, const TQString, const TQString); /** @brief Destructor */ ~KXEEditElementCommand(); virtual void execute(); virtual void unexecute(); - virtual QString name() const { return i18n("Editing element"); } + virtual TQString name() const { return i18n("Editing element"); } protected: - QDomElement m_domElement; - QString m_strNewPrefix; - QString m_strNewName; - QString m_strOldPrefix; - QString m_strOldName; + TQDomElement m_domElement; + TQString m_strNewPrefix; + TQString m_strNewName; + TQString m_strOldPrefix; + TQString m_strOldName; }; /** @@ -290,16 +290,16 @@ class KXEEditAttrValueCommand : public KXECommand { public: /** @brief Constructor */ - KXEEditAttrValueCommand(KXEDocument*, const QDomAttr &, const QString); + KXEEditAttrValueCommand(KXEDocument*, const TQDomAttr &, const TQString); /** @brief Destructor */ ~KXEEditAttrValueCommand(); virtual void execute(); virtual void unexecute(); - virtual QString name() const { return i18n("Edit attribute value"); } + virtual TQString name() const { return i18n("Edit attribute value"); } protected: - QDomAttr m_domAttr; - QString m_strNewValue; - QString m_strOldValue; + TQDomAttr m_domAttr; + TQString m_strNewValue; + TQString m_strOldValue; }; /** @@ -309,18 +309,18 @@ class KXEEditAttrNameCommand : public KXECommand { public: /** @brief Constructor */ - KXEEditAttrNameCommand(KXEDocument*, const QDomAttr &, const QString); + KXEEditAttrNameCommand(KXEDocument*, const TQDomAttr &, const TQString); /** @brief Destructor */ ~KXEEditAttrNameCommand(); virtual void execute(); virtual void unexecute(); - virtual QString name() const { return i18n("Edit attribute name"); } + virtual TQString name() const { return i18n("Edit attribute name"); } protected: - QDomElement m_domOwnerElement; - QString m_strNewName; - QString m_strOldName; - QString m_strValue; - QString m_strNamespaceURI; + TQDomElement m_domOwnerElement; + TQString m_strNewName; + TQString m_strOldName; + TQString m_strValue; + TQString m_strNamespaceURI; }; /** @@ -330,17 +330,17 @@ class KXEEditRawXmlCommand : public KXECommand { public: /** @brief Constructor */ - KXEEditRawXmlCommand(KXEDocument*, QDomElement &, QDomElement &); + KXEEditRawXmlCommand(KXEDocument*, TQDomElement &, TQDomElement &); /** @brief Destructor */ ~KXEEditRawXmlCommand(); virtual void execute(); virtual void unexecute(); - virtual QString name() const { return i18n("Editing raw XML"); } + virtual TQString name() const { return i18n("Editing raw XML"); } protected: - QDomElement m_domOldElement; - QDomNode m_domParentNode; - QDomElement m_domNewElement; - QDomNode m_afterNode; + TQDomElement m_domOldElement; + TQDomNode m_domParentNode; + TQDomElement m_domNewElement; + TQDomNode m_afterNode; }; #endif |