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

This reverts commit 8e0ad9b24c.
pull/1/head
Timothy Pearson 13 years ago
parent 8e0ad9b24c
commit cfd3139ae5

@ -16,7 +16,7 @@
***************************************************************************/ ***************************************************************************/
// QT Includes // QT Includes
#include <layout.h> #include <tqlayout.h>
#include <tqprogressbar.h> #include <tqprogressbar.h>
#include <tqtimer.h> #include <tqtimer.h>
#include <tqtooltip.h> #include <tqtooltip.h>
@ -157,7 +157,7 @@ void ProgressDialog::error( TQString text )
} }
//TODO: simplify this (breaks i18n) //TODO: simplify this (breaks i18n)
KListViewItem* item = new KListViewItem( display, TQString( i18n("Error: %1") ).arg( TQString() ) + simplify( text ), count() ); KListViewItem* item = new KListViewItem( display, TQString( i18n("Error: %1") ).tqarg( TQString() ) + simplify( text ), count() );
item->setPixmap( 0, SmallIcon("cancel") ); item->setPixmap( 0, SmallIcon("cancel") );
display->insertItem( item ); display->insertItem( item );
} }
@ -170,7 +170,7 @@ void ProgressDialog::warning( TQString text )
m_timer->start( TIMER_INTERVAL ); m_timer->start( TIMER_INTERVAL );
} }
KListViewItem* item = new KListViewItem( display, TQString( i18n("Warning: %1") ).arg( TQString() ) + simplify( text ), count() ); KListViewItem* item = new KListViewItem( display, TQString( i18n("Warning: %1") ).tqarg( TQString() ) + simplify( text ), count() );
item->setPixmap( 0, SmallIcon("idea") ); item->setPixmap( 0, SmallIcon("idea") );
display->insertItem( item ); display->insertItem( item );
} }

@ -125,7 +125,7 @@ void BatchRenamer::processFiles( ProgressDialog* p, TQObject* object )
} }
} }
p->print( TQString( i18n("Filenames Processed after %1 seconds.")).arg(t.elapsed()/1000) ); p->print( TQString( i18n("Filenames Processed after %1 seconds.")).tqarg(t.elapsed()/1000) );
work( p ); work( p );
} }
@ -140,7 +140,7 @@ TQString BatchRenamer::processString( TQString text, TQString oldname, int i )
* *
* Krename will have problems with files * Krename will have problems with files
* which contain one of the following * which contain one of the following
* unicode characters: 60000, 60001, 60002 * tqunicode characters: 60000, 60001, 60002
* 60003, 60004, 60005, 60006. * 60003, 60004, 60005, 60006.
* *
* This is not a good solution, if you have a * This is not a good solution, if you have a
@ -258,11 +258,11 @@ void BatchRenamer::work( ProgressDialog* p )
* Give the user some information... * Give the user some information...
*/ */
if( m_mode == COPY) if( m_mode == COPY)
p->print( TQString( i18n("Files will be copied to: %1") ).arg(m_files[0].dst.directory) ); p->print( TQString( i18n("Files will be copied to: %1") ).tqarg(m_files[0].dst.directory) );
else if( m_mode == MOVE ) else if( m_mode == MOVE )
p->print( TQString( i18n("Files will be moved to: %1") ).arg(m_files[0].dst.directory) ); p->print( TQString( i18n("Files will be moved to: %1") ).tqarg(m_files[0].dst.directory) );
else if( m_mode == LINK ) else if( m_mode == LINK )
p->print( TQString( i18n("Symbolic links will be created in: %1") ).arg(m_files[0].dst.directory) ); p->print( TQString( i18n("Symbolic links will be created in: %1") ).tqarg(m_files[0].dst.directory) );
else if( m_mode == RENAME ) else if( m_mode == RENAME )
p->print( i18n("Input files will be renamed.") ); p->print( i18n("Input files will be renamed.") );
@ -317,7 +317,7 @@ void BatchRenamer::work( ProgressDialog* p )
(*tundo) << "mv --force -b --suffix=.krename_ \"" << m_files[i].dst.name (*tundo) << "mv --force -b --suffix=.krename_ \"" << m_files[i].dst.name
<< "\" \"" << m_files[i].src.name << "\"" << endl; << "\" \"" << m_files[i].src.name << "\"" << endl;
} else } else
p->warning( TQString( i18n("Undo is not possible for remote file: %1") ).arg( dst.prettyURL() ) ); p->warning( TQString( i18n("Undo is not possible for remote file: %1") ).tqarg( dst.prettyURL() ) );
} }
@ -329,13 +329,13 @@ void BatchRenamer::work( ProgressDialog* p )
} }
} }
const TQString m = TQString( i18n("Renamed %1 files successfully.") ).arg(i-error); const TQString m = TQString( i18n("Renamed %1 files successfully.") ).tqarg(i-error);
( i - error ) ? p->print( m ) : p->warning( m ); ( i - error ) ? p->print( m ) : p->warning( m );
if( error > 0 ) if( error > 0 )
p->warning( TQString( i18n("%2 errors occurred!") ).arg(error)); p->warning( TQString( i18n("%2 errors occurred!") ).tqarg(error));
p->print( TQString( i18n("Elapsed time: %1 seconds") ).arg( t.elapsed()/1000 ), "kalarm" ); p->print( TQString( i18n("Elapsed time: %1 seconds") ).tqarg( t.elapsed()/1000 ), "kalarm" );
p->print( i18n("KRename finished the renaming process."), "krename" ); p->print( i18n("KRename finished the renaming process."), "krename" );
p->print( i18n("Press close to quit!") ); p->print( i18n("Press close to quit!") );
p->setRenamedFiles( renamedFiles, m_files.count() ); p->setRenamedFiles( renamedFiles, m_files.count() );

@ -20,7 +20,7 @@
// QT includes // QT includes
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
// KDE includes // KDE includes
#include <kapplication.h> #include <kapplication.h>
@ -137,7 +137,7 @@ TQString CommandPlugin::processFile( BatchRenamer* b, int i, TQString, int )
proc.resume(); proc.resume();
if( !noblock && proc.exitStatus() ) if( !noblock && proc.exitStatus() )
return command.arg( filename ) + TQString( i18n(" exited with error: %1") ).arg( proc.exitStatus() ); return command.tqarg( filename ) + TQString( i18n(" exited with error: %1") ).tqarg( proc.exitStatus() );
return TQString(); return TQString();
} }

@ -21,7 +21,7 @@
// QT includes // QT includes
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
#include <tqtooltip.h> #include <tqtooltip.h>
@ -48,12 +48,12 @@ void ConfDialog::setupTab1()
{ {
const TQString caption = i18n("Look and Feel"); const TQString caption = i18n("Look and Feel");
TQFrame* box = addPage( caption, caption, BarIcon("looknfeel") ); TQFrame* box = addPage( caption, caption, BarIcon("looknfeel") );
TQVBoxLayout* layout = new TQVBoxLayout( box ); TQVBoxLayout* tqlayout = new TQVBoxLayout( box );
TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
TQButtonGroup* group = new TQButtonGroup( box ); TQButtonGroup* group = new TQButtonGroup( box );
group->setColumnLayout(0, Qt::Vertical ); group->setColumnLayout(0, Qt::Vertical );
TQVBoxLayout* lgroup = new TQVBoxLayout( group->layout() ); TQVBoxLayout* lgroup = new TQVBoxLayout( group->tqlayout() );
optionWizard = new TQRadioButton( group ); optionWizard = new TQRadioButton( group );
optionWizard->setText( i18n("Use &wizard style GUI (beginners)") ); optionWizard->setText( i18n("Use &wizard style GUI (beginners)") );
@ -65,15 +65,15 @@ void ConfDialog::setupTab1()
lgroup->addWidget( optionTabs ); lgroup->addWidget( optionTabs );
lgroup->addItem( spacer ); lgroup->addItem( spacer );
layout->addWidget( group ); tqlayout->addWidget( group );
layout->addItem( spacer ); tqlayout->addItem( spacer );
} }
void ConfDialog::setupTab2() void ConfDialog::setupTab2()
{ {
const TQString caption = i18n("KRename"); const TQString caption = i18n("KRename");
TQFrame* box = addPage( caption, caption, BarIcon("krename") ); TQFrame* box = addPage( caption, caption, BarIcon("krename") );
TQVBoxLayout* layout = new TQVBoxLayout( box ); TQVBoxLayout* tqlayout = new TQVBoxLayout( box );
TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
checkPlugins = new TQCheckBox( i18n("&Load file plugins on start"), box ); checkPlugins = new TQCheckBox( i18n("&Load file plugins on start"), box );
@ -87,12 +87,12 @@ void ConfDialog::setupTab2()
spinHistory->setRange( 2, 500, 1, false ); spinHistory->setRange( 2, 500, 1, false );
spinHistory->setLabel( i18n( "&Number of template history items:" ), AlignLeft | AlignVCenter ); spinHistory->setLabel( i18n( "&Number of template history items:" ), AlignLeft | AlignVCenter );
layout->addWidget( checkPlugins ); tqlayout->addWidget( checkPlugins );
layout->addWidget( checkAutosize ); tqlayout->addWidget( checkAutosize );
layout->addItem( spacer ); tqlayout->addItem( spacer );
layout->addWidget( spinSize ); tqlayout->addWidget( spinSize );
layout->addWidget( spinHistory ); tqlayout->addWidget( spinHistory );
layout->addItem( spacer ); tqlayout->addItem( spacer );
TQToolTip::add( checkPlugins, i18n("Disabling this option decreases KRename's startup time, because no KFilePlugins are loaded.") ); TQToolTip::add( checkPlugins, i18n("Disabling this option decreases KRename's startup time, because no KFilePlugins are loaded.") );
} }

@ -21,7 +21,7 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqfontmetrics.h> #include <tqfontmetrics.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <tqvalidator.h> #include <tqvalidator.h>
// KDE includes // KDE includes
@ -52,7 +52,7 @@ CoordDialog::CoordDialog( const TQString & file, TQWidget *_parent, const char *
KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, _parent, name, true, true ), m_file( file ) KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, _parent, name, true, true ), m_file( file )
{ {
TQFrame* parent = plainPage(); TQFrame* parent = plainPage();
TQVBoxLayout* layout = new TQVBoxLayout( parent ); TQVBoxLayout* tqlayout = new TQVBoxLayout( parent );
filename = new DSLineEdit( parent ); filename = new DSLineEdit( parent );
filename->setText( file ); filename->setText( file );
@ -63,10 +63,10 @@ CoordDialog::CoordDialog( const TQString & file, TQWidget *_parent, const char *
checkInvert = new TQCheckBox( i18n("&Invert selection"), plainPage() ); checkInvert = new TQCheckBox( i18n("&Invert selection"), plainPage() );
checkInvert->setChecked( m_inversion ); checkInvert->setChecked( m_inversion );
layout->addWidget( new TQLabel( i18n("Please select the text you want to insert:"), plainPage() ) ); tqlayout->addWidget( new TQLabel( i18n("Please select the text you want to insert:"), plainPage() ) );
layout->addWidget( filename ); tqlayout->addWidget( filename );
layout->addWidget( checkInvert ); tqlayout->addWidget( checkInvert );
layout->addWidget( preview ); tqlayout->addWidget( preview );
updateCommand(); updateCommand();
connect( filename, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( updateCommand() ) ); connect( filename, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( updateCommand() ) );
@ -102,26 +102,26 @@ void CoordDialog::updateCommand()
start++; start++;
end++; end++;
if( start > 1 ) if( start > 1 )
m_command = TQString("[$1;%1]").arg(start-1); m_command = TQString("[$1;%1]").tqarg(start-1);
if( end <= (signed int)filename->text().length() ) if( end <= (signed int)filename->text().length() )
m_command.append( TQString("[$%1-[length]]").arg(end) ); m_command.append( TQString("[$%1-[length]]").tqarg(end) );
} }
} else if( checkInvert->isChecked() && !filename->hasSelectedText() ) { } else if( checkInvert->isChecked() && !filename->hasSelectedText() ) {
int p = filename->cursorPosition(); int p = filename->cursorPosition();
m_command = TQString("[$1;%1][$%2-[length]]").arg(p).arg(p+1); m_command = TQString("[$1;%1][$%2-[length]]").tqarg(p).tqarg(p+1);
} else if( !checkInvert->isChecked() && filename->hasSelectedText() ){ } else if( !checkInvert->isChecked() && filename->hasSelectedText() ){
if( end ) { if( end ) {
start++; start++;
end++; end++;
if( end <= (signed int)filename->text().length() ) if( end <= (signed int)filename->text().length() )
m_command = TQString("[$%1;%2]").arg(start).arg(end-start); m_command = TQString("[$%1;%2]").tqarg(start).tqarg(end-start);
else else
m_command = TQString("[$%1-[length]]").arg(start); m_command = TQString("[$%1-[length]]").tqarg(start);
} }
} else if( !checkInvert->isChecked() && !filename->hasSelectedText() ) { } else if( !checkInvert->isChecked() && !filename->hasSelectedText() ) {
int p = filename->cursorPosition(); int p = filename->cursorPosition();
m_command = TQString("[$%1-[length]]").arg( p ); m_command = TQString("[$%1-[length]]").tqarg( p );
} }
} }

@ -59,7 +59,7 @@ TQString DatePlugin::processFile(BatchRenamer* b, int i, TQString token, int )
token = token.mid( getPattern().length(), token.length() - getPattern().length() ); token = token.mid( getPattern().length(), token.length() - getPattern().length() );
TQDate d = TQDate::currentDate(); TQDate d = TQDate::tqcurrentDate();
TQTime t = TQTime::currentTime(); TQTime t = TQTime::currentTime();
TQString tmp, text; TQString tmp, text;
TQString format = "dd-MM-yyyy"; TQString format = "dd-MM-yyyy";
@ -71,15 +71,15 @@ TQString DatePlugin::processFile(BatchRenamer* b, int i, TQString token, int )
token = token.lower(); token = token.lower();
if( token == "date" ) { if( token == "date" ) {
return TQDateTime::currentDateTime().toString( format ); return TQDateTime::tqcurrentDateTime().toString( format );
} else if( token == "year" ) } else if( token == "year" )
return TQString( "%1" ).arg( d.year() ); return TQString( "%1" ).tqarg( d.year() );
else if( token == "month" ) else if( token == "month" )
return tmp.sprintf("%0*i", 2, d.month() ); return tmp.sprintf("%0*i", 2, d.month() );
else if( token == "day" ) else if( token == "day" )
return tmp.sprintf("%0*i", 2, d.day() ); return tmp.sprintf("%0*i", 2, d.day() );
else if( token == "time" ) else if( token == "time" )
return TQString( "%1-%2-%3" ).arg( t.hour() ).arg( TQString().sprintf("%0*i", 2, t.minute() ) ).arg( TQString().sprintf("%0*i", 2, t.second() ) ); return TQString( "%1-%2-%3" ).tqarg( t.hour() ).tqarg( TQString().sprintf("%0*i", 2, t.minute() ) ).tqarg( TQString().sprintf("%0*i", 2, t.second() ) );
else if( token == "hour" ) else if( token == "hour" )
return tmp.sprintf("%0*i", 2, t.hour() ); return tmp.sprintf("%0*i", 2, t.hour() );
else if( token == "minute" ) else if( token == "minute" )

@ -21,7 +21,7 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqfileinfo.h> #include <tqfileinfo.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
// KDE includes // KDE includes
@ -149,7 +149,7 @@ TQString MyDatePlugin::processFile( BatchRenamer* b, int i, TQString, int )
f = fopen((const char *)filename, "r"); f = fopen((const char *)filename, "r");
if( f == NULL ) if( f == NULL )
return TQString( i18n("Can't change date of file %1.") ).arg(filename); return TQString( i18n("Can't change date of file %1.") ).tqarg(filename);
fclose( f ); fclose( f );
@ -165,16 +165,16 @@ TQString MyDatePlugin::processFile( BatchRenamer* b, int i, TQString, int )
ti = mktime( &tmp ); ti = mktime( &tmp );
if( ti == -1 ) if( ti == -1 )
return TQString( i18n("Can't change date of file %1.") ).arg(filename); return TQString( i18n("Can't change date of file %1.") ).tqarg(filename);
if( stat( (const char *)filename, &st ) == -1 ) if( stat( (const char *)filename, &st ) == -1 )
return TQString( i18n("Can't change date of file %1.") ).arg(filename); return TQString( i18n("Can't change date of file %1.") ).tqarg(filename);
t->actime = st.st_atime; t->actime = st.st_atime;
t->modtime = ti; t->modtime = ti;
if(utime( (const char *)filename, t ) != 0) if(utime( (const char *)filename, t ) != 0)
return TQString( i18n("Can't change date of file %1.") ).arg(filename); return TQString( i18n("Can't change date of file %1.") ).tqarg(filename);
return TQString(); return TQString();
#else #else
@ -189,7 +189,7 @@ TQString MyDatePlugin::processFile( BatchRenamer* b, int i, TQString, int )
f = fopen((const char *)filename, "r"); f = fopen((const char *)filename, "r");
if( f == NULL ) if( f == NULL )
return TQString( i18n("Can't change date of file %1.") ).arg(filename); return TQString( i18n("Can't change date of file %1.") ).tqarg(filename);
fclose( f ); fclose( f );
@ -204,10 +204,10 @@ TQString MyDatePlugin::processFile( BatchRenamer* b, int i, TQString, int )
ti = mktime( &tmp ); ti = mktime( &tmp );
if( ti == -1 ) if( ti == -1 )
return TQString( i18n("Can't change date of file %1.") ).arg(filename); return TQString( i18n("Can't change date of file %1.") ).tqarg(filename);
if( stat( (const char *)filename, &st ) == -1 ) if( stat( (const char *)filename, &st ) == -1 )
return TQString( i18n("Can't change date of file %1.") ).arg(filename); return TQString( i18n("Can't change date of file %1.") ).tqarg(filename);
if(dvals.changeAccess) if(dvals.changeAccess)
t->actime = ti; t->actime = ti;
@ -220,7 +220,7 @@ TQString MyDatePlugin::processFile( BatchRenamer* b, int i, TQString, int )
t->modtime = st.st_mtime; t->modtime = st.st_mtime;
if(utime( (const char *)filename, t ) != 0) if(utime( (const char *)filename, t ) != 0)
return TQString( i18n("Can't change date of file %1.") ).arg(filename); return TQString( i18n("Can't change date of file %1.") ).tqarg(filename);
return TQString(); return TQString();
#endif #endif
@ -231,7 +231,7 @@ void MyDatePlugin::changeDT()
spinHour->setValue( TQTime::currentTime().hour()); spinHour->setValue( TQTime::currentTime().hour());
spinMinute->setValue( TQTime::currentTime().minute()); spinMinute->setValue( TQTime::currentTime().minute());
spinSecond->setValue( TQTime::currentTime().second()); spinSecond->setValue( TQTime::currentTime().second());
kDate->setDate( TQDate::currentDate() ); kDate->setDate( TQDate::tqcurrentDate() );
} }

@ -21,7 +21,7 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqhbox.h> #include <tqhbox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <tqtooltip.h> #include <tqtooltip.h>
#include <tqvbox.h> #include <tqvbox.h>
@ -38,10 +38,10 @@ DSDirSelectDialog::DSDirSelectDialog( TQWidget* parent )
TQVBox* vbox = new TQVBox( this ); TQVBox* vbox = new TQVBox( this );
if( layout() ) if( tqlayout() )
layout()->add( vbox ); tqlayout()->add( vbox );
else else
qDebug("KFileDialog does not have a layout!!!"); qDebug("KFileDialog does not have a tqlayout!!!");
checkDir = new TQCheckBox( i18n("Add directory names &with filenames"), vbox ); checkDir = new TQCheckBox( i18n("Add directory names &with filenames"), vbox );
check = new TQCheckBox( i18n("Add subdirectories &recursively"), vbox ); check = new TQCheckBox( i18n("Add subdirectories &recursively"), vbox );

@ -24,7 +24,7 @@ class TQCheckBox;
class TQLabel; class TQLabel;
class KComboBox; class KComboBox;
/* A small helper class to allow layout changes in KDirSelectDialog */ /* A small helper class to allow tqlayout changes in KDirSelectDialog */
class DSDirSelectDialog : public KFileDialog { class DSDirSelectDialog : public KFileDialog {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT

@ -20,8 +20,8 @@
// QT includes // QT includes
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <textcodec.h> #include <tqtextcodec.h>
#include <tqvgroupbox.h> #include <tqvgroupbox.h>
@ -67,12 +67,12 @@ void EncodingPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
l->addWidget( label ); l->addWidget( label );
TQVGroupBox* groupInput = new TQVGroupBox( i18n("Encoding of Input Files:"), w ); TQVGroupBox* groupInput = new TQVGroupBox( i18n("Encoding of Input Files:"), w );
checkInput = new TQCheckBox( i18n("&Use local encoding: %1").arg( m_locale_codec), groupInput ); checkInput = new TQCheckBox( i18n("&Use local encoding: %1").tqarg( m_locale_codec), groupInput );
comboInput = new KComboBox( false, groupInput ); comboInput = new KComboBox( false, groupInput );
comboInput->insertStringList( codecs ); comboInput->insertStringList( codecs );
TQVGroupBox* groupOutput = new TQVGroupBox( i18n("Encoding of Output Files:"), w ); TQVGroupBox* groupOutput = new TQVGroupBox( i18n("Encoding of Output Files:"), w );
checkOutput = new TQCheckBox( i18n("&Use local encoding: %1").arg( m_locale_codec), groupOutput ); checkOutput = new TQCheckBox( i18n("&Use local encoding: %1").tqarg( m_locale_codec), groupOutput );
checkOutput->setChecked( true ); checkOutput->setChecked( true );
comboOutput = new KComboBox( false, groupOutput ); comboOutput = new KComboBox( false, groupOutput );
comboOutput->insertStringList( codecs ); comboOutput->insertStringList( codecs );
@ -106,13 +106,13 @@ bool EncodingPlugin::checkError()
TQString EncodingPlugin::processFile( BatchRenamer*, int, TQString token, int ) TQString EncodingPlugin::processFile( BatchRenamer*, int, TQString token, int )
{ {
TQString input = token; TQString input = token;
TQString unicode = TQString(); TQString tqunicode = TQString();
TQTextCodec* toUnicode = TQTextCodec::codecForName(m_input_codec); // get the codec for KOI8-R TQTextCodec* toUnicode = TQTextCodec::codecForName(m_input_codec); // get the codec for KOI8-R
TQTextCodec* fromUnicode = TQTextCodec::codecForName(m_output_codec); TQTextCodec* fromUnicode = TQTextCodec::codecForName(m_output_codec);
unicode = toUnicode->toUnicode( input ); tqunicode = toUnicode->toUnicode( input );
return fromUnicode->fromUnicode( unicode ); return fromUnicode->fromUnicode( tqunicode );
} }
void EncodingPlugin::finished() void EncodingPlugin::finished()

@ -50,7 +50,7 @@ bool FileOperation::start( const KURL & src, const KURL & dest, int mode, bool o
result = 0; result = 0;
if( src == dest && !overwrite ) { if( src == dest && !overwrite ) {
m_error = TQString( i18n( "File %1 exists already!") ).arg( dest.prettyURL() ); m_error = TQString( i18n( "File %1 exists already!") ).tqarg( dest.prettyURL() );
return false; return false;
} }
@ -72,7 +72,7 @@ bool FileOperation::start( const KURL & src, const KURL & dest, int mode, bool o
} }
else else
{ {
m_error = i18n("Can't create symlinks on different hosts for file %1.").arg( src.prettyURL() ); m_error = i18n("Can't create symlinks on different hosts for file %1.").tqarg( src.prettyURL() );
result = true; result = true;
return !result; return !result;
} }

@ -20,7 +20,7 @@
// TQt includes // TQt includes
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <tqregexp.h> #include <tqregexp.h>
// KDE includes // KDE includes

@ -21,7 +21,7 @@
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqframe.h> #include <tqframe.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
// KDE includes // KDE includes
@ -54,12 +54,12 @@ const TQString GUIModeSelector::guiModeCaption() const
void GUIModeSelector::createFrame( TQFrame* frame ) void GUIModeSelector::createFrame( TQFrame* frame )
{ {
TQVBoxLayout* layout = new TQVBoxLayout( frame ); TQVBoxLayout* tqlayout = new TQVBoxLayout( frame );
TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
TQButtonGroup* group = new TQButtonGroup( frame ); TQButtonGroup* group = new TQButtonGroup( frame );
group->setColumnLayout(0, Qt::Vertical ); group->setColumnLayout(0, Qt::Vertical );
TQVBoxLayout* lgroup = new TQVBoxLayout( group->layout() ); TQVBoxLayout* lgroup = new TQVBoxLayout( group->tqlayout() );
optionWizard = new TQRadioButton( group ); optionWizard = new TQRadioButton( group );
optionWizard->setText( i18n("Use &wizard style GUI (beginners)") ); optionWizard->setText( i18n("Use &wizard style GUI (beginners)") );
@ -71,8 +71,8 @@ void GUIModeSelector::createFrame( TQFrame* frame )
lgroup->addWidget( optionTabs ); lgroup->addWidget( optionTabs );
lgroup->addItem( spacer ); lgroup->addItem( spacer );
layout->addWidget( group ); tqlayout->addWidget( group );
layout->addItem( spacer ); tqlayout->addItem( spacer );
} }

@ -19,7 +19,7 @@
// TQt includes // TQt includes
#include <tqcombobox.h> #include <tqcombobox.h>
#include <layout.h> #include <tqlayout.h>
#include <tqlineedit.h> #include <tqlineedit.h>
// KDE includes // KDE includes

@ -20,7 +20,7 @@
#include <tqdir.h> #include <tqdir.h>
#include <tqdragobject.h> #include <tqdragobject.h>
#include <tqpainter.h> #include <tqpainter.h>
#include <palette.h> #include <tqpalette.h>
#include <tqregexp.h> #include <tqregexp.h>
// KDE includes // KDE includes
@ -161,7 +161,7 @@ void KMyListBox::addDirName( const KURL & dirname, const TQString & filter, bool
} else { } else {
// escape hiden directories // escape hiden directories
TQString name = dirname.fileName(); TQString name = dirname.fileName();
if( !hidden && name.right( 1 ) != TQString::fromLatin1(".") ) if( !hidden && name.right( 1 ) != TQString::tqfromLatin1(".") )
if( !isInList( dirname ) ) if( !isInList( dirname ) )
addDirName( dirname ); addDirName( dirname );
@ -715,9 +715,9 @@ void KMyListBox::positionLabel()
} }
else else
{ {
int x = (width() - label->minimumSizeHint().width()) / 2; int x = (width() - label->tqminimumSizeHint().width()) / 2;
int y = (height() - label->minimumSizeHint().height()) / 2; int y = (height() - label->tqminimumSizeHint().height()) / 2;
label->setGeometry( x, y, label->minimumSizeHint().width(), label->minimumSizeHint().height() ); label->setGeometry( x, y, label->tqminimumSizeHint().width(), label->tqminimumSizeHint().height() );
label->show(); label->show();
} }
} }
@ -750,7 +750,7 @@ void KMyListBoxItem::setPixmap( const TQPixmap & pix )
{ {
KMyListBox* box = static_cast<KMyListBox*>(this->listBox()); KMyListBox* box = static_cast<KMyListBox*>(this->listBox());
pm.resize( box->getPreviewSize(), box->getPreviewSize() ); pm.resize( box->getPreviewSize(), box->getPreviewSize() );
pm.fill( box->colorGroup().base() ); pm.fill( box->tqcolorGroup().base() );
TQPainter painter( &pm ); TQPainter painter( &pm );
painter.drawPixmap( (pm.width()-pix.width())/2, (pm.height()-pix.height())/2, pix ); painter.drawPixmap( (pm.width()-pix.width())/2, (pm.height()-pix.height())/2, pix );
m_has_preview = true; m_has_preview = true;
@ -788,7 +788,7 @@ void KMyListBoxItem::paint( TQPainter *painter )
painter->drawPixmap( 3, yPos, pm); painter->drawPixmap( 3, yPos, pm);
else else
{ {
KPixmap pix = KPixmapEffect::selectedPixmap( pm, listBox()->colorGroup().highlight() ); KPixmap pix = KPixmapEffect::selectedPixmap( pm, listBox()->tqcolorGroup().highlight() );
painter->drawPixmap( 3, yPos, pix ); painter->drawPixmap( 3, yPos, pix );
} }

@ -164,14 +164,14 @@ KMyListViewItem::~KMyListViewItem()
{ } { }
void KMyListViewItem::paintCell( TQPainter *p, const TQColorGroup &cg, void KMyListViewItem::paintCell( TQPainter *p, const TQColorGroup &cg,
int column, int width, int alignment ) int column, int width, int tqalignment )
{ {
TQColorGroup _cg( cg ); TQColorGroup _cg( cg );
TQColor c = _cg.text(); TQColor c = _cg.text();
if( modified ) if( modified )
_cg.setColor( TQColorGroup::Text, TQt::red ); _cg.setColor( TQColorGroup::Text, TQt::red );
KListViewItem::paintCell( p, _cg, column, width, alignment ); KListViewItem::paintCell( p, _cg, column, width, tqalignment );
_cg.setColor( TQColorGroup::Text, c ); _cg.setColor( TQColorGroup::Text, c );
} }

@ -85,7 +85,7 @@ class KMyListViewItem : public KListViewItem {
virtual ~KMyListViewItem(); virtual ~KMyListViewItem();
void paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment ); void paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment );
private: private:
bool modified; bool modified;

@ -60,7 +60,7 @@
#include <tqcursor.h> #include <tqcursor.h>
#include <tqgrid.h> #include <tqgrid.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
#include <tqrect.h> #include <tqrect.h>
#include <tqregexp.h> #include <tqregexp.h>
@ -423,10 +423,10 @@ void KRenameImpl::setupPage2()
groupOptions = new TQButtonGroup( page_2 ); groupOptions = new TQButtonGroup( page_2 );
groupOptions->setTitle( i18n( "O&ptions" ) ); groupOptions->setTitle( i18n( "O&ptions" ) );
groupOptions->setColumnLayout(0, Qt::Vertical ); groupOptions->setColumnLayout(0, Qt::Vertical );
groupOptions->layout()->setSpacing( 6 ); groupOptions->tqlayout()->setSpacing( 6 );
groupOptions->layout()->setMargin( 11 ); groupOptions->tqlayout()->setMargin( 11 );
groupOptionsLayout = new TQVBoxLayout( groupOptions->layout() ); groupOptionsLayout = new TQVBoxLayout( groupOptions->tqlayout() );
groupOptionsLayout->setAlignment( TQt::AlignTop ); groupOptionsLayout->tqsetAlignment( TQt::AlignTop );
optionRename = new TQRadioButton( groupOptions ); optionRename = new TQRadioButton( groupOptions );
optionRename->setText( i18n( "&Rename input files" ) ); optionRename->setText( i18n( "&Rename input files" ) );
@ -619,7 +619,7 @@ void KRenameImpl::setupFileTab1()
TQSpacerItem* spacer_9 = new TQSpacerItem( 200, 20, TQSizePolicy::Maximum, TQSizePolicy::Maximum ); TQSpacerItem* spacer_9 = new TQSpacerItem( 200, 20, TQSizePolicy::Maximum, TQSizePolicy::Maximum );
TQVBoxLayout* layout = new TQVBoxLayout( tab ); TQVBoxLayout* tqlayout = new TQVBoxLayout( tab );
TQHBoxLayout* Layout1 = new TQHBoxLayout( 0, 6, 6 ); TQHBoxLayout* Layout1 = new TQHBoxLayout( 0, 6, 6 );
TQHBoxLayout* Layout2 = new TQHBoxLayout( 0, 6, 6 ); TQHBoxLayout* Layout2 = new TQHBoxLayout( 0, 6, 6 );
TQHBoxLayout* ExtensionLayout = new TQHBoxLayout( 0, 6, 6 ); TQHBoxLayout* ExtensionLayout = new TQHBoxLayout( 0, 6, 6 );
@ -641,10 +641,10 @@ void KRenameImpl::setupFileTab1()
ExtensionLayout->addWidget( new TQLabel( i18n("File extension starts at:"), tab ) ); ExtensionLayout->addWidget( new TQLabel( i18n("File extension starts at:"), tab ) );
ExtensionLayout->addWidget( comboExtension ); ExtensionLayout->addWidget( comboExtension );
layout->addLayout( Layout1 ); tqlayout->addLayout( Layout1 );
layout->addLayout( ExtensionLayout ); tqlayout->addLayout( ExtensionLayout );
layout->addLayout( Layout2 ); tqlayout->addLayout( Layout2 );
layout->addItem( spacer_9 ); tqlayout->addItem( spacer_9 );
fileTab->addWidget( tab, ID_TAB ); fileTab->addWidget( tab, ID_TAB );
} }
@ -653,7 +653,7 @@ void KRenameImpl::setupFileTab2()
{ {
TQWidget* tab = new TQWidget( page_4 ); TQWidget* tab = new TQWidget( page_4 );
TQHBoxLayout* layout = new TQHBoxLayout( tab, 6, 6 ); TQHBoxLayout* tqlayout = new TQHBoxLayout( tab, 6, 6 );
TQVGroupBox* vgroup1 = new TQVGroupBox( i18n("&Filename"), tab ); TQVGroupBox* vgroup1 = new TQVGroupBox( i18n("&Filename"), tab );
TQGrid* grid = new TQGrid( 4, vgroup1 ); TQGrid* grid = new TQGrid( 4, vgroup1 );
@ -708,8 +708,8 @@ void KRenameImpl::setupFileTab2()
buttonEasyReplace = new KPushButton( i18n("&Find and Replace..."), rightBox ); buttonEasyReplace = new KPushButton( i18n("&Find and Replace..."), rightBox );
buttonEasyReplace->setIconSet( SmallIconSet("find") ); buttonEasyReplace->setIconSet( SmallIconSet("find") );
layout->addWidget( vgroup1 ); tqlayout->addWidget( vgroup1 );
layout->addWidget( rightBox ); tqlayout->addWidget( rightBox );
comboKRenamePrefix->insertItem( "" ); comboKRenamePrefix->insertItem( "" );
comboKRenamePrefix->insertItem( i18n("Number") ); comboKRenamePrefix->insertItem( i18n("Number") );
@ -737,10 +737,10 @@ void KRenameImpl::setupFileTab2()
buttonEasy3->setIconSet( SmallIcon("help") ); buttonEasy3->setIconSet( SmallIcon("help") );
buttonEasy4->setIconSet( SmallIcon("help") ); buttonEasy4->setIconSet( SmallIcon("help") );
buttonEasy1->setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum ); buttonEasy1->tqsetSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
buttonEasy2->setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum ); buttonEasy2->tqsetSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
buttonEasy3->setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum ); buttonEasy3->tqsetSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
buttonEasy4->setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum ); buttonEasy4->tqsetSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
const TQString easy_text( i18n("<qt>Insert a special KRename command which inserts file information into the filename.</qt>") ); const TQString easy_text( i18n("<qt>Insert a special KRename command which inserts file information into the filename.</qt>") );
@ -1004,7 +1004,7 @@ void KRenameImpl::start()
} }
ProgressDialog* p = new ProgressDialog( 0, "p" ); ProgressDialog* p = new ProgressDialog( 0, "p" );
p->print(TQString( i18n("Starting conversion of %1 files.") ).arg(fileList->count())); p->print(TQString( i18n("Starting conversion of %1 files.") ).tqarg(fileList->count()));
// Save History // Save History
dirname->saveSettings(); dirname->saveSettings();
@ -1065,7 +1065,7 @@ bool KRenameImpl::checkErrors()
void KRenameImpl::updateCount() void KRenameImpl::updateCount()
{ {
labelCount->setText( TQString( i18n("Files: <b>%1</b>") ).arg(fileList->count())); labelCount->setText( TQString( i18n("Files: <b>%1</b>") ).tqarg(fileList->count()));
buttonCoord->setEnabled( (bool)fileList->count() ); buttonCoord->setEnabled( (bool)fileList->count() );
buttonReplace->setEnabled( (bool)fileList->count() ); buttonReplace->setEnabled( (bool)fileList->count() );
@ -1165,7 +1165,7 @@ bool KRenameImpl::setupBatchRenamer( BatchRenamer* b, bool preview )
if( !KIO::NetAccess::exists( KURL( url ) ) ) if( !KIO::NetAccess::exists( KURL( url ) ) )
{ {
int m = KMessageBox::warningContinueCancel( parent, i18n("The directory %1 does not exist. " int m = KMessageBox::warningContinueCancel( parent, i18n("The directory %1 does not exist. "
"KRename will create it for you.").arg( url ) ); "KRename will create it for you.").tqarg( url ) );
if( m == KMessageBox::Cancel ) if( m == KMessageBox::Cancel )
return false; return false;

@ -187,7 +187,7 @@ class KRenameImpl : public TQObject, public KRenameDCOP {
void setupPages(); void setupPages();
void updateHist(); void updateHist();
void parseCommandline(); void parseCommandline();
void addTitle( TQWidget* p, TQVBoxLayout* layout, TQString title ); void addTitle( TQWidget* p, TQVBoxLayout* tqlayout, TQString title );
TQValueList<manualchanges> changes; TQValueList<manualchanges> changes;
void refreshColumnMode(); void refreshColumnMode();

@ -26,7 +26,7 @@
// QT includes // QT includes
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <tqlineedit.h> #include <tqlineedit.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqgroupbox.h> #include <tqgroupbox.h>
@ -74,10 +74,10 @@ void MyDirPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
groupNumber = new TQGroupBox( w ); groupNumber = new TQGroupBox( w );
groupNumber->setTitle( i18n( "&Options" ) ); groupNumber->setTitle( i18n( "&Options" ) );
groupNumber->setColumnLayout(0, Qt::Vertical ); groupNumber->setColumnLayout(0, Qt::Vertical );
groupNumber->layout()->setSpacing( 6 ); groupNumber->tqlayout()->setSpacing( 6 );
groupNumber->layout()->setMargin( 11 ); groupNumber->tqlayout()->setMargin( 11 );
groupNumberLayout = new TQHBoxLayout( groupNumber->layout() ); groupNumberLayout = new TQHBoxLayout( groupNumber->tqlayout() );
groupNumberLayout->setAlignment( TQt::AlignTop ); groupNumberLayout->tqsetAlignment( TQt::AlignTop );
TQLabel* la2 = new TQLabel( groupNumber ); TQLabel* la2 = new TQLabel( groupNumber );
la2->setText( i18n( "Files per directory:" ) ); la2->setText( i18n( "Files per directory:" ) );
@ -104,10 +104,10 @@ void MyDirPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
groupOutput = new TQGroupBox( w ); groupOutput = new TQGroupBox( w );
groupOutput->setTitle( i18n( "Output &Directory" ) ); groupOutput->setTitle( i18n( "Output &Directory" ) );
groupOutput->setColumnLayout(0, Qt::Vertical ); groupOutput->setColumnLayout(0, Qt::Vertical );
groupOutput->layout()->setSpacing( 6 ); groupOutput->tqlayout()->setSpacing( 6 );
groupOutput->layout()->setMargin( 11 ); groupOutput->tqlayout()->setMargin( 11 );
groupOutputLayout = new TQHBoxLayout( groupOutput->layout() ); groupOutputLayout = new TQHBoxLayout( groupOutput->tqlayout() );
groupOutputLayout->setAlignment( TQt::AlignTop ); groupOutputLayout->tqsetAlignment( TQt::AlignTop );
outputdir = new TQLineEdit( groupOutput ); outputdir = new TQLineEdit( groupOutput );
buttonDir = new TQPushButton( groupOutput ); buttonDir = new TQPushButton( groupOutput );
@ -131,7 +131,7 @@ void MyDirPlugin::fillStructure()
filecounter = 0; filecounter = 0;
dircounter = spinStart->value(); dircounter = spinStart->value();
curdir = dir + TQString("/%1/").arg( dircounter ); curdir = dir + TQString("/%1/").tqarg( dircounter );
d = new TQDir( dir ); d = new TQDir( dir );
d->mkdir( curdir ); d->mkdir( curdir );
@ -144,7 +144,7 @@ TQString MyDirPlugin::processFile( BatchRenamer*, int, TQString token, int )
if( filecounter == fpd ) { if( filecounter == fpd ) {
filecounter = 0; filecounter = 0;
dircounter++; dircounter++;
curdir = dir + TQString("/%1/").arg( dircounter ); curdir = dir + TQString("/%1/").tqarg( dircounter );
d->mkdir( curdir ); d->mkdir( curdir );
} }

@ -21,7 +21,7 @@
#include <kpushbutton.h> #include <kpushbutton.h>
#include <klocale.h> #include <klocale.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <tqtooltip.h> #include <tqtooltip.h>
MyInputDialog::MyInputDialog( TQString filename, bool revertEnabled, TQWidget* parent ) MyInputDialog::MyInputDialog( TQString filename, bool revertEnabled, TQWidget* parent )

@ -20,7 +20,7 @@
// TQt includes // TQt includes
#include <tqgroupbox.h> #include <tqgroupbox.h>
#include <layout.h> #include <tqlayout.h>
#include <tqtooltip.h> #include <tqtooltip.h>
// KDE includes // KDE includes
@ -42,15 +42,15 @@ NumberDialog::NumberDialog(TQValueList<int> & n,TQWidget *parent )
{ {
TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
TQVBoxLayout* layout = new TQVBoxLayout( plainPage(), 6, 6 ); TQVBoxLayout* tqlayout = new TQVBoxLayout( plainPage(), 6, 6 );
TQGroupBox* group1 = new TQGroupBox( plainPage() ); TQGroupBox* group1 = new TQGroupBox( plainPage() );
group1->setTitle( i18n("&Numbering") ); group1->setTitle( i18n("&Numbering") );
group1->setColumnLayout(0, Qt::Vertical ); group1->setColumnLayout(0, Qt::Vertical );
group1->layout()->setSpacing( 6 ); group1->tqlayout()->setSpacing( 6 );
group1->layout()->setMargin( 11 ); group1->tqlayout()->setMargin( 11 );
TQVBoxLayout* group1Layout = new TQVBoxLayout( group1->layout() ); TQVBoxLayout* group1Layout = new TQVBoxLayout( group1->tqlayout() );
group1Layout->setAlignment( TQt::AlignTop ); group1Layout->tqsetAlignment( TQt::AlignTop );
spinIndex = new KIntNumInput( group1 ); spinIndex = new KIntNumInput( group1 );
spinIndex->setMaxValue( SPINMAX ); spinIndex->setMaxValue( SPINMAX );
@ -66,10 +66,10 @@ NumberDialog::NumberDialog(TQValueList<int> & n,TQWidget *parent )
TQGroupBox* group2 = new TQGroupBox( plainPage() ); TQGroupBox* group2 = new TQGroupBox( plainPage() );
group2->setTitle( i18n("S&kip Numbers") ); group2->setTitle( i18n("S&kip Numbers") );
group2->setColumnLayout(0, Qt::Horizontal ); group2->setColumnLayout(0, Qt::Horizontal );
group2->layout()->setSpacing( 6 ); group2->tqlayout()->setSpacing( 6 );
group2->layout()->setMargin( 11 ); group2->tqlayout()->setMargin( 11 );
TQHBoxLayout* group2Layout = new TQHBoxLayout( group2->layout() ); TQHBoxLayout* group2Layout = new TQHBoxLayout( group2->tqlayout() );
group2Layout->setAlignment( TQt::AlignTop ); group2Layout->tqsetAlignment( TQt::AlignTop );
listNumbers = new KListBox( group2 ); listNumbers = new KListBox( group2 );
@ -85,21 +85,21 @@ NumberDialog::NumberDialog(TQValueList<int> & n,TQWidget *parent )
spinNumber->setValue( 0 ); spinNumber->setValue( 0 );
spinNumber->setFocus(); spinNumber->setFocus();
TQVBoxLayout* layout2 = new TQVBoxLayout( 0, 6, 6 ); TQVBoxLayout* tqlayout2 = new TQVBoxLayout( 0, 6, 6 );
layout2->addWidget( buttonAdd ); tqlayout2->addWidget( buttonAdd );
layout2->addWidget( buttonRemove ); tqlayout2->addWidget( buttonRemove );
layout2->addWidget( spinNumber ); tqlayout2->addWidget( spinNumber );
layout2->addItem( spacer ); tqlayout2->addItem( spacer );
group1Layout->addWidget( spinIndex ); group1Layout->addWidget( spinIndex );
group1Layout->addWidget( spinStep ); group1Layout->addWidget( spinStep );
group1Layout->addWidget( checkResetCounter ); group1Layout->addWidget( checkResetCounter );
group2Layout->addWidget( listNumbers ); group2Layout->addWidget( listNumbers );
group2Layout->addLayout( layout2 ); group2Layout->addLayout( tqlayout2 );
layout->addWidget( group1 ); tqlayout->addWidget( group1 );
layout->addWidget( group2 ); tqlayout->addWidget( group2 );
TQToolTip::add( spinIndex, i18n( "Number of the first file." ) ); TQToolTip::add( spinIndex, i18n( "Number of the first file." ) );
TQToolTip::add( spinStep, i18n( "The counter is increased/decreased by this value." ) ); TQToolTip::add( spinStep, i18n( "The counter is increased/decreased by this value." ) );
@ -113,7 +113,7 @@ NumberDialog::NumberDialog(TQValueList<int> & n,TQWidget *parent )
connect( spinNumber, TQT_SIGNAL( returnPressed()), this, TQT_SLOT( addNumber() ) ); connect( spinNumber, TQT_SIGNAL( returnPressed()), this, TQT_SLOT( addNumber() ) );
for( unsigned int i = 0; i < n.count(); i++ ) for( unsigned int i = 0; i < n.count(); i++ )
listNumbers->insertItem( TQString("%1").arg(n[i]), -1 ); listNumbers->insertItem( TQString("%1").tqarg(n[i]), -1 );
update(); update();
} }
@ -124,7 +124,7 @@ NumberDialog::~NumberDialog()
void NumberDialog::addNumber() void NumberDialog::addNumber()
{ {
TQString tmp = TQString("%1").arg(spinNumber->value()); TQString tmp = TQString("%1").tqarg(spinNumber->value());
for( unsigned int i = 0; i < listNumbers->count(); i++ ) for( unsigned int i = 0; i < listNumbers->count(); i++ )
if( listNumbers->text(i) == tmp ) if( listNumbers->text(i) == tmp )
return; return;

@ -21,7 +21,7 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqgroupbox.h> #include <tqgroupbox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
// KDE includes // KDE includes
#include <kapplication.h> #include <kapplication.h>
@ -93,7 +93,7 @@ void MyPermPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
gl->addWidget (la, 1, 2); gl->addWidget (la, 1, 2);
la = new TQLabel( i18n("Exec"), groupPermission ); la = new TQLabel( i18n("Exec"), groupPermission );
TQSize size = la->sizeHint(); TQSize size = la->tqsizeHint();
size.setWidth(size.width() + 15); size.setWidth(size.width() + 15);
la->setFixedSize(size); la->setFixedSize(size);
gl->addWidget (la, 1, 3); gl->addWidget (la, 1, 3);
@ -137,10 +137,10 @@ void MyPermPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
groupOwner = new TQGroupBox ( i18n("Ownership"), w ); groupOwner = new TQGroupBox ( i18n("Ownership"), w );
groupOwner->setEnabled( FALSE ); groupOwner->setEnabled( FALSE );
groupOwner->setColumnLayout(0, Qt::Vertical ); groupOwner->setColumnLayout(0, Qt::Vertical );
groupOwner->layout()->setSpacing( 6 ); groupOwner->tqlayout()->setSpacing( 6 );
groupOwner->layout()->setMargin( 11 ); groupOwner->tqlayout()->setMargin( 11 );
groupOwnerLayout = new TQVBoxLayout( groupOwner->layout() ); groupOwnerLayout = new TQVBoxLayout( groupOwner->tqlayout() );
groupOwnerLayout->setAlignment( TQt::AlignTop ); groupOwnerLayout->tqsetAlignment( TQt::AlignTop );
Layout2 = new TQHBoxLayout( 0, 0, 6 ); Layout2 = new TQHBoxLayout( 0, 0, 6 );
Layout3 = new TQHBoxLayout( 0, 0, 6 ); Layout3 = new TQHBoxLayout( 0, 0, 6 );
@ -157,10 +157,10 @@ void MyPermPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
setpwent(); setpwent();
for (i=0; ((user = getpwent()) != 0L) && (i < MAXENTRIES); i++) { for (i=0; ((user = getpwent()) != 0L) && (i < MAXENTRIES); i++) {
if( uid == 0 ) if( uid == 0 )
username->insertItem(TQString::fromLatin1(user->pw_name)); username->insertItem(TQString::tqfromLatin1(user->pw_name));
else else
if( user->pw_uid == uid ) if( user->pw_uid == uid )
username->insertItem(TQString::fromLatin1(user->pw_name)); username->insertItem(TQString::tqfromLatin1(user->pw_name));
} }
endpwent(); endpwent();
@ -171,14 +171,14 @@ void MyPermPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
setgrent(); setgrent();
for (i=0; ((ge = getgrent()) != 0L) && (i < MAXENTRIES); i++) { for (i=0; ((ge = getgrent()) != 0L) && (i < MAXENTRIES); i++) {
if( uid == 0 ) { if( uid == 0 ) {
groupname->insertItem(TQString::fromLatin1(ge->gr_name)); groupname->insertItem(TQString::tqfromLatin1(ge->gr_name));
} else { } else {
char ** members = ge->gr_mem; char ** members = ge->gr_mem;
char * member; char * member;
while ((member = *members) != 0L) { while ((member = *members) != 0L) {
if (strUser == member) { if (strUser == member) {
groupname->insertItem(TQString::fromLatin1(ge->gr_name)); groupname->insertItem(TQString::tqfromLatin1(ge->gr_name));
break; break;
} }
@ -191,7 +191,7 @@ void MyPermPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
/* add the users group */ /* add the users group */
ge = getgrgid (getegid()); ge = getgrgid (getegid());
if (ge) { if (ge) {
TQString name = TQString::fromLatin1(ge->gr_name); TQString name = TQString::tqfromLatin1(ge->gr_name);
if (name.isEmpty()) if (name.isEmpty())
name.setNum(ge->gr_gid); name.setNum(ge->gr_gid);
@ -245,11 +245,11 @@ TQString MyPermPlugin::processFile( BatchRenamer* b, int i, TQString, int )
TQString filename = b->files()[i].dst.name; TQString filename = b->files()[i].dst.name;
if( perm.changePermissions ) if( perm.changePermissions )
if( chmod( (const char *)filename, (mode_t)perm.newPermission ) == -1 ) if( chmod( (const char *)filename, (mode_t)perm.newPermission ) == -1 )
return TQString( i18n("Can't chmod %1.") ).arg(filename); return TQString( i18n("Can't chmod %1.") ).tqarg(filename);
if( perm.changeOwner ) if( perm.changeOwner )
if( chown( (const char*)filename, getUid( perm.owner), getGid( perm.group ))) if( chown( (const char*)filename, getUid( perm.owner), getGid( perm.group )))
return TQString( i18n("Can't chown %1.") ).arg(filename); return TQString( i18n("Can't chown %1.") ).tqarg(filename);
return TQString(); return TQString();
} }

@ -72,7 +72,7 @@ TQString PicturePlugin::processFile( BatchRenamer* b, int i, TQString token, int
if( img.isNull() ) if( img.isNull() )
return TQString(); return TQString();
resolution = TQString( "%1x%2" ).arg(img.width()).arg(img.height()); resolution = TQString( "%1x%2" ).tqarg(img.width()).tqarg(img.height());
xres = TQString::number( img.width() ); xres = TQString::number( img.width() );
yres = TQString::number( img.height() ); yres = TQString::number( img.height() );
bitdepth = TQString::number( img.depth() ); bitdepth = TQString::number( img.depth() );

@ -36,7 +36,7 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqdom.h> #include <tqdom.h>
#include <tqfile.h> #include <tqfile.h>
#include <layout.h> #include <tqlayout.h>
#include <tqpainter.h> #include <tqpainter.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
#include <tqtooltip.h> #include <tqtooltip.h>
@ -113,7 +113,7 @@ const TQString ProfileManager::getProfilePath( const TQString & name )
else if( name == PROFILE_TABBED_NAME ) else if( name == PROFILE_TABBED_NAME )
return locate( "data", "krename/krename_system_default_tabbed.xml" ); return locate( "data", "krename/krename_system_default_tabbed.xml" );
TQString path = locateLocal( "data", TQString( "krename/%1.xml" ).arg( name ) ); TQString path = locateLocal( "data", TQString( "krename/%1.xml" ).tqarg( name ) );
KConfig* conf = kapp->config(); KConfig* conf = kapp->config();
@ -232,7 +232,7 @@ bool ProfileManager::loadXML( const TQString & path )
{ {
bool wiz, plug; bool wiz, plug;
wiz = (bool)e.attribute( "wizard", wiz = (bool)e.attribute( "wizard",
TQString( "%1" ).arg( m_krename->m_wizard ) ).toInt(); TQString( "%1" ).tqarg( m_krename->m_wizard ) ).toInt();
m_krename->setWizardMode( wiz ); m_krename->setWizardMode( wiz );
// if( wiz != m_krename->m_wizard ) // if( wiz != m_krename->m_wizard )
@ -242,7 +242,7 @@ bool ProfileManager::loadXML( const TQString & path )
} }
plug = (bool)e.attribute( "fileplugins", plug = (bool)e.attribute( "fileplugins",
TQString( "%1" ).arg( m_krename->plugin->filePluginsLoaded() ) ).toInt(); TQString( "%1" ).tqarg( m_krename->plugin->filePluginsLoaded() ) ).toInt();
if( plug && !m_krename->plugin->filePluginsLoaded() ) if( plug && !m_krename->plugin->filePluginsLoaded() )
m_krename->plugin->loadPlugins( true ); m_krename->plugin->loadPlugins( true );
} }
@ -252,7 +252,7 @@ bool ProfileManager::loadXML( const TQString & path )
m_krename->extemplate->setText( e.attribute("extension", m_krename->extemplate->text() ) ); m_krename->extemplate->setText( e.attribute("extension", m_krename->extemplate->text() ) );
m_krename->checkExtension->setChecked( m_krename->checkExtension->setChecked(
(bool)e.attribute("extension_enabled", (bool)e.attribute("extension_enabled",
TQString("%1").arg(m_krename->checkExtension->isChecked() ) ).toInt() ); TQString("%1").tqarg(m_krename->checkExtension->isChecked() ) ).toInt() );
m_krename->comboExtension->setCurrentItem( m_krename->comboExtension->setCurrentItem(
e.attribute("extension_start", e.attribute("extension_start",
TQString::number( m_krename->comboExtension->currentItem() ) ).toInt() ); TQString::number( m_krename->comboExtension->currentItem() ) ).toInt() );
@ -344,7 +344,7 @@ const TQString ProfileManager::listToString( TQValueList<int> & list )
{ {
TQString data; TQString data;
for( unsigned int i = 0; i < list.count(); i++ ) for( unsigned int i = 0; i < list.count(); i++ )
data += TQString( "%1;" ).arg( list[i] ); data += TQString( "%1;" ).tqarg( list[i] );
return data; return data;
} }
@ -397,7 +397,7 @@ ProfileDlg::ProfileDlg(KRenameImpl* krename, TQWidget *parent, const char *name)
{ {
int i; int i;
TQHBoxLayout* layout = new TQHBoxLayout( plainPage(), 6, 6 ); TQHBoxLayout* tqlayout = new TQHBoxLayout( plainPage(), 6, 6 );
TQVBoxLayout* button = new TQVBoxLayout( 0, 6, 6 ); TQVBoxLayout* button = new TQVBoxLayout( 0, 6, 6 );
profiles = new KListBox( plainPage() ); profiles = new KListBox( plainPage() );
@ -420,9 +420,9 @@ ProfileDlg::ProfileDlg(KRenameImpl* krename, TQWidget *parent, const char *name)
button->addItem( spacer ); button->addItem( spacer );
button->addWidget( checkDefault ); button->addWidget( checkDefault );
layout->addWidget( profiles ); tqlayout->addWidget( profiles );
layout->addLayout( button ); tqlayout->addLayout( button );
layout->setStretchFactor( profiles, 2 ); tqlayout->setStretchFactor( profiles, 2 );
TQToolTip::add( createProfile, i18n("<qt>Save KRename's current settings as a new profile. " TQToolTip::add( createProfile, i18n("<qt>Save KRename's current settings as a new profile. "
"The settings are saved and can be restored with Load Profile later.</qt>" ) ); "The settings are saved and can be restored with Load Profile later.</qt>" ) );
@ -500,13 +500,13 @@ void ProfileDlg::slotSetDefault()
void ProfileDlg::slotLoadProfile() void ProfileDlg::slotLoadProfile()
{ {
TQString profile = profiles->currentText(); TQString profile = profiles->currentText();
TQString msg = TQString( i18n("Do you really want to load the profile and overwrite the current settings: %1") ).arg( profile ); TQString msg = TQString( i18n("Do you really want to load the profile and overwrite the current settings: %1") ).tqarg( profile );
TQString path = getProfilePath( profile ); TQString path = getProfilePath( profile );
if( path.isEmpty() ) if( path.isEmpty() )
{ {
KMessageBox::error( this, i18n("The profile \"%1\" could not be found.").arg( profile ) ); KMessageBox::error( this, i18n("The profile \"%1\" could not be found.").tqarg( profile ) );
return; return;
} }
@ -554,7 +554,7 @@ void ProfileDlg::slotDeleteProfile()
} }
TQString profile = profiles->currentText(); TQString profile = profiles->currentText();
TQString msg = TQString( i18n("Do you really want to delete the profile: %1") ).arg( profile ); TQString msg = TQString( i18n("Do you really want to delete the profile: %1") ).tqarg( profile );
if( KMessageBox::questionYesNo( this, msg ) == KMessageBox::Yes ) if( KMessageBox::questionYesNo( this, msg ) == KMessageBox::Yes )
{ {

@ -22,7 +22,7 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlineedit.h> #include <tqlineedit.h>
#include <layout.h> #include <tqlayout.h>
#include <tqregexp.h> #include <tqregexp.h>
// KDE includes // KDE includes

@ -20,7 +20,7 @@
#include "kmyhistorycombo.h" #include "kmyhistorycombo.h"
// TQt includes // TQt includes
#include <layout.h> #include <tqlayout.h>
#include <tqsizepolicy.h> #include <tqsizepolicy.h>
#include <tqtabwidget.h> #include <tqtabwidget.h>
@ -38,7 +38,7 @@ tabs::tabs(KRenameImpl* impl, TQRect r, TQWidget *parent, const char *name )
{ {
setIcon( BarIcon( "krename" ) ); setIcon( BarIcon( "krename" ) );
TQVBoxLayout* layout = new TQVBoxLayout( this, 6, 6 ); TQVBoxLayout* tqlayout = new TQVBoxLayout( this, 6, 6 );
TQHBoxLayout* buttons = new TQHBoxLayout( 0, 6, 6 ); TQHBoxLayout* buttons = new TQHBoxLayout( 0, 6, 6 );
TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Expanding ); TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Expanding );
@ -53,12 +53,12 @@ tabs::tabs(KRenameImpl* impl, TQRect r, TQWidget *parent, const char *name )
buttons->addWidget( finishButton ); buttons->addWidget( finishButton );
buttons->addWidget( cancelButton ); buttons->addWidget( cancelButton );
layout->addWidget( tab ); tqlayout->addWidget( tab );
layout->addLayout( buttons ); tqlayout->addLayout( buttons );
layout->setStretchFactor( tab, 2 ); tqlayout->setStretchFactor( tab, 2 );
menuBar = new KMenuBar( this ); menuBar = new KMenuBar( this );
layout->setMenuBar( menuBar ); tqlayout->setMenuBar( menuBar );
connect( cancelButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( close() ) ); connect( cancelButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( close() ) );

@ -113,7 +113,7 @@ void ThreadedLister::reclisterFinished()
if( m_dirnames ) if( m_dirnames )
{ {
TQString name = m_dirname.fileName(); TQString name = m_dirname.fileName();
if( !m_hidden && name.right( 1 ) != TQString::fromLatin1(".") ) if( !m_hidden && name.right( 1 ) != TQString::tqfromLatin1(".") )
m_list->addDirName( m_dirname ); m_list->addDirName( m_dirname );
} }
@ -142,7 +142,7 @@ void ThreadedLister::listerFinished()
if( m_dirnames ) if( m_dirnames )
{ {
TQString name = m_dirname.fileName(); TQString name = m_dirname.fileName();
if( !m_hidden && name.right( 1 ) != TQString::fromLatin1(".") ) if( !m_hidden && name.right( 1 ) != TQString::tqfromLatin1(".") )
m_list->addDirName( m_dirname ); m_list->addDirName( m_dirname );
} }

@ -78,13 +78,13 @@ TQString TranslitPlugin::processFile( BatchRenamer*, int, TQString token, int )
return output; // no error return output; // no error
} }
TQString TranslitPlugin::translit(const TQString & unicoded) TQString TranslitPlugin::translit(const TQString & tqunicoded)
{ {
int i; int i;
TQString transed = ""; TQString transed = "";
for (i=0; i<(int)unicoded.length(); i++) { for (i=0; i<(int)tqunicoded.length(); i++) {
TQString charIn = unicoded.mid(i, 1); TQString charIn = tqunicoded.mid(i, 1);
if (m_mapFromUTF8[charIn.utf8()]) { if (m_mapFromUTF8[charIn.utf8()]) {
TQString charTrans = m_mapFromUTF8[charIn.utf8()]; TQString charTrans = m_mapFromUTF8[charIn.utf8()];
transed.append(charTrans); transed.append(charTrans);

@ -18,8 +18,8 @@
// QT includes // QT includes
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <textcodec.h> #include <tqtextcodec.h>
#include <tqvgroupbox.h> #include <tqvgroupbox.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>

@ -19,7 +19,7 @@
// TQt includes // TQt includes
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
// KDE includes // KDE includes
#include <kfiledialog.h> #include <kfiledialog.h>

@ -29,7 +29,7 @@
// TQt includes // TQt includes
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqsizepolicy.h> #include <tqsizepolicy.h>
#include <tqvbox.h> #include <tqvbox.h>
@ -75,18 +75,18 @@ void wizard::slotAddPage( TQWidget* page, const TQString & title )
return; return;
} }
TQString t = title + i18n(" - Step %1 of %2").arg( pageCount()+1 ).arg( 3 ); TQString t = title + i18n(" - Step %1 of %2").tqarg( pageCount()+1 ).tqarg( 3 );
TQVBox* layout = new TQVBox( this ); TQVBox* tqlayout = new TQVBox( this );
new TQLabel( TQString( t ).remove( title.find( "&" ), 1 ), layout ); new TQLabel( TQString( t ).remove( title.find( "&" ), 1 ), tqlayout );
TQFrame* hbar1 = new TQFrame( layout, "<hr>", 0 ); TQFrame* hbar1 = new TQFrame( tqlayout, "<hr>", 0 );
hbar1->setFrameStyle( TQFrame::Sunken + TQFrame::HLine ); hbar1->setFrameStyle( TQFrame::Sunken + TQFrame::HLine );
page->reparent( layout, TQPoint( 0, 0 ) ); page->reparent( tqlayout, TQPoint( 0, 0 ) );
addPage( layout, t ); addPage( tqlayout, t );
setHelpEnabled( layout, false ); setHelpEnabled( tqlayout, false );
} }
void wizard::slotShowPage( int page ) void wizard::slotShowPage( int page )

Loading…
Cancel
Save