summaryrefslogtreecommitdiffstats
path: root/kate/app/katemwmodonhddialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kate/app/katemwmodonhddialog.cpp')
-rw-r--r--kate/app/katemwmodonhddialog.cpp24
1 files changed, 11 insertions, 13 deletions
diff --git a/kate/app/katemwmodonhddialog.cpp b/kate/app/katemwmodonhddialog.cpp
index 508e0aadc..978095010 100644
--- a/kate/app/katemwmodonhddialog.cpp
+++ b/kate/app/katemwmodonhddialog.cpp
@@ -28,7 +28,7 @@
#include <tdelistview.h>
#include <tdelocale.h>
#include <tdemessagebox.h>
-#include <kprocio.h>
+#include <tdeprocio.h>
#include <krun.h>
#include <tdetempfile.h>
#include <kpushbutton.h>
@@ -44,7 +44,7 @@ class KateDocItem : public TQCheckListItem
{
public:
KateDocItem( Kate::Document *doc, const TQString &status, TDEListView *lv )
- : TQCheckListItem( lv, doc->url().prettyURL(), CheckBox ),
+ : TQCheckListItem( lv, doc->url().pathOrURL(), CheckBox ),
document( doc )
{
setText( 1, status );
@@ -99,7 +99,7 @@ KateMwModOnHdDialog::KateMwModOnHdDialog( DocVector docs, TQWidget *parent, cons
for ( uint i=0; i < docs.size(); i++ )
new KateDocItem( docs[i], l[ (uint)KateDocManager::self()->documentInfo( docs[i] )->modifiedOnDiscReason ], lvDocuments );
- connect( lvDocuments, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotSelectionChanged()) );
+ connect( lvDocuments, TQ_SIGNAL(selectionChanged()), this, TQ_SLOT(slotSelectionChanged()) );
// diff button
TQHBox *lo2 = new TQHBox ( w );
@@ -111,7 +111,7 @@ KateMwModOnHdDialog::KateMwModOnHdDialog( DocVector docs, TQWidget *parent, cons
"Calculates the difference between the the editor contents and the disk "
"file for the selected document, and shows the difference with the "
"default application. Requires diff(1).") );
- connect( btnDiff, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDiff()) );
+ connect( btnDiff, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotDiff()) );
slotSelectionChanged();
m_tmpfile = 0;
@@ -143,12 +143,12 @@ void KateMwModOnHdDialog::handleSelected( int action )
for ( TQListViewItemIterator it ( lvDocuments ); it.current(); ++it )
{
KateDocItem *item = static_cast<KateDocItem *>(it.current());
-
+
if ( item->isOn() )
{
int reason = (int)KateDocManager::self()->documentInfo( item->document )->modifiedOnDiscReason;
bool succes = true;
-
+
Kate::DocumentExt *dext = documentExt( item->document );
if ( ! dext ) continue;
@@ -161,7 +161,7 @@ void KateMwModOnHdDialog::handleSelected( int action )
{
KMessageBox::sorry( this,
i18n("Could not save the document \n'%1'").
- arg( item->document->url().prettyURL() ) );
+ arg( item->document->url().pathOrURL() ) );
}
break;
@@ -213,11 +213,11 @@ void KateMwModOnHdDialog::slotDiff()
return;
// Start a TDEProcess that creates a diff
- KProcIO *p = new KProcIO();
+ TDEProcIO *p = new TDEProcIO();
p->setComm( TDEProcess::All );
*p << "diff" << "-u" << "-" << doc->url().path();
- connect( p, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotPDone(TDEProcess*)) );
- connect( p, TQT_SIGNAL(readReady(KProcIO*)), this, TQT_SLOT(slotPRead(KProcIO*)) );
+ connect( p, TQ_SIGNAL(processExited(TDEProcess*)), this, TQ_SLOT(slotPDone(TDEProcess*)) );
+ connect( p, TQ_SIGNAL(readReady(TDEProcIO*)), this, TQ_SLOT(slotPRead(TDEProcIO*)) );
setCursor( WaitCursor );
@@ -230,7 +230,7 @@ void KateMwModOnHdDialog::slotDiff()
p->closeWhenDone();
}
-void KateMwModOnHdDialog::slotPRead( KProcIO *p)
+void KateMwModOnHdDialog::slotPRead( TDEProcIO *p)
{
// create a file for the diff if we haven't one allready
if ( ! m_tmpfile )
@@ -277,5 +277,3 @@ void KateMwModOnHdDialog::slotPDone( TDEProcess *p )
delete m_tmpfile;
m_tmpfile = 0;
}
-
-// kate: space-indent on; indent-width 2; replace-tabs on;