summaryrefslogtreecommitdiffstats
path: root/languages/cpp/pcsimporter/customimporter
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/pcsimporter/customimporter')
-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
4 files changed, 60 insertions, 60 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;