diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
commit | 4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch) | |
tree | b0a7cd1c184f0003c0292eb416ed27f674f9cc43 /umbrello/umbrello/codedocument.h | |
parent | 1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff) | |
download | tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'umbrello/umbrello/codedocument.h')
-rw-r--r-- | umbrello/umbrello/codedocument.h | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/umbrello/umbrello/codedocument.h b/umbrello/umbrello/codedocument.h index 609b70c6..96e75ada 100644 --- a/umbrello/umbrello/codedocument.h +++ b/umbrello/umbrello/codedocument.h @@ -17,9 +17,9 @@ #ifndef CODEDOCUMENT_H #define CODEDOCUMENT_H -#include <qobject.h> -#include <qmap.h> -#include <qstring.h> +#include <tqobject.h> +#include <tqmap.h> +#include <tqstring.h> #include "codegenerationpolicy.h" #include "codegenobjectwithtextblocks.h" @@ -42,7 +42,7 @@ class UMLPackage; // "friend" status is needed for HBlock so it may call addChildTagToMap which // is protected. -class CodeDocument : public QObject, public CodeGenObjectWithTextBlocks +class CodeDocument : public TQObject, public CodeGenObjectWithTextBlocks { friend class HierarchicalCodeBlock; Q_OBJECT @@ -75,26 +75,26 @@ public: * Set the value of m_fileExtension * @param new_var the new value of m_fileExtension */ - void setFileExtension ( const QString &new_var ); + void setFileExtension ( const TQString &new_var ); /** * Get the value of m_fileExtension * @return the value of m_fileExtension */ - QString getFileExtension ( ) const; + TQString getFileExtension ( ) const; /** * Set the complete value (name plus any extension) of m_filename * @param new_var the new value of m_filename */ - void setFileName ( const QString &new_var ); + void setFileName ( const TQString &new_var ); /** * Get the value of m_filename. This name is the "complete" filename, * meaning that it contains both the file name plus any extension (e.g. "file.cpp") * @return the value of m_filename */ - QString getFileName ( ) const; + TQString getFileName ( ) const; /** * Set the value of m_package @@ -106,25 +106,25 @@ public: * Get the value of the package of this codedocument. * @return the value of m_pathName */ - QString getPackage ( ) const; + TQString getPackage ( ) const; /** * Get the value of the path to this codedocument. * @return the value of m_pathName */ - virtual QString getPath ( ); + virtual TQString getPath ( ); /** * Set the value of m_ID * @param new_id the new value of m_ID */ - void setID ( const QString &new_id); + void setID ( const TQString &new_id); /** * Get the value of m_ID * @return the value of m_ID */ - QString getID ( ) const; + TQString getID ( ) const; /** * Set the value of m_writeOutCode @@ -163,23 +163,23 @@ public: * find the TextBlock with such a tag. If descendIntoChildren is true, then * any child hierarchical textblocks will also be searched for a match. */ - TextBlock * findTextBlockByTag( const QString &tag , bool descendIntoChildren = false); + TextBlock * findTextBlockByTag( const TQString &tag , bool descendIntoChildren = false); /** * create the string representation of this object. * @return QString */ - virtual QString toString ( ); + virtual TQString toString ( ); /** * Save the XMI representation of this object */ - virtual void saveToXMI ( QDomDocument & doc, QDomElement & root ); + virtual void saveToXMI ( TQDomDocument & doc, TQDomElement & root ); /** * load params from the appropriate XMI element node. */ - virtual void loadFromXMI ( QDomElement & root ); + virtual void loadFromXMI ( TQDomElement & root ); /** * create a new CodeBlock object belonging to this CodeDocument. @@ -200,11 +200,11 @@ public: virtual CodeBlockWithComments * newCodeBlockWithComments ( ); // return a unique, and currently unallocated, text block tag for this document - virtual QString getUniqueTag( const QString& prefix = QString("") ); + virtual TQString getUniqueTag( const TQString& prefix = TQString("") ); /** a little utility method to make life easier for the code document programmer */ - QString cleanName ( const QString &name ); + TQString cleanName ( const TQString &name ); // Cause this code document to synchronize to current generator policy virtual void synchronize(); @@ -215,20 +215,20 @@ protected: /** set attributes of the node that represents this class * in the XMI document. */ - virtual void setAttributesOnNode ( QDomDocument & doc, QDomElement & blockElement); + virtual void setAttributesOnNode ( TQDomDocument & doc, TQDomElement & blockElement); /** set the class attributes of this object from * the passed element node. */ - virtual void setAttributesFromNode ( QDomElement & element); + virtual void setAttributesFromNode ( TQDomElement & element); // these next 2 are needed by child hierarchical code blocks so // that when they call getUniqueTag, we really get a unique tag // Also, it allows 'findTextBlockByTag' To find any tagged text block // anywhere in the document, whether directly owned by the document OR // by some child hierarchical textblock - void addChildTagToMap ( const QString &tag, TextBlock * tb); - void removeChildTagFromMap ( const QString &tag ); + void addChildTagToMap ( const TQString &tag, TextBlock * tb); + void removeChildTagFromMap ( const TQString &tag ); // update the header text of this codedocument void updateHeader (); @@ -243,15 +243,15 @@ protected: // have to implement this for CodeObjectWithTextBlocks // doenst actually do anythying fo ra vannilla code document - virtual TextBlock * findCodeClassFieldTextBlockByTag( const QString &tag ); + virtual TextBlock * findCodeClassFieldTextBlockByTag( const TQString &tag ); private: int lastTagIndex; - QString m_filename; - QString m_fileExtension; - QString m_ID; - QString m_pathName; + TQString m_filename; + TQString m_fileExtension; + TQString m_ID; + TQString m_pathName; UMLPackage *m_package; bool m_writeOutCode; // Whether or not to write out this code document @@ -263,10 +263,10 @@ private: void initDoc ( ) ; // TextBlockList m_textblockVector; - // QMap<QString, TextBlock *> m_textBlockTagMap; + // TQMap<TQString, TextBlock *> m_textBlockTagMap; // for recording all of the textblocks held by child hierarchical codeblocks - QMap<QString, TextBlock *> m_childTextBlockTagMap; + TQMap<TQString, TextBlock *> m_childTextBlockTagMap; }; |