summaryrefslogtreecommitdiffstats
path: root/languages/cpp/pcsimporter
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/pcsimporter')
-rw-r--r--languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp50
-rw-r--r--languages/cpp/pcsimporter/customimporter/kdevcustomimporter.h18
-rw-r--r--languages/cpp/pcsimporter/customimporter/settingsdialog.cpp36
-rw-r--r--languages/cpp/pcsimporter/customimporter/settingsdialog.h16
-rw-r--r--languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.cpp44
-rw-r--r--languages/cpp/pcsimporter/kdelibsimporter/kdevkdelibsimporter.h16
-rw-r--r--languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp30
-rw-r--r--languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.h8
-rw-r--r--languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp28
-rw-r--r--languages/cpp/pcsimporter/qt4importer/kdevqt4importer.h14
-rw-r--r--languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp38
-rw-r--r--languages/cpp/pcsimporter/qt4importer/settingsdialog.h10
-rw-r--r--languages/cpp/pcsimporter/qtimporter/kdevqtimporter.cpp26
-rw-r--r--languages/cpp/pcsimporter/qtimporter/kdevqtimporter.h14
-rw-r--r--languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp42
-rw-r--r--languages/cpp/pcsimporter/qtimporter/settingsdialog.h10
16 files changed, 200 insertions, 200 deletions
diff --git a/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp b/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp
index c3e5cb43..5551cd02 100644
--- a/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp
+++ b/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp
@@ -11,15 +11,15 @@
#include "settingsdialog.h"
-#include <qvaluestack.h>
-#include <qdir.h>
+#include <tqvaluestack.h>
+#include <tqdir.h>
#include <kdebug.h>
#include <kgenericfactory.h>
K_EXPORT_COMPONENT_FACTORY( libkdevcustompcsimporter, KGenericFactory<KDevCustomImporter>( "kdevcustompcsimporter" ) )
-KDevCustomImporter::KDevCustomImporter( QObject* parent, const char* name, const QStringList & // args
+KDevCustomImporter::KDevCustomImporter( TQObject* parent, const char* name, const TQStringList & // args
)
: KDevPCSImporter( parent, name )
{}
@@ -29,34 +29,34 @@ KDevCustomImporter::~KDevCustomImporter()
{}
-QString KDevCustomImporter::dbName() const
+TQString KDevCustomImporter::dbName() const
{
return m_settings->dbName();
}
-QStringList KDevCustomImporter::fileList( const QString& path )
+TQStringList KDevCustomImporter::fileList( const TQString& path )
{
- QDir dir( path );
+ TQDir dir( path );
if ( !dir.exists() )
- return QStringList();
-// QStringList lst = dir.entryList( "*.h;*.H;*.hh;*.hxx;*.hpp;*.tlh" );
- QStringList lst = dir.entryList( m_settings->filePattern() );
- QStringList fileList;
- for ( QStringList::Iterator it = lst.begin(); it != lst.end(); ++it )
+ return TQStringList();
+// TQStringList lst = dir.entryList( "*.h;*.H;*.hh;*.hxx;*.hpp;*.tlh" );
+ TQStringList lst = dir.entryList( m_settings->filePattern() );
+ TQStringList fileList;
+ for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it )
{
fileList.push_back( dir.absPath() + "/" + ( *it ) );
}
return fileList;
}
-QStringList KDevCustomImporter::fileList()
+TQStringList KDevCustomImporter::fileList()
{
if ( !m_settings )
- return QStringList();
+ return TQStringList();
- QStringList lst = m_settings->dirs();
- QStringList files;
- for ( QStringList::Iterator it = lst.begin(); it != lst.end(); ++it )
+ TQStringList lst = m_settings->dirs();
+ TQStringList files;
+ for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it )
{
if ( !m_settings->recursive() )
files += fileList( *it );
@@ -67,27 +67,27 @@ QStringList KDevCustomImporter::fileList()
return files;
}
-QStringList KDevCustomImporter::includePaths()
+TQStringList KDevCustomImporter::includePaths()
{
if ( !m_settings )
- return QStringList();
+ return TQStringList();
return m_settings->dirs();
}
-QWidget* KDevCustomImporter::createSettingsPage( QWidget* parent, const char* name )
+TQWidget* KDevCustomImporter::createSettingsPage( TQWidget* parent, const char* name )
{
m_settings = new SettingsDialog( parent, name );
return m_settings;
}
-void KDevCustomImporter::processDir( const QString path, QStringList & files )
+void KDevCustomImporter::processDir( const TQString path, TQStringList & files )
{
- QValueStack<QString> s;
+ TQValueStack<TQString> s;
s.push( path );
files += fileList( path );
- QDir dir;
+ TQDir dir;
do
{
dir.setPath( s.pop() );
@@ -96,15 +96,15 @@ void KDevCustomImporter::processDir( const QString path, QStringList & files )
kdDebug( 9015 ) << "Examining: " << dir.path() << endl;
const QFileInfoList *dirEntries = dir.entryInfoList();
if ( !dirEntries ) continue;
- QPtrListIterator<QFileInfo> it( *dirEntries );
+ TQPtrListIterator<TQFileInfo> it( *dirEntries );
for ( ; dirEntries && it.current(); ++it )
{
- QString fileName = it.current() ->fileName();
+ TQString fileName = it.current() ->fileName();
if ( fileName == "." || fileName == ".." )
continue;
if ( it.current() ->isDir() )
{
- QString tmpPath = it.current() ->absFilePath();
+ TQString tmpPath = it.current() ->absFilePath();
kdDebug( 9015 ) << "Pushing: " << tmpPath << endl;
s.push( tmpPath );
files += fileList( tmpPath );
diff --git a/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.h b/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.h
index 5a522785..bca53eeb 100644
--- a/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.h
+++ b/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.h
@@ -12,7 +12,7 @@
#include "kdevpcsimporter.h"
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
class SettingsDialog;
@@ -20,21 +20,21 @@ class KDevCustomImporter : public KDevPCSImporter
{
Q_OBJECT
public:
- KDevCustomImporter(QObject* parent = 0, const char* name = 0, const QStringList &args = QStringList());
+ KDevCustomImporter(TQObject* parent = 0, const char* name = 0, const TQStringList &args = TQStringList());
~KDevCustomImporter();
- virtual QString dbName() const;
- virtual QStringList fileList();
- virtual QStringList includePaths();
- virtual QWidget* createSettingsPage(QWidget* parent, const char* name);
+ virtual TQString dbName() const;
+ virtual TQStringList fileList();
+ virtual TQStringList includePaths();
+ virtual TQWidget* createSettingsPage(TQWidget* parent, const char* name);
protected:
- QStringList fileList( const QString& path );
- void processDir(const QString path, QStringList &files );
+ TQStringList fileList( const TQString& path );
+ void processDir(const TQString path, TQStringList &files );
private:
- QGuardedPtr<SettingsDialog> m_settings;
+ TQGuardedPtr<SettingsDialog> m_settings;
};
#endif
diff --git a/languages/cpp/pcsimporter/customimporter/settingsdialog.cpp b/languages/cpp/pcsimporter/customimporter/settingsdialog.cpp
index f6df0902..37f2bfef 100644
--- a/languages/cpp/pcsimporter/customimporter/settingsdialog.cpp
+++ b/languages/cpp/pcsimporter/customimporter/settingsdialog.cpp
@@ -12,7 +12,7 @@
* *
***************************************************************************/
-#include <qdir.h>
+#include <tqdir.h>
#include <klistbox.h>
#include <kcombobox.h>
@@ -27,14 +27,14 @@
// should be included after possible KEditListBox redefinition
#include "settingsdialog.h"
-#include <qfile.h>
-#include <qregexp.h>
-#include <qlayout.h>
-#include <qcheckbox.h>
+#include <tqfile.h>
+#include <tqregexp.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
#include <cstdlib>
-SettingsDialog::SettingsDialog( QWidget* parent, const char* name, WFlags fl )
+SettingsDialog::SettingsDialog( TQWidget* parent, const char* name, WFlags fl )
: SettingsDialogBase( parent, name, fl )
{
KURLRequester * req = new KURLRequester( this );
@@ -45,27 +45,27 @@ SettingsDialog::SettingsDialog( QWidget* parent, const char* name, WFlags fl )
grid->addMultiCellWidget( elb, 3, 3, 0, grid->numCols() );
- // connect( dbName_edit, SIGNAL( textChanged( const QString& ) ), this, SLOT( validate() ) );
- connect( elb->addButton(), SIGNAL( clicked() ), this, SLOT( validate() ) );
- connect( elb->removeButton(), SIGNAL( clicked() ), this, SLOT( validate() ) );
- connect( elb, SIGNAL( added( const QString& ) ), this, SLOT( validateDirectory( const QString& ) ) );
+ // connect( dbName_edit, TQT_SIGNAL( textChanged( const TQString& ) ), this, TQT_SLOT( validate() ) );
+ connect( elb->addButton(), TQT_SIGNAL( clicked() ), this, TQT_SLOT( validate() ) );
+ connect( elb->removeButton(), TQT_SIGNAL( clicked() ), this, TQT_SLOT( validate() ) );
+ connect( elb, TQT_SIGNAL( added( const TQString& ) ), this, TQT_SLOT( validateDirectory( const TQString& ) ) );
}
SettingsDialog::~SettingsDialog()
{}
-QString SettingsDialog::dbName( ) const
+TQString SettingsDialog::dbName( ) const
{
- return QString();
+ return TQString();
// return dbName_edit->text();
}
-QStringList SettingsDialog::dirs( ) const
+TQStringList SettingsDialog::dirs( ) const
{
return elb->items();
}
-QString SettingsDialog::filePattern( ) const
+TQString SettingsDialog::filePattern( ) const
{
return pattern_edit->text();
}
@@ -81,19 +81,19 @@ void SettingsDialog::validate()
emit enabled( elb->listBox()->count() > 0 );
}
-void SettingsDialog::validateDirectory( const QString & dir )
+void SettingsDialog::validateDirectory( const TQString & dir )
{
- QDir d( dir, QString::null, QDir::DefaultSort, QDir::Dirs );
+ TQDir d( dir, TQString::null, TQDir::DefaultSort, TQDir::Dirs );
if ( !d.exists() )
{
elb->lineEdit() ->setText( dir );
- if ( QListBoxItem * item = elb->listBox() ->findItem( dir, Qt::ExactMatch ) )
+ if ( TQListBoxItem * item = elb->listBox() ->findItem( dir, Qt::ExactMatch ) )
{
elb->listBox() ->removeItem( elb->listBox() ->index( item ) );
}
- QString errormsg = QString( "<qt><b>%1</b> is not a directory</qt>" ).arg( dir );
+ TQString errormsg = TQString( "<qt><b>%1</b> is not a directory</qt>" ).arg( dir );
KMessageBox::error( 0, errormsg, "Couldn't find directory" );
}
emit enabled( elb->listBox()->count() > 0 );
diff --git a/languages/cpp/pcsimporter/customimporter/settingsdialog.h b/languages/cpp/pcsimporter/customimporter/settingsdialog.h
index 309df8ab..02336f98 100644
--- a/languages/cpp/pcsimporter/customimporter/settingsdialog.h
+++ b/languages/cpp/pcsimporter/customimporter/settingsdialog.h
@@ -21,22 +21,22 @@ 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();
- bool isValidQtDir( const QString& path ) const;
+ bool isValidQtDir( const TQString& path ) const;
- QString qtDir() const;
- QString configuration() const;
+ TQString qtDir() const;
+ TQString configuration() const;
- QString dbName() const;
- QStringList dirs() const;
+ TQString dbName() const;
+ TQStringList dirs() const;
bool recursive() const;
- QString filePattern() const;
+ TQString filePattern() const;
private slots:
void validate();
- void validateDirectory( const QString & dir );
+ void validateDirectory( const TQString & dir );
private:
KEditListBox *elb;
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$*/
diff --git a/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp b/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp
index f4fedea0..d4635ba4 100644
--- a/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp
+++ b/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp
@@ -18,13 +18,13 @@
#include <kprocess.h>
#include <kdebug.h>
-#include <qtextstream.h>
-#include <qlabel.h>
-#include <qdir.h>
+#include <tqtextstream.h>
+#include <tqlabel.h>
+#include <tqdir.h>
K_EXPORT_COMPONENT_FACTORY( libkdevqt4importer, KGenericFactory<KDevQt4Importer>( "kdevqt4importer" ) )
-KDevQt4Importer::KDevQt4Importer( QObject * parent, const char * name, const QStringList& )
+KDevQt4Importer::KDevQt4Importer( TQObject * parent, const char * name, const TQStringList& )
: KDevPCSImporter( parent, name )
{
m_qtfile = 0;
@@ -38,16 +38,16 @@ KDevQt4Importer::~KDevQt4Importer()
m_qtfile = 0;
}
-QStringList KDevQt4Importer::fileList()
+TQStringList KDevQt4Importer::fileList()
{
if( !m_settings )
- return QStringList();
+ return TQStringList();
if (m_qtfile)
delete m_qtfile;
KTempFile ifile;
- QTextStream &is = *ifile.textStream();
+ TQTextStream &is = *ifile.textStream();
is << "#include <QtCore/qobjectdefs.h>\n"
<< "#undef Q_SLOTS\n#undef Q_SIGNALS\n#undef slots\n#undef signals"
@@ -70,13 +70,13 @@ QStringList KDevQt4Importer::fileList()
m_qtfile = new KTempFile();
// include paths
- QStringList paths = includePaths();
- for (QStringList::Iterator it = paths.begin(); it != paths.end(); ++it)
+ TQStringList paths = includePaths();
+ for (TQStringList::Iterator it = paths.begin(); it != paths.end(); ++it)
proc << "-I" << *it;
ifile.close();
- QString o;
+ TQString o;
o += "-o";
o += m_qtfile->name();
@@ -86,12 +86,12 @@ QStringList KDevQt4Importer::fileList()
return m_qtfile->name();
}
-QStringList KDevQt4Importer::includePaths()
+TQStringList KDevQt4Importer::includePaths()
{
if( !m_settings || !m_qtfile)
- return QStringList();
+ return TQStringList();
- QStringList includePaths;
+ TQStringList includePaths;
includePaths.push_back( m_settings->qtDir() );
includePaths.push_back( m_settings->qtDir() + "/Qt" );
@@ -99,7 +99,7 @@ QStringList KDevQt4Importer::includePaths()
return includePaths;
}
-QWidget * KDevQt4Importer::createSettingsPage( QWidget * parent, const char * name )
+TQWidget * KDevQt4Importer::createSettingsPage( TQWidget * parent, const char * name )
{
m_settings = new SettingsDialog( parent, name );
return m_settings;
diff --git a/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.h b/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.h
index 821e6fef..c430db19 100644
--- a/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.h
+++ b/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.h
@@ -13,7 +13,7 @@
#define KDEVQTIMPORTER_H
#include <kdevpcsimporter.h>
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
class SettingsDialog;
class KTempFile;
@@ -22,17 +22,17 @@ class KDevQt4Importer : public KDevPCSImporter
{
Q_OBJECT
public:
- KDevQt4Importer( QObject* parent=0, const char* name=0, const QStringList& args=QStringList() );
+ KDevQt4Importer( TQObject* parent=0, const char* name=0, const TQStringList& args=TQStringList() );
virtual ~KDevQt4Importer();
- virtual QString dbName() const { return QString::fromLatin1("Qt4"); }
- virtual QStringList fileList();
- virtual QStringList includePaths();
+ virtual TQString dbName() const { return TQString::fromLatin1("Qt4"); }
+ 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:
- QGuardedPtr<SettingsDialog> m_settings;
+ TQGuardedPtr<SettingsDialog> m_settings;
KTempFile *m_qtfile;
};
diff --git a/languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp b/languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp
index cc59c6e9..755b14c4 100644
--- a/languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp
+++ b/languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp
@@ -20,34 +20,34 @@
#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)
{
- QStringList qtdirs;
- qtdirs.push_back( ::getenv("QTDIR") + QString("/include") );
- qtdirs.push_back( QString::fromLocal8Bit(::getenv("HOME")) + "/dev/qt/include" );
- qtdirs.push_back( QString::fromLocal8Bit(::getenv("HOME")) + "/dev/qt-main/include" );
+ TQStringList qtdirs;
+ qtdirs.push_back( ::getenv("QTDIR") + TQString("/include") );
+ qtdirs.push_back( TQString::fromLocal8Bit(::getenv("HOME")) + "/dev/qt/include" );
+ qtdirs.push_back( TQString::fromLocal8Bit(::getenv("HOME")) + "/dev/qt-main/include" );
qtdirs.push_back( "/usr/qt/4/include" );
- for( QStringList::Iterator it=qtdirs.begin(); it!=qtdirs.end(); ++it )
+ for( TQStringList::Iterator it=qtdirs.begin(); it!=qtdirs.end(); ++it )
{
- QString qtdir = *it;
+ TQString qtdir = *it;
if( !qtdir.isEmpty() && isValidQtDir(qtdir) )
if (!qtListBox->findItem(qtdir, ExactMatch))
qtListBox->insertItem( qtdir );
@@ -55,14 +55,14 @@ SettingsDialog::SettingsDialog(QWidget* parent, const char* name, WFlags fl)
qtUrl->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* item)
+void SettingsDialog::slotSelectionChanged(TQListBoxItem* item)
{
if( !qtListBox->selectedItem() )
{
@@ -74,17 +74,17 @@ void SettingsDialog::slotSelectionChanged(QListBoxItem* item)
emit enabled( true );
}
-bool SettingsDialog::isValidQtDir( const QString & path ) const
+bool SettingsDialog::isValidQtDir( const TQString & path ) const
{
- return QFile::exists( path + "/QtCore/QtCore" );
+ return TQFile::exists( path + "/QtCore/QtCore" );
}
-QString SettingsDialog::qtDir( ) const
+TQString SettingsDialog::qtDir( ) const
{
return qtListBox->currentText();
}
-QString SettingsDialog::configuration( ) const
+TQString SettingsDialog::configuration( ) const
{
return "";
}
@@ -96,7 +96,7 @@ void SettingsDialog::addUrlButton_clicked( )
if ( isValidQtDir( qtUrl->url() ) )
{
qtListBox->insertItem( qtUrl->url() );
- if ( QListBoxItem * item = qtListBox->findItem( qtUrl->url(), ExactMatch ) )
+ if ( TQListBoxItem * item = qtListBox->findItem( qtUrl->url(), ExactMatch ) )
{
qtListBox->setSelected( item, true );
}
diff --git a/languages/cpp/pcsimporter/qt4importer/settingsdialog.h b/languages/cpp/pcsimporter/qt4importer/settingsdialog.h
index 1ec5663e..118564fb 100644
--- a/languages/cpp/pcsimporter/qt4importer/settingsdialog.h
+++ b/languages/cpp/pcsimporter/qt4importer/settingsdialog.h
@@ -19,18 +19,18 @@ 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 isValidQtDir( const QString& path ) const;
+ bool isValidQtDir( const TQString& path ) const;
- QString qtDir() const;
- QString configuration() const;
+ TQString qtDir() const;
+ TQString configuration() const;
public slots:
/*$PUBLIC_SLOTS$*/
- virtual void slotSelectionChanged(QListBoxItem*);
+ virtual void slotSelectionChanged(TQListBoxItem*);
protected:
/*$PROTECTED_FUNCTIONS$*/
diff --git a/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.cpp b/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.cpp
index add8574a..62eb38fd 100644
--- a/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.cpp
+++ b/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.cpp
@@ -15,27 +15,27 @@
#include <kgenericfactory.h>
-#include <qlabel.h>
-#include <qdir.h>
+#include <tqlabel.h>
+#include <tqdir.h>
K_EXPORT_COMPONENT_FACTORY( libkdevqtimporter, KGenericFactory<KDevQtImporter>( "kdevqtimporter" ) )
-KDevQtImporter::KDevQtImporter( QObject * parent, const char * name, const QStringList& )
+KDevQtImporter::KDevQtImporter( TQObject * parent, const char * name, const TQStringList& )
: KDevPCSImporter( parent, name )
{}
KDevQtImporter::~KDevQtImporter()
{}
-QStringList KDevQtImporter::fileList()
+TQStringList KDevQtImporter::fileList()
{
if ( !m_settings )
- return QStringList();
+ return TQStringList();
- QDir dir( m_settings->qtDir() );
- QStringList lst = dir.entryList( "*.h" );
- QStringList fileList;
- for ( QStringList::Iterator it = lst.begin(); it != lst.end(); ++it )
+ TQDir dir( m_settings->qtDir() );
+ TQStringList lst = dir.entryList( "*.h" );
+ TQStringList fileList;
+ for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it )
{
if ( ( *it ).startsWith( "qconfig-" ) )
{
@@ -50,12 +50,12 @@ QStringList KDevQtImporter::fileList()
return fileList;
}
-QStringList KDevQtImporter::includePaths()
+TQStringList KDevQtImporter::includePaths()
{
if ( !m_settings )
- return QStringList();
+ return TQStringList();
- QStringList includePaths;
+ TQStringList includePaths;
includePaths.push_back( m_settings->qtDir() );
includePaths.push_back( m_settings->qtDir() + "/private" );
includePaths.push_back( m_settings->qtDir() + "/default" );
@@ -64,7 +64,7 @@ QStringList KDevQtImporter::includePaths()
return includePaths;
}
-QWidget * KDevQtImporter::createSettingsPage( QWidget * parent, const char * name )
+TQWidget * KDevQtImporter::createSettingsPage( TQWidget * parent, const char * name )
{
m_settings = new SettingsDialog( parent, name );
return m_settings;
diff --git a/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.h b/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.h
index c53b0a8a..3ae35b96 100644
--- a/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.h
+++ b/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.h
@@ -13,7 +13,7 @@
#define KDEVQTIMPORTER_H
#include <kdevpcsimporter.h>
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
class SettingsDialog;
@@ -21,17 +21,17 @@ class KDevQtImporter : public KDevPCSImporter
{
Q_OBJECT
public:
- KDevQtImporter( QObject* parent=0, const char* name=0, const QStringList& args=QStringList() );
+ KDevQtImporter( TQObject* parent=0, const char* name=0, const TQStringList& args=TQStringList() );
virtual ~KDevQtImporter();
- virtual QString dbName() const { return QString::fromLatin1("Qt"); }
- virtual QStringList fileList();
- virtual QStringList includePaths();
+ virtual TQString dbName() const { return TQString::fromLatin1("Qt"); }
+ 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:
- QGuardedPtr<SettingsDialog> m_settings;
+ TQGuardedPtr<SettingsDialog> m_settings;
};
#endif
diff --git a/languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp b/languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp
index b0db10cc..2df475b7 100644
--- a/languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp
+++ b/languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp
@@ -20,35 +20,35 @@
#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 )
{
- QStringList qtdirs;
- qtdirs.push_back( ::getenv( "QTDIR" ) + QString("/include") );
+ TQStringList qtdirs;
+ qtdirs.push_back( ::getenv( "QTDIR" ) + TQString("/include") );
qtdirs.push_back( "/usr/lib/qt3/include" );
qtdirs.push_back( "/usr/lib/qt/include" );
qtdirs.push_back( "/usr/share/qt3/include" );
qtdirs.push_back( "/usr/qt/3/include" ); // gentoo style
- for ( QStringList::Iterator it = qtdirs.begin(); it != qtdirs.end(); ++it )
+ for ( TQStringList::Iterator it = qtdirs.begin(); it != qtdirs.end(); ++it )
{
- QString qtdir = *it;
+ TQString qtdir = *it;
if ( !qtdir.isEmpty() && isValidQtDir( qtdir ) )
if ( !qtListBox->findItem( qtdir, ExactMatch ) )
qtListBox->insertItem( qtdir );
@@ -56,13 +56,13 @@ SettingsDialog::SettingsDialog( QWidget* parent, const char* name, WFlags fl )
qtUrl->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* )
{
if ( !qtListBox->selectedItem() )
{
@@ -70,11 +70,11 @@ void SettingsDialog::slotSelectionChanged( QListBoxItem* )
return ;
}
- QDir dir( qtDir() );
- QStringList qconfigFileList = dir.entryList( "qconfig-*.h" );
+ TQDir dir( qtDir() );
+ TQStringList qconfigFileList = dir.entryList( "qconfig-*.h" );
qtConfiguration->clear();
- QRegExp rx( "qconfig-(\\w+)\\.h" );
- for ( QStringList::Iterator it = qconfigFileList.begin(); it != qconfigFileList.end(); ++it )
+ TQRegExp rx( "qconfig-(\\w+)\\.h" );
+ for ( TQStringList::Iterator it = qconfigFileList.begin(); it != qconfigFileList.end(); ++it )
{
( void ) rx.exactMatch( *it );
qtConfiguration->insertItem( rx.cap( 1 ) );
@@ -83,17 +83,17 @@ void SettingsDialog::slotSelectionChanged( QListBoxItem* )
emit enabled( true );
}
-bool SettingsDialog::isValidQtDir( const QString & path ) const
+bool SettingsDialog::isValidQtDir( const TQString & path ) const
{
- return QFile::exists( path + "/qt.h" );
+ return TQFile::exists( path + "/tqt.h" );
}
-QString SettingsDialog::qtDir( ) const
+TQString SettingsDialog::qtDir( ) const
{
return qtListBox->currentText();
}
-QString SettingsDialog::configuration( ) const
+TQString SettingsDialog::configuration( ) const
{
return qtConfiguration->currentText();
}
@@ -104,7 +104,7 @@ void SettingsDialog::addUrlButton_clicked( )
if ( isValidQtDir( qtUrl->url() ) )
{
qtListBox->insertItem( qtUrl->url() );
- if ( QListBoxItem * item = qtListBox->findItem( qtUrl->url(), ExactMatch ) )
+ if ( TQListBoxItem * item = qtListBox->findItem( qtUrl->url(), ExactMatch ) )
{
qtListBox->setSelected( item, true );
}
diff --git a/languages/cpp/pcsimporter/qtimporter/settingsdialog.h b/languages/cpp/pcsimporter/qtimporter/settingsdialog.h
index 1ec5663e..118564fb 100644
--- a/languages/cpp/pcsimporter/qtimporter/settingsdialog.h
+++ b/languages/cpp/pcsimporter/qtimporter/settingsdialog.h
@@ -19,18 +19,18 @@ 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 isValidQtDir( const QString& path ) const;
+ bool isValidQtDir( const TQString& path ) const;
- QString qtDir() const;
- QString configuration() const;
+ TQString qtDir() const;
+ TQString configuration() const;
public slots:
/*$PUBLIC_SLOTS$*/
- virtual void slotSelectionChanged(QListBoxItem*);
+ virtual void slotSelectionChanged(TQListBoxItem*);
protected:
/*$PROTECTED_FUNCTIONS$*/