summaryrefslogtreecommitdiffstats
path: root/quanta/src/dtds.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
commite985f7e545f4739493965aad69bbecb136dc9346 (patch)
tree54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /quanta/src/dtds.h
parentf7670c198945adc3b95ad69a959fe5f8ae55b493 (diff)
downloadtdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz
tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip
TQt4 port kdewebdev
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/src/dtds.h')
-rw-r--r--quanta/src/dtds.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/quanta/src/dtds.h b/quanta/src/dtds.h
index 120157a8..ae7c28f1 100644
--- a/quanta/src/dtds.h
+++ b/quanta/src/dtds.h
@@ -34,7 +34,7 @@
class TQDomNode;
class TQDomDocument;
-class QTag;
+class TQTag;
class TQString;
class TQStringList;
class KConfig;
@@ -44,11 +44,12 @@ struct DTDStruct;
/** @short This class manages the DTD's for Quanta.
*
* The constructor only loads the necessary information from the description.rc file.
- * The rest is later loaded on demand of the find() function.
+ * The rest is later loaded on demand of the tqfind() function.
*/
-class DTDs : public QObject
+class DTDs : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
@@ -56,10 +57,10 @@ public:
* since this class is a singleton you must use this function to access it
* @return the class pointer
*/
- static DTDs* ref(TQObject *parent = 0L)
+ static DTDs* ref(TQObject *tqparent = 0L)
{
static DTDs *m_ref;
- if (!m_ref) m_ref = new DTDs(parent);
+ if (!m_ref) m_ref = new DTDs(tqparent);
return m_ref;
}
@@ -72,10 +73,10 @@ public:
* @param dtdName name of the dtd, will be converted to lowercase inside
* @return the found dtd structure
*/
- const DTDStruct * find (const TQString &dtdName)
+ const DTDStruct * tqfind (const TQString &dtdName)
{
-// kdDebug(24000) << "dtds::find " << dtdName << endl;
- DTDStruct *dtd = m_dict->find(dtdName.lower()) ;
+// kdDebug(24000) << "dtds::tqfind " << dtdName << endl;
+ DTDStruct *dtd = m_dict->tqfind(dtdName.lower()) ;
if (dtd && ! dtd->loaded ) readTagDir2(dtd);
return dtd;
}
@@ -92,7 +93,7 @@ public:
*/
TQString getDTDNickNameFromName(const TQString& name)
{
- DTDStruct *dtd = m_dict->find(name);
+ DTDStruct *dtd = m_dict->tqfind(name);
if ( dtd )
return dtd->nickName;
else
@@ -178,7 +179,7 @@ private:
* If you need the class use DTDs::ref() for
* construction and reference
*/
- DTDs(TQObject *parent);
+ DTDs(TQObject *tqparent);
/** Reads the tag files and the description.rc from tagDir in order to
@@ -208,19 +209,19 @@ private:
/** Reads the tags from the tag files.
*
* @param fileName path of the tag file
- * @param parentDTD the DTD where the tags belog to
+ * @param tqparentDTD the DTD where the tags belog to
* @param tagList the list where the tags are inserted
* @return the number of read tags.
*/
- uint readTagFile(const TQString& fileName, DTDStruct* parentDTD, QTagList *tagList);
+ uint readTagFile(const TQString& fileName, DTDStruct* tqparentDTD, TQTagList *tagList);
/** Parses the dom document and retrieve the tag attributes
*
* @param dom the DOM node containing the tag definition
- * @param tag the QTag object that will be initialized by using the information in dom
+ * @param tag the TQTag 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(TQDomNode *dom, QTag* tag, bool &common);
+ void setAttributes(TQDomNode *dom, TQTag* tag, bool &common);
/** removes dtd from dictonary and deletes all components
*
* @param dtd the dtd to delete