|
|
|
@ -498,7 +498,7 @@ TDE_NO_EXPORT KMPlayer::NodePtr HtmlObject::childFromTag (const TQString & tag)
|
|
|
|
|
|
|
|
|
|
KDE_NO_CDTOR_EXPORT KMPlayerApp::KMPlayerApp(TQWidget* , const char* name)
|
|
|
|
|
: TDEMainWindow(0, name),
|
|
|
|
|
config (kapp->config ()),
|
|
|
|
|
config (tdeApp->config ()),
|
|
|
|
|
m_systray (0L),
|
|
|
|
|
m_player (new KMPlayer::PartBase (this, 0L, 0L, 0L, config)),
|
|
|
|
|
m_view (static_cast <KMPlayer::View*> (m_player->view())),
|
|
|
|
@ -1322,9 +1322,9 @@ TDE_NO_EXPORT bool KMPlayerApp::queryClose () {
|
|
|
|
|
if (!m_dcopName.isEmpty ()) {
|
|
|
|
|
TQCString replytype;
|
|
|
|
|
TQByteArray data, replydata;
|
|
|
|
|
kapp->dcopClient ()->call (m_dcopName, "MainApplication-Interface", "quit()", data, replytype, replydata);
|
|
|
|
|
tdeApp->dcopClient ()->call (m_dcopName, "MainApplication-Interface", "quit()", data, replytype, replydata);
|
|
|
|
|
}
|
|
|
|
|
if (m_played_exit || m_player->settings ()->no_intro || kapp->sessionSaving() )
|
|
|
|
|
if (m_played_exit || m_player->settings ()->no_intro || tdeApp->sessionSaving() )
|
|
|
|
|
return true;
|
|
|
|
|
if (m_auto_resize)
|
|
|
|
|
disconnect(m_player, TQ_SIGNAL(sourceDimensionChanged()),this,TQ_SLOT(zoom100()));
|
|
|
|
@ -1682,11 +1682,11 @@ TDE_NO_EXPORT void KMPlayerApp::preparePlaylistMenu (KMPlayer::PlayListItem * it
|
|
|
|
|
TDE_NO_EXPORT void KMPlayerApp::startArtsControl () {
|
|
|
|
|
TQCString fApp, fObj;
|
|
|
|
|
TQByteArray data, replydata;
|
|
|
|
|
QCStringList apps = kapp->dcopClient ()->registeredApplications();
|
|
|
|
|
QCStringList apps = tdeApp->dcopClient ()->registeredApplications();
|
|
|
|
|
QCStringList::ConstIterator end( apps.end() );
|
|
|
|
|
for( QCStringList::ConstIterator it = apps.begin(); it != end; ++it)
|
|
|
|
|
if (!strncmp ((*it).data (), "artscontrol", 11)) {
|
|
|
|
|
kapp->dcopClient ()->findObject
|
|
|
|
|
tdeApp->dcopClient ()->findObject
|
|
|
|
|
(*it, "artscontrol-mainwindow#1", "raise()", data, fApp, fObj);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -1694,7 +1694,7 @@ TDE_NO_EXPORT void KMPlayerApp::startArtsControl () {
|
|
|
|
|
TQCString replytype;
|
|
|
|
|
TQDataStream stream (data, IO_WriteOnly);
|
|
|
|
|
stream << TQString ("aRts Control Tool") << args;
|
|
|
|
|
if (kapp->dcopClient ()->call ("tdelauncher", "tdelauncher", "start_service_by_name(TQString,TQStringList)", data, replytype, replydata)) {
|
|
|
|
|
if (tdeApp->dcopClient ()->call ("tdelauncher", "tdelauncher", "start_service_by_name(TQString,TQStringList)", data, replytype, replydata)) {
|
|
|
|
|
int result;
|
|
|
|
|
TQDataStream replystream (replydata, IO_ReadOnly);
|
|
|
|
|
replystream >> result >> m_dcopName;
|
|
|
|
|