summaryrefslogtreecommitdiffstats
path: root/vcs/subversion/subversion_part.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vcs/subversion/subversion_part.cpp')
-rw-r--r--vcs/subversion/subversion_part.cpp176
1 files changed, 88 insertions, 88 deletions
diff --git a/vcs/subversion/subversion_part.cpp b/vcs/subversion/subversion_part.cpp
index b5201b16..af58f7c8 100644
--- a/vcs/subversion/subversion_part.cpp
+++ b/vcs/subversion/subversion_part.cpp
@@ -18,7 +18,7 @@
*/
#include "subversion_part.h"
-#include <qwhatsthis.h>
+#include <tqwhatsthis.h>
#include <kiconloader.h>
#include <klocale.h>
#include <kdevgenericfactory.h>
@@ -40,16 +40,16 @@
#include "svn_mergewidget.h"
#include "urlutil.h"
-#include <qvbox.h>
+#include <tqvbox.h>
#include <kdialogbase.h>
#include <kparts/part.h>
#include <kdevpartcontroller.h>
#include <kdevproject.h>
#include <domutil.h>
#include <kurlrequester.h>
-#include <qradiobutton.h>
+#include <tqradiobutton.h>
#include <kdebug.h>
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kdevplugininfo.h>
#include <kmessagebox.h>
@@ -63,7 +63,7 @@ K_EXPORT_COMPONENT_FACTORY( libkdevsubversion, subversionFactory( data ) )
//bool g_projectWasJustCreated = false;
-subversionPart::subversionPart(QObject *parent, const char *name, const QStringList& )
+subversionPart::subversionPart(TQObject *parent, const char *name, const TQStringList& )
: KDevVersionControl(&data, parent, name ? name : "Subversion" ) {
setInstance(subversionFactory::instance());
m_projWidget = 0;
@@ -74,18 +74,18 @@ subversionPart::subversionPart(QObject *parent, const char *name, const QStringL
setupActions();
- connect( m_impl, SIGNAL(checkoutFinished(QString)), SIGNAL(finishedFetching(QString)) );
+ connect( m_impl, TQT_SIGNAL(checkoutFinished(TQString)), TQT_SIGNAL(finishedFetching(TQString)) );
// Context menu
- connect( core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)), this, SLOT(contextMenu(QPopupMenu *, const Context *)) );
- connect( core(), SIGNAL(projectConfigWidget(KDialogBase*)), this, SLOT(projectConfigWidget(KDialogBase*)) );
- connect( core(), SIGNAL(stopButtonClicked(KDevPlugin*)), this, SLOT(slotStopButtonClicked(KDevPlugin*)) );
- connect( core(), SIGNAL(projectOpened()), this, SLOT(slotProjectOpened()) );
- connect( core(), SIGNAL(projectClosed()), this, SLOT(slotProjectClosed()) );
+ connect( core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)), this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)) );
+ connect( core(), TQT_SIGNAL(projectConfigWidget(KDialogBase*)), this, TQT_SLOT(projectConfigWidget(KDialogBase*)) );
+ connect( core(), TQT_SIGNAL(stopButtonClicked(KDevPlugin*)), this, TQT_SLOT(slotStopButtonClicked(KDevPlugin*)) );
+ connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(slotProjectOpened()) );
+ connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(slotProjectClosed()) );
m_impl->processWidget()->setCaption(i18n( "Subversion Output" ));
- mainWindow()->embedOutputView( (QWidget*)m_impl->processWidget(), i18n( "Subversion" ), i18n( "Subversion messages" ) );
- QWhatsThis::add((QWidget*)m_impl->processWidget(), i18n("<b>Subversion</b><p>Subversion operations window."));
+ mainWindow()->embedOutputView( (TQWidget*)m_impl->processWidget(), i18n( "Subversion" ), i18n( "Subversion messages" ) );
+ TQWhatsThis::add((TQWidget*)m_impl->processWidget(), i18n("<b>Subversion</b><p>Subversion operations window."));
}
@@ -98,74 +98,74 @@ subversionPart::~subversionPart() {
}
void subversionPart::setupActions() {
- actionCommit = new KAction( i18n("&Commit to Repository..."), 0, this, SLOT(slotActionCommit()), actionCollection(), "subversion_commit" );
+ actionCommit = new KAction( i18n("&Commit to Repository..."), 0, this, TQT_SLOT(slotActionCommit()), actionCollection(), "subversion_commit" );
actionCommit->setToolTip( i18n("Commit file(s)") );
actionCommit->setWhatsThis( i18n("<b>Commit file(s)</b><p>Commits file to repository if modified.") );
- /* actionDiff = new KAction( i18n("&Difference Between Revisions"), 0, this, SLOT(slotActionDiff()),
+ /* actionDiff = new KAction( i18n("&Difference Between Revisions"), 0, this, TQT_SLOT(slotActionDiff()),
actionCollection(), "subversion_diff" );
actionDiff->setToolTip( i18n("Build difference") );
actionDiff->setWhatsThis( i18n("<b>Build difference</b><p>Builds difference between releases.") );
*/
- actionAdd = new KAction( i18n("&Add to Repository"), 0, this, SLOT(slotActionAdd()), actionCollection(), "subversion_add" );
+ actionAdd = new KAction( i18n("&Add to Repository"), 0, this, TQT_SLOT(slotActionAdd()), actionCollection(), "subversion_add" );
actionAdd->setToolTip( i18n("Add file to repository") );
actionAdd->setWhatsThis( i18n("<b>Add file to repository</b><p>Adds file to repository.") );
- actionLog = new KAction( i18n("Show logs..."), 0, this, SLOT(slotLog()), actionCollection(), "subversion_log" );
- actionBlame = new KAction( i18n("Blame..."), 0, this, SLOT(slotBlame()), actionCollection(), "subversion_blame");
+ actionLog = new KAction( i18n("Show logs..."), 0, this, TQT_SLOT(slotLog()), actionCollection(), "subversion_log" );
+ actionBlame = new KAction( i18n("Blame..."), 0, this, TQT_SLOT(slotBlame()), actionCollection(), "subversion_blame");
- actionRemove = new KAction( i18n("&Remove From Repository"), 0, this, SLOT(slotActionDel()), actionCollection(), "subversion_remove" );
+ actionRemove = new KAction( i18n("&Remove From Repository"), 0, this, TQT_SLOT(slotActionDel()), actionCollection(), "subversion_remove" );
actionRemove->setToolTip( i18n("Remove from repository") );
actionRemove->setWhatsThis( i18n("<b>Remove from repository</b><p>Removes file(s) from repository.") );
- actionUpdate = new KAction( i18n("&Update"), 0, this, SLOT(slotActionUpdate()), actionCollection(), "subversion_update" );
+ actionUpdate = new KAction( i18n("&Update"), 0, this, TQT_SLOT(slotActionUpdate()), actionCollection(), "subversion_update" );
actionUpdate->setToolTip( i18n("Update") );
actionUpdate->setWhatsThis( i18n("<b>Update</b><p>Updates file(s) from repository.") );
- actionDiffLocal = new KAction( i18n("&Diff to BASE"), 0, this, SLOT(slotActionDiffLocal()), actionCollection(), "subversion_diff_local" );
+ actionDiffLocal = new KAction( i18n("&Diff to BASE"), 0, this, TQT_SLOT(slotActionDiffLocal()), actionCollection(), "subversion_diff_local" );
actionDiffLocal->setToolTip( i18n("Diff to BASE") );
actionDiffLocal->setWhatsThis( i18n("<b>Diff to disk</b><p>Diff current file to the BASE checked out copy.") );
- actionDiffHead = new KAction( i18n("&Diff to HEAD"), 0, this, SLOT(slotActionDiffLocal()), actionCollection(), "subversion_diff_head" );
+ actionDiffHead = new KAction( i18n("&Diff to HEAD"), 0, this, TQT_SLOT(slotActionDiffLocal()), actionCollection(), "subversion_diff_head" );
actionDiffHead->setToolTip( i18n("Diff to HEAD") );
actionDiffHead->setWhatsThis( i18n("<b>Diff HEAD</b><p>Diff the current file to HEAD in svn.") );
- actionRevert = new KAction( i18n("&Revert"), 0, this, SLOT(slotActionRevert()), actionCollection(), "subversion_revert" );
+ actionRevert = new KAction( i18n("&Revert"), 0, this, TQT_SLOT(slotActionRevert()), actionCollection(), "subversion_revert" );
actionRevert->setToolTip( i18n("Revert") );
actionRevert->setWhatsThis( i18n("<b>Revert</b><p>Undo local changes.") );
/*
actionAddToIgnoreList = new KAction( i18n("&Ignore in Subversion Operations"), 0,
- this, SLOT(slotActionAddToIgnoreList()), actionCollection(), "subversion_ignore" );
+ this, TQT_SLOT(slotActionAddToIgnoreList()), actionCollection(), "subversion_ignore" );
actionAddToIgnoreList->setToolTip( i18n("Ignore in Subversion operations") );
actionAddToIgnoreList->setWhatsThis( i18n("<b>Ignore in Subversion operations</b><p>Ignores file(s).") );
actionRemoveFromIgnoreList = new KAction( i18n("Do &Not Ignore in Subversion Operations"), 0,
- this, SLOT(slotActionRemoveFromIgnoreList()), actionCollection(), "subversion_donot_ignore" );
+ this, TQT_SLOT(slotActionRemoveFromIgnoreList()), actionCollection(), "subversion_donot_ignore" );
actionRemoveFromIgnoreList->setToolTip( i18n("Do not ignore in Subversion operations") );
actionRemoveFromIgnoreList->setWhatsThis( i18n("<b>Do not ignore in Subversion operations</b><p>Do not ignore file(s).") );
*/
actionResolve = new KAction( i18n("Re&solve Conflicting State"), 0,
- this, SLOT(slotActionResolve()), actionCollection(), "subversion_resolve" );
+ this, TQT_SLOT(slotActionResolve()), actionCollection(), "subversion_resolve" );
actionResolve->setToolTip( i18n("Resolve the conflicting state of a file after a merge") );
actionResolve->setWhatsThis( i18n("<b>Resolve the conflicting state</b><p>Remove the conflict state that can be set on a file after a merge failed.") );
actionSwitch = new KAction( i18n("Switch this working copy to URL.."), 0,
- this, SLOT(slotSwitch()), actionCollection(), "subversion_switch" );
+ this, TQT_SLOT(slotSwitch()), actionCollection(), "subversion_switch" );
// warn slogCopy(), slotMerge only works on context menu. There is no main-menu action
actionCopy = new KAction( i18n("Copy this working copy to URL.."), 0,
- this, SLOT(slotCopy()), actionCollection(), "subversion_copy" );
+ this, TQT_SLOT(slotCopy()), actionCollection(), "subversion_copy" );
actionMerge = new KAction( i18n("Merge difference to working copy"), 0,
- this, SLOT(slotMerge()), actionCollection(), "subversion_merge" );
+ this, TQT_SLOT(slotMerge()), actionCollection(), "subversion_merge" );
}
-QWidget* subversionPart::newProjectWidget( QWidget* parent ) {
+TQWidget* subversionPart::newProjectWidget( TQWidget* parent ) {
if ( !m_projWidget )
m_projWidget = new subversionProjectWidget(parent,"projectwidget");
return m_projWidget;
}
-void subversionPart::createNewProject( const QString& dirname ) {
+void subversionPart::createNewProject( const TQString& dirname ) {
if ( !m_projWidget ) return;
m_impl->createNewProject( dirname, KURL( m_projWidget->importURL->url() ), m_projWidget->yes->isChecked() );
@@ -181,7 +181,7 @@ KDevVCSFileInfoProvider * subversionPart::fileInfoProvider() const {
return m_impl->fileInfoProvider();
}
-void subversionPart::contextMenu( QPopupMenu *popup, const Context *context ) {
+void subversionPart::contextMenu( TQPopupMenu *popup, const Context *context ) {
//no project, no subversion. Don't test on projectDirectory() here. If the user wants this project to have subversion support
//give it to him. e.g. for out of root subprojects like with qmake
if(!project())
@@ -213,48 +213,48 @@ if(!project())
if (context->hasType( Context::FileContext ))
popup->insertSeparator();
- int id = subMenu->insertItem( actionCommit->text(), this, SLOT(slotCommit()) );
+ int id = subMenu->insertItem( actionCommit->text(), this, TQT_SLOT(slotCommit()) );
// CvsService let to do log and diff operations only on one file (or directory) at time
/* if (m_urls.count() == 1)
{
- subMenu->insertItem( actionDiff->text(), this, SLOT(slotDiff()) );
- subMenu->insertItem( actionLog->text(), this, SLOT(slotLog()) );
+ subMenu->insertItem( actionDiff->text(), this, TQT_SLOT(slotDiff()) );
+ subMenu->insertItem( actionLog->text(), this, TQT_SLOT(slotLog()) );
}*/
subMenu->setWhatsThis(id, i18n("<b>Commit file(s)</b><p>Commits file to repository if modified."));
- id = subMenu->insertItem( actionAdd->text(), this, SLOT(slotAdd()) );
+ id = subMenu->insertItem( actionAdd->text(), this, TQT_SLOT(slotAdd()) );
subMenu->setWhatsThis(id, i18n("<b>Add file to repository</b><p>Adds file to repository."));
- id = subMenu->insertItem( actionRemove->text(), this, SLOT(slotDel()) );
+ id = subMenu->insertItem( actionRemove->text(), this, TQT_SLOT(slotDel()) );
subMenu->setWhatsThis(id, i18n("<b>Remove from repository</b><p>Removes file(s) from repository."));
- id = subMenu->insertItem( actionLog->text(), this, SLOT(slotLog()) );
+ id = subMenu->insertItem( actionLog->text(), this, TQT_SLOT(slotLog()) );
subMenu->setWhatsThis(id, i18n("<b>Show logs..</b><p>View Logs"));
- id = subMenu->insertItem( actionBlame->text(), this, SLOT(slotBlame()) );
+ id = subMenu->insertItem( actionBlame->text(), this, TQT_SLOT(slotBlame()) );
subMenu->setWhatsThis(id, i18n("<b>Blame 0:HEAD </b><p>Show Annotate"));
subMenu->insertSeparator();
- id = subMenu->insertItem( actionDiffLocal->text(), this, SLOT(slotDiffLocal()) );
+ id = subMenu->insertItem( actionDiffLocal->text(), this, TQT_SLOT(slotDiffLocal()) );
subMenu->setWhatsThis(id, i18n("<b>Diff</b><p>Diff file to local disk."));
- id = subMenu->insertItem( actionDiffHead->text(), this, SLOT(slotDiffHead()) );
+ id = subMenu->insertItem( actionDiffHead->text(), this, TQT_SLOT(slotDiffHead()) );
subMenu->setWhatsThis(id, i18n("<b>Diff</b><p>Diff file to repository."));
- id = subMenu->insertItem( actionUpdate->text(), this, SLOT(slotUpdate()) );
+ id = subMenu->insertItem( actionUpdate->text(), this, TQT_SLOT(slotUpdate()) );
subMenu->setWhatsThis(id, i18n("<b>Update</b><p>Updates file(s) from repository."));
- id = subMenu->insertItem( actionRevert->text(), this, SLOT(slotRevert()) );
+ id = subMenu->insertItem( actionRevert->text(), this, TQT_SLOT(slotRevert()) );
subMenu->setWhatsThis(id, i18n("<b>Revert</b><p>Undo local changes.") );
- id = subMenu->insertItem( actionResolve->text(), this, SLOT(slotResolve()) );
+ id = subMenu->insertItem( actionResolve->text(), this, TQT_SLOT(slotResolve()) );
subMenu->setWhatsThis(id, i18n("<b>Resolve</b><p>Resolve conflicting state.") );
- id = subMenu->insertItem( actionSwitch->text(), this, SLOT(slotSwitch()) );
+ id = subMenu->insertItem( actionSwitch->text(), this, TQT_SLOT(slotSwitch()) );
subMenu->setWhatsThis(id, i18n("<b>Switch</b><p>Switch working tree.") );
- id = subMenu->insertItem( actionCopy->text(), this, SLOT(slotCopy()) );
+ id = subMenu->insertItem( actionCopy->text(), this, TQT_SLOT(slotCopy()) );
subMenu->setWhatsThis(id, i18n("<b>Copy</b><p>Copy from/between path/URLs") );
- id = subMenu->insertItem( actionMerge->text(), this, SLOT(slotMerge()) );
+ id = subMenu->insertItem( actionMerge->text(), this, TQT_SLOT(slotMerge()) );
subMenu->setWhatsThis(id, i18n("<b>Merge</b><p>Merge difference to working copy") );
/*
subMenu->insertSeparator();
- id = subMenu->insertItem( actionAddToIgnoreList->text(), this, SLOT(slotAddToIgnoreList()) );
+ id = subMenu->insertItem( actionAddToIgnoreList->text(), this, TQT_SLOT(slotAddToIgnoreList()) );
subMenu->setWhatsThis(id, i18n("<b>Ignore in Subversion operations</b><p>Ignores file(s)."));
- id = subMenu->insertItem( actionRemoveFromIgnoreList->text(), this, SLOT(slotRemoveFromIgnoreList()) );
+ id = subMenu->insertItem( actionRemoveFromIgnoreList->text(), this, TQT_SLOT(slotRemoveFromIgnoreList()) );
subMenu->setWhatsThis(id, i18n("<b>Do not ignore in Subversion operations</b><p>Do not ignore file(s)."));
*/
// Now insert in parent menu
@@ -300,7 +300,7 @@ void subversionPart::slotResolve() {
void subversionPart::slotSwitch()
{
if( m_urls.count() > 1 ){
- KMessageBox::error( (QWidget*)project()->mainWindow()->main(),
+ KMessageBox::error( (TQWidget*)project()->mainWindow()->main(),
i18n("Please select only one item for subversion switch") );
return;
}
@@ -308,22 +308,22 @@ void subversionPart::slotSwitch()
// retrieve repository info from local-copy metadata which will be displayed in dialog box
KURL wcPath = m_urls.first();
- QMap< KURL, SvnGlobal::SvnInfoHolder> holderMap;
+ TQMap< KURL, SvnGlobal::SvnInfoHolder> holderMap;
SvnGlobal::SvnInfoHolder holder;
m_impl->clientInfo( wcPath, false, holderMap );
- QValueList< SvnGlobal::SvnInfoHolder > holderList = holderMap.values();
+ TQValueList< SvnGlobal::SvnInfoHolder > holderList = holderMap.values();
holder = holderList.first();
// invoke dialog box
- SvnSwitchDlg dlg( &holder, wcPath.path(), (QWidget*)project()->mainWindow()->main() );
+ SvnSwitchDlg dlg( &holder, wcPath.path(), (TQWidget*)project()->mainWindow()->main() );
- if( dlg.exec() != QDialog::Accepted ){
+ if( dlg.exec() != TQDialog::Accepted ){
return;
}
// check target url's validity
KURL repositUrl = KURL( dlg.destUrl() );
if( !repositUrl.isValid() ){
- KMessageBox::error( (QWidget*)project()->mainWindow()->main(),
+ KMessageBox::error( (TQWidget*)project()->mainWindow()->main(),
i18n("The destination URL is invalid") );
return;
}
@@ -333,7 +333,7 @@ void subversionPart::slotSwitch()
else if( dlg.relocation() )
m_impl->switchRelocate( wcPath, dlg.currentUrl(), repositUrl, dlg.recursive() );
else
- KMessageBox::error( (QWidget*)project()->mainWindow()->main(),
+ KMessageBox::error( (TQWidget*)project()->mainWindow()->main(),
i18n("Fail to conduct subversion switch. No action was selected") );
}
@@ -341,7 +341,7 @@ void subversionPart::slotCopy()
{
// error check
if( m_urls.count() > 1 ){
- KMessageBox::error( (QWidget*)project()->mainWindow()->main(),
+ KMessageBox::error( (TQWidget*)project()->mainWindow()->main(),
i18n("Please select only one item for subversion switch") );
return;
}
@@ -349,22 +349,22 @@ void subversionPart::slotCopy()
// retrieve repository info from local-copy metadata which will be displayed in dialog box
KURL wcPath = m_urls.first();
- QMap< KURL, SvnGlobal::SvnInfoHolder> holderMap;
+ TQMap< KURL, SvnGlobal::SvnInfoHolder> holderMap;
SvnGlobal::SvnInfoHolder holder;
m_impl->clientInfo( wcPath, false, holderMap );
- QValueList< SvnGlobal::SvnInfoHolder > holderList = holderMap.values();
+ TQValueList< SvnGlobal::SvnInfoHolder > holderList = holderMap.values();
holder = holderList.first();
// start input dialog
SvnCopyDialog dlg( wcPath.prettyURL(),
&holder,
- (QWidget*)project()->mainWindow()->main());
+ (TQWidget*)project()->mainWindow()->main());
- if( dlg.exec() != QDialog::Accepted )
+ if( dlg.exec() != TQDialog::Accepted )
return;
// retrieve user input
KURL srcUrl = dlg.sourceUrl();
int rev = dlg.revision();
- QString revKind = dlg.revKind();
+ TQString revKind = dlg.revKind();
KURL dest = dlg.destUrl();
kdDebug(9036) << " SRC: " << srcUrl << " DEST: " << dest << " Revnum: " << rev << " RevKind: " << revKind << endl;
@@ -376,15 +376,15 @@ void subversionPart::slotMerge()
{
// error check
if( m_urls.count() > 1 ){
- KMessageBox::error( (QWidget*)project()->mainWindow()->main(),
+ KMessageBox::error( (TQWidget*)project()->mainWindow()->main(),
i18n("Please select only one item for subversion merge") );
return;
}
if( m_urls.count() < 1 ) return;
KURL wcTarget= m_urls.first();
- SvnMergeDialog dlg( wcTarget, (QWidget*)project()->mainWindow()->main() );
- if( dlg.exec() != QDialog::Accepted ) return;
+ SvnMergeDialog dlg( wcTarget, (TQWidget*)project()->mainWindow()->main() );
+ if( dlg.exec() != TQDialog::Accepted ) return;
KURL src1 = dlg.source1();
SvnRevision rev1 = dlg.rev1();
@@ -444,7 +444,7 @@ void subversionPart::slotActionDiffHead() {
void subversionPart::slotCommit()
{
SVNFileSelectDlgCommit dialog( m_urls, this, 0 );
- if( dialog.exec() == QDialog::Accepted ){
+ if( dialog.exec() == TQDialog::Accepted ){
KURL::List tobeCommittedUrls = dialog.checkedUrls();
bool recursive = dialog.recursive();
bool keepLocks = dialog.keepLocks();
@@ -458,16 +458,16 @@ void subversionPart::slotAdd() {
void subversionPart::slotLog()
{
if (m_urls.count() > 1){
- KMessageBox::error( (QWidget*)project()->mainWindow()->main(),
+ KMessageBox::error( (TQWidget*)project()->mainWindow()->main(),
i18n("Please select only one item for subversion log") );
return;
}
SvnLogViewOptionDlg dlg;
if( dlg.exec() ){
int revstart = dlg.revstart();
- QString revkindstart = dlg.revKindStart();
+ TQString revkindstart = dlg.revKindStart();
int revend = dlg.revend();
- QString revkindend = dlg.revKindEnd();
+ TQString revkindend = dlg.revKindEnd();
bool strictNode = dlg.strictNode();
m_impl->svnLog (m_urls, revstart, revkindstart, revend, revkindend, true/*changedPath*/, strictNode);
} else{
@@ -477,12 +477,12 @@ void subversionPart::slotLog()
void subversionPart::slotBlame()
{
if (m_urls.count() > 1){
- KMessageBox::error( (QWidget*)project()->mainWindow()->main(),
+ KMessageBox::error( (TQWidget*)project()->mainWindow()->main(),
i18n("Please select only one item to see annotate") );
return;
}
if (m_urls.count() < 1){
- KMessageBox::error( (QWidget*)project()->mainWindow()->main(),
+ KMessageBox::error( (TQWidget*)project()->mainWindow()->main(),
i18n("Select file to see blame") );
return;
}
@@ -500,7 +500,7 @@ void subversionPart::slotDiffLocal() {
// m_impl->diff (m_urls, "BASE");
if( m_urls.count() < 1 ){
// Impossible to reach here but..
- KMessageBox::error( (QWidget*)project()->mainWindow()->main(),
+ KMessageBox::error( (TQWidget*)project()->mainWindow()->main(),
i18n("Select file or directory to see diff") );
return;
}
@@ -510,7 +510,7 @@ void subversionPart::slotDiffHead() {
// m_impl->diff (m_urls, "HEAD");
if( m_urls.count() < 1 ){
// Impossible to reach here but..
- KMessageBox::error( (QWidget*)project()->mainWindow()->main(),
+ KMessageBox::error( (TQWidget*)project()->mainWindow()->main(),
i18n("Select file or directory to see diff") );
return;
}
@@ -529,41 +529,41 @@ void subversionPart::slotProjectOpened() {
} */
//loadOptions();
/// \FIXME slots
- //connect( project(), SIGNAL(addedFilesToProject(const QStringList&)), this, SLOT(slotAddFilesToProject(const QStringList &)) );
- //connect( project(), SIGNAL(removedFilesFromProject(const QStringList&)), this, SLOT(slotRemovedFilesFromProject(const QStringList &)) );
+ //connect( project(), TQT_SIGNAL(addedFilesToProject(const TQStringList&)), this, TQT_SLOT(slotAddFilesToProject(const TQStringList &)) );
+ //connect( project(), TQT_SIGNAL(removedFilesFromProject(const TQStringList&)), this, TQT_SLOT(slotRemovedFilesFromProject(const TQStringList &)) );
}
void subversionPart::slotProjectClosed() {
kdDebug(9036) << "subversion :projectClosed" << endl;
//saveOptions();
/// \FIXME slots
- //disconnect( project(), SIGNAL(addedFilesToProject(const QStringList&)), this, SLOT(slotAddFilesToProject(const QStringList &)) );
- //disconnect( project(), SIGNAL(removedFilesFromProject(const QStringList&)), this, SLOT(slotRemovedFilesFromProject(const QStringList &)) );
+ //disconnect( project(), TQT_SIGNAL(addedFilesToProject(const TQStringList&)), this, TQT_SLOT(slotAddFilesToProject(const TQStringList &)) );
+ //disconnect( project(), TQT_SIGNAL(removedFilesFromProject(const TQStringList&)), this, TQT_SLOT(slotRemovedFilesFromProject(const TQStringList &)) );
}
-void subversionPart::savePartialProjectSession(QDomElement* dom) {
+void subversionPart::savePartialProjectSession(TQDomElement* dom) {
kdDebug(9036) << "subversion : savePartialProjectSession" << endl;
- QDomDocument doc = dom->ownerDocument();
- QDomElement svn = doc.createElement( "subversion" );
+ TQDomDocument doc = dom->ownerDocument();
+ TQDomElement svn = doc.createElement( "subversion" );
svn.setAttribute( "base", base.url() );
dom->appendChild( svn );
}
-void subversionPart::restorePartialProjectSession(const QDomElement* dom) {
+void subversionPart::restorePartialProjectSession(const TQDomElement* dom) {
kdDebug(9036) << "subversion : restorePartialProjectSession" << endl;
- QDomElement svn = dom->namedItem("subversion").toElement();
+ TQDomElement svn = dom->namedItem("subversion").toElement();
base = svn.attribute( "base", "" );
}
-bool subversionPart::isValidDirectory( const QString &dirPath) const {
- QString svn = "/.svn/";
- QDir svndir( dirPath + svn );
- QString entriesFileName = dirPath + svn + "entries";
+bool subversionPart::isValidDirectory( const TQString &dirPath) const {
+ TQString svn = "/.svn/";
+ TQDir svndir( dirPath + svn );
+ TQString entriesFileName = dirPath + svn + "entries";
kdDebug(9036) << "dirpath " << dirPath+"/.svn/" << " exists:" << svndir.exists() << endl;
- kdDebug(9036) << "entries " << entriesFileName << " exists:" << QFile::exists( entriesFileName ) << endl;
+ kdDebug(9036) << "entries " << entriesFileName << " exists:" << TQFile::exists( entriesFileName ) << endl;
return svndir.exists() &&
- QFile::exists( entriesFileName );
+ TQFile::exists( entriesFileName );
}
#include "subversion_part.moc"