diff options
Diffstat (limited to 'languages/cpp/pcsimporter/kdelibsimporter')
4 files changed, 49 insertions, 49 deletions
diff --git a/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.cpp b/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.cpp index 341256b7..a52da5d7 100644 --- a/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.cpp +++ b/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.cpp @@ -16,26 +16,26 @@ #include <kdebug.h> #include <kgenericfactory.h> -#include <qvaluestack.h> -#include <qlabel.h> -#include <qdir.h> -#include <qcombobox.h> +#include <tqvaluestack.h> +#include <tqlabel.h> +#include <tqdir.h> +#include <tqcombobox.h> K_EXPORT_COMPONENT_FACTORY( libkdevkdelibsimporter, KGenericFactory<KDevKDELibsImporter>( "kdevkdelibsimporter" ) ) -KDevKDELibsImporter::KDevKDELibsImporter( QObject * parent, const char * name, const QStringList& ) +KDevKDELibsImporter::KDevKDELibsImporter( TQObject * parent, const char * name, const TQStringList& ) : KDevPCSImporter( parent, name ) {} KDevKDELibsImporter::~KDevKDELibsImporter() {} -QStringList KDevKDELibsImporter::fileList( const QString& path ) +TQStringList KDevKDELibsImporter::fileList( const TQString& path ) { - QDir dir( path ); - QStringList lst = dir.entryList( "*.h" ); - QStringList fileList; - for ( QStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) + TQDir dir( path ); + TQStringList lst = dir.entryList( "*.h" ); + TQStringList fileList; + for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) { fileList.push_back( dir.absPath() + "/" + ( *it ) ); } @@ -43,12 +43,12 @@ QStringList KDevKDELibsImporter::fileList( const QString& path ) } -QStringList KDevKDELibsImporter::fileList() +TQStringList KDevKDELibsImporter::fileList() { if ( !m_settings ) - return QStringList(); + return TQStringList(); - QStringList files; + TQStringList files; int scope = m_settings->cbParsingScope->currentItem(); if ( scope == 0 ) { @@ -67,24 +67,24 @@ QStringList KDevKDELibsImporter::fileList() } else if ( scope == 1 ) { - QValueStack<QString> s; + TQValueStack<TQString> s; s.push( m_settings->kdeDir() ); files += fileList( m_settings->kdeDir() ); - QDir dir; + TQDir dir; do { dir.setPath( s.pop() ); kdDebug( 9015 ) << "Examining: " << dir.path() << endl; const QFileInfoList *dirEntries = dir.entryInfoList(); if ( !dirEntries ) continue; - QPtrListIterator<QFileInfo> it( *dirEntries ); + TQPtrListIterator<TQFileInfo> it( *dirEntries ); for ( ; it.current(); ++it ) { - QString fileName = it.current() ->fileName(); + TQString fileName = it.current() ->fileName(); if ( fileName == "." || fileName == ".." ) continue; - QString path = it.current() ->absFilePath(); + TQString path = it.current() ->absFilePath(); if ( it.current() ->isDir() ) { kdDebug( 9015 ) << "Pushing: " << path << endl; @@ -99,17 +99,17 @@ QStringList KDevKDELibsImporter::fileList() return files; } -QStringList KDevKDELibsImporter::includePaths() +TQStringList KDevKDELibsImporter::includePaths() { if ( !m_settings ) - return QStringList(); + return TQStringList(); - QStringList includePaths; + TQStringList includePaths; includePaths.push_back( m_settings->kdeDir() ); return includePaths; } -QWidget * KDevKDELibsImporter::createSettingsPage( QWidget * parent, const char * name ) +TQWidget * KDevKDELibsImporter::createSettingsPage( TQWidget * parent, const char * name ) { m_settings = new SettingsDialog( parent, name ); return m_settings; diff --git a/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.h b/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.h index 9514f287..45cf470a 100644 --- a/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.h +++ b/languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.h @@ -13,7 +13,7 @@ #define KDEVQTIMPORTER_H #include <kdevpcsimporter.h> -#include <qguardedptr.h> +#include <tqguardedptr.h> class SettingsDialog; @@ -21,20 +21,20 @@ class KDevKDELibsImporter : public KDevPCSImporter { Q_OBJECT public: - KDevKDELibsImporter( QObject* parent=0, const char* name=0, const QStringList& args=QStringList() ); + KDevKDELibsImporter( TQObject* parent=0, const char* name=0, const TQStringList& args=TQStringList() ); virtual ~KDevKDELibsImporter(); - virtual QString dbName() const { return QString::fromLatin1("KDElibs"); } - virtual QStringList fileList(); - virtual QStringList includePaths(); + virtual TQString dbName() const { return TQString::fromLatin1("KDElibs"); } + virtual TQStringList fileList(); + virtual TQStringList includePaths(); - virtual QWidget* createSettingsPage( QWidget* parent, const char* name=0 ); + virtual TQWidget* createSettingsPage( TQWidget* parent, const char* name=0 ); private: - QStringList fileList( const QString& path ); + TQStringList fileList( const TQString& path ); private: - QGuardedPtr<SettingsDialog> m_settings; + TQGuardedPtr<SettingsDialog> m_settings; }; #endif diff --git a/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp b/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp index 29ef96e9..a0763380 100644 --- a/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp +++ b/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp @@ -22,30 +22,30 @@ #include <kmessagebox.h> #include <klocale.h> -#include <qfile.h> -#include <qdir.h> -#include <qregexp.h> +#include <tqfile.h> +#include <tqdir.h> +#include <tqregexp.h> #include <cstdlib> #include "settingsdialog.h" -QListBoxItem* QListBox_selectedItem( QListBox* cpQListBox ) +TQListBoxItem* QListBox_selectedItem( TQListBox* cpQListBox ) { - if ( cpQListBox->selectionMode() != QListBox::Single ) + if ( cpQListBox->selectionMode() != TQListBox::Single ) return 0; if ( cpQListBox->isSelected( cpQListBox->currentItem() ) ) return cpQListBox->item( cpQListBox->currentItem() ); return 0; } -SettingsDialog::SettingsDialog( QWidget* parent, const char* name, WFlags fl ) +SettingsDialog::SettingsDialog( TQWidget* parent, const char* name, WFlags fl ) : SettingsDialogBase( parent, name, fl ) { KApplication::kApplication()->dirs()->addResourceType("include","include"); - QStringList kdedirs=KApplication::kApplication()->dirs()->findDirs("include",""); - for( QStringList::Iterator it=kdedirs.begin(); it!=kdedirs.end(); ++it ) + TQStringList kdedirs=KApplication::kApplication()->dirs()->findDirs("include",""); + for( TQStringList::Iterator it=kdedirs.begin(); it!=kdedirs.end(); ++it ) { - QString kdedir = *it; + TQString kdedir = *it; if ( !kdedir.isEmpty() && isValidKDELibsDir( kdedir ) ) if ( !kdeListBox->findItem( kdedir, ExactMatch ) ) kdeListBox->insertItem( kdedir ); @@ -53,23 +53,23 @@ SettingsDialog::SettingsDialog( QWidget* parent, const char* name, WFlags fl ) kdeUrl->setMode( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly ); - connect( addUrlButton, SIGNAL(clicked()), this, SLOT(addUrlButton_clicked()) ); + connect( addUrlButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(addUrlButton_clicked()) ); } SettingsDialog::~SettingsDialog() {} -void SettingsDialog::slotSelectionChanged( QListBoxItem* ) +void SettingsDialog::slotSelectionChanged( TQListBoxItem* ) { emit enabled( kdeListBox->selectedItem() != 0 ); } -bool SettingsDialog::isValidKDELibsDir( const QString & path ) const +bool SettingsDialog::isValidKDELibsDir( const TQString & path ) const { - return QFile::exists( path + "/kapplication.h" ); + return TQFile::exists( path + "/kapplication.h" ); } -QString SettingsDialog::kdeDir( ) const +TQString SettingsDialog::kdeDir( ) const { return kdeListBox->currentText(); } @@ -81,7 +81,7 @@ void SettingsDialog::addUrlButton_clicked() if ( isValidKDELibsDir( kdeUrl->url() ) ) { kdeListBox->insertItem( kdeUrl->url() ); - if ( QListBoxItem * item = kdeListBox->findItem( kdeUrl->url(), ExactMatch ) ) + if ( TQListBoxItem * item = kdeListBox->findItem( kdeUrl->url(), ExactMatch ) ) { kdeListBox->setSelected( item, true ); } diff --git a/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.h b/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.h index ba15019b..4a06dd12 100644 --- a/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.h +++ b/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.h @@ -19,17 +19,17 @@ class SettingsDialog : public SettingsDialogBase Q_OBJECT public: - SettingsDialog(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + SettingsDialog(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); ~SettingsDialog(); /*$PUBLIC_FUNCTIONS$*/ - bool isValidKDELibsDir( const QString& path ) const; + bool isValidKDELibsDir( const TQString& path ) const; - QString kdeDir() const; + TQString kdeDir() const; public slots: /*$PUBLIC_SLOTS$*/ - virtual void slotSelectionChanged(QListBoxItem*); + virtual void slotSelectionChanged(TQListBoxItem*); protected: /*$PROTECTED_FUNCTIONS$*/ |