diff options
Diffstat (limited to 'umbrello/umbrello/umldoc.h')
-rw-r--r-- | umbrello/umbrello/umldoc.h | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/umbrello/umbrello/umldoc.h b/umbrello/umbrello/umldoc.h index 2e936a3f..15dad895 100644 --- a/umbrello/umbrello/umldoc.h +++ b/umbrello/umbrello/umldoc.h @@ -20,10 +20,10 @@ #include <typeinfo> // qt includes -#include <qdatastream.h> -#include <qmap.h> -#include <qdict.h> -#include <qptrstack.h> +#include <tqdatastream.h> +#include <tqmap.h> +#include <tqdict.h> +#include <tqptrstack.h> // kde includes #include <kurl.h> @@ -74,7 +74,7 @@ class UMLFolder; * @author Paul Hensgen <phensgen@techie.com> * Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org */ -class UMLDoc : public QObject { +class UMLDoc : public TQObject { Q_OBJECT public: /** @@ -200,7 +200,7 @@ public: * @param name The name to check. * @return True if name is unique. */ - bool isUnique(const QString &name); + bool isUnique(const TQString &name); /** * Returns true if the given name is unique within its scope of given package. @@ -209,12 +209,12 @@ public: * @package The UMLPackage in which we have to determine the unique-ness * @return True if name is unique. */ - bool isUnique(const QString &name, UMLPackage *package); + bool isUnique(const TQString &name, UMLPackage *package); /** * Finds or creates a stereotype for the parent object. */ - UMLStereotype* findOrCreateStereotype(const QString &name); + UMLStereotype* findOrCreateStereotype(const TQString &name); /** * Creates an association between two UMLObjects. @@ -338,7 +338,7 @@ public: * object are searched before the global scope. * @return Pointer to the UMLObject found, or NULL if not found. */ - UMLObject* findUMLObject(const QString &name, + UMLObject* findUMLObject(const TQString &name, Uml::Object_Type type = Uml::ot_UMLObject, UMLObject *currentObj = NULL); @@ -351,14 +351,14 @@ public: * @param idStr The AuxId for the @ref UMLObject to find. * @return Pointer to the UMLObject found, or NULL if not found. */ - UMLObject* findObjectByAuxId(const QString &idStr); + UMLObject* findObjectByAuxId(const TQString &idStr); /** * Used to find a @ref UMLClassifier by its name. * * @param name The name of the @ref UMLObject to find. */ - UMLClassifier * findUMLClassifier (const QString &name); + UMLClassifier * findUMLClassifier (const TQString &name); /** * Finds a UMLStereotype by its name. @@ -366,7 +366,7 @@ public: * @param name The name of the UMLStereotype to find. * @return Pointer to the UMLStereotype found, or NULL if not found. */ - UMLStereotype * findStereotype(const QString &name); + UMLStereotype * findStereotype(const TQString &name); /** * Finds a view (diagram) by the ID given to method. @@ -384,18 +384,18 @@ public: * @param searchAllScopes Search in all subfolders (default: false.) * @return Pointer to the view found, or NULL if not found. */ - UMLView * findView(Uml::Diagram_Type type, const QString &name, + UMLView * findView(Uml::Diagram_Type type, const TQString &name, bool searchAllScopes = false); /** * Set the name of this model. */ - void setName(const QString& name); + void setName(const TQString& name); /** * Return the name of this model. */ - QString getName() const; + TQString getName() const; /** * Return the m_modelID (currently this a fixed value: @@ -410,7 +410,7 @@ public: * * @param file The file to be saved to. */ - virtual void saveToXMI(QIODevice& file); + virtual void saveToXMI(TQIODevice& file); /** * Checks the given XMI file if it was saved with correct Unicode @@ -418,7 +418,7 @@ public: * * @param file The file to be checked. */ - short getEncoding(QIODevice & file); + short getEncoding(TQIODevice & file); /** * Load a given XMI model from a file. If the encoding of the file @@ -428,7 +428,7 @@ public: * @param file The file to be loaded. * @param encode The encoding used. */ - virtual bool loadFromXMI(QIODevice& file, short encode = ENC_UNKNOWN); + virtual bool loadFromXMI(TQIODevice& file, short encode = ENC_UNKNOWN); /** * Ensures the XMI file is a valid UML file. @@ -436,28 +436,28 @@ public: * * @param headerNode The <XMI.header> node */ - bool validateXMIHeader(QDomNode& headerNode); + bool validateXMIHeader(TQDomNode& headerNode); /** * Loads all UML objects from XMI into the current UMLDoc. * * @return True if operation successful. */ - bool loadUMLObjectsFromXMI( QDomElement & element ); + bool loadUMLObjectsFromXMI( TQDomElement & element ); /** * Loads umbrello specific extensions from XMI to the UMLDoc. * The extension tags are: "docsettings", "diagrams", "listview", * and "codegeneration". */ - void loadExtensionsFromXMI(QDomNode & node); + void loadExtensionsFromXMI(TQDomNode & node); /** * Loads all diagrams from XMI into the current UMLDoc. * * @return True if operation successful. */ - bool loadDiagramsFromXMI( QDomNode & node ); + bool loadDiagramsFromXMI( TQDomNode & node ); /** * Signal a view/diagram has been renamed. @@ -640,7 +640,7 @@ public: * * @return The documentation text of this UMLDoc. */ - QString getDocumentation() const { + TQString getDocumentation() const { return m_Doc; } @@ -649,7 +649,7 @@ public: * * @param doc The documentation to set for this UMLDoc. */ - void setDocumentation(const QString &doc) { + void setDocumentation(const TQString &doc) { m_Doc = doc; } @@ -705,7 +705,7 @@ public: * if the default name is taken e.g. class diagram, class * diagram_1 etc */ - QString uniqViewName(const Uml::Diagram_Type type); + TQString uniqViewName(const Uml::Diagram_Type type); /** * Returns true when loading a document file. @@ -726,7 +726,7 @@ public: * Add a datatype if it doesn't already exist. * Used by code generators and attribute dialog. */ - void createDatatype(const QString &name); + void createDatatype(const TQString &name); /** * Find a UMLStereotype by its unique ID. @@ -759,7 +759,7 @@ public: /** * Write text to the status bar. */ - void writeToStatusBar(const QString &text); + void writeToStatusBar(const TQString &text); /** * Type resolution pass. @@ -791,7 +791,7 @@ private: */ UMLStereotypeList m_stereoList; - QString m_Name; ///< name of this model as stored in the <UML:Model> tag + TQString m_Name; ///< name of this model as stored in the <UML:Model> tag Uml::IDType m_modelID; ///< xmi.id of this model in the <UML:Model> int m_count; ///< auxiliary counter for the progress bar bool m_modified; @@ -810,12 +810,12 @@ private: /** * Documentation for the project. */ - QString m_Doc; + TQString m_Doc; /** * Used for autosave */ - QTimer * m_pAutoSaveTimer; + TQTimer * m_pAutoSaveTimer; /** * Stores the version of old UML files. @@ -824,17 +824,17 @@ private: /** * The stack of images of the document added to each time - * something is changed. A QPtrList is used rather than a - * QPtrStack to be able to remove the ones off the bottom once + * something is changed. A TQPtrList is used rather than a + * TQPtrStack to be able to remove the ones off the bottom once * the stack gets too big. */ - QPtrList<QDataStream> undoStack; + TQPtrList<TQDataStream> undoStack; /** * The stack of images of the document added to each time * undo is called. */ - QPtrList<QDataStream> redoStack; + TQPtrList<TQDataStream> redoStack; /** * Auxiliary to <docsettings> processing @@ -872,7 +872,7 @@ public slots: * Make a popup menu for the tabs * signalled from tabWidget's contextMenu() */ - void slotDiagramPopupMenu(QWidget* umlview, const QPoint& point); + void slotDiagramPopupMenu(TQWidget* umlview, const TQPoint& point); signals: void sigDiagramCreated(Uml::IDType id); @@ -906,7 +906,7 @@ signals: /** * Write text to the status bar. */ - void sigWriteToStatusBar(const QString &text); + void sigWriteToStatusBar(const TQString &text); /** * The diagram being displayed has changed. |