diff options
Diffstat (limited to 'kdevdesigner/plugins/languageinterfaceimpl.cpp')
-rw-r--r-- | kdevdesigner/plugins/languageinterfaceimpl.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/kdevdesigner/plugins/languageinterfaceimpl.cpp b/kdevdesigner/plugins/languageinterfaceimpl.cpp index 37077922..53ce2ba8 100644 --- a/kdevdesigner/plugins/languageinterfaceimpl.cpp +++ b/kdevdesigner/plugins/languageinterfaceimpl.cpp @@ -26,11 +26,11 @@ **********************************************************************/ #include "languageinterfaceimpl.h" -#include <qobject.h> +#include <tqobject.h> #include "../interfaces/designerinterface.h" -#include <qfile.h> +#include <tqfile.h> //#include "yyreg.h" -#include <qmetaobject.h> +#include <tqmetaobject.h> LanguageInterfaceImpl::LanguageInterfaceImpl( QUnknownInterface *outer ) : parent( outer ), ref( 0 ) @@ -74,15 +74,15 @@ QRESULT LanguageInterfaceImpl::queryInterface( const QUuid &uuid, QUnknownInterf class NormalizeObject : public QObject { public: - NormalizeObject() : QObject() {} - static QCString normalizeSignalSlot( const char *signalSlot ) { return QObject::normalizeSignalSlot( signalSlot ); } + NormalizeObject() : TQObject() {} + static TQCString normalizeSignalSlot( const char *signalSlot ) { return TQObject::normalizeSignalSlot( signalSlot ); } }; -void LanguageInterfaceImpl::functions( const QString &code, QValueList<Function> *functionMap ) const +void LanguageInterfaceImpl::functions( const TQString &code, TQValueList<Function> *functionMap ) const { -/* QValueList<CppFunction> l; +/* TQValueList<CppFunction> l; extractCppFunctions( code, &l ); - for ( QValueList<CppFunction>::Iterator it = l.begin(); it != l.end(); ++it ) { + for ( TQValueList<CppFunction>::Iterator it = l.begin(); it != l.end(); ++it ) { Function func; func.name = (*it).prototype(); func.name.remove( 0, (*it).returnType().length() ); @@ -97,30 +97,30 @@ void LanguageInterfaceImpl::functions( const QString &code, QValueList<Function> }*/ } -QString LanguageInterfaceImpl::createFunctionStart( const QString &className, const QString &func, - const QString &returnType, - const QString & ) +TQString LanguageInterfaceImpl::createFunctionStart( const TQString &className, const TQString &func, + const TQString &returnType, + const TQString & ) { return returnType + " " + className + "::" + func; } -QStringList LanguageInterfaceImpl::definitions() const +TQStringList LanguageInterfaceImpl::definitions() const { - QStringList lst; + TQStringList lst; lst << "Includes (in Implementation)" << "Includes (in Declaration)" << "Forward Declarations" << "Signals"; return lst; } -QStringList LanguageInterfaceImpl::definitionEntries( const QString &definition, QUnknownInterface *designerIface ) const +TQStringList LanguageInterfaceImpl::definitionEntries( const TQString &definition, QUnknownInterface *designerIface ) const { DesignerInterface *iface = 0; designerIface->queryInterface( IID_Designer, (QUnknownInterface**) &iface ); if ( !iface ) - return QStringList(); + return TQStringList(); DesignerFormWindow *fw = iface->currentForm(); if ( !fw ) - return QStringList(); - QStringList lst; + return TQStringList(); + TQStringList lst; if ( definition == "Includes (in Implementation)" ) { lst = fw->implementationIncludes(); } else if ( definition == "Includes (in Declaration)" ) { @@ -134,7 +134,7 @@ QStringList LanguageInterfaceImpl::definitionEntries( const QString &definition, return lst; } -void LanguageInterfaceImpl::setDefinitionEntries( const QString &definition, const QStringList &entries, QUnknownInterface *designerIface ) +void LanguageInterfaceImpl::setDefinitionEntries( const TQString &definition, const TQStringList &entries, QUnknownInterface *designerIface ) { DesignerInterface *iface = 0; designerIface->queryInterface( IID_Designer, (QUnknownInterface**) &iface ); @@ -155,7 +155,7 @@ void LanguageInterfaceImpl::setDefinitionEntries( const QString &definition, con iface->release(); } -QString LanguageInterfaceImpl::createEmptyFunction() +TQString LanguageInterfaceImpl::createEmptyFunction() { return "{\n\n}\n"; } @@ -169,28 +169,28 @@ bool LanguageInterfaceImpl::supports( Support s ) const return FALSE; } -QStringList LanguageInterfaceImpl::fileFilterList() const +TQStringList LanguageInterfaceImpl::fileFilterList() const { - QStringList f; + TQStringList f; f << "C++ Files (*.cpp *.C *.cxx *.c++ *.ocl *.c *.h *.H *.hpp *.hxx)"; return f; } -QStringList LanguageInterfaceImpl::fileExtensionList() const +TQStringList LanguageInterfaceImpl::fileExtensionList() const { - QStringList f; + TQStringList f; f << "cpp" << "ocl" << "C" << "cxx" << "c++" << "c" <<"h" << "H" << "hpp" << "hxx"; return f; } -QString LanguageInterfaceImpl::projectKeyForExtension( const QString &extension ) const +TQString LanguageInterfaceImpl::projectKeyForExtension( const TQString &extension ) const { if ( extension[ 0 ] == 'c' || extension[ 0 ] == 'C' ) return "SOURCES"; return "HEADERS"; } -void LanguageInterfaceImpl::sourceProjectKeys( QStringList &keys ) const +void LanguageInterfaceImpl::sourceProjectKeys( TQStringList &keys ) const { keys << "HEADERS" << "SOURCES"; } @@ -199,38 +199,38 @@ void LanguageInterfaceImpl::sourceProjectKeys( QStringList &keys ) const { public: CheckObject() {} - bool checkConnectArgs( const char *signal, const char *member ) { return QObject::checkConnectArgs( signal, 0, member ); } + bool checkConnectArgs( const char *signal, const char *member ) { return TQObject::checkConnectArgs( signal, 0, member ); } }; -bool LanguageInterfaceImpl::canConnect( const QString &signal, const QString &slot ) +bool LanguageInterfaceImpl::canConnect( const TQString &signal, const TQString &slot ) { CheckObject o; return o.checkConnectArgs( signal.latin1(), slot.latin1() ); } -void LanguageInterfaceImpl::loadFormCode( const QString &, const QString &filename, - QValueList<Function> &functions, - QStringList &, - QValueList<Connection> & ) +void LanguageInterfaceImpl::loadFormCode( const TQString &, const TQString &filename, + TQValueList<Function> &functions, + TQStringList &, + TQValueList<Connection> & ) { - QFile f( filename ); + TQFile f( filename ); if ( !f.open( IO_ReadOnly ) ) return; - QTextStream ts( &f ); - QString code( ts.read() ); + TQTextStream ts( &f ); + TQString code( ts.read() ); this->functions( code, &functions ); } -void LanguageInterfaceImpl::preferedExtensions( QMap<QString, QString> &extensionMap ) const +void LanguageInterfaceImpl::preferedExtensions( TQMap<TQString, TQString> &extensionMap ) const { extensionMap.insert( "cpp", "C++ Source File" ); extensionMap.insert( "h", "C++ Header File" ); } -QStrList LanguageInterfaceImpl::signalNames( QObject *obj ) const +TQStrList LanguageInterfaceImpl::signalNames( TQObject *obj ) const { - QStrList sigs; + TQStrList sigs; sigs = obj->metaObject()->signalNames( TRUE ); sigs.remove( "destroyed()" ); return sigs; |