|
|
|
@ -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;
|
|
|
|
|
}
|
|
|
|
@ -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 )
|
|
|
|
|
{
|
|
|
|
|