Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 11 years ago
parent 700293d446
commit c9f212164b

@ -78,7 +78,7 @@ good for others reading your code, and ultimately it's good for you too.
Comments are essential when adding a strange hack, like the following example: Comments are essential when adding a strange hack, like the following example:
| /** Due to xine-lib, we have to make KProcess close all fds, otherwise we get "device is busy" messages | /** Due to xine-lib, we have to make TDEProcess close all fds, otherwise we get "device is busy" messages
| * Used by AmarokProcIO and AmarokProcess, exploiting commSetupDoneC(), a virtual method that | * Used by AmarokProcIO and AmarokProcess, exploiting commSetupDoneC(), a virtual method that
| * happens to be called in the forked process | * happens to be called in the forked process
| * See bug #103750 for more information. | * See bug #103750 for more information.

@ -166,12 +166,12 @@ namespace Amarok
{ {
return fileName.section( '/', 0, -2 ); return fileName.section( '/', 0, -2 );
} }
/** Due to xine-lib, we have to make KProcess close all fds, otherwise we get "device is busy" messages /** Due to xine-lib, we have to make TDEProcess close all fds, otherwise we get "device is busy" messages
* Used by Amarok::ProcIO and Amarok::Process, exploiting commSetupDoneC(), a virtual method that * Used by Amarok::ProcIO and Amarok::Process, exploiting commSetupDoneC(), a virtual method that
* happens to be called in the forked process * happens to be called in the forked process
* See bug #103750 for more information. * See bug #103750 for more information.
*/ */
//TODO ugly hack, fix KProcess for KDE 4.0 //TODO ugly hack, fix TDEProcess for KDE 4.0
void closeOpenFiles(int out, int in, int err); //defined in scriptmanager.cpp void closeOpenFiles(int out, int in, int err); //defined in scriptmanager.cpp
/** /**
@ -268,7 +268,7 @@ namespace Amarok
// class Amarok::ProcIO // class Amarok::ProcIO
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/** /**
* Due to xine-lib, we have to make KProcess close all fds, otherwise we get "device is busy" messages * Due to xine-lib, we have to make TDEProcess close all fds, otherwise we get "device is busy" messages
* Used by Amarok::ProcIO and AmarokProcess, exploiting commSetupDoneC(), a virtual method that * Used by Amarok::ProcIO and AmarokProcess, exploiting commSetupDoneC(), a virtual method that
* happens to be called in the forked process * happens to be called in the forked process
* See bug #103750 for more information. * See bug #103750 for more information.
@ -286,17 +286,17 @@ namespace Amarok
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// class Amarok::Process // class Amarok::Process
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/** Due to xine-lib, we have to make KProcess close all fds, otherwise we get "device is busy" messages /** Due to xine-lib, we have to make TDEProcess close all fds, otherwise we get "device is busy" messages
* Used by Amarok::ProcIO and Amarok::Process, exploiting commSetupDoneC(), a virtual method that * Used by Amarok::ProcIO and Amarok::Process, exploiting commSetupDoneC(), a virtual method that
* happens to be called in the forked process * happens to be called in the forked process
* See bug #103750 for more information. * See bug #103750 for more information.
*/ */
class LIBAMAROK_EXPORT Process : public KProcess { class LIBAMAROK_EXPORT Process : public TDEProcess {
public: public:
Process( TQObject *parent = 0 ) : KProcess( parent ) {} Process( TQObject *parent = 0 ) : TDEProcess( parent ) {}
virtual int commSetupDoneC() { virtual int commSetupDoneC() {
const int i = KProcess::commSetupDoneC(); const int i = TDEProcess::commSetupDoneC();
Amarok::closeOpenFiles(KProcess::out[0],KProcess::in[0], KProcess::err[0]); Amarok::closeOpenFiles(TDEProcess::out[0],TDEProcess::in[0], TDEProcess::err[0]);
return i; return i;
}; };
}; };

@ -355,7 +355,7 @@ void
BlockAnalyzer::paletteChange( const TQPalette& ) //virtual BlockAnalyzer::paletteChange( const TQPalette& ) //virtual
{ {
const TQColor bg = palette().active().background(); const TQColor bg = palette().active().background();
const TQColor fg = ensureContrast( bg, KGlobalSettings::activeTitleColor() ); const TQColor fg = ensureContrast( bg, TDEGlobalSettings::activeTitleColor() );
m_topBarPixmap.fill( fg ); m_topBarPixmap.fill( fg );

@ -780,7 +780,7 @@ App::continueInit()
CollectionDB::instance()->checkDatabase(); CollectionDB::instance()->checkDatabase();
m_pMediaDeviceManager = MediaDeviceManager::instance(); m_pMediaDeviceManager = MediaDeviceManager::instance();
m_pGlobalAccel = new KGlobalAccel( TQT_TQOBJECT(this) ); m_pGlobalAccel = new TDEGlobalAccel( TQT_TQOBJECT(this) );
m_pPlaylistWindow = new PlaylistWindow(); m_pPlaylistWindow = new PlaylistWindow();
#ifdef TQ_WS_X11 #ifdef TQ_WS_X11
m_pTray = new Amarok::TrayIcon( m_pPlaylistWindow ); m_pTray = new Amarok::TrayIcon( m_pPlaylistWindow );
@ -860,7 +860,7 @@ App::applyColorScheme()
if( AmarokConfig::schemeKDE() ) if( AmarokConfig::schemeKDE() )
{ {
AltBase = KGlobalSettings::alternateBackgroundColor(); AltBase = TDEGlobalSettings::alternateBackgroundColor();
playlistWindow()->unsetPalette(); playlistWindow()->unsetPalette();
browserBar->unsetPalette(); browserBar->unsetPalette();
@ -1238,7 +1238,7 @@ KIO::Job *App::trashFiles( const KURL::List &files )
connect( job, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( slotTrashResult( KIO::Job* ) ) ); connect( job, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( slotTrashResult( KIO::Job* ) ) );
return job; return job;
#else #else
KIO::Job* job = KIO::move( files, KGlobalSettings::trashPath() ); KIO::Job* job = KIO::move( files, TDEGlobalSettings::trashPath() );
return job; return job;
#endif #endif
} }
@ -1338,7 +1338,7 @@ namespace Amarok
TQString saveLocation( const TQString &directory ) TQString saveLocation( const TQString &directory )
{ {
globalDirsMutex.lock(); globalDirsMutex.lock();
TQString result = KGlobal::dirs()->saveLocation( "data", TQString("amarok/") + directory, true ); TQString result = TDEGlobal::dirs()->saveLocation( "data", TQString("amarok/") + directory, true );
globalDirsMutex.unlock(); globalDirsMutex.unlock();
return result; return result;
} }

@ -32,7 +32,7 @@ namespace KIO { class Job; }
class KActionCollection; class KActionCollection;
class KConfig; class KConfig;
class KGlobalAccel; class TDEGlobalAccel;
class MetaBundle; class MetaBundle;
class PlayerWidget; class PlayerWidget;
class Playlist; class Playlist;
@ -111,7 +111,7 @@ class LIBAMAROK_EXPORT App : public TDEApplication, public EngineObserver
void setRating( int n ); void setRating( int n );
// ATTRIBUTES ------ // ATTRIBUTES ------
KGlobalAccel *m_pGlobalAccel; TDEGlobalAccel *m_pGlobalAccel;
PlayerWidget *m_pPlayerWindow; PlayerWidget *m_pPlayerWindow;
PlaylistWindow *m_pPlaylistWindow; PlaylistWindow *m_pPlaylistWindow;
#ifdef TQ_WS_X11 #ifdef TQ_WS_X11

@ -2736,7 +2736,7 @@ CollectionView::iconForCategory( const int cat ) const
break; break;
} }
return KGlobal::iconLoader()->loadIcon( icon, KIcon::Toolbar, KIcon::SizeSmall ); return TDEGlobal::iconLoader()->loadIcon( icon, KIcon::Toolbar, KIcon::SizeSmall );
} }
TQString TQString

@ -185,7 +185,7 @@ AmarokConfigDialog::AmarokConfigDialog( TQWidget *parent, const char* name, KCon
// Show information labels (must be done after insertions) // Show information labels (must be done after insertions)
TQObjectList *list = queryList( TQLABEL_OBJECT_NAME_STRING, "infoPixmap" ); TQObjectList *list = queryList( TQLABEL_OBJECT_NAME_STRING, "infoPixmap" );
TQPixmap const info = KGlobal::iconLoader()->iconPath( "messagebox_info", -KIcon::SizeHuge ); TQPixmap const info = TDEGlobal::iconLoader()->iconPath( "messagebox_info", -KIcon::SizeHuge );
for( TQObject *label = list->first(); label; label = list->next() ) for( TQObject *label = list->first(); label; label = list->next() )
static_cast<TQLabel*>(TQT_TQWIDGET(label))->setPixmap( info ); static_cast<TQLabel*>(TQT_TQWIDGET(label))->setPixmap( info );
delete list; delete list;

@ -95,7 +95,7 @@ namespace Amarok
const int datediff = datetime.daysTo( now ); const int datediff = datetime.daysTo( now );
if( datediff >= 6*7 /*six weeks*/ ) { // return absolute month/year if( datediff >= 6*7 /*six weeks*/ ) { // return absolute month/year
const KCalendarSystem *cal = KGlobal::locale()->calendar(); const KCalendarSystem *cal = TDEGlobal::locale()->calendar();
const TQDate date = datetime.date(); const TQDate date = datetime.date();
return i18n( "monthname year", "%1 %2" ).arg( cal->monthName(date), cal->yearString(date, false) ); return i18n( "monthname year", "%1 %2" ).arg( cal->monthName(date), cal->yearString(date, false) );
} }
@ -642,7 +642,7 @@ void ContextBrowser::engineNewMetaData( const MetaBundle& bundle, bool trackChan
if ( !m_metadataHistory.first().contains( bundle.prettyTitle() ) ) if ( !m_metadataHistory.first().contains( bundle.prettyTitle() ) )
{ {
newMetaData = true; newMetaData = true;
const TQString timeString = KGlobal::locale()->formatTime( TQTime::currentTime() ).replace(" ", "&nbsp;"); // don't break over lines const TQString timeString = TDEGlobal::locale()->formatTime( TQTime::currentTime() ).replace(" ", "&nbsp;"); // don't break over lines
m_metadataHistory.prepend( TQString( "<td valign='top'>" + timeString + "&nbsp;</td><td align='left'>" + escapeHTML( bundle.prettyTitle() ) + "</td>" ) ); m_metadataHistory.prepend( TQString( "<td valign='top'>" + timeString + "&nbsp;</td><td align='left'>" + escapeHTML( bundle.prettyTitle() ) + "</td>" ) );
} }
@ -1116,7 +1116,7 @@ public:
} }
m_amarokIconPath = TQDeepCopy<TQString>(KGlobal::iconLoader()->iconPath( "amarok", m_amarokIconPath = TQDeepCopy<TQString>(TDEGlobal::iconLoader()->iconPath( "amarok",
-KIcon::SizeEnormous ) ); -KIcon::SizeEnormous ) );
m_musicBrainIconPath = TQDeepCopy<TQString>(locate( "data", "amarok/images/musicbrainz.png" ) m_musicBrainIconPath = TQDeepCopy<TQString>(locate( "data", "amarok/images/musicbrainz.png" )
); );
@ -1774,9 +1774,9 @@ void CurrentTrackJob::showLastFm( const MetaBundle &currentTrack )
for ( TQString* url = newUrls.first(); url; url = newUrls.next() ) for ( TQString* url = newUrls.first(); url; url = newUrls.next() )
url->replace( TQRegExp( "^http:" ), "externalurl:" ); url->replace( TQRegExp( "^http:" ), "externalurl:" );
const TQString skipIcon = KGlobal::iconLoader()->iconPath( Amarok::icon("next"), -KIcon::SizeSmallMedium ); const TQString skipIcon = TDEGlobal::iconLoader()->iconPath( Amarok::icon("next"), -KIcon::SizeSmallMedium );
const TQString loveIcon = KGlobal::iconLoader()->iconPath( Amarok::icon("love"), -KIcon::SizeSmallMedium ); const TQString loveIcon = TDEGlobal::iconLoader()->iconPath( Amarok::icon("love"), -KIcon::SizeSmallMedium );
const TQString banIcon = KGlobal::iconLoader()->iconPath( Amarok::icon("remove"), -KIcon::SizeSmallMedium ); const TQString banIcon = TDEGlobal::iconLoader()->iconPath( Amarok::icon("remove"), -KIcon::SizeSmallMedium );
m_HTMLSource.append( QStringx( m_HTMLSource.append( QStringx(

@ -44,7 +44,7 @@
DeleteWidget::DeleteWidget(TQWidget *parent, const char *name) DeleteWidget::DeleteWidget(TQWidget *parent, const char *name)
: DeleteDialogBase(parent, name) : DeleteDialogBase(parent, name)
{ {
KConfigGroup messageGroup(KGlobal::config(), "FileRemover"); KConfigGroup messageGroup(TDEGlobal::config(), "FileRemover");
bool deleteInstead = messageGroup.readBoolEntry("deleteInsteadOfTrash", false); bool deleteInstead = messageGroup.readBoolEntry("deleteInsteadOfTrash", false);
slotShouldDelete(deleteInstead); slotShouldDelete(deleteInstead);
@ -70,12 +70,12 @@ void DeleteWidget::slotShouldDelete(bool shouldDelete)
if(shouldDelete) { if(shouldDelete) {
ddDeleteText->setText(i18n("<qt>These items will be <b>permanently " ddDeleteText->setText(i18n("<qt>These items will be <b>permanently "
"deleted</b> from your hard disk.</qt>")); "deleted</b> from your hard disk.</qt>"));
ddWarningIcon->setPixmap(KGlobal::iconLoader()->loadIcon("messagebox_warning", ddWarningIcon->setPixmap(TDEGlobal::iconLoader()->loadIcon("messagebox_warning",
KIcon::Desktop, KIcon::SizeLarge)); KIcon::Desktop, KIcon::SizeLarge));
} }
else { else {
ddDeleteText->setText(i18n("<qt>These items will be moved to the Trash Bin.</qt>")); ddDeleteText->setText(i18n("<qt>These items will be moved to the Trash Bin.</qt>"));
ddWarningIcon->setPixmap(KGlobal::iconLoader()->loadIcon("trashcan_full", ddWarningIcon->setPixmap(TDEGlobal::iconLoader()->loadIcon("trashcan_full",
KIcon::Desktop, KIcon::SizeLarge)); KIcon::Desktop, KIcon::SizeLarge));
} }
} }
@ -116,7 +116,7 @@ void DeleteDialog::setFiles(const KURL::List &files)
void DeleteDialog::accept() void DeleteDialog::accept()
{ {
KConfigGroup messageGroup(KGlobal::config(), "FileRemover"); KConfigGroup messageGroup(TDEGlobal::config(), "FileRemover");
// Save user's preference // Save user's preference

@ -605,7 +605,7 @@ void EditFilterDialog::textWanted( const TQStringList &completion ) // SLOT
m_editKeyword->completionObject()->clear(); m_editKeyword->completionObject()->clear();
m_editKeyword->completionObject()->insertItems( completion ); m_editKeyword->completionObject()->insertItems( completion );
m_editKeyword->completionObject()->setIgnoreCase( true ); m_editKeyword->completionObject()->setIgnoreCase( true );
m_editKeyword->setCompletionMode( KGlobalSettings::CompletionPopup ); m_editKeyword->setCompletionMode( TDEGlobalSettings::CompletionPopup );
} }
void EditFilterDialog::valueWanted() // SLOT void EditFilterDialog::valueWanted() // SLOT

@ -924,7 +924,7 @@ XineEngine::XineEventListener( void *p, const xine_event_t* xineEvent )
TQString TQString
msg = "%1 %2%"; msg = "%1 %2%";
msg = msg.arg( TQString::fromUtf8( pd->description ) ) msg = msg.arg( TQString::fromUtf8( pd->description ) )
.arg( KGlobal::locale()->formatNumber( pd->percent, 0 ) ); .arg( TDEGlobal::locale()->formatNumber( pd->percent, 0 ) );
TQCustomEvent *e = new TQCustomEvent( 3002 ); TQCustomEvent *e = new TQCustomEvent( 3002 );
e->setData( new TQString( msg ) ); e->setData( new TQString( msg ) );

@ -397,7 +397,7 @@ yauapEngine::initDbusConnection()
helper.clearArguments(); helper.clearArguments();
helper << "yauap" << "-noexit"; helper << "yauap" << "-noexit";
if( !helper.start(KProcess::NotifyOnExit, KProcess::All)) if( !helper.start(TDEProcess::NotifyOnExit, TDEProcess::All))
{ {
debug() << "could not start yauap " << endl; debug() << "could not start yauap " << endl;
emit statusText( i18n( "could not start yauap" ) ); emit statusText( i18n( "could not start yauap" ) );
@ -473,7 +473,7 @@ yauapEngine::init()
m_state = Engine::Idle; m_state = Engine::Idle;
connect(&helper, TQT_SIGNAL(processExited(KProcess*)), TQT_SLOT(yauapProcessExited())); connect(&helper, TQT_SIGNAL(processExited(TDEProcess*)), TQT_SLOT(yauapProcessExited()));
if (initDbusConnection()) if (initDbusConnection())
return true; return true;

@ -167,7 +167,7 @@ void K3bExporter::exportViaCmdLine( const KURL::List &urls, int openmode )
return; return;
} }
KProcess *process = new KProcess; TDEProcess *process = new TDEProcess;
*process << "k3b"; *process << "k3b";
*process << cmdOption; *process << cmdOption;
@ -177,7 +177,7 @@ void K3bExporter::exportViaCmdLine( const KURL::List &urls, int openmode )
for( it = urls.begin(); it != end; ++it ) for( it = urls.begin(); it != end; ++it )
*process << ( *it ).path(); *process << ( *it ).path();
if( !process->start( KProcess::DontCare ) ) if( !process->start( TDEProcess::DontCare ) )
KMessageBox::error( 0, i18n("Unable to start K3b.") ); KMessageBox::error( 0, i18n("Unable to start K3b.") );
} }

@ -44,7 +44,7 @@
#include <kurldrag.h> #include <kurldrag.h>
#include <khtmlview.h> #include <khtmlview.h>
#define HTML_FILE KGlobal::dirs()->saveLocation( "data", "amarok/", true ) + "contextbrowser.html" #define HTML_FILE TDEGlobal::dirs()->saveLocation( "data", "amarok/", true ) + "contextbrowser.html"
amarokWidget::amarokWidget( TQWidget * parent, const char * name, WFlags f ) amarokWidget::amarokWidget( TQWidget * parent, const char * name, WFlags f )
: TQVBox(parent, name, f) : TQVBox(parent, name, f)
@ -79,7 +79,7 @@ bool amarokWidget::eventFilter( TQObject *, TQEvent *e )
UniversalAmarok::UniversalAmarok(TDEInstance *inst,TQObject *parent,TQWidget *widgetParent, TQString &desktopName, const char* name): UniversalAmarok::UniversalAmarok(TDEInstance *inst,TQObject *parent,TQWidget *widgetParent, TQString &desktopName, const char* name):
KonqSidebarPlugin(inst,parent,widgetParent,desktopName,name) KonqSidebarPlugin(inst,parent,widgetParent,desktopName,name)
{ {
KGlobal::iconLoader()->addAppDir( "amarok" ); TDEGlobal::iconLoader()->addAppDir( "amarok" );
widget = new amarokWidget( widgetParent ); widget = new amarokWidget( widgetParent );
// widgetParent->resize(580,300); // widgetParent->resize(580,300);
KToolBar *topBar = new KToolBar( widget, "Topbar" ); KToolBar *topBar = new KToolBar( widget, "Topbar" );
@ -153,7 +153,7 @@ extern "C"
{ {
KDE_EXPORT void* create_konqsidebar_universalamarok(TDEInstance *instance,TQObject *par,TQWidget *widp,TQString &desktopname,const char *name) KDE_EXPORT void* create_konqsidebar_universalamarok(TDEInstance *instance,TQObject *par,TQWidget *widp,TQString &desktopname,const char *name)
{ {
KGlobal::locale()->insertCatalogue( "amarok" ); TDEGlobal::locale()->insertCatalogue( "amarok" );
return new UniversalAmarok(instance,par,widp,desktopname,name); return new UniversalAmarok(instance,par,widp,desktopname,name);
} }
} }

@ -481,7 +481,7 @@ WebService::handshake( const TQString& username, const TQString& password )
m_proxyUrl = TQString( "http://localhost:%1/lastfm.mp3" ).arg( port ); m_proxyUrl = TQString( "http://localhost:%1/lastfm.mp3" ).arg( port );
m_server = new Amarok::ProcIO(); m_server = new Amarok::ProcIO();
m_server->setComm( KProcess::Communication( KProcess::AllOutput ) ); m_server->setComm( TDEProcess::Communication( TDEProcess::AllOutput ) );
*m_server << "amarok_proxy.rb"; *m_server << "amarok_proxy.rb";
*m_server << "--lastfm"; *m_server << "--lastfm";
*m_server << TQString::number( port ); *m_server << TQString::number( port );
@ -506,7 +506,7 @@ WebService::handshake( const TQString& username, const TQString& password )
return false; return false;
connect( m_server, TQT_SIGNAL( readReady( KProcIO* ) ), this, TQT_SLOT( readProxy() ) ); connect( m_server, TQT_SIGNAL( readReady( KProcIO* ) ), this, TQT_SLOT( readProxy() ) );
connect( m_server, TQT_SIGNAL( processExited( KProcess* ) ), Controller::instance(), TQT_SLOT( playbackStopped() ) ); connect( m_server, TQT_SIGNAL( processExited( TDEProcess* ) ), Controller::instance(), TQT_SLOT( playbackStopped() ) );
} }
else else
m_proxyUrl = m_streamUrl.toString(); m_proxyUrl = m_streamUrl.toString();

@ -144,7 +144,7 @@ Loader::Loader( TQStringList args )
if( !TQApplication::isSessionRestored()) if( !TQApplication::isSessionRestored())
{ {
TDEInstance instance("amarok"); // KGlobal::dirs() crashes without TDEInstance instance("amarok"); // TDEGlobal::dirs() crashes without
if( isSplashEnabled() ) if( isSplashEnabled() )
{ {
m_splash = new KSplashScreen( TQPixmap( KStandardDirs().findResource("data", "amarok/images/splash_screen.jpg"))); m_splash = new KSplashScreen( TQPixmap( KStandardDirs().findResource("data", "amarok/images/splash_screen.jpg")));
@ -214,8 +214,8 @@ bool
isSplashEnabled() isSplashEnabled()
{ {
//determine whether splash-screen is enabled in amarokrc //determine whether splash-screen is enabled in amarokrc
(void)KGlobal::config(); // the kubuntu special directory is not present without this (void)TDEGlobal::config(); // the kubuntu special directory is not present without this
TQStringList dirs = KGlobal::dirs()->findAllResources( "config", "amarokrc" ); TQStringList dirs = TDEGlobal::dirs()->findAllResources( "config", "amarokrc" );
for( TQStringList::iterator path = dirs.begin(); for( TQStringList::iterator path = dirs.begin();
path != dirs.end(); path != dirs.end();

@ -90,7 +90,7 @@ void MagnatuneAlbumDownloader::albumDownloadComplete( KIO::Job * downloadJob )
//ok, now we have the .zip file downloaded. All we need is to unpack it to the desired location and add it to the collection. //ok, now we have the .zip file downloaded. All we need is to unpack it to the desired location and add it to the collection.
TQString unzipString = "unzip "+ KProcess::quote( m_tempDir.name() + m_currentAlbumFileName) + " -d " +KProcess::quote( m_currentAlbumUnpackLocation ) + " &"; TQString unzipString = "unzip "+ TDEProcess::quote( m_tempDir.name() + m_currentAlbumFileName) + " -d " +TDEProcess::quote( m_currentAlbumUnpackLocation ) + " &";
debug() << "unpacking: " << unzipString << endl; debug() << "unpacking: " << unzipString << endl;

@ -34,7 +34,7 @@ MagnatuneListViewArtistItem::MagnatuneListViewArtistItem( MagnatuneArtist artist
{ {
KListViewItem::setText( 0, artist.getName() ); KListViewItem::setText( 0, artist.getName() );
setPixmap(0, KGlobal::iconLoader()->loadIcon( "personal", KIcon::Toolbar, KIcon::SizeSmall ) ); setPixmap(0, TDEGlobal::iconLoader()->loadIcon( "personal", KIcon::Toolbar, KIcon::SizeSmall ) );
setDragEnabled ( true ); setDragEnabled ( true );
} }
@ -90,7 +90,7 @@ MagnatuneListViewAlbumItem::MagnatuneListViewAlbumItem( MagnatuneAlbum album, KL
KListViewItem::setText( 0, album.getName() ); KListViewItem::setText( 0, album.getName() );
setDragEnabled( true ); setDragEnabled( true );
//setPixmap(0, KGlobal::iconLoader()->loadIcon( "cdrom_unmount", KIcon::Toolbar, KIcon::SizeSmall ) ); //setPixmap(0, TDEGlobal::iconLoader()->loadIcon( "cdrom_unmount", KIcon::Toolbar, KIcon::SizeSmall ) );
} }
@ -166,7 +166,7 @@ MagnatuneListViewTrackItem::MagnatuneListViewTrackItem( MagnatuneTrack track, KL
setDragEnabled( true ); setDragEnabled( true );
//setPixmap(0, KGlobal::iconLoader()->loadIcon( "track", KIcon::Toolbar, KIcon::SizeSmall ) ); //setPixmap(0, TDEGlobal::iconLoader()->loadIcon( "track", KIcon::Toolbar, KIcon::SizeSmall ) );
} }
MagnatuneListViewTrackItem::~ MagnatuneListViewTrackItem( ) MagnatuneListViewTrackItem::~ MagnatuneListViewTrackItem( )

@ -2452,7 +2452,7 @@ int MediaDevice::sysCall( const TQString &command )
sysProc->clearArguments(); sysProc->clearArguments();
(*sysProc) << command; (*sysProc) << command;
if (!sysProc->start( KProcess::Block, KProcess::AllOutput )) if (!sysProc->start( TDEProcess::Block, TDEProcess::AllOutput ))
kdFatal() << i18n("could not execute %1").arg(command.local8Bit().data()) << endl; kdFatal() << i18n("could not execute %1").arg(command.local8Bit().data()) << endl;
return (sysProc->exitStatus()); return (sysProc->exitStatus());

@ -472,7 +472,7 @@ DaapClient::customClicked()
: KDialogBase( parent, "DaapAddHostDialog", true, i18n( "Add Computer" ) , Ok|Cancel) : KDialogBase( parent, "DaapAddHostDialog", true, i18n( "Add Computer" ) , Ok|Cancel)
{ {
m_base = new AddHostBase( this, "DaapAddHostBase" ); m_base = new AddHostBase( this, "DaapAddHostBase" );
m_base->m_downloadPixmap->setPixmap( TQPixmap( KGlobal::iconLoader()->iconPath( Amarok::icon( "download" ), -KIcon::SizeEnormous ) ) ); m_base->m_downloadPixmap->setPixmap( TQPixmap( TDEGlobal::iconLoader()->iconPath( Amarok::icon( "download" ), -KIcon::SizeEnormous ) ) );
m_base->m_hostName->setFocus(); m_base->m_hostName->setFocus();
setMainWidget( m_base ); setMainWidget( m_base );
} }
@ -523,7 +523,7 @@ DaapClient::passwordPrompt()
setButtonOK( ok ); setButtonOK( ok );
TQLabel* passIcon = new TQLabel( mainWidget(), "passicon" ); TQLabel* passIcon = new TQLabel( mainWidget(), "passicon" );
passIcon->setPixmap( TQPixmap( KGlobal::iconLoader()->iconPath( "password", -KIcon::SizeHuge ) ) ); passIcon->setPixmap( TQPixmap( TDEGlobal::iconLoader()->iconPath( "password", -KIcon::SizeHuge ) ) );
TQHBox* loginArea = new TQHBox( mainWidget(), "passhbox" ); TQHBox* loginArea = new TQHBox( mainWidget(), "passhbox" );
new TQLabel( i18n( "Password:"), loginArea, "passlabel" ); new TQLabel( i18n( "Password:"), loginArea, "passlabel" );
m_input = new KPasswordEdit( loginArea, "passedit" ); m_input = new KPasswordEdit( loginArea, "passedit" );

@ -28,7 +28,7 @@ DaapServer::DaapServer(TQObject* parent, char* name)
DEBUG_BLOCK DEBUG_BLOCK
m_server = new KProcIO(); m_server = new KProcIO();
m_server->setComm( KProcess::All ); m_server->setComm( TDEProcess::All );
*m_server << "amarok_daapserver.rb"; *m_server << "amarok_daapserver.rb";
*m_server << locate( "data", "amarok/ruby_lib/" ); *m_server << locate( "data", "amarok/ruby_lib/" );
*m_server << locate( "lib", "ruby_lib/" ); *m_server << locate( "lib", "ruby_lib/" );

@ -58,7 +58,7 @@ Proxy::Proxy(KURL stream, DaapClient* client, const char* name)
delete socket; delete socket;
m_proxyUrl = KURL( TQString("http://localhost:%1/daap.mp3").arg( port ) ); m_proxyUrl = KURL( TQString("http://localhost:%1/daap.mp3").arg( port ) );
//start proxy //start proxy
m_proxy->setComm( KProcess::Communication( KProcess::AllOutput ) ); m_proxy->setComm( TDEProcess::Communication( TDEProcess::AllOutput ) );
*m_proxy << "amarok_proxy.rb"; *m_proxy << "amarok_proxy.rb";
*m_proxy << "--daap"; *m_proxy << "--daap";
*m_proxy << TQString::number( port ); *m_proxy << TQString::number( port );
@ -80,7 +80,7 @@ Proxy::Proxy(KURL stream, DaapClient* client, const char* name)
if( line == "AMAROK_PROXY: startup" ) break; if( line == "AMAROK_PROXY: startup" ) break;
} }
debug() << "started amarok_proxy.rb --daap " << TQString::number( port ) << ' ' << realStream.url() << ' ' << AmarokConfig::soundSystem() << ' ' << hash << ' ' << revisionId << endl; debug() << "started amarok_proxy.rb --daap " << TQString::number( port ) << ' ' << realStream.url() << ' ' << AmarokConfig::soundSystem() << ' ' << hash << ' ' << revisionId << endl;
connect( m_proxy, TQT_SIGNAL( processExited( KProcess* ) ), this, TQT_SLOT( playbackStopped() ) ); connect( m_proxy, TQT_SIGNAL( processExited( TDEProcess* ) ), this, TQT_SLOT( playbackStopped() ) );
connect( m_proxy, TQT_SIGNAL( readReady( KProcIO* ) ), this, TQT_SLOT( readProxy() ) ); connect( m_proxy, TQT_SIGNAL( readReady( KProcIO* ) ), this, TQT_SLOT( readProxy() ) );
} }

@ -223,16 +223,16 @@
// then decides to clear the playlist again. The jobEvent() signal // then decides to clear the playlist again. The jobEvent() signal
// passes the URL of the job that was completed. // passes the URL of the job that was completed.
// //
// The analyzer is actually run using a KProcess. ThreadManager::Job // The analyzer is actually run using a TDEProcess. ThreadManager::Job
// is not a good solution, since we need more flexibility in the // is not a good solution, since we need more flexibility in the
// queuing process, and in addition, KProcess'es must be started from // queuing process, and in addition, TDEProcess'es must be started from
// the GUI thread! // the GUI thread!
// //
// Important members: // Important members:
// m_jobQueue: this is a list of MoodServer::ProcData structures, // m_jobQueue: this is a list of MoodServer::ProcData structures,
// which contain the data needed to start and reference // which contain the data needed to start and reference
// a process, as well as a refcount. // a process, as well as a refcount.
// m_currentProcess: the currently-running KProcess, if any. // m_currentProcess: the currently-running TDEProcess, if any.
// m_currentData: the ProcData structure for the currently-running // m_currentData: the ProcData structure for the currently-running
// process. // process.
// m_moodbarBroken: this is set when there's an error running the analyzer // m_moodbarBroken: this is set when there's an error running the analyzer
@ -257,7 +257,7 @@
// necessary; otherwise call slotNewJob(). // necessary; otherwise call slotNewJob().
// //
// (private slot) slotNewJob(): Called by slotJobCompleted() and queueJob(). // (private slot) slotNewJob(): Called by slotJobCompleted() and queueJob().
// Take a job off the queue and start the KProcess. // Take a job off the queue and start the TDEProcess.
// //
// (private slot) slotMoodbarPrefs(): Called when the Amarok config changes. // (private slot) slotMoodbarPrefs(): Called when the Amarok config changes.
// If the moodbar has been disabled completely, kill the current job // If the moodbar has been disabled completely, kill the current job
@ -476,14 +476,14 @@ MoodServer::slotNewJob( void )
<< (m_currentData.m_outfile + ".tmp") << (m_currentData.m_outfile + ".tmp")
<< m_currentData.m_infile; << m_currentData.m_infile;
connect( m_currentProcess, TQT_SIGNAL( processExited( KProcess* ) ), connect( m_currentProcess, TQT_SIGNAL( processExited( TDEProcess* ) ),
TQT_SLOT( slotJobCompleted( KProcess* ) ) ); TQT_SLOT( slotJobCompleted( TDEProcess* ) ) );
// We have to enable KProcess::Stdout (even though we don't monitor // We have to enable TDEProcess::Stdout (even though we don't monitor
// it) since otherwise the child process crashes every time in // it) since otherwise the child process crashes every time in
// KProcess::start() (but only when started from the loader!). I // TDEProcess::start() (but only when started from the loader!). I
// have no idea why, but I imagine it's a bug in KDE. // have no idea why, but I imagine it's a bug in KDE.
if( !m_currentProcess->start( KProcess::NotifyOnExit, KProcess::AllOutput ) ) if( !m_currentProcess->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
{ {
// If we have an error starting the process, it's never // If we have an error starting the process, it's never
// going to work, so call moodbarBroken() // going to work, so call moodbarBroken()
@ -506,7 +506,7 @@ MoodServer::slotNewJob( void )
// This always run in the GUI thread. It is called // This always run in the GUI thread. It is called
// when an analyzer process terminates // when an analyzer process terminates
void void
MoodServer::slotJobCompleted( KProcess *proc ) MoodServer::slotJobCompleted( TDEProcess *proc )
{ {
m_mutex.lock(); m_mutex.lock();

@ -111,7 +111,7 @@ private:
}; };
class KProcess; class TDEProcess;
// For internal use only (well, mostly) // For internal use only (well, mostly)
class MoodServer : public TQObject class MoodServer : public TQObject
@ -132,7 +132,7 @@ signals:
void jobEvent( KURL url, int newState ); void jobEvent( KURL url, int newState );
private slots: private slots:
void slotJobCompleted( KProcess *proc ); void slotJobCompleted( TDEProcess *proc );
void slotNewJob( void ); void slotNewJob( void );
void slotMoodbarPrefs( bool show, bool moodier, int alter, bool withMusic ); void slotMoodbarPrefs( bool show, bool moodier, int alter, bool withMusic );
@ -174,7 +174,7 @@ private:
TQValueList<ProcData> m_jobQueue; TQValueList<ProcData> m_jobQueue;
bool m_moodbarBroken; bool m_moodbarBroken;
KProcess *m_currentProcess; TDEProcess *m_currentProcess;
ProcData m_currentData; ProcData m_currentData;
mutable TQMutex m_mutex; mutable TQMutex m_mutex;
}; };

@ -122,7 +122,7 @@ MountPointManager::init()
{ {
mediumChanged( &(*it) ); mediumChanged( &(*it) );
} }
if( !KGlobal::config()->hasGroup( "Collection Folders" ) ) if( !TDEGlobal::config()->hasGroup( "Collection Folders" ) )
{ {
TQStringList folders = AmarokConfig::collectionFolders(); TQStringList folders = AmarokConfig::collectionFolders();
if( !folders.isEmpty() ) if( !folders.isEmpty() )

@ -440,7 +440,7 @@ void PlayerWidget::determineAmarokColors() //static
(!AmarokConfig::schemeKDE() (!AmarokConfig::schemeKDE()
? AmarokConfig::playlistWindowBgColor() ? AmarokConfig::playlistWindowBgColor()
: KGlobalSettings::highlightColor() : TDEGlobalSettings::highlightColor()
).getHsv( &hue, &s, &v ); ).getHsv( &hue, &s, &v );
using namespace Amarok::ColorScheme; using namespace Amarok::ColorScheme;
@ -455,7 +455,7 @@ void PlayerWidget::determineAmarokColors() //static
//TODO schemes that have totally different active/inactive decoration colours need to be catered for too! //TODO schemes that have totally different active/inactive decoration colours need to be catered for too!
if ( AmarokConfig::schemeKDE() ) { if ( AmarokConfig::schemeKDE() ) {
int h; int h;
KGlobalSettings::activeTitleColor().getHsv( &h, &s, &v ); TDEGlobalSettings::activeTitleColor().getHsv( &h, &s, &v );
if( TQABS( hue - h ) > 120 ) if( TQABS( hue - h ) > 120 )
hue = h; hue = h;
} }

@ -77,7 +77,7 @@
#include <kmessagebox.h> #include <kmessagebox.h>
#include <kpopupmenu.h> #include <kpopupmenu.h>
#include <krandomsequence.h> //random Mode #include <krandomsequence.h> //random Mode
#include <kstandarddirs.h> //KGlobal::dirs() #include <kstandarddirs.h> //TDEGlobal::dirs()
#include <kstdaction.h> #include <kstdaction.h>
#include <kstringhandler.h> //::showContextMenu() #include <kstringhandler.h> //::showContextMenu()
#include <kurldrag.h> #include <kurldrag.h>
@ -369,7 +369,7 @@ Playlist::Playlist( TQWidget *parent )
engineStateChanged( EngineController::engine()->state() ); //initialise state of UI engineStateChanged( EngineController::engine()->state() ); //initialise state of UI
paletteChange( palette() ); //sets up glowColors paletteChange( palette() ); //sets up glowColors
restoreLayout( KGlobal::config(), "PlaylistColumnsLayout" ); restoreLayout( TDEGlobal::config(), "PlaylistColumnsLayout" );
// Sorting must be disabled when current.xml is being loaded. See BUG 113042 // Sorting must be disabled when current.xml is being loaded. See BUG 113042
KListView::setSorting( NO_SORT ); //use base so we don't saveUndoState() too KListView::setSorting( NO_SORT ); //use base so we don't saveUndoState() too
@ -412,7 +412,7 @@ Playlist::Playlist( TQWidget *parent )
Playlist::~Playlist() Playlist::~Playlist()
{ {
saveLayout( KGlobal::config(), "PlaylistColumnsLayout" ); saveLayout( TDEGlobal::config(), "PlaylistColumnsLayout" );
if( AmarokConfig::savePlaylist() && m_lockStack == 0 ) saveXML( defaultPlaylistPath() ); if( AmarokConfig::savePlaylist() && m_lockStack == 0 ) saveXML( defaultPlaylistPath() );
@ -2244,7 +2244,7 @@ Playlist::rename( TQListViewItem *item, int column ) //SLOT
break; break;
} }
renameLineEdit()->completionObject()->setCompletionMode( KGlobalSettings::CompletionPopupAuto ); renameLineEdit()->completionObject()->setCompletionMode( TDEGlobalSettings::CompletionPopupAuto );
renameLineEdit()->completionObject()->setIgnoreCase( true ); renameLineEdit()->completionObject()->setIgnoreCase( true );
m_editOldTag = static_cast<PlaylistItem *>(item)->exactText( column ); m_editOldTag = static_cast<PlaylistItem *>(item)->exactText( column );

@ -56,7 +56,7 @@
#include <kmultipledrag.h> //dragObject() #include <kmultipledrag.h> //dragObject()
#include <kpopupmenu.h> #include <kpopupmenu.h>
#include <kpushbutton.h> #include <kpushbutton.h>
#include <kstandarddirs.h> //KGlobal::dirs() #include <kstandarddirs.h> //TDEGlobal::dirs()
#include <kurldrag.h> //dragObject() #include <kurldrag.h> //dragObject()
#include <cstdio> //rename() in renamePlaylist() #include <cstdio> //rename() in renamePlaylist()

@ -3485,7 +3485,7 @@ void ShoutcastBrowser::setOpen( bool open )
m_animationTimer.start( ANIMATION_INTERVAL ); m_animationTimer.start( ANIMATION_INTERVAL );
connect( &m_animationTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotAnimation()) ); connect( &m_animationTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotAnimation()) );
TQStringList tmpdirs = KGlobal::dirs()->resourceDirs( "tmp" ); TQStringList tmpdirs = TDEGlobal::dirs()->resourceDirs( "tmp" );
TQString tmpfile = tmpdirs[0]; TQString tmpfile = tmpdirs[0];
tmpfile += "/amarok-genres-" + TDEApplication::randomString(10) + ".xml-"; tmpfile += "/amarok-genres-" + TDEApplication::randomString(10) + ".xml-";
@ -3643,7 +3643,7 @@ void ShoutcastGenre::setOpen( bool open )
m_animationTimer.start( ANIMATION_INTERVAL ); m_animationTimer.start( ANIMATION_INTERVAL );
connect( &m_animationTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotAnimation()) ); connect( &m_animationTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotAnimation()) );
TQStringList tmpdirs = KGlobal::dirs()->resourceDirs( "tmp" ); TQStringList tmpdirs = TDEGlobal::dirs()->resourceDirs( "tmp" );
//get the genre list from shoutcast async, and when its done call the finish up functions to process //get the genre list from shoutcast async, and when its done call the finish up functions to process
if( !m_downloading) if( !m_downloading)

@ -72,7 +72,7 @@ PrettyPopupMenu::sideImageRect() const
TQColor TQColor
PrettyPopupMenu::calcPixmapColor() PrettyPopupMenu::calcPixmapColor()
{ {
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup("WM"); config->setGroup("WM");
TQColor color = TQApplication::palette().active().highlight(); TQColor color = TQApplication::palette().active().highlight();
// TQColor activeTitle = TQApplication::palette().active().background(); // TQColor activeTitle = TQApplication::palette().active().background();

@ -83,7 +83,7 @@ ScanController::ScanController( CollectionDB* parent, bool incremental, const TQ
*m_scanner << "amarokcollectionscanner"; *m_scanner << "amarokcollectionscanner";
*m_scanner << "--nocrashhandler"; // We want to be able to catch SIGSEGV *m_scanner << "--nocrashhandler"; // We want to be able to catch SIGSEGV
// KProcess must be started from the GUI thread, so we're invoking the scanner // TDEProcess must be started from the GUI thread, so we're invoking the scanner
// here in the ctor: // here in the ctor:
if( incremental ) if( incremental )
{ {

@ -522,7 +522,7 @@ ScriptManager::slotUninstallScript()
// find if the script is installed in the global or local scripts directory // find if the script is installed in the global or local scripts directory
KURL scriptsDirURL; KURL scriptsDirURL;
TQStringList dirs = KGlobal::dirs()->findDirs( "data", "amarok/scripts/" ); TQStringList dirs = TDEGlobal::dirs()->findDirs( "data", "amarok/scripts/" );
for ( TQStringList::Iterator it = dirs.begin(); it != dirs.end(); ++it ) { for ( TQStringList::Iterator it = dirs.begin(); it != dirs.end(); ++it ) {
scriptsDirURL = KURL::fromPathOrURL( *it ); scriptsDirURL = KURL::fromPathOrURL( *it );
if ( scriptsDirURL.isParentOf( scriptDirURL ) ) if ( scriptsDirURL.isParentOf( scriptDirURL ) )
@ -588,16 +588,16 @@ ScriptManager::slotRunScript( bool silent )
if( m_scripts[name].process ) return false; if( m_scripts[name].process ) return false;
Amarok::ProcIO* script = new Amarok::ProcIO(); Amarok::ProcIO* script = new Amarok::ProcIO();
script->setComm( static_cast<KProcess::Communication>( KProcess::All ) ); script->setComm( static_cast<TDEProcess::Communication>( TDEProcess::All ) );
const KURL url = m_scripts[name].url; const KURL url = m_scripts[name].url;
*script << url.path(); *script << url.path();
script->setWorkingDirectory( Amarok::saveLocation( "scripts-data/" ) ); script->setWorkingDirectory( Amarok::saveLocation( "scripts-data/" ) );
connect( script, TQT_SIGNAL( receivedStderr( KProcess*, char*, int ) ), TQT_SLOT( slotReceivedStderr( KProcess*, char*, int ) ) ); connect( script, TQT_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ), TQT_SLOT( slotReceivedStderr( TDEProcess*, char*, int ) ) );
connect( script, TQT_SIGNAL( receivedStdout( KProcess*, char*, int ) ), TQT_SLOT( slotReceivedStdout( KProcess*, char*, int ) ) ); connect( script, TQT_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ), TQT_SLOT( slotReceivedStdout( TDEProcess*, char*, int ) ) );
connect( script, TQT_SIGNAL( processExited( KProcess* ) ), TQT_SLOT( scriptFinished( KProcess* ) ) ); connect( script, TQT_SIGNAL( processExited( TDEProcess* ) ), TQT_SLOT( scriptFinished( TDEProcess* ) ) );
if( script->start( KProcess::NotifyOnExit ) ) if( script->start( TDEProcess::NotifyOnExit ) )
{ {
if( m_scripts[name].type == "score" && !scoreScriptRunning().isNull() ) if( m_scripts[name].type == "score" && !scoreScriptRunning().isNull() )
{ {
@ -716,7 +716,7 @@ ScriptManager::slotShowContextMenu( TQListViewItem* item, const TQPoint& pos )
switch( id ) switch( id )
{ {
case EDIT: case EDIT:
KRun::runCommand( "kwrite " + KProcess::quote(it.data().url.path()) ); KRun::runCommand( "kwrite " + TDEProcess::quote(it.data().url.path()) );
break; break;
case SHOW_LOG: case SHOW_LOG:
@ -744,14 +744,14 @@ ScriptManager::slotShowContextMenu( TQListViewItem* item, const TQPoint& pos )
/* This is just a workaround, some scripts crash for some people if stdout is not handled. */ /* This is just a workaround, some scripts crash for some people if stdout is not handled. */
void void
ScriptManager::slotReceivedStdout( KProcess*, char* buf, int len ) ScriptManager::slotReceivedStdout( TDEProcess*, char* buf, int len )
{ {
debug() << TQString::fromLatin1( buf, len ) << endl; debug() << TQString::fromLatin1( buf, len ) << endl;
} }
void void
ScriptManager::slotReceivedStderr( KProcess* process, char* buf, int len ) ScriptManager::slotReceivedStderr( TDEProcess* process, char* buf, int len )
{ {
// Look up script entry in our map // Look up script entry in our map
ScriptMap::Iterator it; ScriptMap::Iterator it;
@ -769,7 +769,7 @@ ScriptManager::slotReceivedStderr( KProcess* process, char* buf, int len )
void void
ScriptManager::scriptFinished( KProcess* process ) //SLOT ScriptManager::scriptFinished( TDEProcess* process ) //SLOT
{ {
// Look up script entry in our map // Look up script entry in our map
ScriptMap::Iterator it; ScriptMap::Iterator it;

@ -33,7 +33,7 @@ class MetaBundle;
class ScriptManagerBase; class ScriptManagerBase;
class TQListViewItem; class TQListViewItem;
class KArchiveDirectory; class KArchiveDirectory;
class KProcess; class TDEProcess;
class KProcIO; class KProcIO;
@ -139,9 +139,9 @@ class ScriptManager : public KDialogBase, public EngineObserver
void slotAboutScript(); void slotAboutScript();
void slotShowContextMenu( TQListViewItem*, const TQPoint& ); void slotShowContextMenu( TQListViewItem*, const TQPoint& );
void slotReceivedStdout( KProcess*, char*, int ); void slotReceivedStdout( TDEProcess*, char*, int );
void slotReceivedStderr( KProcess*, char*, int ); void slotReceivedStderr( TDEProcess*, char*, int );
void scriptFinished( KProcess* process ); void scriptFinished( TDEProcess* process );
private: private:
/** Returns all scripts of the given \p type */ /** Returns all scripts of the given \p type */

@ -193,7 +193,7 @@ Vis::Selector::Selector( TQWidget *parent )
} }
void void
Vis::Selector::processExited( KProcess *proc ) Vis::Selector::processExited( TDEProcess *proc )
{ {
for( Item *item = static_cast<Item*>( firstChild() ); item; item = static_cast<Item*>( item->nextSibling() ) ) for( Item *item = static_cast<Item*>( firstChild() ); item; item = static_cast<Item*>( item->nextSibling() ) )
if( item->m_proc == proc ) if( item->m_proc == proc )
@ -202,7 +202,7 @@ Vis::Selector::processExited( KProcess *proc )
// Shouldn't be necessary, but it's part of a fix to make libvisual work again when running with amarok binary // Shouldn't be necessary, but it's part of a fix to make libvisual work again when running with amarok binary
void void
Vis::Selector::receivedStdout( KProcess */*proc*/, char* buffer, int length ) Vis::Selector::receivedStdout( TDEProcess */*proc*/, char* buffer, int length )
{ {
debug() << TQString::fromLatin1( buffer, length ) << endl; debug() << TQString::fromLatin1( buffer, length ) << endl;
} }
@ -286,11 +286,11 @@ Vis::Selector::Item::stateChange( bool ) //SLOT
<< Selector::instance()->m_server->path() << Selector::instance()->m_server->path()
<< text( 0 ); << text( 0 );
connect( m_proc, TQT_SIGNAL(processExited( KProcess* )), listView(), TQT_SLOT(processExited( KProcess* )) ); connect( m_proc, TQT_SIGNAL(processExited( TDEProcess* )), listView(), TQT_SLOT(processExited( TDEProcess* )) );
// Shouldn't be necessary, but make visualizations work again when running with amarok binary // Shouldn't be necessary, but make visualizations work again when running with amarok binary
connect( m_proc, TQT_SIGNAL(receivedStdout (KProcess*, char*, int ) ), listView(), TQT_SLOT(receivedStdout (KProcess*, char*, int ) ) ); connect( m_proc, TQT_SIGNAL(receivedStdout (TDEProcess*, char*, int ) ), listView(), TQT_SLOT(receivedStdout (TDEProcess*, char*, int ) ) );
debug() << "Starting visualization..\n"; debug() << "Starting visualization..\n";
if( m_proc->start( KProcess::NotifyOnExit, KProcess::AllOutput ) ) if( m_proc->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
break; break;
//ELSE FALL_THROUGH //ELSE FALL_THROUGH

@ -17,7 +17,7 @@
#include <tqsocketnotifier.h> //baseclass #include <tqsocketnotifier.h> //baseclass
class TQPoint; class TQPoint;
class KProcess; class TDEProcess;
namespace Amarok namespace Amarok
@ -88,7 +88,7 @@ namespace Vis
virtual void stateChange( bool state ); virtual void stateChange( bool state );
KProcess *m_proc; TDEProcess *m_proc;
int m_sockfd; int m_sockfd;
const char *m_command; const char *m_command;
}; };
@ -97,8 +97,8 @@ namespace Vis
void rightButton( TQListViewItem*, const TQPoint&, int ); void rightButton( TQListViewItem*, const TQPoint&, int );
public slots: public slots:
void processExited( KProcess* ); void processExited( TDEProcess* );
void receivedStdout( KProcess*, char*, int ); void receivedStdout( TDEProcess*, char*, int );
}; };
} //namespace VIS } //namespace VIS

@ -25,7 +25,7 @@
#include <tqimage.h> #include <tqimage.h>
#include <tqpixmap.h> #include <tqpixmap.h>
#include <kstandarddirs.h> //KGlobal::dirs() #include <kstandarddirs.h> //TDEGlobal::dirs()
StarManager* StarManager::instance() StarManager* StarManager::instance()
{ {

@ -75,7 +75,7 @@ void QueueLabel::getCover( const TQString &artist, const TQString &album )
{ {
m_cover = CollectionDB::instance()->albumImage( artist, album, 50 ); m_cover = CollectionDB::instance()->albumImage( artist, album, 50 );
if( m_cover == CollectionDB::instance()->notAvailCover( 50 ) ) if( m_cover == CollectionDB::instance()->notAvailCover( 50 ) )
m_cover = KGlobal::iconLoader()->iconPath( "goto", -KIcon::SizeHuge ); m_cover = TDEGlobal::iconLoader()->iconPath( "goto", -KIcon::SizeHuge );
} }
void QueueLabel::setNum( int num ) void QueueLabel::setNum( int num )

@ -146,7 +146,7 @@ class SelectLabel : public TQLabel
m_tooltip->setShowCounter( false ); m_tooltip->setShowCounter( false );
m_tooltip->setMaskEffect( KDE::PopupMessage::Plain ); m_tooltip->setMaskEffect( KDE::PopupMessage::Plain );
m_tooltip->setText( tip ); m_tooltip->setText( tip );
const TQPixmap pix = KGlobal::iconLoader() const TQPixmap pix = TDEGlobal::iconLoader()
->loadIconSet( m_action->currentIcon(), KIcon::Toolbar, KIcon::SizeHuge ) ->loadIconSet( m_action->currentIcon(), KIcon::Toolbar, KIcon::SizeHuge )
.pixmap( TQIconSet::Large, m_action->isEnabled() .pixmap( TQIconSet::Large, m_action->isEnabled()
? TQIconSet::Normal ? TQIconSet::Normal

@ -297,16 +297,16 @@ StatusBar::longMessage( const TQString &text, int type )
{ {
case Information: case Information:
case Question: case Question:
image = KGlobal::iconLoader()->iconPath( "messagebox_info", -KIcon::SizeHuge ); image = TDEGlobal::iconLoader()->iconPath( "messagebox_info", -KIcon::SizeHuge );
break; break;
case Sorry: case Sorry:
case Warning: case Warning:
image = KGlobal::iconLoader()->iconPath( "messagebox_warning", -KIcon::SizeHuge ); image = TDEGlobal::iconLoader()->iconPath( "messagebox_warning", -KIcon::SizeHuge );
break; break;
case Error: case Error:
image = KGlobal::iconLoader()->iconPath( "messagebox_critical", -KIcon::SizeHuge ); image = TDEGlobal::iconLoader()->iconPath( "messagebox_critical", -KIcon::SizeHuge );
// don't hide error messages. // don't hide error messages.
// message->setTimeout( 0 ); // message->setTimeout( 0 );
break; break;
@ -669,7 +669,7 @@ StatusBar::writeLogFile( const TQString &text )
TQTextStream stream( &file ); TQTextStream stream( &file );
stream.setEncoding( TQTextStream::UnicodeUTF8 ); stream.setEncoding( TQTextStream::UnicodeUTF8 );
stream << "[" << KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime() ) << "] " << text << endl; stream << "[" << TDEGlobal::locale()->formatDateTime( TQDateTime::currentDateTime() ) << "] " << text << endl;
} }
} //namespace KDE } //namespace KDE

@ -27,7 +27,7 @@ class TimeLabel : public TQLabel
public: public:
TimeLabel( TQWidget *parent ) : TQLabel( " 0:00:00 ", parent ) TimeLabel( TQWidget *parent ) : TQLabel( " 0:00:00 ", parent )
{ {
setFont( KGlobalSettings::fixedFont() ); setFont( TDEGlobalSettings::fixedFont() );
setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Fixed ); setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Fixed );
} }

@ -116,7 +116,7 @@ class ToggleLabel : public TQLabel
tip += i18n("&nbsp;<br>&nbsp;<i>Disabled</i>"); tip += i18n("&nbsp;<br>&nbsp;<i>Disabled</i>");
tip += "&nbsp;"; tip += "&nbsp;";
const TQString path = KGlobal::iconLoader()->iconPath( m_action->icon(), -KIcon::SizeHuge ); const TQString path = TDEGlobal::iconLoader()->iconPath( m_action->icon(), -KIcon::SizeHuge );
m_tooltip = new KDE::PopupMessage( parentWidget()->parentWidget(), parentWidget(), 0 /*timeout*/ ); m_tooltip = new KDE::PopupMessage( parentWidget()->parentWidget(), parentWidget(), 0 /*timeout*/ );

@ -391,19 +391,19 @@ void TagDialog::init()
kComboBox_artist->insertStringList( artists ); kComboBox_artist->insertStringList( artists );
kComboBox_artist->completionObject()->insertItems( artists ); kComboBox_artist->completionObject()->insertItems( artists );
kComboBox_artist->completionObject()->setIgnoreCase( true ); kComboBox_artist->completionObject()->setIgnoreCase( true );
kComboBox_artist->setCompletionMode( KGlobalSettings::CompletionPopup ); kComboBox_artist->setCompletionMode( TDEGlobalSettings::CompletionPopup );
const TQStringList albums = CollectionDB::instance()->albumList(); const TQStringList albums = CollectionDB::instance()->albumList();
kComboBox_album->insertStringList( albums ); kComboBox_album->insertStringList( albums );
kComboBox_album->completionObject()->insertItems( albums ); kComboBox_album->completionObject()->insertItems( albums );
kComboBox_album->completionObject()->setIgnoreCase( true ); kComboBox_album->completionObject()->setIgnoreCase( true );
kComboBox_album->setCompletionMode( KGlobalSettings::CompletionPopup ); kComboBox_album->setCompletionMode( TDEGlobalSettings::CompletionPopup );
const TQStringList composers = CollectionDB::instance()->composerList(); const TQStringList composers = CollectionDB::instance()->composerList();
kComboBox_composer->insertStringList( composers ); kComboBox_composer->insertStringList( composers );
kComboBox_composer->completionObject()->insertItems( composers ); kComboBox_composer->completionObject()->insertItems( composers );
kComboBox_composer->completionObject()->setIgnoreCase( true ); kComboBox_composer->completionObject()->setIgnoreCase( true );
kComboBox_composer->setCompletionMode( KGlobalSettings::CompletionPopup ); kComboBox_composer->setCompletionMode( TDEGlobalSettings::CompletionPopup );
kComboBox_rating->insertStringList( MetaBundle::ratingList() ); kComboBox_rating->insertStringList( MetaBundle::ratingList() );
@ -685,9 +685,9 @@ void TagDialog::readTags()
summaryText += body2cols.arg( i18n("Playcount"), TQString::number( m_bundle.playCount() ) ); summaryText += body2cols.arg( i18n("Playcount"), TQString::number( m_bundle.playCount() ) );
summaryText += body2cols.arg( i18n("First Played"), summaryText += body2cols.arg( i18n("First Played"),
m_bundle.playCount() ? KGlobal::locale()->formatDate( CollectionDB::instance()->getFirstPlay( m_bundle.url().path() ).date() , true ) : i18n("Never") ); m_bundle.playCount() ? TDEGlobal::locale()->formatDate( CollectionDB::instance()->getFirstPlay( m_bundle.url().path() ).date() , true ) : i18n("Never") );
summaryText += body2cols.arg( i18n("a single item (singular)", "Last Played"), summaryText += body2cols.arg( i18n("a single item (singular)", "Last Played"),
m_bundle.playCount() ? KGlobal::locale()->formatDate( CollectionDB::instance()->getLastPlay( m_bundle.url().path() ).date() , true ) : i18n("Never") ); m_bundle.playCount() ? TDEGlobal::locale()->formatDate( CollectionDB::instance()->getLastPlay( m_bundle.url().path() ).date() , true ) : i18n("Never") );
summaryText += "</table></td></tr></table>"; summaryText += "</table></td></tr></table>";
summaryLabel->setText( summaryText ); summaryLabel->setText( summaryText );

@ -134,7 +134,7 @@ TQString FileNameScheme::composeRegExp( const TQString &s ) const
{ {
TQMap<TQString, TQString> substitutions; TQMap<TQString, TQString> substitutions;
KConfigGroup config(KGlobal::config(), "TagGuesser"); KConfigGroup config(TDEGlobal::config(), "TagGuesser");
substitutions[ "title" ] = config.readEntry( "Title regexp", "([\\w\\s'&_,\\.]+)" ); substitutions[ "title" ] = config.readEntry( "Title regexp", "([\\w\\s'&_,\\.]+)" );
substitutions[ "artist" ] = config.readEntry( "Artist regexp", "([\\w\\s'&_,\\.]+)" ); substitutions[ "artist" ] = config.readEntry( "Artist regexp", "([\\w\\s'&_,\\.]+)" );
@ -195,7 +195,7 @@ TQStringList TagGuesser::schemeStrings()
void TagGuesser::setSchemeStrings( const TQStringList &schemes ) void TagGuesser::setSchemeStrings( const TQStringList &schemes )
{ {
KConfig *cfg = KGlobal::config(); KConfig *cfg = TDEGlobal::config();
{ {
KConfigGroupSaver saver( cfg, "TagGuesser" ); KConfigGroupSaver saver( cfg, "TagGuesser" );
cfg->writeEntry( "Filename schemes", schemes ); cfg->writeEntry( "Filename schemes", schemes );

Loading…
Cancel
Save