Compare commits

...

73 Commits

Author SHA1 Message Date
TDE Gitea 45b8eb6131 Reset submodule main/applications/utilities/krename/admin to latest HEAD
2 years ago
Slávek Banko ae450353d9
Remove cmake submodule since it has now been replaced by cmake-trinity dependency.
3 years ago
TDE Gitea 36354c69fe Reset submodule main/applications/krename/cmake to latest HEAD
3 years ago
TDE Gitea 4dab9721ee Reset submodule main/applications/krename/cmake to latest HEAD
3 years ago
TDE Gitea 37a8d665d8 Reset submodule main/applications/krename/cmake to latest HEAD
3 years ago
TDE Gitea 8a43bbe9b7 Reset submodule main/applications/krename/cmake to latest HEAD
3 years ago
TDE Gitea 60236b9997 Reset submodule main/applications/krename/admin to latest HEAD
3 years ago
TDE Gitea 4210a01fb7 Reset submodule main/applications/krename/cmake to latest HEAD
3 years ago
TDE Gitea 8d4112ca20 Reset submodule main/applications/krename/cmake to latest HEAD
3 years ago
TDE Gitea c820adb135 Reset submodule main/applications/krename/admin to latest HEAD
3 years ago
TDE Gitea 821d448490 Reset submodule main/applications/krename/cmake to latest HEAD
4 years ago
TDE Gitea 5c6c2c07af Reset submodule main/applications/krename/admin to latest HEAD
4 years ago
TDE Gitea da7e91dd85 Reset submodule main/applications/krename/cmake to latest HEAD
4 years ago
TDE Gitea a1d2e2654e Reset submodule main/applications/krename/admin to latest HEAD
4 years ago
TDE Gitea 1f9dad7127 Reset submodule main/applications/krename/cmake to latest HEAD
4 years ago
TDE Gitea c91305e673 Reset submodule main/applications/krename/admin to latest HEAD
4 years ago
TDE Gitea e2e605e6c0 Reset submodule main/applications/krename/cmake to latest HEAD
4 years ago
TDE Gitea c33bb72785 Reset submodule main/applications/krename/cmake to latest HEAD
4 years ago
TDE Gitea 737a026e5b Reset submodule main/applications/krename/cmake to latest HEAD
4 years ago
TDE Gitea a4f797d20b Reset submodule main/applications/krename/admin to latest HEAD
4 years ago
TDE Gitea b8f0e00ade Reset submodule main/applications/krename/cmake to latest HEAD
4 years ago
TDE Gitea 5b6d7f246d Reset submodule main/applications/krename/cmake to latest HEAD
4 years ago
TDE Gitea 8d99e7946c Reset submodule main/applications/krename/cmake to latest HEAD
4 years ago
TDE Gitea d87d119dc4 Reset submodule main/applications/krename/cmake to latest HEAD
4 years ago
TDE Gitea 40658f9758 Reset submodule main/applications/krename/admin to latest HEAD
4 years ago
TDE Gitea 160a635fcc Reset submodule main/applications/krename/cmake to latest HEAD
4 years ago
TDE Gitea ea4f46abe7 Reset submodule main/applications/krename/cmake to latest HEAD
4 years ago
TDE Gitea 43067cced1 Reset submodule main/applications/krename/cmake to latest HEAD
4 years ago
TDE Gitea 3df43be322 Reset submodule main/applications/krename/cmake to latest HEAD
4 years ago
TDE Gitea 1449985ad6 Reset submodule main/applications/krename/cmake to latest HEAD
4 years ago
TDE Gitea b170b46c60 Reset submodule main/applications/krename/cmake to latest HEAD
4 years ago
TDE Gitea 0ea92f6d66 Reset submodule main/applications/krename/cmake to latest HEAD
4 years ago
TDE Gitea 114f118e74 Reset submodule main/applications/krename/cmake to latest HEAD
4 years ago
TDE Gitea 82104eaaf8 Reset submodule main/applications/krename/cmake to latest HEAD
4 years ago
Slávek Banko 414cd7373c
Switch all submodules to https.
4 years ago
TDE Gitea 63d148fe6f Reset submodule main/applications/krename/cmake to latest HEAD
5 years ago
TDE Gitea e70a861f0e Reset submodule main/applications/krename/cmake to latest HEAD
5 years ago
TDE Gitea cb25869800 Reset submodule main/applications/krename/cmake to latest HEAD
5 years ago
TDE Gitea 6ee16215bd Reset submodule main/applications/krename/cmake to latest HEAD
5 years ago
TDE Gitea 837fe8e76b Reset submodule main/applications/krename/admin to latest HEAD
5 years ago
TDE Gitea 84f9df712c Reset submodule main/applications/krename/cmake to latest HEAD
5 years ago
TDE Gitea 46522dac64 Reset submodule main/applications/krename/cmake to latest HEAD
5 years ago
TDE Gitea a72fff708b Reset submodule main/applications/krename/cmake to latest HEAD
5 years ago
TDE Gitea 12a5f40b06 Reset submodule main/applications/krename/cmake to latest HEAD
5 years ago
TDE Gitea 2c8b0f5df7 Reset submodule main/applications/krename/cmake to latest HEAD
5 years ago
TDE Gitea cb8d4f4e14 Reset submodule main/applications/krename/cmake to latest HEAD
5 years ago
TDE Gitea 5ed2d57602 Reset submodule main/applications/krename/admin to latest HEAD
5 years ago
TDE Gitea c9fcd1ede3 Reset submodule main/applications/krename/cmake to latest HEAD
5 years ago
TDE Gitea dfc676e810 Reset submodule main/applications/krename/cmake to latest HEAD
5 years ago
TDE Gitea 82008e57ae Reset submodule main/applications/krename/admin to latest HEAD
6 years ago
Slávek Banko ac119812f0 Reset submodule main/applications/krename/admin to latest HEAD
6 years ago
Slávek Banko 99135d3193 Reset submodule main/applications/krename/admin to latest HEAD
6 years ago
Slávek Banko d57a46a89f Reset submodule main/applications/krename/admin to latest HEAD
6 years ago
Slávek Banko f24af70ed0 Reset submodule main/applications/krename/cmake to latest HEAD
7 years ago
Slávek Banko aa0fd7dfc7 Reset submodule main/applications/krename/admin to latest HEAD
8 years ago
Slávek Banko 1a077fc863 Reset submodule main/applications/krename/cmake to latest HEAD
8 years ago
Slávek Banko 3c30ed90ec Reset submodule main/applications/krename/admin to latest HEAD
8 years ago
Slávek Banko 4c49683573 Reset submodule main/applications/krename/admin to latest HEAD
11 years ago
Slávek Banko 94cff2424c Reset submodule main/applications/krename/admin to latest HEAD
11 years ago
Slávek Banko 087b8dc7ce Reset submodule main/applications/krename/cmake to latest HEAD
11 years ago
Slávek Banko 917917a17b Reset submodule main/applications/krename/cmake to latest HEAD
11 years ago
Slávek Banko f5aa5cc571 Reset submodule main/applications/krename/cmake to latest HEAD
12 years ago
Slávek Banko 37449b9889 Reset submodule main/applications/krename/cmake to latest HEAD
12 years ago
Slávek Banko 90ccd55f98 Reset submodule main/applications/krename/admin to latest HEAD
12 years ago
Slávek Banko 596e18055b Reset submodule main/applications/krename/cmake to latest HEAD
12 years ago
Slávek Banko 901259ff29 Reset submodule main/applications/krename/cmake to latest HEAD
12 years ago
Slávek Banko 6d984bd4e0 Reset submodule main/applications/krename/admin to latest HEAD
12 years ago
Slávek Banko 37ef5462b1 Update final HTML install path so all modules are consistent.
12 years ago
Darrell Anderson dfda44d156 Update HTML install path references.
12 years ago
Timothy Pearson fc4c52e1a0 Rename obsolete tq methods to standard names
12 years ago
Timothy Pearson 1d761f05a8 Remove additional unneeded tq method conversions
12 years ago
Timothy Pearson c455f7784e Rename old tq methods that no longer need a unique name
12 years ago
Slávek Banko aa7d6a8f6f Add common directories
12 years ago

3
.gitmodules vendored

@ -0,0 +1,3 @@
[submodule "admin"]
path = admin
url = https://system@scm.trinitydesktop.org/scm/git/tde-common-admin

@ -428,7 +428,7 @@ AC_DEFUN([KDE_SET_DEFAULT_PATHS],
if test "$1" = "default"; then
if test -z "$kde_htmldir"; then
kde_htmldir='\${datadir}/doc/HTML'
kde_htmldir='\${datadir}/doc/tde/HTML'
fi
if test -z "$kde_appsdir"; then
kde_appsdir='\${datadir}/applnk'

@ -0,0 +1 @@
Subproject commit 92a6d62b8f8f1836c43b54e3fb13b7ea7bb22e9f

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

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

@ -137,7 +137,7 @@ TQString CommandPlugin::processFile( BatchRenamer* b, int i, TQString, int )
proc.resume();
if( !noblock && proc.exitStatus() )
return command.tqarg( filename ) + TQString( i18n(" exited with error: %1") ).tqarg( proc.exitStatus() );
return command.arg( filename ) + TQString( i18n(" exited with error: %1") ).arg( proc.exitStatus() );
return TQString();
}

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

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

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

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

@ -38,10 +38,10 @@ DSDirSelectDialog::DSDirSelectDialog( TQWidget* parent )
TQVBox* vbox = new TQVBox( this );
if( tqlayout() )
tqlayout()->add( vbox );
if( layout() )
layout()->add( vbox );
else
qDebug("KFileDialog does not have a tqlayout!!!");
qDebug("KFileDialog does not have a layout!!!");
checkDir = new TQCheckBox( i18n("Add directory names &with filenames"), vbox );
check = new TQCheckBox( i18n("Add subdirectories &recursively"), vbox );

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

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

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

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

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

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

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

@ -423,10 +423,10 @@ void KRenameImpl::setupPage2()
groupOptions = new TQButtonGroup( page_2 );
groupOptions->setTitle( i18n( "O&ptions" ) );
groupOptions->setColumnLayout(0, Qt::Vertical );
groupOptions->tqlayout()->setSpacing( 6 );
groupOptions->tqlayout()->setMargin( 11 );
groupOptionsLayout = new TQVBoxLayout( groupOptions->tqlayout() );
groupOptionsLayout->tqsetAlignment( TQt::AlignTop );
groupOptions->layout()->setSpacing( 6 );
groupOptions->layout()->setMargin( 11 );
groupOptionsLayout = new TQVBoxLayout( groupOptions->layout() );
groupOptionsLayout->setAlignment( TQt::AlignTop );
optionRename = new TQRadioButton( groupOptions );
optionRename->setText( i18n( "&Rename input files" ) );
@ -619,7 +619,7 @@ void KRenameImpl::setupFileTab1()
TQSpacerItem* spacer_9 = new TQSpacerItem( 200, 20, TQSizePolicy::Maximum, TQSizePolicy::Maximum );
TQVBoxLayout* tqlayout = new TQVBoxLayout( tab );
TQVBoxLayout* layout = new TQVBoxLayout( tab );
TQHBoxLayout* Layout1 = new TQHBoxLayout( 0, 6, 6 );
TQHBoxLayout* Layout2 = 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( comboExtension );
tqlayout->addLayout( Layout1 );
tqlayout->addLayout( ExtensionLayout );
tqlayout->addLayout( Layout2 );
tqlayout->addItem( spacer_9 );
layout->addLayout( Layout1 );
layout->addLayout( ExtensionLayout );
layout->addLayout( Layout2 );
layout->addItem( spacer_9 );
fileTab->addWidget( tab, ID_TAB );
}
@ -653,7 +653,7 @@ void KRenameImpl::setupFileTab2()
{
TQWidget* tab = new TQWidget( page_4 );
TQHBoxLayout* tqlayout = new TQHBoxLayout( tab, 6, 6 );
TQHBoxLayout* layout = new TQHBoxLayout( tab, 6, 6 );
TQVGroupBox* vgroup1 = new TQVGroupBox( i18n("&Filename"), tab );
TQGrid* grid = new TQGrid( 4, vgroup1 );
@ -708,8 +708,8 @@ void KRenameImpl::setupFileTab2()
buttonEasyReplace = new KPushButton( i18n("&Find and Replace..."), rightBox );
buttonEasyReplace->setIconSet( SmallIconSet("find") );
tqlayout->addWidget( vgroup1 );
tqlayout->addWidget( rightBox );
layout->addWidget( vgroup1 );
layout->addWidget( rightBox );
comboKRenamePrefix->insertItem( "" );
comboKRenamePrefix->insertItem( i18n("Number") );
@ -737,10 +737,10 @@ void KRenameImpl::setupFileTab2()
buttonEasy3->setIconSet( SmallIcon("help") );
buttonEasy4->setIconSet( SmallIcon("help") );
buttonEasy1->tqsetSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
buttonEasy2->tqsetSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
buttonEasy3->tqsetSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
buttonEasy4->tqsetSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
buttonEasy1->setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
buttonEasy2->setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
buttonEasy3->setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
buttonEasy4->setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
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" );
p->print(TQString( i18n("Starting conversion of %1 files.") ).tqarg(fileList->count()));
p->print(TQString( i18n("Starting conversion of %1 files.") ).arg(fileList->count()));
// Save History
dirname->saveSettings();
@ -1065,7 +1065,7 @@ bool KRenameImpl::checkErrors()
void KRenameImpl::updateCount()
{
labelCount->setText( TQString( i18n("Files: <b>%1</b>") ).tqarg(fileList->count()));
labelCount->setText( TQString( i18n("Files: <b>%1</b>") ).arg(fileList->count()));
buttonCoord->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 ) ) )
{
int m = KMessageBox::warningContinueCancel( parent, i18n("The directory %1 does not exist. "
"KRename will create it for you.").tqarg( url ) );
"KRename will create it for you.").arg( url ) );
if( m == KMessageBox::Cancel )
return false;

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

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

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

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

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

@ -113,7 +113,7 @@ const TQString ProfileManager::getProfilePath( const TQString & name )
else if( name == PROFILE_TABBED_NAME )
return locate( "data", "krename/krename_system_default_tabbed.xml" );
TQString path = locateLocal( "data", TQString( "krename/%1.xml" ).tqarg( name ) );
TQString path = locateLocal( "data", TQString( "krename/%1.xml" ).arg( name ) );
KConfig* conf = kapp->config();
@ -232,7 +232,7 @@ bool ProfileManager::loadXML( const TQString & path )
{
bool wiz, plug;
wiz = (bool)e.attribute( "wizard",
TQString( "%1" ).tqarg( m_krename->m_wizard ) ).toInt();
TQString( "%1" ).arg( m_krename->m_wizard ) ).toInt();
m_krename->setWizardMode( wiz );
// if( wiz != m_krename->m_wizard )
@ -242,7 +242,7 @@ bool ProfileManager::loadXML( const TQString & path )
}
plug = (bool)e.attribute( "fileplugins",
TQString( "%1" ).tqarg( m_krename->plugin->filePluginsLoaded() ) ).toInt();
TQString( "%1" ).arg( m_krename->plugin->filePluginsLoaded() ) ).toInt();
if( plug && !m_krename->plugin->filePluginsLoaded() )
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->checkExtension->setChecked(
(bool)e.attribute("extension_enabled",
TQString("%1").tqarg(m_krename->checkExtension->isChecked() ) ).toInt() );
TQString("%1").arg(m_krename->checkExtension->isChecked() ) ).toInt() );
m_krename->comboExtension->setCurrentItem(
e.attribute("extension_start",
TQString::number( m_krename->comboExtension->currentItem() ) ).toInt() );
@ -344,7 +344,7 @@ const TQString ProfileManager::listToString( TQValueList<int> & list )
{
TQString data;
for( unsigned int i = 0; i < list.count(); i++ )
data += TQString( "%1;" ).tqarg( list[i] );
data += TQString( "%1;" ).arg( list[i] );
return data;
}
@ -397,7 +397,7 @@ ProfileDlg::ProfileDlg(KRenameImpl* krename, TQWidget *parent, const char *name)
{
int i;
TQHBoxLayout* tqlayout = new TQHBoxLayout( plainPage(), 6, 6 );
TQHBoxLayout* layout = new TQHBoxLayout( plainPage(), 6, 6 );
TQVBoxLayout* button = new TQVBoxLayout( 0, 6, 6 );
profiles = new KListBox( plainPage() );
@ -420,9 +420,9 @@ ProfileDlg::ProfileDlg(KRenameImpl* krename, TQWidget *parent, const char *name)
button->addItem( spacer );
button->addWidget( checkDefault );
tqlayout->addWidget( profiles );
tqlayout->addLayout( button );
tqlayout->setStretchFactor( profiles, 2 );
layout->addWidget( profiles );
layout->addLayout( button );
layout->setStretchFactor( profiles, 2 );
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>" ) );
@ -500,13 +500,13 @@ void ProfileDlg::slotSetDefault()
void ProfileDlg::slotLoadProfile()
{
TQString profile = profiles->currentText();
TQString msg = TQString( i18n("Do you really want to load the profile and overwrite the current settings: %1") ).tqarg( profile );
TQString msg = TQString( i18n("Do you really want to load the profile and overwrite the current settings: %1") ).arg( profile );
TQString path = getProfilePath( profile );
if( path.isEmpty() )
{
KMessageBox::error( this, i18n("The profile \"%1\" could not be found.").tqarg( profile ) );
KMessageBox::error( this, i18n("The profile \"%1\" could not be found.").arg( profile ) );
return;
}
@ -554,7 +554,7 @@ void ProfileDlg::slotDeleteProfile()
}
TQString profile = profiles->currentText();
TQString msg = TQString( i18n("Do you really want to delete the profile: %1") ).tqarg( profile );
TQString msg = TQString( i18n("Do you really want to delete the profile: %1") ).arg( profile );
if( KMessageBox::questionYesNo( this, msg ) == KMessageBox::Yes )
{

@ -38,7 +38,7 @@ tabs::tabs(KRenameImpl* impl, TQRect r, TQWidget *parent, const char *name )
{
setIcon( BarIcon( "krename" ) );
TQVBoxLayout* tqlayout = new TQVBoxLayout( this, 6, 6 );
TQVBoxLayout* layout = new TQVBoxLayout( this, 6, 6 );
TQHBoxLayout* buttons = new TQHBoxLayout( 0, 6, 6 );
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( cancelButton );
tqlayout->addWidget( tab );
tqlayout->addLayout( buttons );
tqlayout->setStretchFactor( tab, 2 );
layout->addWidget( tab );
layout->addLayout( buttons );
layout->setStretchFactor( tab, 2 );
menuBar = new KMenuBar( this );
tqlayout->setMenuBar( menuBar );
layout->setMenuBar( menuBar );
connect( cancelButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( close() ) );

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

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

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

Loading…
Cancel
Save