diff options
Diffstat (limited to 'quanta/src/dtds.h')
-rw-r--r-- | quanta/src/dtds.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/quanta/src/dtds.h b/quanta/src/dtds.h index 1e26f712..a56da5b1 100644 --- a/quanta/src/dtds.h +++ b/quanta/src/dtds.h @@ -22,11 +22,11 @@ // application specific includes #include "qtag.h" -#include "qobject.h" -#include "qfile.h" +#include "tqobject.h" +#include "tqfile.h" //qt includes -#include <qdict.h> +#include <tqdict.h> //kde includes #include <kdebug.h> @@ -56,7 +56,7 @@ public: * since this class is a singleton you must use this function to access it * @return the class pointer */ - static DTDs* ref(QObject *parent = 0L) + static DTDs* ref(TQObject *parent = 0L) { static DTDs *m_ref; if (!m_ref) m_ref = new DTDs(parent); @@ -72,7 +72,7 @@ public: * @param dtdName name of the dtd, will be converted to lowercase inside * @return the found dtd structure */ - const DTDStruct * find (const QString &dtdName) + const DTDStruct * find (const TQString &dtdName) { // kdDebug(24000) << "dtds::find " << dtdName << endl; DTDStruct *dtd = m_dict->find(dtdName.lower()) ; @@ -84,13 +84,13 @@ public: * @return the name (identifier) to the nickname. If the DTD is not found you get * nickName back! */ - QString getDTDNameFromNickName(const QString& nickName); + TQString getDTDNameFromNickName(const TQString& nickName); /** * @param name name of the DTD * @return the nickname to the name. If the DTD is not found you get * name back! */ - QString getDTDNickNameFromName(const QString& name) + TQString getDTDNickNameFromName(const TQString& name) { DTDStruct *dtd = m_dict->find(name); if ( dtd ) @@ -106,7 +106,7 @@ public: * are included * @return all known nick names */ - QStringList nickNameList (bool topLevelOnly=false); + TQStringList nickNameList (bool topLevelOnly=false); /** * creates a list of all available names @@ -115,7 +115,7 @@ public: * are included * @return all known names */ - QStringList nameList (bool topLevelOnly=false); + TQStringList nameList (bool topLevelOnly=false); /** * creates a list with the path to the description.rc of all available DTEPs * @@ -124,7 +124,7 @@ public: * @return a list with the name and the path to the description.rc of all available DTEPs in form of * DTEPName | path to description.rc */ - QStringList fileNameList (bool topLevelOnly=false); + TQStringList fileNameList (bool topLevelOnly=false); /** finds a dtd for a given url @@ -153,7 +153,7 @@ public slots: * the DTEP will be copied to the local resource directory and will be autoloaded on * startup */ - void slotLoadDTEP(const QString& dirName, bool askForAutoLoad); + void slotLoadDTEP(const TQString& dirName, bool askForAutoLoad); /** * Loads (replaces) the entities for a DTEP. @@ -170,7 +170,7 @@ signals: /** Enable/disbale the idle timer*/ void enableIdleTimer(bool); - void loadToolbarForDTD(const QString&); + void loadToolbarForDTD(const TQString&); private: @@ -178,7 +178,7 @@ private: * If you need the class use DTDs::ref() for * construction and reference */ - DTDs(QObject *parent); + DTDs(TQObject *parent); /** Reads the tag files and the description.rc from tagDir in order to @@ -188,7 +188,7 @@ private: * @param loadAll true = all information and tags will be loaded now (@ref readTagDir2 will be called) * @return true = no error */ - bool readTagDir(const QString &dirName, bool loadAll=true); + bool readTagDir(const TQString &dirName, bool loadAll=true); /** Reads the tag files and the description.rc from tagDir in order to * build up the internal DTD and tag structures. @@ -212,7 +212,7 @@ private: * @param tagList the list where the tags are inserted * @return the number of read tags. */ - uint readTagFile(const QString& fileName, DTDStruct* parentDTD, QTagList *tagList); + uint readTagFile(const TQString& fileName, DTDStruct* parentDTD, QTagList *tagList); /** Parses the dom document and retrieve the tag attributes * @@ -220,7 +220,7 @@ private: * @param tag the QTag object that will be initialized by using the information in dom * @param common will be true, if the tag is a just a list of common group attributes */ - void setAttributes(QDomNode *dom, QTag* tag, bool &common); + void setAttributes(TQDomNode *dom, QTag* tag, bool &common); /** removes dtd from dictonary and deletes all components * * @param dtd the dtd to delete @@ -228,10 +228,10 @@ private: void removeDTD(DTDStruct *dtd); /** helper to read the tag files */ - QDomDocument *m_doc; + TQDomDocument *m_doc; /** dictonary with references to all DTD's in memory */ - QDict<DTDStruct> *m_dict; + TQDict<DTDStruct> *m_dict; }; |