summaryrefslogtreecommitdiffstats
path: root/lib/catalog/tag.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/catalog/tag.h')
-rw-r--r--lib/catalog/tag.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/lib/catalog/tag.h b/lib/catalog/tag.h
index da67b083..5c1fac41 100644
--- a/lib/catalog/tag.h
+++ b/lib/catalog/tag.h
@@ -20,9 +20,9 @@
#ifndef TAG_H
#define TAG_H
-#include <qmap.h>
-#include <qvariant.h>
-#include <qshared.h>
+#include <tqmap.h>
+#include <tqvariant.h>
+#include <tqshared.h>
class QDataStream;
@@ -78,12 +78,12 @@ public:
Tag& operator = ( const Tag& source );
- QCString id() const
+ TQCString id() const
{
return data->id;
}
- void setId( const QCString& id )
+ void setId( const TQCString& id )
{
detach();
data->id = id;
@@ -111,31 +111,31 @@ public:
data->flags = flags;
}
- QString fileName() const
+ TQString fileName() const
{
return data->fileName;
}
- void setFileName( const QString& fileName )
+ void setFileName( const TQString& fileName )
{
detach();
data->fileName = fileName;
}
- QString path( const QString& sep = QString::fromLatin1("::") ) const
+ TQString path( const TQString& sep = TQString::fromLatin1("::") ) const
{
- QString s = scope().join( sep );
+ TQString s = scope().join( sep );
if( s.isNull() )
return name();
return s + sep + name();
}
- QString name() const
+ TQString name() const
{
return data->name;
}
- QString comment() const {
+ TQString comment() const {
if( hasAttribute( "cmt" ) ) {
return attribute( "cmt" ).asString();
} else {
@@ -143,22 +143,22 @@ public:
}
}
- void setComment( const QString& comment ) {
+ void setComment( const TQString& comment ) {
setAttribute( "cmt", comment );
}
- void setName( const QString& name )
+ void setName( const TQString& name )
{
detach();
data->name = name;
}
- QStringList scope() const
+ TQStringList scope() const
{
return data->scope;
}
- void setScope( const QStringList& scope )
+ void setScope( const TQStringList& scope )
{
detach();
data->scope = scope;
@@ -190,22 +190,22 @@ public:
data->endColumn = column;
}
- QString getSpecializationDeclaration() const {
+ TQString getSpecializationDeclaration() const {
if( hasAttribute( "spc" ) )
return data->attributes["spc"].asString();
else
- return QString::null;
+ return TQString::null;
}
bool hasSpecializationDeclaration() const {
return data->attributes.contains( "spc" );
}
- void setSpecializationDeclaration( const QString& str ) {
+ void setSpecializationDeclaration( const TQString& str ) {
data->attributes["spc"] = str;
}
- bool hasAttribute( const QCString& name ) const
+ bool hasAttribute( const TQCString& name ) const
{
if( name == "kind" ||
name == "name" ||
@@ -219,7 +219,7 @@ public:
return data->attributes.contains( name );
}
- QVariant attribute( const QCString& name ) const
+ TQVariant attribute( const TQCString& name ) const
{
if( name == "id" )
return data->id;
@@ -244,7 +244,7 @@ public:
return data->attributes[ name ];
}
- void setAttribute( const QCString& name, const QVariant& value )
+ void setAttribute( const TQCString& name, const TQVariant& value )
{
detach();
if( name == "id" )
@@ -269,20 +269,20 @@ public:
data->attributes[ name ] = value;
}
- void addTemplateParam( const QString& param , const QString& def = "" ) {
- QMap<QCString, QVariant>::iterator it = data->attributes.find( "tpl" );
- if( it != data->attributes.end() && (*it).type() == QVariant::StringList ) {
+ void addTemplateParam( const TQString& param , const TQString& def = "" ) {
+ TQMap<TQCString, TQVariant>::iterator it = data->attributes.find( "tpl" );
+ if( it != data->attributes.end() && (*it).type() == TQVariant::StringList ) {
}else{
- it = data->attributes.insert( "tpl", QVariant( QStringList() ) );
+ it = data->attributes.insert( "tpl", TQVariant( TQStringList() ) );
}
- QStringList& l( (*it).asStringList() );
+ TQStringList& l( (*it).asStringList() );
l << param;
l << def;
}
- void load( QDataStream& stream );
- void store( QDataStream& stream ) const;
+ void load( TQDataStream& stream );
+ void store( TQDataStream& stream ) const;
private:
Tag copy();
@@ -291,19 +291,19 @@ private:
private:
struct TagData: public QShared
{
- QCString id;
+ TQCString id;
int kind;
unsigned long flags;
- QString name;
- QStringList scope;
- QString fileName;
+ TQString name;
+ TQStringList scope;
+ TQString fileName;
int startLine, startColumn;
int endLine, endColumn;
- QMap<QCString, QVariant> attributes;
+ TQMap<TQCString, TQVariant> attributes;
} *data;
};
-QDataStream& operator << ( QDataStream&, const Tag& );
-QDataStream& operator >> ( QDataStream&, Tag& );
+TQDataStream& operator << ( TQDataStream&, const Tag& );
+TQDataStream& operator >> ( TQDataStream&, Tag& );
#endif