Revert "Rename a number of old tq methods that are no longer tq specific"

This reverts commit f3372e7bea.
pull/1/head
Timothy Pearson 13 years ago
parent f3372e7bea
commit 303e108109

@ -101,17 +101,17 @@ KDiff3Plugin::KDiff3Plugin( KonqPopupMenu* pPopupmenu, const char *name, const T
if(m_list.count() == 1) if(m_list.count() == 1)
{ {
int historyCount = s_pHistory ? s_pHistory->count() : 0; int historyCount = s_pHistory ? s_pHistory->count() : 0;
s = i18n("Compare with %1").arg( historyCount>0 ? s_pHistory->front() : TQString() ); s = i18n("Compare with %1").tqarg( historyCount>0 ? s_pHistory->front() : TQString() );
pAction = new KAction ( s,0, this, TQT_SLOT(slotCompareWith()), actionCollection()); pAction = new KAction ( s,0, this, TQT_SLOT(slotCompareWith()), actionCollection());
pAction->setEnabled( m_list.count()>0 && historyCount>0 ); pAction->setEnabled( m_list.count()>0 && historyCount>0 );
pActionMenu->insert (pAction); pActionMenu->insert (pAction);
s = i18n("Merge with %1").arg( historyCount>0 ? s_pHistory->front() : TQString() ); s = i18n("Merge with %1").tqarg( historyCount>0 ? s_pHistory->front() : TQString() );
pAction = new KAction( s, 0, this, TQT_SLOT(slotMergeWith()), actionCollection()); pAction = new KAction( s, 0, this, TQT_SLOT(slotMergeWith()), actionCollection());
pAction->setEnabled( m_list.count()>0 && historyCount>0 ); pAction->setEnabled( m_list.count()>0 && historyCount>0 );
pActionMenu->insert (pAction); pActionMenu->insert (pAction);
s = i18n("Save '%1' for later").arg( ( m_list.front() ) ); s = i18n("Save '%1' for later").tqarg( ( m_list.front() ) );
pAction = new KAction ( s, 0, this, TQT_SLOT(slotSaveForLater()), actionCollection()); pAction = new KAction ( s, 0, this, TQT_SLOT(slotSaveForLater()), actionCollection());
pAction->setEnabled( m_list.count()>0 ); pAction->setEnabled( m_list.count()>0 );
pActionMenu->insert(pAction); pActionMenu->insert(pAction);

@ -25,7 +25,7 @@
#include <tqsize.h> #include <tqsize.h>
#include <tqpoint.h> #include <tqpoint.h>
#include <tqstringlist.h> #include <tqstringlist.h>
#include <textstream.h> #include <tqtextstream.h>
ValueMap::ValueMap() ValueMap::ValueMap()
{ {

@ -27,7 +27,7 @@
#include <klocale.h> #include <klocale.h>
#include <tqfileinfo.h> #include <tqfileinfo.h>
#include <tqdir.h> #include <tqdir.h>
#include <textcodec.h> #include <tqtextcodec.h>
#include <map> #include <map>
#include <assert.h> #include <assert.h>
@ -492,7 +492,7 @@ void SourceData::readAndPreprocess( TQTextCodec* pEncoding, bool bAutoDetectUnic
KMessageBox::error(m_pOptionDialog, KMessageBox::error(m_pOptionDialog,
i18n("Preprocessing possibly failed. Check this command:\n\n %1" i18n("Preprocessing possibly failed. Check this command:\n\n %1"
"\n\nThe preprocessing command will be disabled now." "\n\nThe preprocessing command will be disabled now."
).arg(cmd) ); ).tqarg(cmd) );
m_pOptionDialog->m_PreProcessorCmd = ""; m_pOptionDialog->m_PreProcessorCmd = "";
m_normalData.readFile( fileNameIn1 ); m_normalData.readFile( fileNameIn1 );
pEncoding1 = m_pEncoding; pEncoding1 = m_pEncoding;
@ -527,7 +527,7 @@ void SourceData::readAndPreprocess( TQTextCodec* pEncoding, bool bAutoDetectUnic
KMessageBox::error(m_pOptionDialog, KMessageBox::error(m_pOptionDialog,
i18n("The line-matching-preprocessing possibly failed. Check this command:\n\n %1" i18n("The line-matching-preprocessing possibly failed. Check this command:\n\n %1"
"\n\nThe line-matching-preprocessing command will be disabled now." "\n\nThe line-matching-preprocessing command will be disabled now."
).arg(cmd) ); ).tqarg(cmd) );
m_pOptionDialog->m_LineMatchingPreProcessorCmd = ""; m_pOptionDialog->m_LineMatchingPreProcessorCmd = "";
m_lmppData.readFile( fileNameIn2 ); m_lmppData.readFile( fileNameIn2 );
} }
@ -557,7 +557,7 @@ void SourceData::readAndPreprocess( TQTextCodec* pEncoding, bool bAutoDetectUnic
m_lmppData.m_v.resize( m_normalData.m_vSize ); m_lmppData.m_v.resize( m_normalData.m_vSize );
for(int i=m_lmppData.m_vSize; i<m_normalData.m_vSize; ++i ) for(int i=m_lmppData.m_vSize; i<m_normalData.m_vSize; ++i )
{ // Set all empty lines to point to the end of the buffer. { // Set all empty lines to point to the end of the buffer.
m_lmppData.m_v[i].pLine = m_lmppData.m_unicodeBuf.unicode()+m_lmppData.m_unicodeBuf.length(); m_lmppData.m_v[i].pLine = m_lmppData.m_tqunicodeBuf.tqunicode()+m_lmppData.m_tqunicodeBuf.length();
} }
m_lmppData.m_vSize = m_normalData.m_vSize; m_lmppData.m_vSize = m_normalData.m_vSize;
@ -567,8 +567,8 @@ void SourceData::readAndPreprocess( TQTextCodec* pEncoding, bool bAutoDetectUnic
if ( m_pOptionDialog->m_bIgnoreCase ) if ( m_pOptionDialog->m_bIgnoreCase )
{ {
int i; int i;
TQChar* pBuf = const_cast<TQChar*>(m_lmppData.m_unicodeBuf.unicode()); TQChar* pBuf = const_cast<TQChar*>(m_lmppData.m_tqunicodeBuf.tqunicode());
int ucSize = m_lmppData.m_unicodeBuf.length(); int ucSize = m_lmppData.m_tqunicodeBuf.length();
for(i=0; i<ucSize; ++i) for(i=0; i<ucSize; ++i)
{ {
pBuf[i] = pBuf[i].upper(); pBuf[i] = pBuf[i].upper();
@ -604,7 +604,7 @@ void SourceData::readAndPreprocess( TQTextCodec* pEncoding, bool bAutoDetectUnic
/** Prepare the linedata vector for every input line.*/ /** Prepare the linedata vector for every input line.*/
void SourceData::FileData::preprocess( bool bPreserveCR, TQTextCodec* pEncoding ) void SourceData::FileData::preprocess( bool bPreserveCR, TQTextCodec* pEncoding )
{ {
//m_unicodeBuf = decodeString( m_pBuf, m_size, eEncoding ); //m_tqunicodeBuf = decodeString( m_pBuf, m_size, eEncoding );
long skipBytes = 0; long skipBytes = 0;
TQTextCodec* pCodec = ::detectEncoding( m_pBuf, m_size, skipBytes ); TQTextCodec* pCodec = ::detectEncoding( m_pBuf, m_size, skipBytes );
@ -616,11 +616,11 @@ void SourceData::FileData::preprocess( bool bPreserveCR, TQTextCodec* pEncoding
TQTextStream ts( ba, IO_ReadOnly ); TQTextStream ts( ba, IO_ReadOnly );
ts.setCodec( pEncoding); ts.setCodec( pEncoding);
//ts.setAutoDetectUnicode( false ); //ts.setAutoDetectUnicode( false );
m_unicodeBuf = ts.read(); m_tqunicodeBuf = ts.read();
ba.resetRawData( m_pBuf+skipBytes, m_size-skipBytes ); ba.resetRawData( m_pBuf+skipBytes, m_size-skipBytes );
int ucSize = m_unicodeBuf.length(); int ucSize = m_tqunicodeBuf.length();
const TQChar* p = m_unicodeBuf.unicode(); const TQChar* p = m_tqunicodeBuf.tqunicode();
m_bIsText = true; m_bIsText = true;
int lines = 1; int lines = 1;
@ -770,9 +770,9 @@ static void checkLineForComments(
void SourceData::FileData::removeComments() void SourceData::FileData::removeComments()
{ {
int line=0; int line=0;
TQChar* p = const_cast<TQChar*>(m_unicodeBuf.unicode()); TQChar* p = const_cast<TQChar*>(m_tqunicodeBuf.tqunicode());
bool bWithinComment=false; bool bWithinComment=false;
int size = m_unicodeBuf.length(); int size = m_tqunicodeBuf.length();
for(int i=0; i<size; ++i ) for(int i=0; i<size; ++i )
{ {
// std::cout << "2 " << std::string(&p[i], m_v[line].size) << std::endl; // std::cout << "2 " << std::string(&p[i], m_v[line].size) << std::endl;
@ -1190,7 +1190,7 @@ void correctManualDiffAlignment( Diff3LineList& d3ll, ManualDiffHelpList* pManua
if ( pManualDiffHelpList->empty() ) if ( pManualDiffHelpList->empty() )
return; return;
// If a line appears unaligned in comparison to the manual alignment, correct this. // If a line appears unaligned in comparison to the manual tqalignment, correct this.
ManualDiffHelpList::iterator iMDHL; ManualDiffHelpList::iterator iMDHL;
for( iMDHL = pManualDiffHelpList->begin(); iMDHL != pManualDiffHelpList->end(); ++iMDHL ) for( iMDHL = pManualDiffHelpList->begin(); iMDHL != pManualDiffHelpList->end(); ++iMDHL )
@ -1228,7 +1228,7 @@ void correctManualDiffAlignment( Diff3LineList& d3ll, ManualDiffHelpList* pManua
if (wi>=1 && wi <= 3) if (wi>=1 && wi <= 3)
{ {
// Found manual alignment for one source // Found manual tqalignment for one source
Diff3LineList::iterator iDest = i3; Diff3LineList::iterator iDest = i3;
// Move lines up until the next firstLine is found. Omit wi from move and search. // Move lines up until the next firstLine is found. Omit wi from move and search.

@ -22,7 +22,7 @@
#include <tqpixmap.h> #include <tqpixmap.h>
#include <tqtimer.h> #include <tqtimer.h>
#include <tqframe.h> #include <tqframe.h>
#include <textstream.h> #include <tqtextstream.h>
#include <tqpainter.h> #include <tqpainter.h>
#include <list> #include <list>
#include <vector> #include <vector>
@ -169,10 +169,10 @@ public:
typedef std::vector<Diff3WrapLine> Diff3WrapLineVector; typedef std::vector<Diff3WrapLine> Diff3WrapLineVector;
class TotalDiffStatus class TotalDifftqStatus
{ {
public: public:
TotalDiffStatus(){ reset(); } TotalDifftqStatus(){ reset(); }
void reset() {bBinaryAEqC=false; bBinaryBEqC=false; bBinaryAEqB=false; void reset() {bBinaryAEqC=false; bBinaryBEqC=false; bBinaryAEqB=false;
bTextAEqC=false; bTextBEqC=false; bTextAEqB=false; bTextAEqC=false; bTextBEqC=false; bTextAEqB=false;
nofUnsolvedConflicts=0; nofSolvedConflicts=0; nofUnsolvedConflicts=0; nofSolvedConflicts=0;
@ -293,7 +293,7 @@ private:
const char* m_pBuf; const char* m_pBuf;
int m_size; int m_size;
int m_vSize; // Nr of lines in m_pBuf1 and size of m_v1, m_dv12 and m_dv13 int m_vSize; // Nr of lines in m_pBuf1 and size of m_v1, m_dv12 and m_dv13
TQString m_unicodeBuf; TQString m_tqunicodeBuf;
std::vector<LineData> m_v; std::vector<LineData> m_v;
bool m_bIsText; bool m_bIsText;
bool readFile( const TQString& filename ); bool readFile( const TQString& filename );

@ -28,8 +28,8 @@
#include <tqlineedit.h> #include <tqlineedit.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <layout.h> #include <tqlayout.h>
#include <textcodec.h> #include <tqtextcodec.h>
#include <optiondialog.h> #include <optiondialog.h>
#include <math.h> #include <math.h>
#include <cstdlib> #include <cstdlib>
@ -860,9 +860,9 @@ void DiffTextWindowData::writeLine(
else else
{ {
p.fillRect( xOffset + fontWidth*outPos, yOffset, p.fillRect( xOffset + fontWidth*outPos, yOffset,
fontWidth*(spaces), fontHeight, m_pDiffTextWindow->colorGroup().highlight() ); fontWidth*(spaces), fontHeight, m_pDiffTextWindow->tqcolorGroup().highlight() );
p.setPen( m_pDiffTextWindow->colorGroup().highlightedText() ); p.setPen( m_pDiffTextWindow->tqcolorGroup().highlightedText() );
p.drawText( xOffset + fontWidth*outPos, yOffset + fontAscent, s ); p.drawText( xOffset + fontWidth*outPos, yOffset + fontAscent, s );
m_selection.bSelectionContainsData = true; m_selection.bSelectionContainsData = true;
@ -875,7 +875,7 @@ void DiffTextWindowData::writeLine(
if( m_selection.lineWithin( line ) && m_selection.lineWithin( line+1 ) ) if( m_selection.lineWithin( line ) && m_selection.lineWithin( line+1 ) )
{ {
p.fillRect( xOffset + fontWidth*outPos, yOffset, p.fillRect( xOffset + fontWidth*outPos, yOffset,
deviceWidth, fontHeight, m_pDiffTextWindow->colorGroup().highlight() ); deviceWidth, fontHeight, m_pDiffTextWindow->tqcolorGroup().highlight() );
} }
} }
@ -1656,7 +1656,7 @@ void DiffTextWindowFrame::setFirstLine( int firstLine )
s += " " + TQString::number( l+1 ); s += " " + TQString::number( l+1 );
d->m_pTopLine->setText( s ); d->m_pTopLine->setText( s );
d->m_pTopLine->repaint(); d->m_pTopLine->tqrepaint();
} }
} }

@ -28,11 +28,11 @@
#include <kaction.h> #include <kaction.h>
#include <tqregexp.h> #include <tqregexp.h>
#include <tqmessagebox.h> #include <tqmessagebox.h>
#include <layout.h> #include <tqlayout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqtable.h> #include <tqtable.h>
#include <tqsplitter.h> #include <tqsplitter.h>
#include <textedit.h> #include <tqtextedit.h>
#include <tqprogressdialog.h> #include <tqprogressdialog.h>
#include <kmessagebox.h> #include <kmessagebox.h>
#include <kfiledialog.h> #include <kfiledialog.h>
@ -187,13 +187,13 @@ void DirectoryMergeWindow::fastFileComparison(
TempRemover tr1( fileName1, fi1 ); TempRemover tr1( fileName1, fi1 );
if ( !tr1.success() ) if ( !tr1.success() )
{ {
status = i18n("Creating temp copy of %1 failed.").arg(fileName1); status = i18n("Creating temp copy of %1 failed.").tqarg(fileName1);
return; return;
} }
TempRemover tr2( fileName2, fi2 ); TempRemover tr2( fileName2, fi2 );
if ( !tr2.success() ) if ( !tr2.success() )
{ {
status = i18n("Creating temp copy of %1 failed.").arg(fileName2); status = i18n("Creating temp copy of %1 failed.").tqarg(fileName2);
return; return;
} }
@ -204,7 +204,7 @@ void DirectoryMergeWindow::fastFileComparison(
if ( ! file1.open(IO_ReadOnly) ) if ( ! file1.open(IO_ReadOnly) )
{ {
status = i18n("Opening %1 failed.").arg(fileName1); status = i18n("Opening %1 failed.").tqarg(fileName1);
return; return;
} }
@ -212,7 +212,7 @@ void DirectoryMergeWindow::fastFileComparison(
if ( ! file2.open(IO_ReadOnly) ) if ( ! file2.open(IO_ReadOnly) )
{ {
status = i18n("Opening %1 failed.").arg(fileName2); status = i18n("Opening %1 failed.").tqarg(fileName2);
return; return;
} }
@ -230,13 +230,13 @@ void DirectoryMergeWindow::fastFileComparison(
int len = min2( sizeLeft, (t_FileSize)buf1.size() ); int len = min2( sizeLeft, (t_FileSize)buf1.size() );
if( len != file1.readBlock( &buf1[0], len ) ) if( len != file1.readBlock( &buf1[0], len ) )
{ {
status = i18n("Error reading from %1").arg(fileName1); status = i18n("Error reading from %1").tqarg(fileName1);
return; return;
} }
if( len != file2.readBlock( &buf2[0], len ) ) if( len != file2.readBlock( &buf2[0], len ) )
{ {
status = i18n("Error reading from %1").arg(fileName2); status = i18n("Error reading from %1").tqarg(fileName2);
return; return;
} }
@ -387,7 +387,7 @@ static TQPixmap pixCombiner2( const TQPixmap* pm1, const TQPixmap* pm2 )
return pix; return pix;
} }
static void calcDirStatus( bool bThreeDirs, DirMergeItem* i, int& nofFiles, static void calcDirtqStatus( bool bThreeDirs, DirMergeItem* i, int& nofFiles,
int& nofDirs, int& nofEqualFiles, int& nofManualMerges ) int& nofDirs, int& nofEqualFiles, int& nofManualMerges )
{ {
if ( i->m_pMFI->m_bDirA || i->m_pMFI->m_bDirB || i->m_pMFI->m_bDirC ) if ( i->m_pMFI->m_bDirA || i->m_pMFI->m_bDirB || i->m_pMFI->m_bDirC )
@ -408,7 +408,7 @@ static void calcDirStatus( bool bThreeDirs, DirMergeItem* i, int& nofFiles,
} }
} }
for( TQListViewItem* p = i->firstChild(); p!=0; p = p->nextSibling() ) for( TQListViewItem* p = i->firstChild(); p!=0; p = p->nextSibling() )
calcDirStatus( bThreeDirs, static_cast<DirMergeItem*>(p), nofFiles, nofDirs, nofEqualFiles, nofManualMerges ); calcDirtqStatus( bThreeDirs, static_cast<DirMergeItem*>(p), nofFiles, nofDirs, nofEqualFiles, nofManualMerges );
} }
static TQString sortString(const TQString& s, bool bCaseSensitive) static TQString sortString(const TQString& s, bool bCaseSensitive)
@ -507,13 +507,13 @@ bool DirectoryMergeWindow::init
TQString text( i18n("Opening of directories failed:") ); TQString text( i18n("Opening of directories failed:") );
text += "\n\n"; text += "\n\n";
if ( !dirA.isDir() ) if ( !dirA.isDir() )
{ text += i18n("Dir A \"%1\" does not exist or is not a directory.\n").arg(m_dirA.prettyAbsPath()); } { text += i18n("Dir A \"%1\" does not exist or is not a directory.\n").tqarg(m_dirA.prettyAbsPath()); }
if ( !dirB.isDir() ) if ( !dirB.isDir() )
{ text += i18n("Dir B \"%1\" does not exist or is not a directory.\n").arg(m_dirB.prettyAbsPath()); } { text += i18n("Dir B \"%1\" does not exist or is not a directory.\n").tqarg(m_dirB.prettyAbsPath()); }
if ( m_dirC.isValid() && !m_dirC.isDir() ) if ( m_dirC.isValid() && !m_dirC.isDir() )
{ text += i18n("Dir C \"%1\" does not exist or is not a directory.\n").arg(m_dirC.prettyAbsPath()); } { text += i18n("Dir C \"%1\" does not exist or is not a directory.\n").tqarg(m_dirC.prettyAbsPath()); }
KMessageBox::sorry( this, text, i18n("Directory Open Error") ); KMessageBox::sorry( this, text, i18n("Directory Open Error") );
return false; return false;
@ -698,7 +698,7 @@ bool DirectoryMergeWindow::init
int nofEqualFiles=0; int nofEqualFiles=0;
int nofManualMerges=0; int nofManualMerges=0;
for( TQListViewItem* p = firstChild(); p!=0; p = p->nextSibling() ) for( TQListViewItem* p = firstChild(); p!=0; p = p->nextSibling() )
calcDirStatus( m_dirC.isValid(), static_cast<DirMergeItem*>(p), calcDirtqStatus( m_dirC.isValid(), static_cast<DirMergeItem*>(p),
nofFiles, nofDirs, nofEqualFiles, nofManualMerges ); nofFiles, nofDirs, nofEqualFiles, nofManualMerges );
TQString s; TQString s;
@ -915,10 +915,10 @@ void DirectoryMergeWindow::compareFilesAndCalcAges( MergeFileInfos& mfi )
mfi.m_bExistsInB ? mfi.m_fileInfoB.absFilePath() : TQString(""), mfi.m_bExistsInB ? mfi.m_fileInfoB.absFilePath() : TQString(""),
mfi.m_bExistsInC ? mfi.m_fileInfoC.absFilePath() : TQString(""), mfi.m_bExistsInC ? mfi.m_fileInfoC.absFilePath() : TQString(""),
"", "",
"","","",&mfi.m_totalDiffStatus "","","",&mfi.m_totalDifftqStatus
); );
int nofNonwhiteConflicts = mfi.m_totalDiffStatus.nofUnsolvedConflicts + int nofNonwhiteConflicts = mfi.m_totalDifftqStatus.nofUnsolvedConflicts +
mfi.m_totalDiffStatus.nofSolvedConflicts - mfi.m_totalDiffStatus.nofWhitespaceConflicts; mfi.m_totalDifftqStatus.nofSolvedConflicts - mfi.m_totalDifftqStatus.nofWhitespaceConflicts;
if (m_pOptions->m_bDmWhiteSpaceEqual && nofNonwhiteConflicts == 0) if (m_pOptions->m_bDmWhiteSpaceEqual && nofNonwhiteConflicts == 0)
{ {
@ -928,25 +928,25 @@ void DirectoryMergeWindow::compareFilesAndCalcAges( MergeFileInfos& mfi )
} }
else else
{ {
mfi.m_bEqualAB = mfi.m_totalDiffStatus.bBinaryAEqB; mfi.m_bEqualAB = mfi.m_totalDifftqStatus.bBinaryAEqB;
mfi.m_bEqualBC = mfi.m_totalDiffStatus.bBinaryBEqC; mfi.m_bEqualBC = mfi.m_totalDifftqStatus.bBinaryBEqC;
mfi.m_bEqualAC = mfi.m_totalDiffStatus.bBinaryAEqC; mfi.m_bEqualAC = mfi.m_totalDifftqStatus.bBinaryAEqC;
} }
} }
} }
else else
{ {
bool bError; bool bError;
TQString eqStatus; TQString eqtqStatus;
if( mfi.m_bExistsInA && mfi.m_bExistsInB ) if( mfi.m_bExistsInA && mfi.m_bExistsInB )
{ {
if( mfi.m_bDirA ) mfi.m_bEqualAB=true; if( mfi.m_bDirA ) mfi.m_bEqualAB=true;
else fastFileComparison( mfi.m_fileInfoA, mfi.m_fileInfoB, mfi.m_bEqualAB, bError, eqStatus ); else fastFileComparison( mfi.m_fileInfoA, mfi.m_fileInfoB, mfi.m_bEqualAB, bError, eqtqStatus );
} }
if( mfi.m_bExistsInA && mfi.m_bExistsInC ) if( mfi.m_bExistsInA && mfi.m_bExistsInC )
{ {
if( mfi.m_bDirA ) mfi.m_bEqualAC=true; if( mfi.m_bDirA ) mfi.m_bEqualAC=true;
else fastFileComparison( mfi.m_fileInfoA, mfi.m_fileInfoC, mfi.m_bEqualAC, bError, eqStatus ); else fastFileComparison( mfi.m_fileInfoA, mfi.m_fileInfoC, mfi.m_bEqualAC, bError, eqtqStatus );
} }
if( mfi.m_bExistsInB && mfi.m_bExistsInC ) if( mfi.m_bExistsInB && mfi.m_bExistsInC )
{ {
@ -955,7 +955,7 @@ void DirectoryMergeWindow::compareFilesAndCalcAges( MergeFileInfos& mfi )
else else
{ {
if( mfi.m_bDirB ) mfi.m_bEqualBC=true; if( mfi.m_bDirB ) mfi.m_bEqualBC=true;
else fastFileComparison( mfi.m_fileInfoB, mfi.m_fileInfoC, mfi.m_bEqualBC, bError, eqStatus ); else fastFileComparison( mfi.m_fileInfoB, mfi.m_fileInfoC, mfi.m_bEqualBC, bError, eqtqStatus );
} }
} }
} }
@ -1723,7 +1723,7 @@ void DirMergeItem::init(MergeFileInfos* pMFI)
{ {
pMFI->m_pDMI = this; pMFI->m_pDMI = this;
m_pMFI = pMFI; m_pMFI = pMFI;
TotalDiffStatus& tds = pMFI->m_totalDiffStatus; TotalDifftqStatus& tds = pMFI->m_totalDifftqStatus;
if ( m_pMFI->m_bDirA || m_pMFI->m_bDirB || m_pMFI->m_bDirC ) if ( m_pMFI->m_bDirA || m_pMFI->m_bDirB || m_pMFI->m_bDirC )
{ {
} }
@ -2138,7 +2138,7 @@ void DirectoryMergeWindow::slotRunOperationForCurrentItem()
if ( m_mergeItemList.empty() ) if ( m_mergeItemList.empty() )
{ {
TQListViewItem* pBegin = currentItem(); TQListViewItem* pBegin = currentItem();
TQListViewItem* pEnd = treeIterator(pBegin,false,false); // find next visible sibling (no children) TQListViewItem* pEnd = treeIterator(pBegin,false,false); // find next visible sibling (no tqchildren)
prepareMergeStart( pBegin, pEnd, bVerbose ); prepareMergeStart( pBegin, pEnd, bVerbose );
mergeContinue(true, bVerbose); mergeContinue(true, bVerbose);
@ -2411,16 +2411,16 @@ bool DirectoryMergeWindow::deleteFLD( const TQString& name, bool bCreateBackup )
bool bSuccess = renameFLD( name, name+".orig" ); bool bSuccess = renameFLD( name, name+".orig" );
if (!bSuccess) if (!bSuccess)
{ {
m_pStatusInfo->addText( i18n("Error: While deleting %1: Creating backup failed.").arg(name) ); m_pStatusInfo->addText( i18n("Error: While deleting %1: Creating backup failed.").tqarg(name) );
return false; return false;
} }
} }
else else
{ {
if ( fi.isDir() && !fi.isSymLink() ) if ( fi.isDir() && !fi.isSymLink() )
m_pStatusInfo->addText(i18n("delete directory recursively( %1 )").arg(name)); m_pStatusInfo->addText(i18n("delete directory recursively( %1 )").tqarg(name));
else else
m_pStatusInfo->addText(i18n("delete( %1 )").arg(name)); m_pStatusInfo->addText(i18n("delete( %1 )").tqarg(name));
if ( m_bSimulatedMergeStarted ) if ( m_bSimulatedMergeStarted )
{ {
@ -2454,7 +2454,7 @@ bool DirectoryMergeWindow::deleteFLD( const TQString& name, bool bCreateBackup )
bSuccess = FileAccess::removeDir( name ); bSuccess = FileAccess::removeDir( name );
if ( !bSuccess ) if ( !bSuccess )
{ {
m_pStatusInfo->addText( i18n("Error: rmdir( %1 ) operation failed.").arg(name)); m_pStatusInfo->addText( i18n("Error: rmdir( %1 ) operation failed.").tqarg(name));
return false; return false;
} }
} }
@ -2490,7 +2490,7 @@ bool DirectoryMergeWindow::mergeFLD( const TQString& nameA,const TQString& nameB
return false; return false;
} }
m_pStatusInfo->addText(i18n("manual merge( %1, %2, %3 -> %4)").arg(nameA).arg(nameB).arg(nameC).arg(nameDest)); m_pStatusInfo->addText(i18n("manual merge( %1, %2, %3 -> %4)").tqarg(nameA).tqarg(nameB).tqarg(nameC).tqarg(nameDest));
if ( m_bSimulatedMergeStarted ) if ( m_bSimulatedMergeStarted )
{ {
m_pStatusInfo->addText(i18n(" Note: After a manual merge the user should continue by pressing F7.") ); m_pStatusInfo->addText(i18n(" Note: After a manual merge the user should continue by pressing F7.") );
@ -2517,7 +2517,7 @@ bool DirectoryMergeWindow::copyFLD( const TQString& srcName, const TQString& des
if ( !bSuccess ) if ( !bSuccess )
{ {
m_pStatusInfo->addText(i18n("Error: copy( %1 -> %2 ) failed." m_pStatusInfo->addText(i18n("Error: copy( %1 -> %2 ) failed."
"Deleting existing destination failed.").arg(srcName).arg(destName)); "Deleting existing destination failed.").tqarg(srcName).tqarg(destName));
return false; return false;
} }
} }
@ -2526,7 +2526,7 @@ bool DirectoryMergeWindow::copyFLD( const TQString& srcName, const TQString& des
if ( fi.isSymLink() && (fi.isDir() && !m_bFollowDirLinks || !fi.isDir() && !m_bFollowFileLinks) ) if ( fi.isSymLink() && (fi.isDir() && !m_bFollowDirLinks || !fi.isDir() && !m_bFollowFileLinks) )
{ {
m_pStatusInfo->addText(i18n("copyLink( %1 -> %2 )").arg(srcName).arg(destName)); m_pStatusInfo->addText(i18n("copyLink( %1 -> %2 )").tqarg(srcName).tqarg(destName));
#ifdef _WIN32 #ifdef _WIN32
// What are links? // What are links?
#else #else
@ -2563,7 +2563,7 @@ bool DirectoryMergeWindow::copyFLD( const TQString& srcName, const TQString& des
return false; return false;
} }
m_pStatusInfo->addText(i18n("copy( %1 -> %2 )").arg(srcName).arg(destName)); m_pStatusInfo->addText(i18n("copy( %1 -> %2 )").tqarg(srcName).tqarg(destName));
if ( m_bSimulatedMergeStarted ) if ( m_bSimulatedMergeStarted )
{ {
@ -2590,12 +2590,12 @@ bool DirectoryMergeWindow::renameFLD( const TQString& srcName, const TQString& d
if (!bSuccess) if (!bSuccess)
{ {
m_pStatusInfo->addText( i18n("Error during rename( %1 -> %2 ): " m_pStatusInfo->addText( i18n("Error during rename( %1 -> %2 ): "
"Cannot delete existing destination." ).arg(srcName).arg(destName)); "Cannot delete existing destination." ).tqarg(srcName).tqarg(destName));
return false; return false;
} }
} }
m_pStatusInfo->addText(i18n("rename( %1 -> %2 )").arg(srcName).arg(destName)); m_pStatusInfo->addText(i18n("rename( %1 -> %2 )").tqarg(srcName).tqarg(destName));
if ( m_bSimulatedMergeStarted ) if ( m_bSimulatedMergeStarted )
{ {
return true; return true;
@ -2623,7 +2623,7 @@ bool DirectoryMergeWindow::makeDir( const TQString& name, bool bQuiet )
if (!bSuccess) if (!bSuccess)
{ {
m_pStatusInfo->addText( i18n("Error during makeDir of %1. " m_pStatusInfo->addText( i18n("Error during makeDir of %1. "
"Cannot delete existing file." ).arg(name)); "Cannot delete existing file." ).tqarg(name));
return false; return false;
} }
} }
@ -2638,7 +2638,7 @@ bool DirectoryMergeWindow::makeDir( const TQString& name, bool bQuiet )
} }
if ( ! bQuiet ) if ( ! bQuiet )
m_pStatusInfo->addText(i18n("makeDir( %1 )").arg(name)); m_pStatusInfo->addText(i18n("makeDir( %1 )").tqarg(name));
if ( m_bSimulatedMergeStarted ) if ( m_bSimulatedMergeStarted )
{ {
@ -2820,7 +2820,7 @@ TQTextStream& operator<<( TQTextStream& ts, MergeFileInfos& mfi )
//FileAccess m_fileInfoB; //FileAccess m_fileInfoB;
//FileAccess m_fileInfoC; //FileAccess m_fileInfoC;
//TotalDiffStatus m_totalDiffStatus; //TotalDifftqStatus m_totalDifftqStatus;
vm.save(ts); vm.save(ts);

@ -26,7 +26,7 @@
#include <map> #include <map>
#include "common.h" #include "common.h"
#include "fileaccess.h" #include "fileaccess.h"
#include "diff.h" //TotalDiffStatus #include "diff.h" //TotalDifftqStatus
class OptionDialog; class OptionDialog;
class KIconLoader; class KIconLoader;
@ -37,7 +37,7 @@ class TQLabel;
class KAction; class KAction;
class KToggleAction; class KToggleAction;
class KActionCollection; class KActionCollection;
class TotalDiffStatus; class TotalDifftqStatus;
enum e_MergeOperation enum e_MergeOperation
{ {
@ -99,7 +99,7 @@ public:
FileAccess m_fileInfoB; FileAccess m_fileInfoB;
FileAccess m_fileInfoC; FileAccess m_fileInfoC;
TotalDiffStatus m_totalDiffStatus; TotalDifftqStatus m_totalDifftqStatus;
}; };
class DirMergeItem : public TQListViewItem class DirMergeItem : public TQListViewItem
@ -319,7 +319,7 @@ protected:
KAction* m_pDirSaveMergeState; KAction* m_pDirSaveMergeState;
KAction* m_pDirLoadMergeState; KAction* m_pDirLoadMergeState;
signals: signals:
void startDiffMerge(TQString fn1,TQString fn2, TQString fn3, TQString ofn, TQString,TQString,TQString,TotalDiffStatus*); void startDiffMerge(TQString fn1,TQString fn2, TQString fn3, TQString ofn, TQString,TQString,TQString,TotalDifftqStatus*);
void checkIfCanContinue( bool* pbContinue ); void checkIfCanContinue( bool* pbContinue );
void updateAvailabilities(); void updateAvailabilities();
void statusBarMessage( const TQString& msg ); void statusBarMessage( const TQString& msg );

@ -14,7 +14,7 @@
#include <kio/global.h> #include <kio/global.h>
#include <kmessagebox.h> #include <kmessagebox.h>
#include "optiondialog.h" #include "optiondialog.h"
#include <layout.h> #include <tqlayout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqapplication.h> #include <tqapplication.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
@ -25,7 +25,7 @@
#include <ktempfile.h> #include <ktempfile.h>
#include <tqdir.h> #include <tqdir.h>
#include <tqregexp.h> #include <tqregexp.h>
#include <textstream.h> #include <tqtextstream.h>
#include <vector> #include <vector>
#include <klocale.h> #include <klocale.h>
@ -407,11 +407,11 @@ bool FileAccess::writeFile( const void* pSrcBuffer, unsigned long length )
if ( isExecutable() ) // value is true if the old file was executable if ( isExecutable() ) // value is true if the old file was executable
{ {
// Preserve attributes // Preserve attributes
struct stat srcFileStatus; struct stat srcFiletqStatus;
int statResult = ::stat( filePath().ascii(), &srcFileStatus ); int statResult = ::stat( filePath().ascii(), &srcFiletqStatus );
if (statResult==0) if (statResult==0)
{ {
::chmod ( filePath().ascii(), srcFileStatus.st_mode | S_IXUSR ); ::chmod ( filePath().ascii(), srcFiletqStatus.st_mode | S_IXUSR );
} }
} }
#endif #endif
@ -625,7 +625,7 @@ bool FileAccessJobHandler::stat( int detail, bool bWantToWrite )
connect( pStatJob, TQT_SIGNAL(result(KIO::Job*)), this, TQT_SLOT(slotStatResult(KIO::Job*))); connect( pStatJob, TQT_SIGNAL(result(KIO::Job*)), this, TQT_SLOT(slotStatResult(KIO::Job*)));
g_pProgressDialog->enterEventLoop( pStatJob, i18n("Getting file status: %1").arg(m_pFileAccess->prettyAbsPath()) ); g_pProgressDialog->enterEventLoop( pStatJob, i18n("Getting file status: %1").tqarg(m_pFileAccess->prettyAbsPath()) );
return m_bSuccess; return m_bSuccess;
} }
@ -668,7 +668,7 @@ bool FileAccessJobHandler::get(void* pDestBuffer, long maxLength )
connect( pJob, TQT_SIGNAL(data(KIO::Job*,const TQByteArray &)), this, TQT_SLOT(slotGetData(KIO::Job*, const TQByteArray&))); connect( pJob, TQT_SIGNAL(data(KIO::Job*,const TQByteArray &)), this, TQT_SLOT(slotGetData(KIO::Job*, const TQByteArray&)));
connect( pJob, TQT_SIGNAL(percent(KIO::Job*,unsigned long)), this, TQT_SLOT(slotPercent(KIO::Job*, unsigned long))); connect( pJob, TQT_SIGNAL(percent(KIO::Job*,unsigned long)), this, TQT_SLOT(slotPercent(KIO::Job*, unsigned long)));
g_pProgressDialog->enterEventLoop( pJob, i18n("Reading file: %1").arg(m_pFileAccess->prettyAbsPath()) ); g_pProgressDialog->enterEventLoop( pJob, i18n("Reading file: %1").tqarg(m_pFileAccess->prettyAbsPath()) );
return m_bSuccess; return m_bSuccess;
} }
else else
@ -704,7 +704,7 @@ bool FileAccessJobHandler::put(const void* pSrcBuffer, long maxLength, bool bOve
connect( pJob, TQT_SIGNAL(dataReq(KIO::Job*, TQByteArray&)), this, TQT_SLOT(slotPutData(KIO::Job*, TQByteArray&))); connect( pJob, TQT_SIGNAL(dataReq(KIO::Job*, TQByteArray&)), this, TQT_SLOT(slotPutData(KIO::Job*, TQByteArray&)));
connect( pJob, TQT_SIGNAL(percent(KIO::Job*,unsigned long)), this, TQT_SLOT(slotPercent(KIO::Job*, unsigned long))); connect( pJob, TQT_SIGNAL(percent(KIO::Job*,unsigned long)), this, TQT_SLOT(slotPercent(KIO::Job*, unsigned long)));
g_pProgressDialog->enterEventLoop( pJob, i18n("Writing file: %1").arg(m_pFileAccess->prettyAbsPath()) ); g_pProgressDialog->enterEventLoop( pJob, i18n("Writing file: %1").tqarg(m_pFileAccess->prettyAbsPath()) );
return m_bSuccess; return m_bSuccess;
} }
else else
@ -721,7 +721,7 @@ void FileAccessJobHandler::slotPutData( KIO::Job* pJob, TQByteArray& data )
{ {
long maxChunkSize = 100000; long maxChunkSize = 100000;
long length = min2( maxChunkSize, m_maxLength - m_transferredBytes ); long length = min2( maxChunkSize, m_maxLength - m_transferredBytes );
bool bSuccess = data.resize( length ); bool bSuccess = data.tqresize( length );
if ( bSuccess ) if ( bSuccess )
{ {
if ( length>0 ) if ( length>0 )
@ -767,7 +767,7 @@ bool FileAccessJobHandler::mkDir( const TQString& dirName )
KIO::SimpleJob* pJob = KIO::mkdir( dirURL ); KIO::SimpleJob* pJob = KIO::mkdir( dirURL );
connect( pJob, TQT_SIGNAL(result(KIO::Job*)), this, TQT_SLOT(slotSimpleJobResult(KIO::Job*))); connect( pJob, TQT_SIGNAL(result(KIO::Job*)), this, TQT_SLOT(slotSimpleJobResult(KIO::Job*)));
g_pProgressDialog->enterEventLoop( pJob, i18n("Making directory: %1").arg(dirName) ); g_pProgressDialog->enterEventLoop( pJob, i18n("Making directory: %1").tqarg(dirName) );
return m_bSuccess; return m_bSuccess;
} }
} }
@ -787,7 +787,7 @@ bool FileAccessJobHandler::rmDir( const TQString& dirName )
KIO::SimpleJob* pJob = KIO::rmdir( dirURL ); KIO::SimpleJob* pJob = KIO::rmdir( dirURL );
connect( pJob, TQT_SIGNAL(result(KIO::Job*)), this, TQT_SLOT(slotSimpleJobResult(KIO::Job*))); connect( pJob, TQT_SIGNAL(result(KIO::Job*)), this, TQT_SLOT(slotSimpleJobResult(KIO::Job*)));
g_pProgressDialog->enterEventLoop(pJob, i18n("Removing directory: %1").arg(dirName)); g_pProgressDialog->enterEventLoop(pJob, i18n("Removing directory: %1").tqarg(dirName));
return m_bSuccess; return m_bSuccess;
} }
} }
@ -802,7 +802,7 @@ bool FileAccessJobHandler::removeFile( const TQString& fileName )
KIO::SimpleJob* pJob = KIO::file_delete( KURL::fromPathOrURL(fileName), false ); KIO::SimpleJob* pJob = KIO::file_delete( KURL::fromPathOrURL(fileName), false );
connect( pJob, TQT_SIGNAL(result(KIO::Job*)), this, TQT_SLOT(slotSimpleJobResult(KIO::Job*))); connect( pJob, TQT_SIGNAL(result(KIO::Job*)), this, TQT_SLOT(slotSimpleJobResult(KIO::Job*)));
g_pProgressDialog->enterEventLoop( pJob, i18n("Removing file: %1").arg(fileName) ); g_pProgressDialog->enterEventLoop( pJob, i18n("Removing file: %1").tqarg(fileName) );
return m_bSuccess; return m_bSuccess;
} }
} }
@ -818,7 +818,7 @@ bool FileAccessJobHandler::symLink( const TQString& linkTarget, const TQString&
connect( pJob, TQT_SIGNAL(result(KIO::Job*)), this, TQT_SLOT(slotSimpleJobResult(KIO::Job*))); connect( pJob, TQT_SIGNAL(result(KIO::Job*)), this, TQT_SLOT(slotSimpleJobResult(KIO::Job*)));
g_pProgressDialog->enterEventLoop( pJob, g_pProgressDialog->enterEventLoop( pJob,
i18n("Creating symbolic link: %1 -> %2").arg(linkLocation).arg(linkTarget) ); i18n("Creating symbolic link: %1 -> %2").tqarg(linkLocation).tqarg(linkTarget) );
return m_bSuccess; return m_bSuccess;
} }
} }
@ -848,7 +848,7 @@ bool FileAccessJobHandler::rename( const TQString& dest )
connect( pJob, TQT_SIGNAL(percent(KIO::Job*,unsigned long)), this, TQT_SLOT(slotPercent(KIO::Job*, unsigned long))); connect( pJob, TQT_SIGNAL(percent(KIO::Job*,unsigned long)), this, TQT_SLOT(slotPercent(KIO::Job*, unsigned long)));
g_pProgressDialog->enterEventLoop( pJob, g_pProgressDialog->enterEventLoop( pJob,
i18n("Renaming file: %1 -> %2").arg(m_pFileAccess->prettyAbsPath()).arg(dest) ); i18n("Renaming file: %1 -> %2").tqarg(m_pFileAccess->prettyAbsPath()).tqarg(dest) );
return m_bSuccess; return m_bSuccess;
} }
} }
@ -884,7 +884,7 @@ bool FileAccessJobHandler::copyFile( const TQString& dest )
connect( pJob, TQT_SIGNAL(result(KIO::Job*)), this, TQT_SLOT(slotSimpleJobResult(KIO::Job*))); connect( pJob, TQT_SIGNAL(result(KIO::Job*)), this, TQT_SLOT(slotSimpleJobResult(KIO::Job*)));
connect( pJob, TQT_SIGNAL(percent(KIO::Job*,unsigned long)), this, TQT_SLOT(slotPercent(KIO::Job*, unsigned long))); connect( pJob, TQT_SIGNAL(percent(KIO::Job*,unsigned long)), this, TQT_SLOT(slotPercent(KIO::Job*, unsigned long)));
g_pProgressDialog->enterEventLoop( pJob, g_pProgressDialog->enterEventLoop( pJob,
i18n("Copying file: %1 -> %2").arg(m_pFileAccess->prettyAbsPath()).arg(dest) ); i18n("Copying file: %1 -> %2").tqarg(m_pFileAccess->prettyAbsPath()).tqarg(dest) );
return m_bSuccess; return m_bSuccess;
// Note that the KIO-slave preserves the original date, if this is supported. // Note that the KIO-slave preserves the original date, if this is supported.
@ -898,13 +898,13 @@ bool FileAccessJobHandler::copyFile( const TQString& dest )
bool bReadSuccess = srcFile.open( IO_ReadOnly ); bool bReadSuccess = srcFile.open( IO_ReadOnly );
if ( bReadSuccess == false ) if ( bReadSuccess == false )
{ {
m_pFileAccess->m_statusText = i18n("Error during file copy operation: Opening file for reading failed. Filename: %1").arg(srcName); m_pFileAccess->m_statusText = i18n("Error during file copy operation: Opening file for reading failed. Filename: %1").tqarg(srcName);
return false; return false;
} }
bool bWriteSuccess = destFile.open( IO_WriteOnly ); bool bWriteSuccess = destFile.open( IO_WriteOnly );
if ( bWriteSuccess == false ) if ( bWriteSuccess == false )
{ {
m_pFileAccess->m_statusText = i18n("Error during file copy operation: Opening file for writing failed. Filename: %1").arg(destName); m_pFileAccess->m_statusText = i18n("Error during file copy operation: Opening file for writing failed. Filename: %1").tqarg(destName);
return false; return false;
} }
@ -916,7 +916,7 @@ bool FileAccessJobHandler::copyFile( const TQString& dest )
TQ_LONG readSize = srcFile.readBlock( &buffer[0], min2( srcSize, bufSize ) ); TQ_LONG readSize = srcFile.readBlock( &buffer[0], min2( srcSize, bufSize ) );
if ( readSize==-1 || readSize==0 ) if ( readSize==-1 || readSize==0 )
{ {
m_pFileAccess->m_statusText = i18n("Error during file copy operation: Reading failed. Filename: %1").arg(srcName); m_pFileAccess->m_statusText = i18n("Error during file copy operation: Reading failed. Filename: %1").tqarg(srcName);
return false; return false;
} }
srcSize -= readSize; srcSize -= readSize;
@ -925,7 +925,7 @@ bool FileAccessJobHandler::copyFile( const TQString& dest )
TQ_LONG writeSize = destFile.writeBlock( &buffer[0], readSize ); TQ_LONG writeSize = destFile.writeBlock( &buffer[0], readSize );
if ( writeSize==-1 || writeSize==0 ) if ( writeSize==-1 || writeSize==0 )
{ {
m_pFileAccess->m_statusText = i18n("Error during file copy operation: Writing failed. Filename: %1").arg(destName); m_pFileAccess->m_statusText = i18n("Error during file copy operation: Writing failed. Filename: %1").tqarg(destName);
return false; return false;
} }
readSize -= writeSize; readSize -= writeSize;
@ -938,28 +938,28 @@ bool FileAccessJobHandler::copyFile( const TQString& dest )
// Update the times of the destFile // Update the times of the destFile
#ifdef _WIN32 #ifdef _WIN32
struct _stat srcFileStatus; struct _stat srcFiletqStatus;
int statResult = ::_stat( srcName.ascii(), &srcFileStatus ); int statResult = ::_stat( srcName.ascii(), &srcFiletqStatus );
if (statResult==0) if (statResult==0)
{ {
_utimbuf destTimes; _utimbuf destTimes;
destTimes.actime = srcFileStatus.st_atime;/* time of last access */ destTimes.actime = srcFiletqStatus.st_atime;/* time of last access */
destTimes.modtime = srcFileStatus.st_mtime;/* time of last modification */ destTimes.modtime = srcFiletqStatus.st_mtime;/* time of last modification */
_utime ( destName.ascii(), &destTimes ); _utime ( destName.ascii(), &destTimes );
_chmod ( destName.ascii(), srcFileStatus.st_mode ); _chmod ( destName.ascii(), srcFiletqStatus.st_mode );
} }
#else #else
struct stat srcFileStatus; struct stat srcFiletqStatus;
int statResult = ::stat( srcName.ascii(), &srcFileStatus ); int statResult = ::stat( srcName.ascii(), &srcFiletqStatus );
if (statResult==0) if (statResult==0)
{ {
utimbuf destTimes; utimbuf destTimes;
destTimes.actime = srcFileStatus.st_atime;/* time of last access */ destTimes.actime = srcFiletqStatus.st_atime;/* time of last access */
destTimes.modtime = srcFileStatus.st_mtime;/* time of last modification */ destTimes.modtime = srcFiletqStatus.st_mtime;/* time of last modification */
utime ( destName.ascii(), &destTimes ); utime ( destName.ascii(), &destTimes );
chmod ( destName.ascii(), srcFileStatus.st_mode ); chmod ( destName.ascii(), srcFiletqStatus.st_mode );
} }
#endif #endif
return true; return true;
@ -1010,7 +1010,7 @@ void CvsIgnoreList::init( FileAccess& dir, bool bUseLocalCvsIgnore )
".nse_depinfo #* .#* cvslog.* ,* CVS CVS.adm .del-* *.a *.olb *.o *.obj " ".nse_depinfo #* .#* cvslog.* ,* CVS CVS.adm .del-* *.a *.olb *.o *.obj "
"*.so *.Z *~ *.old *.elc *.ln *.bak *.BAK *.orig *.rej *.exe _$* *$"; "*.so *.Z *~ *.old *.elc *.ln *.bak *.BAK *.orig *.rej *.exe _$* *$";
addEntriesFromString(TQString::fromLatin1(ignorestr)); addEntriesFromString(TQString::tqfromLatin1(ignorestr));
addEntriesFromFile(TQDir::homeDirPath() + "/.cvsignore"); addEntriesFromFile(TQDir::homeDirPath() + "/.cvsignore");
addEntriesFromString(TQString::fromLocal8Bit(::getenv("CVSIGNORE"))); addEntriesFromString(TQString::fromLocal8Bit(::getenv("CVSIGNORE")));
@ -1032,7 +1032,7 @@ void CvsIgnoreList::init( FileAccess& dir, bool bUseLocalCvsIgnore )
{ {
if (pos>pos1) if (pos>pos1)
{ {
addEntry( TQString::fromLatin1( &buf[pos1], pos-pos1 ) ); addEntry( TQString::tqfromLatin1( &buf[pos1], pos-pos1 ) );
} }
++pos1; ++pos1;
} }
@ -1088,7 +1088,7 @@ void CvsIgnoreList::addEntry(const TQString& pattern)
unsigned int nofMetaCharacters = 0; unsigned int nofMetaCharacters = 0;
const TQChar* pos; const TQChar* pos;
pos = pattern.unicode(); pos = pattern.tqunicode();
const TQChar* posEnd; const TQChar* posEnd;
posEnd=pos + pattern.length(); posEnd=pos + pattern.length();
while (pos < posEnd) while (pos < posEnd)
@ -1344,7 +1344,7 @@ bool FileAccessJobHandler::listDir( t_DirectoryList* pDirList, bool bRecursive,
//connect( pListJob, TQT_SIGNAL(percent(KIO::Job*,unsigned long)), this, TQT_SLOT(slotPercent(KIO::Job*, unsigned long))); //connect( pListJob, TQT_SIGNAL(percent(KIO::Job*,unsigned long)), this, TQT_SLOT(slotPercent(KIO::Job*, unsigned long)));
g_pProgressDialog->enterEventLoop( pListJob, g_pProgressDialog->enterEventLoop( pListJob,
i18n("Listing directory: %1").arg(m_pFileAccess->prettyAbsPath()) ); i18n("Listing directory: %1").tqarg(m_pFileAccess->prettyAbsPath()) );
} }
} }
@ -1454,27 +1454,27 @@ ProgressDialog::ProgressDialog( TQWidget* pParent )
: TQDialog( pParent, 0, true ) : TQDialog( pParent, 0, true )
{ {
m_bStayHidden = false; m_bStayHidden = false;
TQVBoxLayout* layout = new TQVBoxLayout(this); TQVBoxLayout* tqlayout = new TQVBoxLayout(this);
m_pInformation = new TQLabel( " ", this ); m_pInformation = new TQLabel( " ", this );
layout->addWidget( m_pInformation ); tqlayout->addWidget( m_pInformation );
m_pProgressBar = new KProgress(1000, this); m_pProgressBar = new KProgress(1000, this);
layout->addWidget( m_pProgressBar ); tqlayout->addWidget( m_pProgressBar );
m_pSubInformation = new TQLabel( " ", this); m_pSubInformation = new TQLabel( " ", this);
layout->addWidget( m_pSubInformation ); tqlayout->addWidget( m_pSubInformation );
m_pSubProgressBar = new KProgress(1000, this); m_pSubProgressBar = new KProgress(1000, this);
layout->addWidget( m_pSubProgressBar ); tqlayout->addWidget( m_pSubProgressBar );
m_pSlowJobInfo = new TQLabel( " ", this); m_pSlowJobInfo = new TQLabel( " ", this);
layout->addWidget( m_pSlowJobInfo ); tqlayout->addWidget( m_pSlowJobInfo );
TQHBoxLayout* hlayout = new TQHBoxLayout( layout ); TQHBoxLayout* htqlayout = new TQHBoxLayout( tqlayout );
hlayout->addStretch(1); htqlayout->addStretch(1);
m_pAbortButton = new TQPushButton( i18n("&Cancel"), this); m_pAbortButton = new TQPushButton( i18n("&Cancel"), this);
hlayout->addWidget( m_pAbortButton ); htqlayout->addWidget( m_pAbortButton );
connect( m_pAbortButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAbort()) ); connect( m_pAbortButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAbort()) );
m_progressDelayTimer = 0; m_progressDelayTimer = 0;

@ -110,7 +110,7 @@ bool brief;
bool expand_tabs; bool expand_tabs;
/* Use a tab in the output, rather than a space, before the text of an /* Use a tab in the output, rather than a space, before the text of an
input line, so as to keep the proper alignment in the input line input line, so as to keep the proper tqalignment in the input line
without changing the characters in it (-T). */ without changing the characters in it (-T). */
bool initial_tab; bool initial_tab;

@ -169,7 +169,7 @@ void GnuDiff::find_and_hash_each_line (struct file_data *current)
while ( p<bufend && (c = *p) != '\n' ) while ( p<bufend && (c = *p) != '\n' )
{ {
if (! (isWhite(c) || bIgnoreNumbers && (c.isDigit() || c=='-' || c=='.' ) )) if (! (isWhite(c) || bIgnoreNumbers && (c.isDigit() || c=='-' || c=='.' ) ))
h = HASH (h, c.lower().unicode()); h = HASH (h, c.lower().tqunicode());
++p; ++p;
} }
break; break;
@ -177,7 +177,7 @@ void GnuDiff::find_and_hash_each_line (struct file_data *current)
default: default:
while ( p<bufend && (c = *p) != '\n' ) while ( p<bufend && (c = *p) != '\n' )
{ {
h = HASH (h, c.lower().unicode()); h = HASH (h, c.lower().tqunicode());
++p; ++p;
} }
break; break;
@ -189,7 +189,7 @@ void GnuDiff::find_and_hash_each_line (struct file_data *current)
while ( p<bufend && (c = *p) != '\n') while ( p<bufend && (c = *p) != '\n')
{ {
if (! (isWhite(c)|| bIgnoreNumbers && (c.isDigit() || c=='-' || c=='.' ) )) if (! (isWhite(c)|| bIgnoreNumbers && (c.isDigit() || c=='-' || c=='.' ) ))
h = HASH (h, c.unicode()); h = HASH (h, c.tqunicode());
++p; ++p;
} }
break; break;
@ -197,7 +197,7 @@ void GnuDiff::find_and_hash_each_line (struct file_data *current)
default: default:
while ( p<bufend && (c = *p) != '\n') while ( p<bufend && (c = *p) != '\n')
{ {
h = HASH (h, c.unicode()); h = HASH (h, c.tqunicode());
++p; ++p;
} }
break; break;

@ -30,8 +30,8 @@
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqpopupmenu.h> #include <tqpopupmenu.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <textedit.h> #include <tqtextedit.h>
#include <layout.h> #include <tqlayout.h>
#include <tqpaintdevicemetrics.h> #include <tqpaintdevicemetrics.h>
// include files for KDE // include files for KDE
@ -259,7 +259,7 @@ KDiff3App::KDiff3App(TQWidget* pParent, const char* name, KDiff3Part* pKDiff3Par
slotViewStatusBar(); slotViewStatusBar();
if( toolBar("mainToolBar")!=0 ) if( toolBar("mainToolBar")!=0 )
toolBar("mainToolBar")->setBarPos( (KToolBar::BarPosition) m_pOptionDialog->m_toolBarPos ); toolBar("mainToolBar")->setBarPos( (KToolBar::BarPosition) m_pOptionDialog->m_toolBarPos );
/* TQSize size = m_pOptionDialog->m_geometry; /* TQSize size = m_pOptionDialog->m_tqgeometry;
TQPoint pos = m_pOptionDialog->m_position; TQPoint pos = m_pOptionDialog->m_position;
if(!size.isEmpty()) if(!size.isEmpty())
{ {
@ -280,8 +280,8 @@ KDiff3App::KDiff3App(TQWidget* pParent, const char* name, KDiff3Part* pKDiff3Par
KApplication::kApplication()->iconLoader() ); KApplication::kApplication()->iconLoader() );
m_pDirectoryMergeInfo = new DirectoryMergeInfo( m_pDirectoryMergeSplitter ); m_pDirectoryMergeInfo = new DirectoryMergeInfo( m_pDirectoryMergeSplitter );
m_pDirectoryMergeWindow->setDirectoryMergeInfo( m_pDirectoryMergeInfo ); m_pDirectoryMergeWindow->setDirectoryMergeInfo( m_pDirectoryMergeInfo );
connect( m_pDirectoryMergeWindow, TQT_SIGNAL(startDiffMerge(TQString,TQString,TQString,TQString,TQString,TQString,TQString,TotalDiffStatus*)), connect( m_pDirectoryMergeWindow, TQT_SIGNAL(startDiffMerge(TQString,TQString,TQString,TQString,TQString,TQString,TQString,TotalDifftqStatus*)),
TQT_TQOBJECT(this), TQT_SLOT( slotFileOpen2(TQString,TQString,TQString,TQString,TQString,TQString,TQString,TotalDiffStatus*))); TQT_TQOBJECT(this), TQT_SLOT( slotFileOpen2(TQString,TQString,TQString,TQString,TQString,TQString,TQString,TotalDifftqStatus*)));
connect( m_pDirectoryMergeWindow, TQT_SIGNAL(selectionChanged()), TQT_TQOBJECT(this), TQT_SLOT(slotUpdateAvailabilities())); connect( m_pDirectoryMergeWindow, TQT_SIGNAL(selectionChanged()), TQT_TQOBJECT(this), TQT_SLOT(slotUpdateAvailabilities()));
connect( m_pDirectoryMergeWindow, TQT_SIGNAL(currentChanged(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotUpdateAvailabilities())); connect( m_pDirectoryMergeWindow, TQT_SIGNAL(currentChanged(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotUpdateAvailabilities()));
connect( m_pDirectoryMergeWindow, TQT_SIGNAL(checkIfCanContinue(bool*)), TQT_TQOBJECT(this), TQT_SLOT(slotCheckIfCanContinue(bool*))); connect( m_pDirectoryMergeWindow, TQT_SIGNAL(checkIfCanContinue(bool*)), TQT_TQOBJECT(this), TQT_SLOT(slotCheckIfCanContinue(bool*)));
@ -303,7 +303,7 @@ void KDiff3App::completeInit( const TQString& fn1, const TQString& fn2, const TQ
{ {
if (m_pKDiff3Shell!=0) if (m_pKDiff3Shell!=0)
{ {
TQSize size=m_pOptionDialog->m_geometry; TQSize size=m_pOptionDialog->m_tqgeometry;
TQPoint pos=m_pOptionDialog->m_position; TQPoint pos=m_pOptionDialog->m_position;
if(!size.isEmpty()) if(!size.isEmpty())
{ {
@ -341,13 +341,13 @@ void KDiff3App::completeInit( const TQString& fn1, const TQString& fn2, const TQ
SourceData* pSD=0; SourceData* pSD=0;
if ( m_sd3.isEmpty() ) if ( m_sd3.isEmpty() )
{ {
if ( m_totalDiffStatus.bBinaryAEqB ){ pSD = &m_sd1; } if ( m_totalDifftqStatus.bBinaryAEqB ){ pSD = &m_sd1; }
} }
else else
{ {
if ( m_totalDiffStatus.bBinaryBEqC ){ pSD = &m_sd3; } // B==C (assume A is old) if ( m_totalDifftqStatus.bBinaryBEqC ){ pSD = &m_sd3; } // B==C (assume A is old)
else if ( m_totalDiffStatus.bBinaryAEqB ){ pSD = &m_sd3; } // assuming C has changed else if ( m_totalDifftqStatus.bBinaryAEqB ){ pSD = &m_sd3; } // assuming C has changed
else if ( m_totalDiffStatus.bBinaryAEqC ){ pSD = &m_sd2; } // assuming B has changed else if ( m_totalDifftqStatus.bBinaryAEqC ){ pSD = &m_sd2; } // assuming B has changed
} }
if ( pSD!=0 ) if ( pSD!=0 )
@ -577,7 +577,7 @@ void KDiff3App::saveOptions( KConfig* config )
m_pOptionDialog->m_bMaximised = m_pKDiff3Shell->isMaximized(); m_pOptionDialog->m_bMaximised = m_pKDiff3Shell->isMaximized();
if( ! m_pKDiff3Shell->isMaximized() && m_pKDiff3Shell->isVisible() ) if( ! m_pKDiff3Shell->isMaximized() && m_pKDiff3Shell->isVisible() )
{ {
m_pOptionDialog->m_geometry = m_pKDiff3Shell->size(); m_pOptionDialog->m_tqgeometry = m_pKDiff3Shell->size();
m_pOptionDialog->m_position = m_pKDiff3Shell->pos(); m_pOptionDialog->m_position = m_pKDiff3Shell->pos();
} }
if ( toolBar("mainToolBar")!=0 ) if ( toolBar("mainToolBar")!=0 )

@ -110,7 +110,7 @@ class KDiff3App : public TQSplitter
/** initializes the KActions of the application */ /** initializes the KActions of the application */
void initActions( KActionCollection* ); void initActions( KActionCollection* );
/** save general Options like all bar positions and status as well as the geometry /** save general Options like all bar positions and status as well as the tqgeometry
and the recent file list to the configuration file */ and the recent file list to the configuration file */
void saveOptions( KConfig* ); void saveOptions( KConfig* );
@ -144,7 +144,7 @@ class KDiff3App : public TQSplitter
/** open a file and load it into the document*/ /** open a file and load it into the document*/
void slotFileOpen(); void slotFileOpen();
void slotFileOpen2( TQString fn1, TQString fn2, TQString fn3, TQString ofn, void slotFileOpen2( TQString fn1, TQString fn2, TQString fn3, TQString ofn,
TQString an1, TQString an2, TQString an3, TotalDiffStatus* pTotalDiffStatus ); TQString an1, TQString an2, TQString an3, TotalDifftqStatus* pTotalDifftqStatus );
void slotFileNameChanged(const TQString& fileName, int winIdx); void slotFileNameChanged(const TQString& fileName, int winIdx);
@ -281,7 +281,7 @@ class KDiff3App : public TQSplitter
TQWidget* m_pCornerWidget; TQWidget* m_pCornerWidget;
TotalDiffStatus m_totalDiffStatus; TotalDifftqStatus m_totalDifftqStatus;
SourceData m_sd1; SourceData m_sd1;
SourceData m_sd2; SourceData m_sd2;
@ -310,7 +310,7 @@ class KDiff3App : public TQSplitter
OptionDialog* m_pOptionDialog; OptionDialog* m_pOptionDialog;
FindDialog* m_pFindDialog; FindDialog* m_pFindDialog;
void init( bool bAuto=false, TotalDiffStatus* pTotalDiffStatus=0, bool bLoadFiles=true ); void init( bool bAuto=false, TotalDifftqStatus* pTotalDifftqStatus=0, bool bLoadFiles=true );
virtual bool eventFilter( TQObject* o, TQEvent* e ); virtual bool eventFilter( TQObject* o, TQEvent* e );
virtual void resizeEvent(TQResizeEvent*); virtual void resizeEvent(TQResizeEvent*);

@ -25,7 +25,7 @@
#include <kfiledialog.h> #include <kfiledialog.h>
#include <tqfile.h> #include <tqfile.h>
#include <textstream.h> #include <tqtextstream.h>
#include "kdiff3.h" #include "kdiff3.h"
#include "fileaccess.h" #include "fileaccess.h"

@ -29,9 +29,9 @@
#include <tqcolordialog.h> #include <tqcolordialog.h>
#include <tqfontdialog.h> #include <tqfontdialog.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <textbrowser.h> #include <tqtextbrowser.h>
#include <textstream.h> #include <tqtextstream.h>
#include <layout.h> #include <tqlayout.h>
#include <tqdockarea.h> #include <tqdockarea.h>
#include <vector> #include <vector>
@ -676,7 +676,7 @@ KToggleAction* KStdAction::showStatusbar( TQWidget* parent, const char* slot, KA
KAction* KStdAction::preferences( TQWidget* parent, const char* slot, KActionCollection* actionCollection) KAction* KStdAction::preferences( TQWidget* parent, const char* slot, KActionCollection* actionCollection)
{ {
KMainWindow* p = actionCollection->m_pMainWindow; KMainWindow* p = actionCollection->m_pMainWindow;
KAction* a = new KAction( i18n("&Configure %1...").arg("KDiff3"), 0, parent, slot, actionCollection, "settings", false, false ); KAction* a = new KAction( i18n("&Configure %1...").tqarg("KDiff3"), 0, parent, slot, actionCollection, "settings", false, false );
if(p) a->addTo( p->settingsMenu ); if(p) a->addTo( p->settingsMenu );
return a; return a;
} }

@ -21,9 +21,9 @@
#include "kdiff3_shell.h" #include "kdiff3_shell.h"
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include "version.h" #include "version.h"
#include <textcodec.h> #include <tqtextcodec.h>
#include <tqfile.h> #include <tqfile.h>
#include <textstream.h> #include <tqtextstream.h>
#include <vector> #include <vector>
#ifdef KREPLACEMENTS_H #ifdef KREPLACEMENTS_H

@ -20,7 +20,7 @@
#include <tqpainter.h> #include <tqpainter.h>
#include <tqapplication.h> #include <tqapplication.h>
#include <clipboard.h> #include <tqclipboard.h>
#include <tqdir.h> #include <tqdir.h>
#include <tqfile.h> #include <tqfile.h>
#include <tqcursor.h> #include <tqcursor.h>
@ -30,8 +30,8 @@
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlineedit.h> #include <tqlineedit.h>
#include <tqcombobox.h> #include <tqcombobox.h>
#include <layout.h> #include <tqlayout.h>
#include <textcodec.h> #include <tqtextcodec.h>
#include <tqdragobject.h> #include <tqdragobject.h>
#include <klocale.h> #include <klocale.h>
@ -72,7 +72,7 @@ MergeResultWindow::MergeResultWindow(
m_sizeC = 0; m_sizeC = 0;
m_pDiff3LineList = 0; m_pDiff3LineList = 0;
m_pTotalDiffStatus = 0; m_pTotalDifftqStatus = 0;
m_pStatusBar = pStatusBar; m_pStatusBar = pStatusBar;
m_pOptionDialog = pOptionDialog; m_pOptionDialog = pOptionDialog;
@ -97,7 +97,7 @@ void MergeResultWindow::init(
const LineData* pLineDataB, int sizeB, const LineData* pLineDataB, int sizeB,
const LineData* pLineDataC, int sizeC, const LineData* pLineDataC, int sizeC,
const Diff3LineList* pDiff3LineList, const Diff3LineList* pDiff3LineList,
TotalDiffStatus* pTotalDiffStatus TotalDifftqStatus* pTotalDifftqStatus
) )
{ {
m_firstLine = 0; m_firstLine = 0;
@ -118,7 +118,7 @@ void MergeResultWindow::init(
m_sizeC = sizeC; m_sizeC = sizeC;
m_pDiff3LineList = pDiff3LineList; m_pDiff3LineList = pDiff3LineList;
m_pTotalDiffStatus = pTotalDiffStatus; m_pTotalDifftqStatus = pTotalDifftqStatus;
m_selection.reset(); m_selection.reset();
m_cursorXPos=0; m_cursorXPos=0;
@ -134,13 +134,13 @@ void MergeResultWindow::init(
int nofUnsolved = getNrOfUnsolvedConflicts(&wsc); int nofUnsolved = getNrOfUnsolvedConflicts(&wsc);
if (m_pStatusBar) if (m_pStatusBar)
m_pStatusBar->message( i18n("Number of remaining unsolved conflicts: %1 (of which %2 are whitespace)") m_pStatusBar->message( i18n("Number of remaining unsolved conflicts: %1 (of which %2 are whitespace)")
.arg(nofUnsolved).arg(wsc) ); .tqarg(nofUnsolved).tqarg(wsc) );
} }
void MergeResultWindow::reset() void MergeResultWindow::reset()
{ {
m_pDiff3LineList = 0; m_pDiff3LineList = 0;
m_pTotalDiffStatus = 0; m_pTotalDifftqStatus = 0;
m_pldA = 0; m_pldA = 0;
m_pldB = 0; m_pldB = 0;
m_pldC = 0; m_pldC = 0;
@ -467,9 +467,9 @@ void MergeResultWindow::merge(bool bAutoSolve, int defaultSelector, bool bConfli
++nrOfWhiteSpaceConflicts; ++nrOfWhiteSpaceConflicts;
} }
m_pTotalDiffStatus->nofUnsolvedConflicts = nrOfUnsolvedConflicts; m_pTotalDifftqStatus->nofUnsolvedConflicts = nrOfUnsolvedConflicts;
m_pTotalDiffStatus->nofSolvedConflicts = nrOfSolvedConflicts; m_pTotalDifftqStatus->nofSolvedConflicts = nrOfSolvedConflicts;
m_pTotalDiffStatus->nofWhitespaceConflicts = nrOfWhiteSpaceConflicts; m_pTotalDifftqStatus->nofWhitespaceConflicts = nrOfWhiteSpaceConflicts;
m_cursorXPos=0; m_cursorXPos=0;
@ -804,17 +804,17 @@ void MergeResultWindow::showNrOfConflicts()
++nrOfConflicts; ++nrOfConflicts;
} }
TQString totalInfo; TQString totalInfo;
if ( m_pTotalDiffStatus->bBinaryAEqB && m_pTotalDiffStatus->bBinaryAEqC ) if ( m_pTotalDifftqStatus->bBinaryAEqB && m_pTotalDifftqStatus->bBinaryAEqC )
totalInfo += i18n("All input files are binary equal."); totalInfo += i18n("All input files are binary equal.");
else if ( m_pTotalDiffStatus->bTextAEqB && m_pTotalDiffStatus->bTextAEqC ) else if ( m_pTotalDifftqStatus->bTextAEqB && m_pTotalDifftqStatus->bTextAEqC )
totalInfo += i18n("All input files contain the same text."); totalInfo += i18n("All input files contain the same text.");
else { else {
if ( m_pTotalDiffStatus->bBinaryAEqB ) totalInfo += i18n("Files %1 and %2 are binary equal.\n").arg("A").arg("B"); if ( m_pTotalDifftqStatus->bBinaryAEqB ) totalInfo += i18n("Files %1 and %2 are binary equal.\n").tqarg("A").tqarg("B");
else if ( m_pTotalDiffStatus->bTextAEqB ) totalInfo += i18n("Files %1 and %2 have equal text.\n").arg("A").arg("B"); else if ( m_pTotalDifftqStatus->bTextAEqB ) totalInfo += i18n("Files %1 and %2 have equal text.\n").tqarg("A").tqarg("B");
if ( m_pTotalDiffStatus->bBinaryAEqC ) totalInfo += i18n("Files %1 and %2 are binary equal.\n").arg("A").arg("C"); if ( m_pTotalDifftqStatus->bBinaryAEqC ) totalInfo += i18n("Files %1 and %2 are binary equal.\n").tqarg("A").tqarg("C");
else if ( m_pTotalDiffStatus->bTextAEqC ) totalInfo += i18n("Files %1 and %2 have equal text.\n").arg("A").arg("C"); else if ( m_pTotalDifftqStatus->bTextAEqC ) totalInfo += i18n("Files %1 and %2 have equal text.\n").tqarg("A").tqarg("C");
if ( m_pTotalDiffStatus->bBinaryBEqC ) totalInfo += i18n("Files %1 and %2 are binary equal.\n").arg("B").arg("C"); if ( m_pTotalDifftqStatus->bBinaryBEqC ) totalInfo += i18n("Files %1 and %2 are binary equal.\n").tqarg("B").tqarg("C");
else if ( m_pTotalDiffStatus->bTextBEqC ) totalInfo += i18n("Files %1 and %2 have equal text.\n").arg("B").arg("C"); else if ( m_pTotalDifftqStatus->bTextBEqC ) totalInfo += i18n("Files %1 and %2 have equal text.\n").tqarg("B").tqarg("C");
} }
int nrOfUnsolvedConflicts = getNrOfUnsolvedConflicts(); int nrOfUnsolvedConflicts = getNrOfUnsolvedConflicts();
@ -948,7 +948,7 @@ void MergeResultWindow::choose( int selector )
int wsc; int wsc;
int nofUnsolved = getNrOfUnsolvedConflicts(&wsc); int nofUnsolved = getNrOfUnsolvedConflicts(&wsc);
m_pStatusBar->message( i18n("Number of remaining unsolved conflicts: %1 (of which %2 are whitespace)") m_pStatusBar->message( i18n("Number of remaining unsolved conflicts: %1 (of which %2 are whitespace)")
.arg(nofUnsolved).arg(wsc) ); .tqarg(nofUnsolved).tqarg(wsc) );
} }
// bConflictsOnly: automatically choose for conflicts only (true) or for everywhere (false) // bConflictsOnly: automatically choose for conflicts only (true) or for everywhere (false)
@ -962,7 +962,7 @@ void MergeResultWindow::chooseGlobal(int selector, bool bConflictsOnly, bool bWh
int wsc; int wsc;
int nofUnsolved = getNrOfUnsolvedConflicts(&wsc); int nofUnsolved = getNrOfUnsolvedConflicts(&wsc);
m_pStatusBar->message( i18n("Number of remaining unsolved conflicts: %1 (of which %2 are whitespace)") m_pStatusBar->message( i18n("Number of remaining unsolved conflicts: %1 (of which %2 are whitespace)")
.arg(nofUnsolved).arg(wsc) ); .tqarg(nofUnsolved).tqarg(wsc) );
} }
void MergeResultWindow::slotAutoSolve() void MergeResultWindow::slotAutoSolve()
@ -974,7 +974,7 @@ void MergeResultWindow::slotAutoSolve()
int wsc; int wsc;
int nofUnsolved = getNrOfUnsolvedConflicts(&wsc); int nofUnsolved = getNrOfUnsolvedConflicts(&wsc);
m_pStatusBar->message( i18n("Number of remaining unsolved conflicts: %1 (of which %2 are whitespace)") m_pStatusBar->message( i18n("Number of remaining unsolved conflicts: %1 (of which %2 are whitespace)")
.arg(nofUnsolved).arg(wsc) ); .tqarg(nofUnsolved).tqarg(wsc) );
} }
void MergeResultWindow::slotUnsolve() void MergeResultWindow::slotUnsolve()
@ -986,7 +986,7 @@ void MergeResultWindow::slotUnsolve()
int wsc; int wsc;
int nofUnsolved = getNrOfUnsolvedConflicts(&wsc); int nofUnsolved = getNrOfUnsolvedConflicts(&wsc);
m_pStatusBar->message( i18n("Number of remaining unsolved conflicts: %1 (of which %2 are whitespace)") m_pStatusBar->message( i18n("Number of remaining unsolved conflicts: %1 (of which %2 are whitespace)")
.arg(nofUnsolved).arg(wsc) ); .tqarg(nofUnsolved).tqarg(wsc) );
} }
static TQString calcHistoryLead(const TQString& s ) static TQString calcHistoryLead(const TQString& s )
@ -1661,12 +1661,12 @@ void MergeResultWindow::writeLine(
if( m_selection.lineWithin( line+1 ) ) if( m_selection.lineWithin( line+1 ) )
p.fillRect( xOffset + fontWidth*(firstPosInLine2-m_firstColumn), yOffset, p.fillRect( xOffset + fontWidth*(firstPosInLine2-m_firstColumn), yOffset,
width(), fontHeight, colorGroup().highlight() ); width(), fontHeight, tqcolorGroup().highlight() );
else if ( lengthInLine2>0 ) else if ( lengthInLine2>0 )
p.fillRect( xOffset + fontWidth*(firstPosInLine2-m_firstColumn), yOffset, p.fillRect( xOffset + fontWidth*(firstPosInLine2-m_firstColumn), yOffset,
fontWidth*lengthInLine2, fontHeight, colorGroup().highlight() ); fontWidth*lengthInLine2, fontHeight, tqcolorGroup().highlight() );
p.setPen( colorGroup().highlightedText() ); p.setPen( tqcolorGroup().highlightedText() );
p.drawText( xOffset + fontWidth*(firstPosInLine2-m_firstColumn), yOffset+fontAscent, p.drawText( xOffset + fontWidth*(firstPosInLine2-m_firstColumn), yOffset+fontAscent,
s.mid(firstPosInLine2,lengthInLine2), true ); s.mid(firstPosInLine2,lengthInLine2), true );
} }
@ -2105,9 +2105,9 @@ void MergeResultWindow::slotCursorUpdate()
int xCursor = ( m_cursorXPos - m_firstColumn ) * fontWidth + xOffset; int xCursor = ( m_cursorXPos - m_firstColumn ) * fontWidth + xOffset;
if (!m_pOptionDialog->m_bRightToLeftLanguage) if (!m_pOptionDialog->m_bRightToLeftLanguage)
repaint( xCursor-2, yOffset, 5, fm.ascent()+2 ); tqrepaint( xCursor-2, yOffset, 5, fm.ascent()+2 );
else else
repaint( width()-1-4-(xCursor-2), yOffset, 5, fm.ascent()+2 ); tqrepaint( width()-1-4-(xCursor-2), yOffset, 5, fm.ascent()+2 );
m_bCursorUpdate=false; m_bCursorUpdate=false;
} }
@ -2613,10 +2613,10 @@ void MergeResultWindow::pasteClipboard( bool bFromSelection )
TQString str = melIt->getString( this ); TQString str = melIt->getString( this );
int x = convertToPosInText( str, m_cursorXPos, m_pOptionDialog->m_tabSize ); int x = convertToPosInText( str, m_cursorXPos, m_pOptionDialog->m_tabSize );
if ( !TQApplication::clipboard()->supportsSelection() ) if ( !TQApplication::tqclipboard()->supportsSelection() )
bFromSelection = false; bFromSelection = false;
TQString clipBoard = TQApplication::clipboard()->text( bFromSelection ? TQClipboard::Selection : TQClipboard::Clipboard ); TQString clipBoard = TQApplication::tqclipboard()->text( bFromSelection ? TQClipboard::Selection : TQClipboard::Clipboard );
TQString currentLine = str.left(x); TQString currentLine = str.left(x);
TQString endOfLine = str.mid(x); TQString endOfLine = str.mid(x);
@ -3072,7 +3072,7 @@ WindowTitleWidget::WindowTitleWidget(OptionDialog* pOptionDialog, TQWidget* pPar
m_pModifiedLabel = new TQLabel(i18n("[Modified]"),this); m_pModifiedLabel = new TQLabel(i18n("[Modified]"),this);
pHLayout->addWidget( m_pModifiedLabel ); pHLayout->addWidget( m_pModifiedLabel );
m_pModifiedLabel->setMinimumSize( m_pModifiedLabel->sizeHint() ); m_pModifiedLabel->setMinimumSize( m_pModifiedLabel->tqsizeHint() );
m_pModifiedLabel->setText(""); m_pModifiedLabel->setText("");
pHLayout->addStretch(1); pHLayout->addStretch(1);
@ -3137,7 +3137,7 @@ void WindowTitleWidget::setEncodings( TQTextCodec* pCodecForA, TQTextCodec* pCod
m_codecMap[i]=it->second; m_codecMap[i]=it->second;
++i; ++i;
} }
m_pEncodingSelector->setMinimumSize( m_pEncodingSelector->sizeHint() ); m_pEncodingSelector->setMinimumSize( m_pEncodingSelector->tqsizeHint() );
if ( pCodecForC && pCodecForB && pCodecForA ) if ( pCodecForC && pCodecForB && pCodecForA )
{ {

@ -110,7 +110,7 @@ public:
const LineData* pLineDataB, int sizeB, const LineData* pLineDataB, int sizeB,
const LineData* pLineDataC, int sizeC, const LineData* pLineDataC, int sizeC,
const Diff3LineList* pDiff3LineList, const Diff3LineList* pDiff3LineList,
TotalDiffStatus* pTotalDiffStatus TotalDifftqStatus* pTotalDifftqStatus
); );
void reset(); void reset();
@ -187,7 +187,7 @@ private:
int m_sizeC; int m_sizeC;
const Diff3LineList* m_pDiff3LineList; const Diff3LineList* m_pDiff3LineList;
TotalDiffStatus* m_pTotalDiffStatus; TotalDifftqStatus* m_pTotalDifftqStatus;
bool m_bPaintingAllowed; bool m_bPaintingAllowed;
int m_delayedDrawTimer; int m_delayedDrawTimer;

@ -22,13 +22,13 @@
#include <tqcombobox.h> #include <tqcombobox.h>
#include <tqfont.h> #include <tqfont.h>
#include <tqframe.h> #include <tqframe.h>
#include <layout.h> #include <tqlayout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlineedit.h> #include <tqlineedit.h>
#include <tqvbox.h> #include <tqvbox.h>
#include <tqvalidator.h> #include <tqvalidator.h>
#include <tqtooltip.h> #include <tqtooltip.h>
#include <textcodec.h> #include <tqtextcodec.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
#include <tqvbuttongroup.h> #include <tqvbuttongroup.h>
#include <tqsettings.h> #include <tqsettings.h>
@ -495,7 +495,7 @@ void OptionDialog::setupOtherOptions()
new OptionToggleAction( true, "Show Statusbar", &m_bShowStatusBar, this ); new OptionToggleAction( true, "Show Statusbar", &m_bShowStatusBar, this );
new OptionNum( (int)KToolBar::Top, "ToolBarPos", &m_toolBarPos, this ); new OptionNum( (int)KToolBar::Top, "ToolBarPos", &m_toolBarPos, this );
new OptionSize( TQSize(600,400),"Geometry", &m_geometry, this ); new OptionSize( TQSize(600,400),"Geometry", &m_tqgeometry, this );
new OptionPoint( TQPoint(0,22), "Position", &m_position, this ); new OptionPoint( TQPoint(0,22), "Position", &m_position, this );
new OptionToggleAction( false, "WindowStateMaximised", &m_bMaximised, this ); new OptionToggleAction( false, "WindowStateMaximised", &m_bMaximised, this );

@ -59,7 +59,7 @@ public:
TQString calcOptionHelp(); TQString calcOptionHelp();
// Some settings are not available in the option dialog: // Some settings are not available in the option dialog:
TQSize m_geometry; TQSize m_tqgeometry;
TQPoint m_position; TQPoint m_position;
bool m_bMaximised; bool m_bMaximised;
bool m_bShowToolBar; bool m_bShowToolBar;

@ -31,9 +31,9 @@
#include <kstatusbar.h> #include <kstatusbar.h>
#include <kkeydialog.h> #include <kkeydialog.h>
#include <clipboard.h> #include <tqclipboard.h>
#include <tqscrollbar.h> #include <tqscrollbar.h>
#include <layout.h> #include <tqlayout.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqsplitter.h> #include <tqsplitter.h>
#include <tqdir.h> #include <tqdir.h>
@ -235,14 +235,14 @@ bool KDiff3App::runDiff( const LineData* p1, int size1, const LineData* p2, int
return true; return true;
} }
void KDiff3App::init( bool bAuto, TotalDiffStatus* pTotalDiffStatus, bool bLoadFiles ) void KDiff3App::init( bool bAuto, TotalDifftqStatus* pTotalDifftqStatus, bool bLoadFiles )
{ {
ProgressProxy pp; ProgressProxy pp;
// When doing a full analysis in the directory-comparison, then the statistics-results // When doing a full analysis in the directory-comparison, then the statistics-results
// will be stored in the given TotalDiffStatus. Otherwise it will be 0. // will be stored in the given TotalDifftqStatus. Otherwise it will be 0.
bool bGUI = pTotalDiffStatus == 0; bool bGUI = pTotalDifftqStatus == 0;
if (pTotalDiffStatus==0) if (pTotalDifftqStatus==0)
pTotalDiffStatus = &m_totalDiffStatus; pTotalDifftqStatus = &m_totalDifftqStatus;
bool bPreserveCarriageReturn = m_pOptionDialog->m_bPreserveCarriageReturn; bool bPreserveCarriageReturn = m_pOptionDialog->m_bPreserveCarriageReturn;
@ -310,11 +310,11 @@ void KDiff3App::init( bool bAuto, TotalDiffStatus* pTotalDiffStatus, bool bLoadF
pp.setMaxNofSteps( 6 ); // 3 comparisons, 3 finediffs pp.setMaxNofSteps( 6 ); // 3 comparisons, 3 finediffs
} }
pTotalDiffStatus->reset(); pTotalDifftqStatus->reset();
// Run the diff. // Run the diff.
if ( m_sd3.isEmpty() ) if ( m_sd3.isEmpty() )
{ {
pTotalDiffStatus->bBinaryAEqB = m_sd1.isBinaryEqualWith( m_sd2 ); pTotalDifftqStatus->bBinaryAEqB = m_sd1.isBinaryEqualWith( m_sd2 );
pp.setInformation(i18n("Diff: A <-> B")); pp.setInformation(i18n("Diff: A <-> B"));
runDiff( m_sd1.getLineDataForDiff(), m_sd1.getSizeLines(), m_sd2.getLineDataForDiff(), m_sd2.getSizeLines(), m_diffList12,1,2 ); runDiff( m_sd1.getLineDataForDiff(), m_sd1.getSizeLines(), m_sd2.getLineDataForDiff(), m_sd2.getSizeLines(), m_diffList12,1,2 );
@ -323,8 +323,8 @@ void KDiff3App::init( bool bAuto, TotalDiffStatus* pTotalDiffStatus, bool bLoadF
pp.setInformation(i18n("Linediff: A <-> B")); pp.setInformation(i18n("Linediff: A <-> B"));
calcDiff3LineListUsingAB( &m_diffList12, m_diff3LineList ); calcDiff3LineListUsingAB( &m_diffList12, m_diff3LineList );
fineDiff( m_diff3LineList, 1, m_sd1.getLineDataForDisplay(), m_sd2.getLineDataForDisplay(), pTotalDiffStatus->bTextAEqB ); fineDiff( m_diff3LineList, 1, m_sd1.getLineDataForDisplay(), m_sd2.getLineDataForDisplay(), pTotalDifftqStatus->bTextAEqB );
if ( m_sd1.getSizeBytes()==0 ) pTotalDiffStatus->bTextAEqB=false; if ( m_sd1.getSizeBytes()==0 ) pTotalDifftqStatus->bTextAEqB=false;
pp.step(); pp.step();
} }
@ -337,9 +337,9 @@ void KDiff3App::init( bool bAuto, TotalDiffStatus* pTotalDiffStatus, bool bLoadF
pp.step(); pp.step();
} }
pTotalDiffStatus->bBinaryAEqB = m_sd1.isBinaryEqualWith( m_sd2 ); pTotalDifftqStatus->bBinaryAEqB = m_sd1.isBinaryEqualWith( m_sd2 );
pTotalDiffStatus->bBinaryAEqC = m_sd1.isBinaryEqualWith( m_sd3 ); pTotalDifftqStatus->bBinaryAEqC = m_sd1.isBinaryEqualWith( m_sd3 );
pTotalDiffStatus->bBinaryBEqC = m_sd3.isBinaryEqualWith( m_sd2 ); pTotalDifftqStatus->bBinaryBEqC = m_sd3.isBinaryEqualWith( m_sd2 );
pp.setInformation(i18n("Diff: A <-> B")); pp.setInformation(i18n("Diff: A <-> B"));
runDiff( m_sd1.getLineDataForDiff(), m_sd1.getSizeLines(), m_sd2.getLineDataForDiff(), m_sd2.getSizeLines(), m_diffList12,1,2 ); runDiff( m_sd1.getLineDataForDiff(), m_sd1.getSizeLines(), m_sd2.getLineDataForDiff(), m_sd2.getSizeLines(), m_diffList12,1,2 );
@ -364,16 +364,16 @@ void KDiff3App::init( bool bAuto, TotalDiffStatus* pTotalDiffStatus, bool bLoadF
debugLineCheck( m_diff3LineList, m_sd3.getSizeLines(), 3 ); debugLineCheck( m_diff3LineList, m_sd3.getSizeLines(), 3 );
pp.setInformation(i18n("Linediff: A <-> B")); pp.setInformation(i18n("Linediff: A <-> B"));
fineDiff( m_diff3LineList, 1, m_sd1.getLineDataForDisplay(), m_sd2.getLineDataForDisplay(), pTotalDiffStatus->bTextAEqB ); fineDiff( m_diff3LineList, 1, m_sd1.getLineDataForDisplay(), m_sd2.getLineDataForDisplay(), pTotalDifftqStatus->bTextAEqB );
pp.step(); pp.step();
pp.setInformation(i18n("Linediff: B <-> C")); pp.setInformation(i18n("Linediff: B <-> C"));
fineDiff( m_diff3LineList, 2, m_sd2.getLineDataForDisplay(), m_sd3.getLineDataForDisplay(), pTotalDiffStatus->bTextBEqC ); fineDiff( m_diff3LineList, 2, m_sd2.getLineDataForDisplay(), m_sd3.getLineDataForDisplay(), pTotalDifftqStatus->bTextBEqC );
pp.step(); pp.step();
pp.setInformation(i18n("Linediff: A <-> C")); pp.setInformation(i18n("Linediff: A <-> C"));
fineDiff( m_diff3LineList, 3, m_sd3.getLineDataForDisplay(), m_sd1.getLineDataForDisplay(), pTotalDiffStatus->bTextAEqC ); fineDiff( m_diff3LineList, 3, m_sd3.getLineDataForDisplay(), m_sd1.getLineDataForDisplay(), pTotalDifftqStatus->bTextAEqC );
pp.step(); pp.step();
if ( m_sd1.getSizeBytes()==0 ) { pTotalDiffStatus->bTextAEqB=false; pTotalDiffStatus->bTextAEqC=false; } if ( m_sd1.getSizeBytes()==0 ) { pTotalDifftqStatus->bTextAEqB=false; pTotalDifftqStatus->bTextAEqC=false; }
if ( m_sd2.getSizeBytes()==0 ) { pTotalDiffStatus->bTextAEqB=false; pTotalDiffStatus->bTextBEqC=false; } if ( m_sd2.getSizeBytes()==0 ) { pTotalDifftqStatus->bTextAEqB=false; pTotalDifftqStatus->bTextBEqC=false; }
} }
m_diffBufferInfo.init( &m_diff3LineList, &m_diff3LineVector, m_diffBufferInfo.init( &m_diff3LineList, &m_diff3LineVector,
m_sd1.getLineDataForDiff(), m_sd1.getSizeLines(), m_sd1.getLineDataForDiff(), m_sd1.getSizeLines(),
@ -420,7 +420,7 @@ void KDiff3App::init( bool bAuto, TotalDiffStatus* pTotalDiffStatus, bool bLoadF
m_sd2.getLineDataForDisplay(), m_sd2.getSizeLines(), m_sd2.getLineDataForDisplay(), m_sd2.getSizeLines(),
m_bTripleDiff ? m_sd3.getLineDataForDisplay() : 0, m_sd3.getSizeLines(), m_bTripleDiff ? m_sd3.getLineDataForDisplay() : 0, m_sd3.getSizeLines(),
&m_diff3LineList, &m_diff3LineList,
pTotalDiffStatus pTotalDifftqStatus
); );
m_pMergeResultWindowTitle->setFileName( m_outputFilename.isEmpty() ? TQString("unnamed.txt") : m_outputFilename ); m_pMergeResultWindowTitle->setFileName( m_outputFilename.isEmpty() ? TQString("unnamed.txt") : m_outputFilename );
@ -507,17 +507,17 @@ void KDiff3App::init( bool bAuto, TotalDiffStatus* pTotalDiffStatus, bool bLoadF
) )
{ {
TQString totalInfo; TQString totalInfo;
if ( pTotalDiffStatus->bBinaryAEqB && pTotalDiffStatus->bBinaryAEqC ) if ( pTotalDifftqStatus->bBinaryAEqB && pTotalDifftqStatus->bBinaryAEqC )
totalInfo += i18n("All input files are binary equal."); totalInfo += i18n("All input files are binary equal.");
else if ( pTotalDiffStatus->bTextAEqB && pTotalDiffStatus->bTextAEqC ) else if ( pTotalDifftqStatus->bTextAEqB && pTotalDifftqStatus->bTextAEqC )
totalInfo += i18n("All input files contain the same text, but are not binary equal."); totalInfo += i18n("All input files contain the same text, but are not binary equal.");
else { else {
if ( pTotalDiffStatus->bBinaryAEqB ) totalInfo += i18n("Files %1 and %2 are binary equal.\n" ).arg("A").arg("B"); if ( pTotalDifftqStatus->bBinaryAEqB ) totalInfo += i18n("Files %1 and %2 are binary equal.\n" ).tqarg("A").tqarg("B");
else if ( pTotalDiffStatus->bTextAEqB ) totalInfo += i18n("Files %1 and %2 have equal text, but are not binary equal. \n").arg("A").arg("B"); else if ( pTotalDifftqStatus->bTextAEqB ) totalInfo += i18n("Files %1 and %2 have equal text, but are not binary equal. \n").tqarg("A").tqarg("B");
if ( pTotalDiffStatus->bBinaryAEqC ) totalInfo += i18n("Files %1 and %2 are binary equal.\n" ).arg("A").arg("C"); if ( pTotalDifftqStatus->bBinaryAEqC ) totalInfo += i18n("Files %1 and %2 are binary equal.\n" ).tqarg("A").tqarg("C");
else if ( pTotalDiffStatus->bTextAEqC ) totalInfo += i18n("Files %1 and %2 have equal text, but are not binary equal. \n").arg("A").arg("C"); else if ( pTotalDifftqStatus->bTextAEqC ) totalInfo += i18n("Files %1 and %2 have equal text, but are not binary equal. \n").tqarg("A").tqarg("C");
if ( pTotalDiffStatus->bBinaryBEqC ) totalInfo += i18n("Files %1 and %2 are binary equal.\n" ).arg("B").arg("C"); if ( pTotalDifftqStatus->bBinaryBEqC ) totalInfo += i18n("Files %1 and %2 are binary equal.\n" ).tqarg("B").tqarg("C");
else if ( pTotalDiffStatus->bTextBEqC ) totalInfo += i18n("Files %1 and %2 have equal text, but are not binary equal. \n").arg("B").arg("C"); else if ( pTotalDifftqStatus->bTextBEqC ) totalInfo += i18n("Files %1 and %2 have equal text, but are not binary equal. \n").tqarg("B").tqarg("C");
} }
if ( !totalInfo.isEmpty() ) if ( !totalInfo.isEmpty() )
@ -609,14 +609,14 @@ void KDiff3App::sourceMask( int srcMask, int enabledMask )
// Function uses setMinSize( sizeHint ) before adding the widget. // Function uses setMinSize( tqsizeHint ) before adding the widget.
// void addWidget(TQBoxLayout* layout, TQWidget* widget); // void addWidget(TQBoxLayout* tqlayout, TQWidget* widget);
template <class W, class L> template <class W, class L>
void addWidget( L* layout, W* widget) void addWidget( L* tqlayout, W* widget)
{ {
TQSize s = widget->sizeHint(); TQSize s = widget->tqsizeHint();
widget->setMinimumSize( TQSize(max2(s.width(),0),max2(s.height(),0) ) ); widget->setMinimumSize( TQSize(max2(s.width(),0),max2(s.height(),0) ) );
layout->addWidget( widget ); tqlayout->addWidget( widget );
} }
void KDiff3App::initView() void KDiff3App::initView()
@ -1071,7 +1071,7 @@ void KDiff3App::slotFileOpen()
} }
void KDiff3App::slotFileOpen2(TQString fn1, TQString fn2, TQString fn3, TQString ofn, void KDiff3App::slotFileOpen2(TQString fn1, TQString fn2, TQString fn3, TQString ofn,
TQString an1, TQString an2, TQString an3, TotalDiffStatus* pTotalDiffStatus ) TQString an1, TQString an2, TQString an3, TotalDifftqStatus* pTotalDifftqStatus )
{ {
if ( !canContinue() ) return; if ( !canContinue() ) return;
@ -1111,9 +1111,9 @@ void KDiff3App::slotFileOpen2(TQString fn1, TQString fn2, TQString fn3, TQString
else else
{ {
m_bDirCompare = bDirCompare; // Don't allow this to change here. m_bDirCompare = bDirCompare; // Don't allow this to change here.
init( false, pTotalDiffStatus ); init( false, pTotalDifftqStatus );
if ( pTotalDiffStatus!=0 ) if ( pTotalDifftqStatus!=0 )
return; return;
if ( ! m_sd1.isEmpty() && ! m_sd1.hasData() || if ( ! m_sd1.isEmpty() && ! m_sd1.hasData() ||
@ -1174,7 +1174,7 @@ void KDiff3App::slotEditCut()
if ( !s.isNull() ) if ( !s.isNull() )
{ {
TQApplication::clipboard()->setText( s, TQClipboard::Clipboard ); TQApplication::tqclipboard()->setText( s, TQClipboard::Clipboard );
} }
slotStatusMsg(i18n("Ready.")); slotStatusMsg(i18n("Ready."));
@ -1190,7 +1190,7 @@ void KDiff3App::slotEditCopy()
if ( s.isNull() && m_pMergeResultWindow!=0 ) s = m_pMergeResultWindow->getSelection(); if ( s.isNull() && m_pMergeResultWindow!=0 ) s = m_pMergeResultWindow->getSelection();
if ( !s.isNull() ) if ( !s.isNull() )
{ {
TQApplication::clipboard()->setText( s, TQClipboard::Clipboard ); TQApplication::tqclipboard()->setText( s, TQClipboard::Clipboard );
} }
slotStatusMsg(i18n("Ready.")); slotStatusMsg(i18n("Ready."));
@ -1208,17 +1208,17 @@ void KDiff3App::slotEditPaste()
{ {
if ( m_pDiffTextWindow1->hasFocus() ) if ( m_pDiffTextWindow1->hasFocus() )
{ {
m_sd1.setData( TQApplication::clipboard()->text(TQClipboard::Clipboard) ); m_sd1.setData( TQApplication::tqclipboard()->text(TQClipboard::Clipboard) );
init(); init();
} }
else if ( m_pDiffTextWindow2->hasFocus() ) else if ( m_pDiffTextWindow2->hasFocus() )
{ {
m_sd2.setData( TQApplication::clipboard()->text(TQClipboard::Clipboard) ); m_sd2.setData( TQApplication::tqclipboard()->text(TQClipboard::Clipboard) );
init(); init();
} }
else if ( m_pDiffTextWindow3->hasFocus() ) else if ( m_pDiffTextWindow3->hasFocus() )
{ {
m_sd3.setData( TQApplication::clipboard()->text(TQClipboard::Clipboard) ); m_sd3.setData( TQApplication::tqclipboard()->text(TQClipboard::Clipboard) );
init(); init();
} }
} }
@ -1465,7 +1465,7 @@ void KDiff3App::slotSelectionEnd()
} }
else else
{ {
TQClipboard *clipBoard = TQApplication::clipboard(); TQClipboard *clipBoard = TQApplication::tqclipboard();
if (clipBoard->supportsSelection ()) if (clipBoard->supportsSelection ())
{ {
@ -1484,7 +1484,7 @@ void KDiff3App::slotSelectionEnd()
void KDiff3App::slotClipboardChanged() void KDiff3App::slotClipboardChanged()
{ {
TQString s = TQApplication::clipboard()->text(); TQString s = TQApplication::tqclipboard()->text();
//editPaste->setEnabled(!s.isEmpty()); //editPaste->setEnabled(!s.isEmpty());
} }
@ -1969,7 +1969,7 @@ void KDiff3App::slotMergeCurrentFile()
void KDiff3App::slotWinFocusNext() void KDiff3App::slotWinFocusNext()
{ {
TQWidget* focus = tqApp->focusWidget(); TQWidget* focus = tqApp->tqfocusWidget();
if ( focus == m_pDirectoryMergeWindow && m_pDirectoryMergeWindow->isVisible() && ! dirShowBoth->isChecked() ) if ( focus == m_pDirectoryMergeWindow && m_pDirectoryMergeWindow->isVisible() && ! dirShowBoth->isChecked() )
{ {
slotDirViewToggle(); slotDirViewToggle();
@ -1999,7 +1999,7 @@ void KDiff3App::slotWinFocusNext()
void KDiff3App::slotWinFocusPrev() void KDiff3App::slotWinFocusPrev()
{ {
TQWidget* focus = tqApp->focusWidget(); TQWidget* focus = tqApp->tqfocusWidget();
if ( focus == m_pDirectoryMergeWindow && m_pDirectoryMergeWindow->isVisible() && ! dirShowBoth->isChecked() ) if ( focus == m_pDirectoryMergeWindow && m_pDirectoryMergeWindow->isVisible() && ! dirShowBoth->isChecked() )
{ {
slotDirViewToggle(); slotDirViewToggle();

@ -25,7 +25,7 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqlineedit.h> #include <tqlineedit.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqdragobject.h> #include <tqdragobject.h>
#include <tqregexp.h> #include <tqregexp.h>
@ -111,15 +111,15 @@ OpenDialog::OpenDialog(
TQPopupMenu* m = new TQPopupMenu(this); TQPopupMenu* m = new TQPopupMenu(this);
int id=0; int id=0;
m->insertItem( i18n("Swap %1<->%2").arg("A").arg("B"), id++ ); m->insertItem( i18n("Swap %1<->%2").tqarg("A").tqarg("B"), id++ );
m->insertItem( i18n("Swap %1<->%2").arg("B").arg("C"), id++ ); m->insertItem( i18n("Swap %1<->%2").tqarg("B").tqarg("C"), id++ );
m->insertItem( i18n("Swap %1<->%2").arg("C").arg("A"), id++ ); m->insertItem( i18n("Swap %1<->%2").tqarg("C").tqarg("A"), id++ );
m->insertItem( i18n("Copy %1->Output").arg("A"), id++ ); m->insertItem( i18n("Copy %1->Output").tqarg("A"), id++ );
m->insertItem( i18n("Copy %1->Output").arg("B"), id++ ); m->insertItem( i18n("Copy %1->Output").tqarg("B"), id++ );
m->insertItem( i18n("Copy %1->Output").arg("C"), id++ ); m->insertItem( i18n("Copy %1->Output").tqarg("C"), id++ );
m->insertItem( i18n("Swap %1<->Output").arg("A"), id++ ); m->insertItem( i18n("Swap %1<->Output").tqarg("A"), id++ );
m->insertItem( i18n("Swap %1<->Output").arg("B"), id++ ); m->insertItem( i18n("Swap %1<->Output").tqarg("B"), id++ );
m->insertItem( i18n("Swap %1<->Output").arg("C"), id++ ); m->insertItem( i18n("Swap %1<->Output").tqarg("C"), id++ );
connect( m, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSwapCopyNames(int))); connect( m, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSwapCopyNames(int)));
button->setPopup(m); button->setPopup(m);
@ -170,7 +170,7 @@ OpenDialog::OpenDialog(
connect( button, TQT_SIGNAL(clicked()), this, TQT_SLOT( reject() ) ); connect( button, TQT_SIGNAL(clicked()), this, TQT_SLOT( reject() ) );
l->addWidget( button,1 ); l->addWidget( button,1 );
TQSize sh = sizeHint(); TQSize sh = tqsizeHint();
setFixedHeight( sh.height() ); setFixedHeight( sh.height() );
m_bInputFileNameChanged = false; m_bInputFileNameChanged = false;
@ -339,47 +339,47 @@ void OpenDialog::slotSwapCopyNames( int id ) // id selected in the popup menu
FindDialog::FindDialog(TQWidget* pParent) FindDialog::FindDialog(TQWidget* pParent)
: TQDialog( pParent ) : TQDialog( pParent )
{ {
TQGridLayout* layout = new TQGridLayout( this ); TQGridLayout* tqlayout = new TQGridLayout( this );
layout->setMargin(5); tqlayout->setMargin(5);
layout->setSpacing(5); tqlayout->setSpacing(5);
int line=0; int line=0;
layout->addMultiCellWidget( new TQLabel(i18n("Search text:"),this), line,line,0,1 ); tqlayout->addMultiCellWidget( new TQLabel(i18n("Search text:"),this), line,line,0,1 );
++line; ++line;
m_pSearchString = new TQLineEdit( this ); m_pSearchString = new TQLineEdit( this );
layout->addMultiCellWidget( m_pSearchString, line,line,0,1 ); tqlayout->addMultiCellWidget( m_pSearchString, line,line,0,1 );
++line; ++line;
m_pCaseSensitive = new TQCheckBox(i18n("Case sensitive"),this); m_pCaseSensitive = new TQCheckBox(i18n("Case sensitive"),this);
layout->addWidget( m_pCaseSensitive, line, 1 ); tqlayout->addWidget( m_pCaseSensitive, line, 1 );
m_pSearchInA = new TQCheckBox(i18n("Search A"),this); m_pSearchInA = new TQCheckBox(i18n("Search A"),this);
layout->addWidget( m_pSearchInA, line, 0 ); tqlayout->addWidget( m_pSearchInA, line, 0 );
m_pSearchInA->setChecked( true ); m_pSearchInA->setChecked( true );
++line; ++line;
m_pSearchInB = new TQCheckBox(i18n("Search B"),this); m_pSearchInB = new TQCheckBox(i18n("Search B"),this);
layout->addWidget( m_pSearchInB, line, 0 ); tqlayout->addWidget( m_pSearchInB, line, 0 );
m_pSearchInB->setChecked( true ); m_pSearchInB->setChecked( true );
++line; ++line;
m_pSearchInC = new TQCheckBox(i18n("Search C"),this); m_pSearchInC = new TQCheckBox(i18n("Search C"),this);
layout->addWidget( m_pSearchInC, line, 0 ); tqlayout->addWidget( m_pSearchInC, line, 0 );
m_pSearchInC->setChecked( true ); m_pSearchInC->setChecked( true );
++line; ++line;
m_pSearchInOutput = new TQCheckBox(i18n("Search output"),this); m_pSearchInOutput = new TQCheckBox(i18n("Search output"),this);
layout->addWidget( m_pSearchInOutput, line, 0 ); tqlayout->addWidget( m_pSearchInOutput, line, 0 );
m_pSearchInOutput->setChecked( true ); m_pSearchInOutput->setChecked( true );
++line; ++line;
TQPushButton* pButton = new TQPushButton( i18n("&Search"), this ); TQPushButton* pButton = new TQPushButton( i18n("&Search"), this );
layout->addWidget( pButton, line, 0 ); tqlayout->addWidget( pButton, line, 0 );
connect( pButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept())); connect( pButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept()));
pButton = new TQPushButton( i18n("&Cancel"), this ); pButton = new TQPushButton( i18n("&Cancel"), this );
layout->addWidget( pButton, line, 1 ); tqlayout->addWidget( pButton, line, 1 );
connect( pButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); connect( pButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject()));
hide(); hide();
@ -498,7 +498,7 @@ RegExpTester::RegExpTester( TQWidget* pParent, const TQString& autoMergeRegExpTo
pGrid->addWidget(pButton,line,1); pGrid->addWidget(pButton,line,1);
connect( pButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); connect( pButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject()));
resize( 800, sizeHint().height() ); resize( 800, tqsizeHint().height() );
} }
void RegExpTester::init( const TQString& autoMergeRegExp, const TQString& historyStartRegExp, const TQString& historyEntryStartRegExp, const TQString historySortKeyOrder ) void RegExpTester::init( const TQString& autoMergeRegExp, const TQString& historyStartRegExp, const TQString& historyEntryStartRegExp, const TQString historySortKeyOrder )

Loading…
Cancel
Save