summaryrefslogtreecommitdiffstats
path: root/amarok/src/scriptmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'amarok/src/scriptmanager.cpp')
-rw-r--r--amarok/src/scriptmanager.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/amarok/src/scriptmanager.cpp b/amarok/src/scriptmanager.cpp
index f94f8d0f..90ae357a 100644
--- a/amarok/src/scriptmanager.cpp
+++ b/amarok/src/scriptmanager.cpp
@@ -40,7 +40,7 @@
#include <tqfileinfo.h>
#include <tqfont.h>
#include <tqlabel.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqtimer.h>
#include <kaboutdialog.h>
@@ -88,7 +88,7 @@ namespace Amarok {
TQString proxy;
if ( KProtocolManager::proxyForURL( kurl ) !=
- TQString::fromLatin1( "DIRECT" ) ) {
+ TQString::tqfromLatin1( "DIRECT" ) ) {
KProtocolManager::slaveProtocol ( kurl, proxy );
}
@@ -199,9 +199,9 @@ ScriptManager::ScriptManager( TQWidget *parent, const char *name )
m_gui->configureButton->setIconSet( SmallIconSet( Amarok::icon( "configure" ) ) );
m_gui->aboutButton ->setIconSet( SmallIconSet( Amarok::icon( "info" ) ) );
- TQSize sz = sizeHint();
+ TQSize sz = tqsizeHint();
setMinimumSize( kMax( 350, sz.width() ), kMax( 250, sz.height() ) );
- resize( sizeHint() );
+ resize( tqsizeHint() );
connect( this, TQT_SIGNAL(lyricsScriptChanged()), ContextBrowser::instance(), TQT_SLOT( lyricsScriptChanged() ) );
@@ -339,12 +339,12 @@ ScriptManager::requestNewScore( const TQString &url, double prevscore, int playc
m_scripts[script].process->writeStdin(
TQString( "requestNewScore %6 %1 %2 %3 %4 %5" )
- .arg( prevscore )
- .arg( playcount )
- .arg( length )
- .arg( percentage )
- .arg( reason )
- .arg( KURL::encode_string( url ) ) ); //last because it might have %s
+ .tqarg( prevscore )
+ .tqarg( playcount )
+ .tqarg( length )
+ .tqarg( percentage )
+ .tqarg( reason )
+ .tqarg( KURL::encode_string( url ) ) ); //last because it might have %s
}
////////////////////////////////////////////////////////////////////////////////
@@ -435,7 +435,7 @@ ScriptManager::slotInstallScript( const TQString& path )
const TQString scriptFolder = destination + archiveDir->entries().first();
if( TQFile::exists( scriptFolder ) ) {
KMessageBox::error( 0, i18n( "A script with the name '%1' is already installed. "
- "Please uninstall it first." ).arg( archiveDir->entries().first() ) );
+ "Please uninstall it first." ).tqarg( archiveDir->entries().first() ) );
return false;
}
@@ -512,7 +512,7 @@ ScriptManager::slotUninstallScript()
{
const TQString name = m_gui->listView->currentItem()->text( 0 );
- if( KMessageBox::warningContinueCancel( 0, i18n( "Are you sure you want to uninstall the script '%1'?" ).arg( name ), i18n("Uninstall Script"), i18n("Uninstall") ) == KMessageBox::Cancel )
+ if( KMessageBox::warningContinueCancel( 0, i18n( "Are you sure you want to uninstall the script '%1'?" ).tqarg( name ), i18n("Uninstall Script"), i18n("Uninstall") ) == KMessageBox::Cancel )
return;
if( m_scripts.find( name ) == m_scripts.end() )
@@ -610,7 +610,7 @@ ScriptManager::slotRunScript( bool silent )
{
if( !silent )
KMessageBox::sorry( 0, i18n( "<p>Could not start the script <i>%1</i>.</p>"
- "<p>Please make sure that the file has execute (+x) permissions.</p>" ).arg( name ) );
+ "<p>Please make sure that the file has execute (+x) permissions.</p>" ).tqarg( name ) );
delete script;
return false;
}
@@ -674,11 +674,11 @@ ScriptManager::slotAboutScript()
TQString(),
KDialogBase::Ok, KDialogBase::Ok, this );
kapp->setTopWidget( about );
- about->setCaption( kapp->makeStdCaption( i18n( "About %1" ).arg( name ) ) );
+ about->setCaption( kapp->makeStdCaption( i18n( "About %1" ).tqarg( name ) ) );
about->setProduct( "", "", "", "" );
// Get rid of the confusing KDE version text
TQLabel* product = static_cast<TQLabel*>( TQT_TQWIDGET(about->mainWidget()->child( "version" )) );
- if( product ) product->setText( i18n( "%1 Amarok Script" ).arg( name ) );
+ if( product ) product->setText( i18n( "%1 Amarok Script" ).tqarg( name ) );
about->addTextPage( i18n( "About" ), readme.readAll(), true );
if( license.open( IO_ReadOnly ) )
@@ -726,7 +726,7 @@ ScriptManager::slotShowContextMenu( TQListViewItem* item, const TQPoint& pos )
KTextEdit* editor = new KTextEdit( it.data().log );
kapp->setTopWidget( editor );
- editor->setCaption( kapp->makeStdCaption( i18n( "Output Log for %1" ).arg( it.key() ) ) );
+ editor->setCaption( kapp->makeStdCaption( i18n( "Output Log for %1" ).tqarg( it.key() ) ) );
editor->setReadOnly( true );
TQFont font( "fixed" );
@@ -746,7 +746,7 @@ ScriptManager::slotShowContextMenu( TQListViewItem* item, const TQPoint& pos )
void
ScriptManager::slotReceivedStdout( KProcess*, char* buf, int len )
{
- debug() << TQString::fromLatin1( buf, len ) << endl;
+ debug() << TQString::tqfromLatin1( buf, len ) << endl;
}
@@ -759,7 +759,7 @@ ScriptManager::slotReceivedStderr( KProcess* process, char* buf, int len )
for( it = m_scripts.begin(); it != end; ++it )
if( it.data().process == process ) break;
- const TQString text = TQString::fromLatin1( buf, len );
+ const TQString text = TQString::tqfromLatin1( buf, len );
error() << it.key() << ":\n" << text << endl;
if( it.data().log.length() > 20000 )
@@ -780,7 +780,7 @@ ScriptManager::scriptFinished( KProcess* process ) //SLOT
// Check if there was an error on exit
if( process->normalExit() && process->exitStatus() != 0 )
KMessageBox::detailedError( 0, i18n( "The script '%1' exited with error code: %2" )
- .arg( it.key() ).arg( process->exitStatus() )
+ .tqarg( it.key() ).tqarg( process->exitStatus() )
,it.data().log );
// Destroy script process