summaryrefslogtreecommitdiffstats
path: root/lib/interfaces/codemodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/interfaces/codemodel.h')
-rw-r--r--lib/interfaces/codemodel.h312
1 files changed, 156 insertions, 156 deletions
diff --git a/lib/interfaces/codemodel.h b/lib/interfaces/codemodel.h
index 5fb42c44..882420b8 100644
--- a/lib/interfaces/codemodel.h
+++ b/lib/interfaces/codemodel.h
@@ -27,10 +27,10 @@ Code Model - a memory symbol store.
*/
-#include <qmap.h>
-#include <qstringlist.h>
+#include <tqmap.h>
+#include <tqstringlist.h>
#include <ksharedptr.h>
-#include <qvaluevector.h>
+#include <tqvaluevector.h>
#include "hashedstring.h"
#include <iostream>
@@ -45,9 +45,9 @@ enum ParsedFileType {
class AbstractParseResult : public KShared {
public:
- virtual void read( QDataStream& stream ) = 0;
+ virtual void read( TQDataStream& stream ) = 0;
- virtual void write( QDataStream& stream ) const = 0;
+ virtual void write( TQDataStream& stream ) const = 0;
virtual ParsedFileType type() const = 0;
};
@@ -160,104 +160,104 @@ typedef KSharedPtr<EnumeratorModel> EnumeratorDom;
/**
@class ItemList
The list of code model items.
-This is a type definition: @code typedef QValueList<ItemDom> ItemList; @endcode
+This is a type definition: @code typedef TQValueList<ItemDom> ItemList; @endcode
@sa QValueList
*/
-typedef QValueList<ItemDom> ItemList;
+typedef TQValueList<ItemDom> ItemList;
/**
@class FileList
The list of code model files.
-This is a type definition: @code typedef QValueList<FileDom> FileList; @endcode
+This is a type definition: @code typedef TQValueList<FileDom> FileList; @endcode
@sa QValueList
*/
-typedef QValueList<FileDom> FileList;
+typedef TQValueList<FileDom> FileList;
/**
@class NamespaceList
The list of code model namespaces.
-This is a type definition: @code typedef QValueList<NamespaceDom> NamespaceList; @endcode
+This is a type definition: @code typedef TQValueList<NamespaceDom> NamespaceList; @endcode
@sa QValueList
*/
-typedef QValueList<NamespaceDom> NamespaceList;
+typedef TQValueList<NamespaceDom> NamespaceList;
/**
@class ClassList
The list of code model classes.
-This is a type definition: @code typedef QValueList<ClassDom> ClassList; @endcode
+This is a type definition: @code typedef TQValueList<ClassDom> ClassList; @endcode
@sa QValueList
*/
-typedef QValueList<ClassDom> ClassList;
+typedef TQValueList<ClassDom> ClassList;
/**
@class FunctionList
The list of code model functions.
-This is a type definition: @code typedef QValueList<FunctionDom> FunctionList; @endcode
+This is a type definition: @code typedef TQValueList<FunctionDom> FunctionList; @endcode
@sa QValueList
*/
-typedef QValueList<FunctionDom> FunctionList;
+typedef TQValueList<FunctionDom> FunctionList;
/**
@class FunctionDefinitionList
The list of code model function definitions.
-This is a type definition: @code typedef QValueList<FunctionDefinitionDom> FunctionDefinitionList; @endcode
+This is a type definition: @code typedef TQValueList<FunctionDefinitionDom> FunctionDefinitionList; @endcode
@sa QValueList
*/
-typedef QValueList<FunctionDefinitionDom> FunctionDefinitionList;
+typedef TQValueList<FunctionDefinitionDom> FunctionDefinitionList;
/**
@class VariableList
The list of code model variables.
-This is a type definition: @code typedef QValueList<VariableDom> VariableList; @endcode
+This is a type definition: @code typedef TQValueList<VariableDom> VariableList; @endcode
@sa QValueList
*/
-typedef QValueList<VariableDom> VariableList;
+typedef TQValueList<VariableDom> VariableList;
/**
@class ArgumentList
The list of code model arguments.
-This is a type definition: @code typedef QValueList<ArgumentDom> ArgumentList; @endcode
+This is a type definition: @code typedef TQValueList<ArgumentDom> ArgumentList; @endcode
@sa QValueList
*/
-typedef QValueList<ArgumentDom> ArgumentList;
+typedef TQValueList<ArgumentDom> ArgumentList;
/**
@class EnumList
The list of code model enums.
-This is a type definition: @code typedef QValueList<EnumDom> EnumList; @endcode
+This is a type definition: @code typedef TQValueList<EnumDom> EnumList; @endcode
@sa QValueList
*/
-typedef QValueList<EnumDom> EnumList;
+typedef TQValueList<EnumDom> EnumList;
/**
@class TypeAliasList
The list of code model type aliases.
-This is a type definition: @code typedef QValueList<TypeAliasDom> TypeAliasList; @endcode
+This is a type definition: @code typedef TQValueList<TypeAliasDom> TypeAliasList; @endcode
@sa QValueList
*/
-typedef QValueList<TypeAliasDom> TypeAliasList;
+typedef TQValueList<TypeAliasDom> TypeAliasList;
/**
@class EnumeratorList
The list of code model enumerators.
-This is a type definition: @code typedef QValueList<EnumeratorDom> EnumeratorList; @endcode
+This is a type definition: @code typedef TQValueList<EnumeratorDom> EnumeratorList; @endcode
@sa QValueList
*/
-typedef QValueList<EnumeratorDom> EnumeratorList;
+typedef TQValueList<EnumeratorDom> EnumeratorList;
/**
Iterates through @p lst and creates sorted list of code model item names.
Can be used, for example, to get the list of classes in the store:
@code
-QStringList classList = sortedNameList(codeModel()->globalNamespace()->classList());
+TQStringList classList = sortedNameList(codeModel()->globalNamespace()->classList());
@endcode
@param lst The list to iterate.
@return Sorted list of code model item names.
*/
template <class ItemList>
-QStringList sortedNameList( const ItemList& lst )
+TQStringList sortedNameList( const ItemList& lst )
{
- QStringList nameList;
+ TQStringList nameList;
typename ItemList::ConstIterator it = lst.begin();
while( it != lst.end() ){
@@ -360,16 +360,16 @@ public:
/**Checks to see if a file is in the store.
@return true if @p name is in the file list.*/
- bool hasFile( const QString& name ) const;
+ bool hasFile( const TQString& name ) const;
/**Gets the FileDom object for a file.
@param name The name of the file to get the FileDom object for.*/
- FileDom fileByName( const QString& name );
+ FileDom fileByName( const TQString& name );
/**Gets the FileDom object for a file.
This is a const version provided for convenience.
@param name the name of the file to get the FileDom object for.*/
- const FileDom fileByName( const QString& name ) const;
+ const FileDom fileByName( const TQString& name ) const;
/**Adds a file to the store.
@param file The FileDom object to add to the store.
@@ -391,17 +391,17 @@ public:
closed to avoid reparsing when the project is opened next time.
@param stream Stream to read from.
@return whether the read succeeded(may fail when the store-format is deprecated).*/
- virtual void read( QDataStream& stream );
+ virtual void read( TQDataStream& stream );
/**Writes the model to a stream.
Use this to restore the memory symbol store to a file.
Language support plugins usually save symbols from projects before the project is
closed to avoid reparsing when the project is opened next time.
@param stream Stream to write to.*/
- virtual void write( QDataStream& stream ) const;
+ virtual void write( TQDataStream& stream ) const;
/** this will dump the whole tree into dot-file-format so it can be inspected, not ready yet*/
- virtual void dump( std::ostream& file, QString Info="" );
+ virtual void dump( std::ostream& file, TQString Info="" );
/** Merges two groups, by changing the group-ids of the files.
Returns the id of the new group, or 0 on fail.
@@ -418,7 +418,7 @@ public:
FileList getGroup( const FileDom& file) const;
/** Same as above, but returns the names instead of the objects */
- virtual QStringList getGroupStrings( int gid ) const;
+ virtual TQStringList getGroupStrings( int gid ) const;
private:
/**Adds a namespace to the store.
@@ -432,7 +432,7 @@ private:
void removeNamespace( NamespaceDom target, NamespaceDom source );
private:
- QMap<QString, FileDom> m_files;
+ TQMap<TQString, FileDom> m_files;
NamespaceDom m_globalNamespace;
virtual int newGroupId();
@@ -510,19 +510,19 @@ public:
void setKind( int kind ) { m_kind = kind; }
/**@return The name of the item.*/
- QString name() const;
+ TQString name() const;
- QString comment() const {
+ TQString comment() const {
return m_comment;
}
- void setComment( QString comment ) {
+ void setComment( TQString comment ) {
m_comment = comment;
}
/**Sets the name of the item.
@param name The name.*/
- void setName( const QString& name );
+ void setName( const TQString& name );
/**Gets the file of the item.
@return The FileDom object for the item.*/
@@ -534,11 +534,11 @@ public:
const FileDom file() const;
/**@return The filename of the item.*/
- QString fileName() const;
+ TQString fileName() const;
/**Sets the filename of the item.
@param fileName The file name.*/
- void setFileName( const QString& fileName );
+ void setFileName( const TQString& fileName );
/**Gets the start position of the item.
@param line Will be set to the line number of the items start position. Pass 0 if line number is not necessary.
@@ -587,12 +587,12 @@ public:
/**Reads an item from the stream.
@param stream The stream to read from.*/
- virtual void read( QDataStream& stream );
+ virtual void read( TQDataStream& stream );
/**Writes an item to the stream.
@param stream The stream to write to.*/
- virtual void write( QDataStream& stream ) const;
+ virtual void write( TQDataStream& stream ) const;
- virtual void dump( std::ostream& file, bool recurse=false, QString Info="" );
+ virtual void dump( std::ostream& file, bool recurse=false, TQString Info="" );
/**@return The code model for this item.*/
CodeModel* codeModel() { return m_model; }
@@ -604,9 +604,9 @@ public:
private:
int m_kind;
CodeModel* m_model;
- QString m_name;
- QString m_fileName;
- QString m_comment; ///not stored yet
+ TQString m_name;
+ TQString m_fileName;
+ TQString m_comment; ///not stored yet
int m_startLine, m_startColumn;
int m_endLine, m_endColumn;
@@ -619,14 +619,14 @@ private:
class TemplateModelItem {
public:
- typedef QPair< QString, QString > ParamPair;
- typedef QValueVector< ParamPair > ParamMap; ///The first is the name, and the second the default-parameter, or "" if there is none.
+ typedef QPair< TQString, TQString > ParamPair;
+ typedef TQValueVector< ParamPair > ParamMap; ///The first is the name, and the second the default-parameter, or "" if there is none.
virtual const ParamMap& getTemplateParams() {
return m_params;
}
- virtual void addTemplateParam( QString name, QString def = "" ) {
+ virtual void addTemplateParam( TQString name, TQString def = "" ) {
m_params.push_back( ParamPair( name, def ) );
}
@@ -638,16 +638,16 @@ class TemplateModelItem {
return !m_specialization.isEmpty();
}
- virtual QString getSpecializationDeclaration() const {
+ virtual TQString getSpecializationDeclaration() const {
return m_specialization;
}
- void setSpecializationDeclaration( const QString& str ) {
+ void setSpecializationDeclaration( const TQString& str ) {
m_specialization = str;
}
///returns -1 if the parameter does not exist
- virtual int findTemplateParam( const QString& name ) const {
+ virtual int findTemplateParam( const TQString& name ) const {
for( unsigned int a = 0; a< m_params.size(); a++)
if( m_params[a].first == name ) return a;
return -1;
@@ -659,7 +659,7 @@ class TemplateModelItem {
virtual bool isTemplateable() const { return true; }
- void write( QDataStream & stream ) const {
+ void write( TQDataStream & stream ) const {
stream << m_specialization;
stream << (int)m_params.size();
for( ParamMap::const_iterator it = m_params.begin(); it != m_params.end(); ++it ) {
@@ -668,7 +668,7 @@ class TemplateModelItem {
}
}
- void read( QDataStream & stream ) {
+ void read( TQDataStream & stream ) {
int count;
stream >> m_specialization;
stream >> count;
@@ -682,7 +682,7 @@ class TemplateModelItem {
protected:
ParamMap m_params;
- QString m_specialization;
+ TQString m_specialization;
};
@@ -707,21 +707,21 @@ public:
virtual bool isClass() const { return true; }
/**@return The scope of the class. Scope is a string list composed from names of parent classes and namespaces.*/
- QStringList scope() const { return m_scope; }
+ TQStringList scope() const { return m_scope; }
/**Sets the scope of this class.
@param scope The scope - a list of parent classes and namespaces.*/
- void setScope( const QStringList& scope ) { m_scope = scope; }
+ void setScope( const TQStringList& scope ) { m_scope = scope; }
/**@return The list of base class names.*/
- QStringList baseClassList() const;
+ TQStringList baseClassList() const;
/**Adds a base class to the list of base classes.
@param baseClass The base class name.*/
- bool addBaseClass( const QString& baseClass );
+ bool addBaseClass( const TQString& baseClass );
/**Removes a base class from the list of base classes.
@param baseClass The base class name.*/
- void removeBaseClass( const QString& baseClass );
+ void removeBaseClass( const TQString& baseClass );
/**@return The list of (sub)classes in this model.*/
ClassList classList();
@@ -733,16 +733,16 @@ public:
/**Checks if the class specified by @p name is in this model.
@param name The name of a class to look for.
@return true if the model has a class.*/
- bool hasClass( const QString& name ) const;
+ bool hasClass( const TQString& name ) const;
/**@param name The name of a class.
@return A list of classes that match the name given by @p name.*/
- ClassList classByName( const QString& name );
+ ClassList classByName( const TQString& name );
/**@param name The name of a class.
@return A list of classes that match the name given by @p name.
@note This is a const version provided for convenience.*/
- const ClassList classByName( const QString& name ) const;
+ const ClassList classByName( const TQString& name ) const;
/**Adds a class to the model.
@param klass The class model to add.
@@ -763,16 +763,16 @@ public:
/**Check if the function specified by @p name is in the model.
@param name The name of a function to look for.
@return true if the model has a class.*/
- bool hasFunction( const QString& name ) const;
+ bool hasFunction( const TQString& name ) const;
/**@param name The name of a function to look for.
@return A list of functions that match the name given by @p name.*/
- FunctionList functionByName( const QString& name );
+ FunctionList functionByName( const TQString& name );
/**@param name The name of a function to look for.
@return A list of functions that match the name given by @p name.
@note This is a const version provided for convenience.*/
- const FunctionList functionByName( const QString& name ) const;
+ const FunctionList functionByName( const TQString& name ) const;
/**Adds a function to the class model.
@param fun The function model to add.
@@ -793,20 +793,20 @@ public:
/**Checks if the function definition specified by \p name is in the model.
@param name The name of a function definition to look for.
@return true if the function definition was found.*/
- bool hasFunctionDefinition( const QString& name ) const;
+ bool hasFunctionDefinition( const TQString& name ) const;
/**Gets the list of functions that match the name given by \p name.
If there are no matches, then the list returned is empty.
@param name The name of a function definition to look for.
@return The FunctionDefinitionList object containing the definitions that match.*/
- FunctionDefinitionList functionDefinitionByName( const QString& name );
+ FunctionDefinitionList functionDefinitionByName( const TQString& name );
/**Gets the list of functions that match the name given by \p name.
If there are no matches, then the list returned is empty.
@param name The name of a function definition to look for.
@return The FunctionDefinitionList object containing the definitions that match.
@note This is a const version provided for convenience.*/
- const FunctionDefinitionList functionDefinitionByName( const QString& name ) const;
+ const FunctionDefinitionList functionDefinitionByName( const TQString& name ) const;
/**Adds a function definition to the model.
@param fun The function fefinition model to add to the model.
@@ -827,20 +827,20 @@ public:
/**Checks if the variable specified by @p name is in the model.
@param name The name of a variable.
@return true if the variable was found.*/
- bool hasVariable( const QString& name ) const;
+ bool hasVariable( const TQString& name ) const;
/**Gets the variable specified by @p name.
If there are no matches, then the VariableDom object returned is empty.
@param name The name of a variable.
@return A VariableDom object that matches the name specified.*/
- VariableDom variableByName( const QString& name );
+ VariableDom variableByName( const TQString& name );
/**Gets the variable specified by @p name.
If there are no matches, then the VariableDom object returned is empty.
@param name The name of a variable.
@return A VariableDom object that matches the name specified.
@note This is a const version provided for convenience.*/
- const VariableDom variableByName( const QString& name ) const;
+ const VariableDom variableByName( const TQString& name ) const;
/**Adds a variable to the model.
@param var The variable model to add to the model.
@@ -861,20 +861,20 @@ public:
/**Checks if the type alias specified by @p name is in the model.
@param name The name of a type alias.
@return true if the type alias was found.*/
- bool hasTypeAlias( const QString& name ) const;
+ bool hasTypeAlias( const TQString& name ) const;
/**Gets the list of type aliases that match @p name.
If there are no matches, the TypeAliasList object is empty.
@param name The name of a type alias.
@return A TypeAliasList object that contains the matches.*/
- TypeAliasList typeAliasByName( const QString& name );
+ TypeAliasList typeAliasByName( const TQString& name );
/**Gets the list of type aliases that match @p name.
If there are no matches, the TypeAliasList object is empty.
@param name The name of a type alias.
@return A TypeAliasList object that contains the matches.
@note This is a const version provided for convenience.*/
- const TypeAliasList typeAliasByName( const QString& name ) const;
+ const TypeAliasList typeAliasByName( const TQString& name ) const;
/**Adds a type alias to the model.
@param typeAlias The type alias model to add to the model.
@@ -895,19 +895,19 @@ public:
/**Checks if the enum specified by @p name is in the model.
@param name The name of an enum.
@return true if the enum was found.*/
- bool hasEnum( const QString& name ) const;
+ bool hasEnum( const TQString& name ) const;
/**Gets the enum specified by @p name.
The EnumDom object returned will be empty if no match is found.
@param name The name of an enum.
@return The EnumDom object that contains the match.*/
- EnumDom enumByName( const QString& name );
+ EnumDom enumByName( const TQString& name );
/**Gets the enum specified by @p name.
The EnumDom object returned will be empty if no match is found.
@param name The name of an enum.
@return The EnumDom object that contains the match.*/
- const EnumDom enumByName( const QString& name ) const;
+ const EnumDom enumByName( const TQString& name ) const;
/**Adds an enum to the model.
@param e The enum model to add to the model.
@@ -921,20 +921,20 @@ public:
void update( const ClassModel* i );
bool canUpdate( const ClassModel* i ) const;
- virtual void read( QDataStream& stream );
- virtual void write( QDataStream& stream ) const;
+ virtual void read( TQDataStream& stream );
+ virtual void write( TQDataStream& stream ) const;
- virtual void dump( std::ostream& file, bool recurse=false, QString Info="" );
+ virtual void dump( std::ostream& file, bool recurse=false, TQString Info="" );
private:
- QStringList m_scope;
- QStringList m_baseClassList;
- QMap<QString, ClassList> m_classes;
- QMap<QString, FunctionList> m_functions;
- QMap<QString, FunctionDefinitionList> m_functionDefinitions;
- QMap<QString, VariableDom> m_variables;
- QMap<QString, TypeAliasList> m_typeAliases;
- QMap<QString, EnumDom> m_enumerators;
+ TQStringList m_scope;
+ TQStringList m_baseClassList;
+ TQMap<TQString, ClassList> m_classes;
+ TQMap<TQString, FunctionList> m_functions;
+ TQMap<TQString, FunctionDefinitionList> m_functionDefinitions;
+ TQMap<TQString, VariableDom> m_variables;
+ TQMap<TQString, TypeAliasList> m_typeAliases;
+ TQMap<TQString, EnumDom> m_enumerators;
private:
ClassModel( const ClassModel& source );
@@ -944,22 +944,22 @@ private:
class NamespaceAliasModel {
public:
- virtual void read( QDataStream& stream );
- virtual void write( QDataStream& stream ) const;
+ virtual void read( TQDataStream& stream );
+ virtual void write( TQDataStream& stream ) const;
- QString name() const {
+ TQString name() const {
return m_name;
}
- void setName( const QString& name ) {
+ void setName( const TQString& name ) {
m_name = name;
}
- void setAliasName( const QString& theValue ) {
+ void setAliasName( const TQString& theValue ) {
m_aliasName = theValue;
}
- QString aliasName() const {
+ TQString aliasName() const {
return m_aliasName;
}
@@ -985,17 +985,17 @@ public:
}
private:
- QString m_name;
- QString m_aliasName;
+ TQString m_name;
+ TQString m_aliasName;
HashedString m_fileName;
};
class NamespaceImportModel {
public:
- virtual void read( QDataStream& stream );
- virtual void write( QDataStream& stream ) const;
+ virtual void read( TQDataStream& stream );
+ virtual void write( TQDataStream& stream ) const;
- QString name() const {
+ TQString name() const {
return m_name;
}
@@ -1003,7 +1003,7 @@ public:
return m_fileName;
}
- void setName( const QString& name ) {
+ void setName( const TQString& name ) {
m_name = name;
}
@@ -1024,7 +1024,7 @@ public:
}
private:
- QString m_name;
+ TQString m_name;
HashedString m_fileName;
};
@@ -1063,20 +1063,20 @@ public:
/**Checks if the namespace referenced by @p name is in the model.
@param name The name of a namespace.
@return true if the namespace was found.*/
- bool hasNamespace( const QString& name ) const;
+ bool hasNamespace( const TQString& name ) const;
/**Gets the namespace specified by @p name.
If there are no matches, then the NamespaceDom object returned is empty.
@param name The name of a namespace.
@return The NamespaceDom object that contains the match.*/
- NamespaceDom namespaceByName( const QString& name );
+ NamespaceDom namespaceByName( const TQString& name );
/**Gets the namespace specified by @p name.
If there are no matches, then the NamespaceDom object returned is empty.
@param name The name of a namespace.
@return The NamespaceDom object that contains the match.
@note This is a const version provided for convenience.*/
- const NamespaceDom namespaceByName( const QString& name ) const;
+ const NamespaceDom namespaceByName( const TQString& name ) const;
/**Adds a namespace to the model.
@param ns The namespace model to add to the model.
@@ -1093,10 +1093,10 @@ public:
void update( const NamespaceModel* ns );
bool canUpdate( const NamespaceModel* ns ) const;
- virtual void read( QDataStream& stream );
- virtual void write( QDataStream& stream ) const;
+ virtual void read( TQDataStream& stream );
+ virtual void write( TQDataStream& stream ) const;
- virtual void dump( std::ostream& file, bool recurse=false, QString Info="" );
+ virtual void dump( std::ostream& file, bool recurse=false, TQString Info="" );
void addNamespaceImport( const NamespaceImportModel& import );
void addNamespaceAlias( const NamespaceAliasModel& alias );
@@ -1113,7 +1113,7 @@ public:
return m_namespaceImports;
}
private:
- QMap<QString, NamespaceDom> m_namespaces;
+ TQMap<TQString, NamespaceDom> m_namespaces;
NamespaceAliasModelList m_namespaceAliases;
NamespaceImportModelList m_namespaceImports;
@@ -1161,13 +1161,13 @@ public:
from outside.
@return whether the read was successful */
- virtual void write( QDataStream& stream ) const;
+ virtual void write( TQDataStream& stream ) const;
FileList wholeGroup() ;
- QStringList wholeGroupStrings() const;
+ TQStringList wholeGroupStrings() const;
- virtual void read( QDataStream& stream );
+ virtual void read( TQDataStream& stream );
ParseResultPointer parseResult() const;
void setParseResult( const ParseResultPointer& result );
@@ -1200,27 +1200,27 @@ public:
virtual bool isArgument() const { return true; }
/**@return The type of this argument.*/
- QString type() const;
+ TQString type() const;
/**Sets the type of this argument.
@param type The type to set.*/
- void setType( const QString& type );
+ void setType( const TQString& type );
/**@return The default value of this argument.*/
- QString defaultValue() const;
+ TQString defaultValue() const;
/**Sets the default value of this argument.
@param defaultValue The default value to set.*/
- void setDefaultValue( const QString& defaultValue );
+ void setDefaultValue( const TQString& defaultValue );
- virtual void read( QDataStream& stream );
- virtual void write( QDataStream& stream ) const;
+ virtual void read( TQDataStream& stream );
+ virtual void write( TQDataStream& stream ) const;
- virtual void dump( std::ostream& file, bool recurse=false, QString Info="" );
+ virtual void dump( std::ostream& file, bool recurse=false, TQString Info="" );
private:
- QString m_type;
- QString m_defaultValue;
+ TQString m_type;
+ TQString m_defaultValue;
private:
ArgumentModel( const ArgumentModel& source );
@@ -1257,11 +1257,11 @@ public:
/**@return The scope of the function. Scope is a string list composed
from names of parent functions, classes and namespaces.*/
- QStringList scope() const { return m_scope; }
+ TQStringList scope() const { return m_scope; }
/**Sets the scope of the function.
@param scope The scope to set.*/
- void setScope( const QStringList& scope ) { m_scope = scope; }
+ void setScope( const TQStringList& scope ) { m_scope = scope; }
/**@return The access level of the function. Can return either values of type @ref CodeModelItem::Access or
other integers if the function has other access level (for example pascal methods can have "published"
@@ -1315,10 +1315,10 @@ public:
void setAbstract( bool isAbstract );
/**@return The result type of a function.*/
- QString resultType() const;
+ TQString resultType() const;
/**Sets the result type of a function.
@param type The type of a function result.*/
- void setResultType( const QString& type );
+ void setResultType( const TQString& type );
/**Gets the list of arguments being passed to the function.
If there are no arguments, then the list is empty.
@@ -1340,16 +1340,16 @@ public:
@param arg The argument model to remove from the function.*/
void removeArgument( ArgumentDom arg );
- virtual void read( QDataStream& stream );
- virtual void write( QDataStream& stream ) const;
+ virtual void read( TQDataStream& stream );
+ virtual void write( TQDataStream& stream ) const;
- virtual void dump( std::ostream& file, bool recurse=false, QString Info="" );
+ virtual void dump( std::ostream& file, bool recurse=false, TQString Info="" );
void update( const FunctionModel* i );
bool canUpdate( const FunctionModel* i ) const;
private:
- QStringList m_scope;
+ TQStringList m_scope;
int m_access;
union {
@@ -1365,7 +1365,7 @@ private:
int flags;
} d;
- QString m_resultType;
+ TQString m_resultType;
ArgumentList m_arguments;
private:
@@ -1434,20 +1434,20 @@ public:
void setStatic( bool isStatic );
/**@return A type of the variable.*/
- QString type() const;
+ TQString type() const;
/**Sets the type of the variable.
@param type The type name.*/
- void setType( const QString& type );
+ void setType( const TQString& type );
/**@return If this is an enumerator, the enum it is part of, else an empty string. This is just a hack, necessary because EnumeratorModel is not used at all by the cpp-code-model. */
bool isEnumeratorVariable() const;
void setEnumeratorVariable( bool b );
- virtual void read( QDataStream& stream );
- virtual void write( QDataStream& stream ) const;
+ virtual void read( TQDataStream& stream );
+ virtual void write( TQDataStream& stream ) const;
- virtual void dump( std::ostream& file, bool recurse=false, QString Info="" );
+ virtual void dump( std::ostream& file, bool recurse=false, TQString Info="" );
void update( const VariableModel* i );
bool canUpdate( const VariableModel* i ) const;
@@ -1455,7 +1455,7 @@ public:
private:
int m_access;
int m_static;
- QString m_type;
+ TQString m_type;
int m_isEnumeratorVariable;
private:
@@ -1503,18 +1503,18 @@ public:
@param e The enumerator model to remove.*/
void removeEnumerator( EnumeratorDom e );
- virtual void read( QDataStream& stream );
- virtual void write( QDataStream& stream ) const;
+ virtual void read( TQDataStream& stream );
+ virtual void write( TQDataStream& stream ) const;
///The dump-function is not ready yet
- virtual void dump( std::ostream& file, bool recurse=false, QString Info="" );
+ virtual void dump( std::ostream& file, bool recurse=false, TQString Info="" );
void update( const EnumModel* i );
bool canUpdate( const EnumModel* i ) const;
private:
int m_access;
- QMap<QString, EnumeratorDom> m_enumerators;
+ TQMap<TQString, EnumeratorDom> m_enumerators;
private:
EnumModel( const EnumModel& source );
@@ -1548,18 +1548,18 @@ public:
virtual bool isEnumerator() const { return true; }
/**@return The value of an enumerator.*/
- QString value() const;
+ TQString value() const;
/**Sets the value of an enumerator.
@param value The value.*/
- void setValue( const QString& value );
+ void setValue( const TQString& value );
- virtual void read( QDataStream& stream );
- virtual void write( QDataStream& stream ) const;
+ virtual void read( TQDataStream& stream );
+ virtual void write( TQDataStream& stream ) const;
- virtual void dump( std::ostream& file, bool recurse=false, QString Info="" );
+ virtual void dump( std::ostream& file, bool recurse=false, TQString Info="" );
private:
- QString m_value;
+ TQString m_value;
private:
EnumeratorModel( const EnumeratorModel& source );
@@ -1586,22 +1586,22 @@ public:
virtual bool isTypeAlias() const { return true; }
/**@return The actual type of an alias.*/
- QString type() const;
+ TQString type() const;
/**Sets the type of an alias.
@param type The type name.*/
- void setType( const QString& type );
+ void setType( const TQString& type );
- virtual void read( QDataStream& stream );
- virtual void write( QDataStream& stream ) const;
+ virtual void read( TQDataStream& stream );
+ virtual void write( TQDataStream& stream ) const;
- virtual void dump( std::ostream& file, bool recurse=false, QString Info="" );
+ virtual void dump( std::ostream& file, bool recurse=false, TQString Info="" );
void update( const TypeAliasModel* i );
bool canUpdate( const TypeAliasModel* i ) const;
private:
- QString m_type;
+ TQString m_type;
private:
TypeAliasModel( const TypeAliasModel& source );