summaryrefslogtreecommitdiffstats
path: root/vcs/cvsservice/checkoutdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vcs/cvsservice/checkoutdialog.cpp')
-rw-r--r--vcs/cvsservice/checkoutdialog.cpp80
1 files changed, 40 insertions, 40 deletions
diff --git a/vcs/cvsservice/checkoutdialog.cpp b/vcs/cvsservice/checkoutdialog.cpp
index 7fb9455c..82c64052 100644
--- a/vcs/cvsservice/checkoutdialog.cpp
+++ b/vcs/cvsservice/checkoutdialog.cpp
@@ -9,11 +9,11 @@
* *
***************************************************************************/
-#include <qcheckbox.h>
-#include <qpushbutton.h>
-#include <qcombobox.h>
-#include <qfile.h>
-#include <qtextstream.h>
+#include <tqcheckbox.h>
+#include <tqpushbutton.h>
+#include <tqcombobox.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
#include <klistview.h>
#include <kurlrequester.h>
@@ -38,7 +38,7 @@
// Constants
///////////////////////////////////////////////////////////////////////////////
-const QString SSS( ":" ); // Server String Separator :)
+const TQString SSS( ":" ); // Server String Separator :)
///////////////////////////////////////////////////////////////////////////////
// class ModuleListViewItem
@@ -48,19 +48,19 @@ class ModuleListViewItem : public KListViewItem
{
public:
ModuleListViewItem( KListView *listview,
- const QString &moduleAlias, const QString &moduleRealPath )
+ const TQString &moduleAlias, const TQString &moduleRealPath )
: KListViewItem( listview )
{
setAlias( moduleAlias );
setRealPath( moduleRealPath );
}
- void setAlias( const QString &aName ) { setText( 0, aName); }
- QString alias() const { return text(0); }
- void setRealPath( const QString &aRealPath ) { setText(1, aRealPath); }
- QString realPath() const { return text(1); }
+ void setAlias( const TQString &aName ) { setText( 0, aName); }
+ TQString alias() const { return text(0); }
+ void setRealPath( const TQString &aRealPath ) { setText(1, aRealPath); }
+ TQString realPath() const { return text(1); }
-// virtual QString text() const { return name(); }
+// virtual TQString text() const { return name(); }
};
///////////////////////////////////////////////////////////////////////////////
@@ -68,7 +68,7 @@ public:
///////////////////////////////////////////////////////////////////////////////
CheckoutDialog::CheckoutDialog( CvsService_stub *cvsService,
- QWidget *parent, const char *name, WFlags ) :
+ TQWidget *parent, const char *name, WFlags ) :
DCOPObject( "CheckoutDialogDCOPIface" ),
KDialogBase( parent, name? name : "checkoutdialog", true, i18n("CVS Checkout"),
Ok | Cancel, Ok, true ),
@@ -77,10 +77,10 @@ CheckoutDialog::CheckoutDialog( CvsService_stub *cvsService,
m_base = new CheckoutDialogBase( this, "checkoutdialogbase" );
setMainWidget( m_base );
- connect( m_base->fetchModulesButton, SIGNAL(clicked()),
- this, SLOT(slotFetchModulesList()) );
- connect( m_base->modulesListView, SIGNAL(executed(QListViewItem*)),
- this, SLOT(slotModuleSelected(QListViewItem*)) );
+ connect( m_base->fetchModulesButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotFetchModulesList()) );
+ connect( m_base->modulesListView, TQT_SIGNAL(executed(TQListViewItem*)),
+ this, TQT_SLOT(slotModuleSelected(TQListViewItem*)) );
// Avoid displaying 'file:/' when displaying the file
m_base->workURLRequester->setShowLocalProtocol( false );
@@ -91,7 +91,7 @@ CheckoutDialog::CheckoutDialog( CvsService_stub *cvsService,
// And suggest to use the default projects dir set in KDevelop's preferences
KConfig *config = kapp->config();
config->setGroup("General Options");
- QString defaultProjectsDir = config->readPathEntry("DefaultProjectsDir", QDir::homeDirPath()+"/");
+ TQString defaultProjectsDir = config->readPathEntry("DefaultProjectsDir", TQDir::homeDirPath()+"/");
setWorkDir( defaultProjectsDir );
}
@@ -104,28 +104,28 @@ CheckoutDialog::~CheckoutDialog()
///////////////////////////////////////////////////////////////////////////////
-QString CheckoutDialog::serverPath() const
+TQString CheckoutDialog::serverPath() const
{
return m_base->serverPaths->currentText();
}
///////////////////////////////////////////////////////////////////////////////
-void CheckoutDialog::fillServerPaths( const QStringList &serverPaths )
+void CheckoutDialog::fillServerPaths( const TQStringList &serverPaths )
{
m_base->serverPaths->insertStringList( serverPaths );
}
///////////////////////////////////////////////////////////////////////////////
-QString CheckoutDialog::workDir() const
+TQString CheckoutDialog::workDir() const
{
return m_base->workURLRequester->url();
}
///////////////////////////////////////////////////////////////////////////////
-void CheckoutDialog::setWorkDir( const QString &aDir )
+void CheckoutDialog::setWorkDir( const TQString &aDir )
{
m_base->workURLRequester->setURL( aDir );
}
@@ -139,14 +139,14 @@ bool CheckoutDialog::pruneDirs() const
///////////////////////////////////////////////////////////////////////////////
-QString CheckoutDialog::tag() const
+TQString CheckoutDialog::tag() const
{
return m_base->tagEdit->text();
}
///////////////////////////////////////////////////////////////////////////////
-QString CheckoutDialog::module() const
+TQString CheckoutDialog::module() const
{
return m_base->moduleEdit->text();
}
@@ -168,7 +168,7 @@ void CheckoutDialog::slotFetchModulesList()
// We only need to know when it finishes and then will grab the output
// by using m_job->output() :-)
connectDCOPSignal( job.app(), job.obj(), "jobFinished(bool,int)", "slotJobExited(bool,int)", true );
- connectDCOPSignal( job.app(), job.obj(), "receivedStdout(QString)", "receivedOutput(QString)", true );
+ connectDCOPSignal( job.app(), job.obj(), "receivedStdout(TQString)", "receivedOutput(TQString)", true );
kdDebug() << "Running: " << m_job->cvsCommand() << endl;
m_job->execute();
@@ -187,35 +187,35 @@ void CheckoutDialog::slotJobExited( bool /*normalExit*/, int /*exitStatus*/ )
///////////////////////////////////////////////////////////////////////////////
-void CheckoutDialog::slotReceivedOutput( QString someOutput )
+void CheckoutDialog::slotReceivedOutput( TQString someOutput )
{
kdDebug( 9006 ) << " Received output: " << someOutput << endl;
setCursor( KCursor::arrowCursor() );
// Fill the modules KListView if the list obtained is not empty
- // QStringList modules = m_job->output();
- QStringList modules = QStringList::split( "\n", someOutput );
+ // TQStringList modules = m_job->output();
+ TQStringList modules = TQStringList::split( "\n", someOutput );
if (modules.count() <= 0)
return;
- QStringList::iterator it = modules.begin();
+ TQStringList::iterator it = modules.begin();
for ( ; it != modules.end(); ++it )
{
- QStringList l = QStringList::split( " ", (*it) );
+ TQStringList l = TQStringList::split( " ", (*it) );
// Now, l[0] is the module name, l[1] is ... another string ;-)
new ModuleListViewItem( m_base->modulesListView, l[0], l[1] );
}
}
-void CheckoutDialog::slotReceivedErrors( QString someErrors )
+void CheckoutDialog::slotReceivedErrors( TQString someErrors )
{
kdDebug( 9006 ) << " Received errors: " << someErrors << endl;
}
///////////////////////////////////////////////////////////////////////////////
-void CheckoutDialog::slotModuleSelected( QListViewItem * )
+void CheckoutDialog::slotModuleSelected( TQListViewItem * )
{
ModuleListViewItem *aModuleItem = static_cast<ModuleListViewItem*>(
m_base->modulesListView->selectedItem()
@@ -230,21 +230,21 @@ void CheckoutDialog::slotModuleSelected( QListViewItem * )
void CheckoutDialog::fetchUserCvsRepositories()
{
- QStringList repositories;
+ TQStringList repositories;
- QFile cvspass( QDir::homeDirPath() + QDir::separator() + ".cvspass" );
+ TQFile cvspass( TQDir::homeDirPath() + TQDir::separator() + ".cvspass" );
if (!cvspass.open( IO_ReadOnly ))
return;
- QByteArray data = cvspass.readAll();
+ TQByteArray data = cvspass.readAll();
cvspass.close();
- QTextIStream istream( data );
+ TQTextIStream istream( data );
// Entries are like:
// /1 :pserver:marios@cvs.kde.org:2401/home/kde Ahz:UIK?=d ?
// /1 :pserver:mario@xamel:2401/home/cvsroot aJT_d'K?=d ?
while (!istream.eof()) {
- QString line = istream.readLine();
- QStringList lineElements = QStringList::split( " ", line );
+ TQString line = istream.readLine();
+ TQStringList lineElements = TQStringList::split( " ", line );
if (lineElements.count() > 1) {
repositories << lineElements[ 1 ];
}
@@ -257,9 +257,9 @@ void CheckoutDialog::fetchUserCvsRepositories()
void CheckoutDialog::slotOk()
{
- QString errorMessage = QString::null;
+ TQString errorMessage = TQString::null;
- if (!(workDir().length() > 0) && QFile::exists( workDir() ))
+ if (!(workDir().length() > 0) && TQFile::exists( workDir() ))
errorMessage = i18n( "Please, choose a valid working directory" );
else if (!(serverPath().length() > 0))
errorMessage = i18n( "Please, choose a CVS server." );