summaryrefslogtreecommitdiffstats
path: root/redhat/applications/kdiff3/bp002-d654b107.diff
blob: dc4a95c9ecf9dd5813a31132c99ea20c4f7f6dbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
commit d654b1079f7801b0a65c8de8936d0d174656702b
Author: Timothy Pearson <kb9vqf@pearsoncomputing.net>
Date:   1324497860 -0600

    Rename obsolete tq methods to standard names

diff --git a/src/diff.cpp b/src/diff.cpp
index 722950f..feb1373 100644
--- a/src/diff.cpp
+++ b/src/diff.cpp
@@ -557,7 +557,7 @@ void SourceData::readAndPreprocess( TQTextCodec* pEncoding, bool bAutoDetectUnic
       m_lmppData.m_v.resize( m_normalData.m_vSize );
       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.
-         m_lmppData.m_v[i].pLine = m_lmppData.m_tqunicodeBuf.tqunicode()+m_lmppData.m_tqunicodeBuf.length();
+         m_lmppData.m_v[i].pLine = m_lmppData.m_unicodeBuf.unicode()+m_lmppData.m_unicodeBuf.length();
       }
 
       m_lmppData.m_vSize = m_normalData.m_vSize;
@@ -567,8 +567,8 @@ void SourceData::readAndPreprocess( TQTextCodec* pEncoding, bool bAutoDetectUnic
    if ( m_pOptionDialog->m_bIgnoreCase )
    {
       int i;
-      TQChar* pBuf = const_cast<TQChar*>(m_lmppData.m_tqunicodeBuf.tqunicode());
-      int ucSize = m_lmppData.m_tqunicodeBuf.length();
+      TQChar* pBuf = const_cast<TQChar*>(m_lmppData.m_unicodeBuf.unicode());
+      int ucSize = m_lmppData.m_unicodeBuf.length();
       for(i=0; i<ucSize; ++i)
       {
          pBuf[i] = pBuf[i].upper();
@@ -604,7 +604,7 @@ void SourceData::readAndPreprocess( TQTextCodec* pEncoding, bool bAutoDetectUnic
 /** Prepare the linedata vector for every input line.*/
 void SourceData::FileData::preprocess( bool bPreserveCR, TQTextCodec* pEncoding )
 {
-   //m_tqunicodeBuf = decodeString( m_pBuf, m_size, eEncoding );
+   //m_unicodeBuf = decodeString( m_pBuf, m_size, eEncoding );
 
    long skipBytes = 0;
    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 );
    ts.setCodec( pEncoding);
    //ts.setAutoDetectUnicode( false );
-   m_tqunicodeBuf = ts.read();
+   m_unicodeBuf = ts.read();
    ba.resetRawData( m_pBuf+skipBytes, m_size-skipBytes );
 
-   int ucSize = m_tqunicodeBuf.length();
-   const TQChar* p = m_tqunicodeBuf.tqunicode();
+   int ucSize = m_unicodeBuf.length();
+   const TQChar* p = m_unicodeBuf.unicode();
 
    m_bIsText = true;
    int lines = 1;
@@ -770,9 +770,9 @@ static void checkLineForComments(
 void SourceData::FileData::removeComments()
 {
    int line=0;
-   TQChar* p = const_cast<TQChar*>(m_tqunicodeBuf.tqunicode());
+   TQChar* p = const_cast<TQChar*>(m_unicodeBuf.unicode());
    bool bWithinComment=false;
-   int size = m_tqunicodeBuf.length();
+   int size = m_unicodeBuf.length();
    for(int i=0; i<size; ++i )
    {
 //      std::cout << "2        " << std::string(&p[i], m_v[line].size) << std::endl;
diff --git a/src/diff.h b/src/diff.h
index a4015d1..3f876f8 100644
--- a/src/diff.h
+++ b/src/diff.h
@@ -293,7 +293,7 @@ private:
       const char* m_pBuf;
       int m_size;
       int m_vSize; // Nr of lines in m_pBuf1 and size of m_v1, m_dv12 and m_dv13
-      TQString m_tqunicodeBuf;
+      TQString m_unicodeBuf;
       std::vector<LineData> m_v;
       bool m_bIsText;
       bool readFile( const TQString& filename );
diff --git a/src/fileaccess.cpp b/src/fileaccess.cpp
index 1f90d5d..5584c50 100644
--- a/src/fileaccess.cpp
+++ b/src/fileaccess.cpp
@@ -1088,7 +1088,7 @@ void CvsIgnoreList::addEntry(const TQString& pattern)
       unsigned int nofMetaCharacters = 0;
 
       const TQChar* pos;
-      pos = pattern.tqunicode();
+      pos = pattern.unicode();
       const TQChar* posEnd;
       posEnd=pos + pattern.length();
       while (pos < posEnd)
@@ -1454,27 +1454,27 @@ ProgressDialog::ProgressDialog( TQWidget* pParent )
 : TQDialog( pParent, 0, true )
 {
    m_bStayHidden = false;
-   TQVBoxLayout* tqlayout = new TQVBoxLayout(this);
+   TQVBoxLayout* layout = new TQVBoxLayout(this);
 
    m_pInformation = new TQLabel( " ", this );
-   tqlayout->addWidget( m_pInformation );
+   layout->addWidget( m_pInformation );
 
    m_pProgressBar = new KProgress(1000, this);
-   tqlayout->addWidget( m_pProgressBar );
+   layout->addWidget( m_pProgressBar );
 
    m_pSubInformation = new TQLabel( " ", this);
-   tqlayout->addWidget( m_pSubInformation );
+   layout->addWidget( m_pSubInformation );
 
    m_pSubProgressBar = new KProgress(1000, this);
-   tqlayout->addWidget( m_pSubProgressBar );
+   layout->addWidget( m_pSubProgressBar );
 
    m_pSlowJobInfo = new TQLabel( " ", this);
-   tqlayout->addWidget( m_pSlowJobInfo );
+   layout->addWidget( m_pSlowJobInfo );
 
-   TQHBoxLayout* htqlayout = new TQHBoxLayout( tqlayout );
-   htqlayout->addStretch(1);
+   TQHBoxLayout* hlayout = new TQHBoxLayout( layout );
+   hlayout->addStretch(1);
    m_pAbortButton = new TQPushButton( i18n("&Cancel"), this);
-   htqlayout->addWidget( m_pAbortButton );
+   hlayout->addWidget( m_pAbortButton );
    connect( m_pAbortButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAbort()) );
 
    m_progressDelayTimer = 0;
diff --git a/src/gnudiff_io.cpp b/src/gnudiff_io.cpp
index f29fd31..aab645f 100644
--- a/src/gnudiff_io.cpp
+++ b/src/gnudiff_io.cpp
@@ -169,7 +169,7 @@ void GnuDiff::find_and_hash_each_line (struct file_data *current)
 	    while ( p<bufend && (c = *p) != '\n' )
             {
 	      if (! (isWhite(c) || bIgnoreNumbers && (c.isDigit() || c=='-' || c=='.' ) ))
-                  h = HASH (h, c.lower().tqunicode());
+                  h = HASH (h, c.lower().unicode());
               ++p;
             }            
 	    break;
@@ -177,7 +177,7 @@ void GnuDiff::find_and_hash_each_line (struct file_data *current)
 	  default:
 	    while ( p<bufend && (c = *p) != '\n' )
             {
-               h = HASH (h, c.lower().tqunicode());
+               h = HASH (h, c.lower().unicode());
                ++p;
             }
 	    break;
@@ -189,7 +189,7 @@ void GnuDiff::find_and_hash_each_line (struct file_data *current)
 	    while ( p<bufend && (c = *p) != '\n')
             {
 	      if (! (isWhite(c)|| bIgnoreNumbers && (c.isDigit() || c=='-' || c=='.' ) ))
-                 h = HASH (h, c.tqunicode());
+                 h = HASH (h, c.unicode());
               ++p;
             }
 	    break;
@@ -197,7 +197,7 @@ void GnuDiff::find_and_hash_each_line (struct file_data *current)
 	  default:
 	    while ( p<bufend && (c = *p) != '\n')
             {
-               h = HASH (h, c.tqunicode());
+               h = HASH (h, c.unicode());
                ++p;
             }
 	    break;
diff --git a/src/mergeresultwindow.cpp b/src/mergeresultwindow.cpp
index dea1407..760d794 100644
--- a/src/mergeresultwindow.cpp
+++ b/src/mergeresultwindow.cpp
@@ -2613,10 +2613,10 @@ void MergeResultWindow::pasteClipboard( bool bFromSelection )
    TQString str = melIt->getString( this );
    int x = convertToPosInText( str, m_cursorXPos, m_pOptionDialog->m_tabSize );
 
-   if ( !TQApplication::tqclipboard()->supportsSelection() )
+   if ( !TQApplication::clipboard()->supportsSelection() )
       bFromSelection = false;
 
-   TQString clipBoard = TQApplication::tqclipboard()->text( bFromSelection ? TQClipboard::Selection : TQClipboard::Clipboard );
+   TQString clipBoard = TQApplication::clipboard()->text( bFromSelection ? TQClipboard::Selection : TQClipboard::Clipboard );
 
    TQString currentLine = str.left(x);
    TQString endOfLine = str.mid(x);
diff --git a/src/pdiff.cpp b/src/pdiff.cpp
index 3986596..0a10b00 100644
--- a/src/pdiff.cpp
+++ b/src/pdiff.cpp
@@ -610,13 +610,13 @@ void KDiff3App::sourceMask( int srcMask, int enabledMask )
 
 
 // Function uses setMinSize( sizeHint ) before adding the widget.
-// void addWidget(TQBoxLayout* tqlayout, TQWidget* widget);
+// void addWidget(TQBoxLayout* layout, TQWidget* widget);
 template <class W, class L>
-void addWidget( L* tqlayout, W* widget)
+void addWidget( L* layout, W* widget)
 {
    TQSize s = widget->sizeHint();
    widget->setMinimumSize( TQSize(max2(s.width(),0),max2(s.height(),0) ) );
-   tqlayout->addWidget( widget );
+   layout->addWidget( widget );
 }
 
 void KDiff3App::initView()
@@ -1174,7 +1174,7 @@ void KDiff3App::slotEditCut()
 
    if ( !s.isNull() )
    {
-      TQApplication::tqclipboard()->setText( s, TQClipboard::Clipboard );
+      TQApplication::clipboard()->setText( s, TQClipboard::Clipboard );
    }
 
    slotStatusMsg(i18n("Ready."));
@@ -1190,7 +1190,7 @@ void KDiff3App::slotEditCopy()
    if ( s.isNull() && m_pMergeResultWindow!=0 ) s = m_pMergeResultWindow->getSelection();
    if ( !s.isNull() )
    {
-      TQApplication::tqclipboard()->setText( s, TQClipboard::Clipboard );
+      TQApplication::clipboard()->setText( s, TQClipboard::Clipboard );
    }
 
    slotStatusMsg(i18n("Ready."));
@@ -1208,17 +1208,17 @@ void KDiff3App::slotEditPaste()
    {
       if ( m_pDiffTextWindow1->hasFocus() )
       {
-         m_sd1.setData( TQApplication::tqclipboard()->text(TQClipboard::Clipboard) );
+         m_sd1.setData( TQApplication::clipboard()->text(TQClipboard::Clipboard) );
          init();
       }
       else if ( m_pDiffTextWindow2->hasFocus() )
       {
-         m_sd2.setData( TQApplication::tqclipboard()->text(TQClipboard::Clipboard) );
+         m_sd2.setData( TQApplication::clipboard()->text(TQClipboard::Clipboard) );
          init();
       }
       else if ( m_pDiffTextWindow3->hasFocus() )
       {
-         m_sd3.setData( TQApplication::tqclipboard()->text(TQClipboard::Clipboard) );
+         m_sd3.setData( TQApplication::clipboard()->text(TQClipboard::Clipboard) );
          init();
       }
    }
@@ -1465,7 +1465,7 @@ void KDiff3App::slotSelectionEnd()
    }
    else
    {
-       TQClipboard *clipBoard = TQApplication::tqclipboard();
+       TQClipboard *clipBoard = TQApplication::clipboard();
 
        if (clipBoard->supportsSelection ())
        {
@@ -1484,7 +1484,7 @@ void KDiff3App::slotSelectionEnd()
 
 void KDiff3App::slotClipboardChanged()
 {
-   TQString s = TQApplication::tqclipboard()->text();
+   TQString s = TQApplication::clipboard()->text();
    //editPaste->setEnabled(!s.isEmpty());
 }
 
diff --git a/src/smalldialogs.cpp b/src/smalldialogs.cpp
index ff7ca56..b19b7c2 100644
--- a/src/smalldialogs.cpp
+++ b/src/smalldialogs.cpp
@@ -339,47 +339,47 @@ void OpenDialog::slotSwapCopyNames( int id ) // id selected in the popup menu
 FindDialog::FindDialog(TQWidget* pParent)
 : TQDialog( pParent )
 {
-   TQGridLayout* tqlayout = new TQGridLayout( this );
-   tqlayout->setMargin(5);
-   tqlayout->setSpacing(5);
+   TQGridLayout* layout = new TQGridLayout( this );
+   layout->setMargin(5);
+   layout->setSpacing(5);
 
    int line=0;
-   tqlayout->addMultiCellWidget( new TQLabel(i18n("Search text:"),this), line,line,0,1 );
+   layout->addMultiCellWidget( new TQLabel(i18n("Search text:"),this), line,line,0,1 );
    ++line;
 
    m_pSearchString = new TQLineEdit( this );
-   tqlayout->addMultiCellWidget( m_pSearchString, line,line,0,1 );
+   layout->addMultiCellWidget( m_pSearchString, line,line,0,1 );
    ++line;
 
    m_pCaseSensitive = new TQCheckBox(i18n("Case sensitive"),this);
-   tqlayout->addWidget( m_pCaseSensitive, line, 1 );
+   layout->addWidget( m_pCaseSensitive, line, 1 );
 
    m_pSearchInA = new TQCheckBox(i18n("Search A"),this);
-   tqlayout->addWidget( m_pSearchInA, line, 0 );
+   layout->addWidget( m_pSearchInA, line, 0 );
    m_pSearchInA->setChecked( true );
    ++line;
 
    m_pSearchInB = new TQCheckBox(i18n("Search B"),this);
-   tqlayout->addWidget( m_pSearchInB, line, 0 );
+   layout->addWidget( m_pSearchInB, line, 0 );
    m_pSearchInB->setChecked( true );
    ++line;
 
    m_pSearchInC = new TQCheckBox(i18n("Search C"),this);
-   tqlayout->addWidget( m_pSearchInC, line, 0 );
+   layout->addWidget( m_pSearchInC, line, 0 );
    m_pSearchInC->setChecked( true );
    ++line;
 
    m_pSearchInOutput = new TQCheckBox(i18n("Search output"),this);
-   tqlayout->addWidget( m_pSearchInOutput, line, 0 );
+   layout->addWidget( m_pSearchInOutput, line, 0 );
    m_pSearchInOutput->setChecked( true );
    ++line;
 
    TQPushButton* pButton = new TQPushButton( i18n("&Search"), this );
-   tqlayout->addWidget( pButton, line, 0 );
+   layout->addWidget( pButton, line, 0 );
    connect( pButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept()));
 
    pButton = new TQPushButton( i18n("&Cancel"), this );
-   tqlayout->addWidget( pButton, line, 1 );
+   layout->addWidget( pButton, line, 1 );
    connect( pButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject()));
 
    hide();