Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/16/head
Michele Calgaro 12 months ago
parent c8a3b81b3c
commit 861ae27a46
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -461,7 +461,7 @@ void Backend::play (int repeat) {
} }
void Backend::stop () { void Backend::stop () {
TQTimer::singleShot (0, gstapp, TQT_SLOT (stop ())); TQTimer::singleShot (0, gstapp, TQ_SLOT (stop ()));
} }
void Backend::pause () { void Backend::pause () {
@ -507,7 +507,7 @@ void Backend::quit () {
if (running) if (running)
stop (); stop ();
else else
TQTimer::singleShot (0, tqApp, TQT_SLOT (quit ())); TQTimer::singleShot (0, tqApp, TQ_SLOT (quit ()));
} }
bool updateConfigEntry (const TQString & name, const TQString & value) { bool updateConfigEntry (const TQString & name, const TQString & value) {
@ -709,7 +709,7 @@ void KGStreamerPlayer::play (int repeat) {
gstPollForStateChange (gst_elm_play, GST_STATE_PLAYING); gstPollForStateChange (gst_elm_play, GST_STATE_PLAYING);
} }
g_free (uri); g_free (uri);
TQTimer::singleShot (500, this, TQT_SLOT (updatePosition ())); TQTimer::singleShot (500, this, TQ_SLOT (updatePosition ()));
return; return;
fail: fail:
if (videosink) { if (videosink) {
@ -757,7 +757,7 @@ void KGStreamerPlayer::stop () {
} }
void KGStreamerPlayer::finished () { void KGStreamerPlayer::finished () {
TQTimer::singleShot (10, this, TQT_SLOT (stop ())); TQTimer::singleShot (10, this, TQ_SLOT (stop ()));
} }
static void adjustColorSetting (const char * channel, int val) { static void adjustColorSetting (const char * channel, int val) {
@ -832,7 +832,7 @@ void KGStreamerPlayer::updatePosition () {
callback->moviePosition (int (val / (GST_MSECOND * 100))); callback->moviePosition (int (val / (GST_MSECOND * 100)));
} }
mutex.unlock (); mutex.unlock ();
TQTimer::singleShot (500, this, TQT_SLOT (updatePosition ())); TQTimer::singleShot (500, this, TQ_SLOT (updatePosition ()));
} }
} }
@ -859,7 +859,7 @@ bool KGStreamerPlayer::event (TQEvent * e) {
if (callback) if (callback)
callback->finished (); callback->finished ();
else else
TQTimer::singleShot (0, this, TQT_SLOT (quit ())); TQTimer::singleShot (0, this, TQ_SLOT (quit ()));
break; break;
} }
//callback->movieParams (se->length/100, se->width, se->height, se->height ? 1.0*se->width/se->height : 1.0); //callback->movieParams (se->length/100, se->width, se->height, se->height ? 1.0*se->width/se->height : 1.0);
@ -1075,7 +1075,7 @@ int main(int argc, char **argv) {
getConfigEntries (buf); getConfigEntries (buf);
callback->started (dcopclient.appId (), buf); callback->started (dcopclient.appId (), buf);
} else } else
TQTimer::singleShot (10, gstapp, TQT_SLOT (play (int))); TQTimer::singleShot (10, gstapp, TQ_SLOT (play (int)));
gstapp->exec (); gstapp->exec ();

@ -154,17 +154,17 @@ KDE_NO_CDTOR_EXPORT KMPlayerPart::KMPlayerPart (TQWidget * wparent, const char *
m_sources ["hrefsource"] = (new KMPlayerHRefSource (this)); m_sources ["hrefsource"] = (new KMPlayerHRefSource (this));
#ifdef HAVE_NSPR #ifdef HAVE_NSPR
KMPlayer::NpPlayer *npp = (KMPlayer::NpPlayer *) players () ["npp"]; KMPlayer::NpPlayer *npp = (KMPlayer::NpPlayer *) players () ["npp"];
connect (npp, TQT_SIGNAL (evaluate (const TQString &, TQString &)), connect (npp, TQ_SIGNAL (evaluate (const TQString &, TQString &)),
m_liveconnectextension, TQT_SLOT (evaluate (const TQString &, TQString &))); m_liveconnectextension, TQ_SLOT (evaluate (const TQString &, TQString &)));
connect (npp, TQT_SIGNAL (openUrl (const KURL &, const TQString &)), connect (npp, TQ_SIGNAL (openUrl (const KURL &, const TQString &)),
m_browserextension, m_browserextension,
TQT_SLOT (slotRequestOpenURL (const KURL &, const TQString &))); TQ_SLOT (slotRequestOpenURL (const KURL &, const TQString &)));
#endif #endif
/*TDEAction *playact =*/ new TDEAction(i18n("P&lay"), TQString ("media-playback-start"), TDEShortcut (), this, TQT_SLOT(play ()), actionCollection (), "play"); /*TDEAction *playact =*/ new TDEAction(i18n("P&lay"), TQString ("media-playback-start"), TDEShortcut (), this, TQ_SLOT(play ()), actionCollection (), "play");
/*TDEAction *pauseact =*/ new TDEAction(i18n("&Pause"), TQString ("media-playback-pause"), TDEShortcut (), this, TQT_SLOT(pause ()), actionCollection (), "pause"); /*TDEAction *pauseact =*/ new TDEAction(i18n("&Pause"), TQString ("media-playback-pause"), TDEShortcut (), this, TQ_SLOT(pause ()), actionCollection (), "pause");
/*TDEAction *stopact =*/ new TDEAction(i18n("&Stop"), TQString ("media-playback-stop"), TDEShortcut (), this, TQT_SLOT(stop ()), actionCollection (), "stop"); /*TDEAction *stopact =*/ new TDEAction(i18n("&Stop"), TQString ("media-playback-stop"), TDEShortcut (), this, TQ_SLOT(stop ()), actionCollection (), "stop");
new TDEAction (i18n ("Increase Volume"), TQString ("player_volume"), TDEShortcut (), this, TQT_SLOT (increaseVolume ()), actionCollection (), "edit_volume_up"); new TDEAction (i18n ("Increase Volume"), TQString ("player_volume"), TDEShortcut (), this, TQ_SLOT (increaseVolume ()), actionCollection (), "edit_volume_up");
new TDEAction (i18n ("Decrease Volume"), TQString ("player_volume"), TDEShortcut (), this, TQT_SLOT (decreaseVolume ()), actionCollection (), "edit_volume_down"); new TDEAction (i18n ("Decrease Volume"), TQString ("player_volume"), TDEShortcut (), this, TQ_SLOT (decreaseVolume ()), actionCollection (), "edit_volume_down");
Source * urlsource = m_sources ["urlsource"]; Source * urlsource = m_sources ["urlsource"];
KMPlayer::ControlPanel * panel = m_view->controlPanel (); KMPlayer::ControlPanel * panel = m_view->controlPanel ();
TQStringList::const_iterator it = args.begin (); TQStringList::const_iterator it = args.begin ();
@ -311,15 +311,15 @@ KDE_NO_CDTOR_EXPORT KMPlayerPart::KMPlayerPart (TQWidget * wparent, const char *
//KParts::Part::setWidget (m_view); //KParts::Part::setWidget (m_view);
setXMLFile("kmplayerpartui.rc"); setXMLFile("kmplayerpartui.rc");
panel->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom50, panel->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom50,
this, TQT_SLOT (setMenuZoom (int))); this, TQ_SLOT (setMenuZoom (int)));
panel->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom100, panel->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom100,
this, TQT_SLOT (setMenuZoom (int))); this, TQ_SLOT (setMenuZoom (int)));
panel->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom150, panel->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom150,
this, TQT_SLOT (setMenuZoom (int))); this, TQ_SLOT (setMenuZoom (int)));
panel->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom200, panel->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom200,
this, TQT_SLOT (setMenuZoom (int))); this, TQ_SLOT (setMenuZoom (int)));
panel->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom300, panel->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom300,
this, TQT_SLOT (setMenuZoom (int))); this, TQ_SLOT (setMenuZoom (int)));
m_view->setNoInfoMessages (m_features != Feat_InfoPanel); m_view->setNoInfoMessages (m_features != Feat_InfoPanel);
if (m_features == Feat_InfoPanel) if (m_features == Feat_InfoPanel)
@ -344,8 +344,8 @@ KDE_NO_CDTOR_EXPORT KMPlayerPart::KMPlayerPart (TQWidget * wparent, const char *
connectPanel (m_view->controlPanel ()); connectPanel (m_view->controlPanel ());
if (m_features & Feat_StatusBar) { if (m_features & Feat_StatusBar) {
last_time_left = 0; last_time_left = 0;
connect (this, TQT_SIGNAL (positioned (int, int)), connect (this, TQ_SIGNAL (positioned (int, int)),
this, TQT_SLOT (statusPosition (int, int))); this, TQ_SLOT (statusPosition (int, int)));
m_view->statusBar ()->insertItem (TQString ("--:--"), 1, 0, true); m_view->statusBar ()->insertItem (TQString ("--:--"), 1, 0, true);
} }
} }
@ -473,7 +473,7 @@ KDE_NO_EXPORT bool KMPlayerPart::openURL (const KURL & _url) {
if (url.isEmpty ()) { if (url.isEmpty ()) {
if (!m_master && !(m_features & Feat_Viewer)) if (!m_master && !(m_features & Feat_Viewer))
// no master set, wait for a viewer to attach or timeout // no master set, wait for a viewer to attach or timeout
TQTimer::singleShot (50, this, TQT_SLOT (waitForImageWindowTimeOut ())); TQTimer::singleShot (50, this, TQ_SLOT (waitForImageWindowTimeOut ()));
return true; return true;
} }
if (!m_group.isEmpty () && !(m_features & Feat_Viewer)) { if (!m_group.isEmpty () && !(m_features & Feat_Viewer)) {
@ -483,7 +483,7 @@ KDE_NO_EXPORT bool KMPlayerPart::openURL (const KURL & _url) {
i = std::find_if (++i, e, pred)) i = std::find_if (++i, e, pred))
if ((*i)->url ().isEmpty ()) // image window created w/o url if ((*i)->url ().isEmpty ()) // image window created w/o url
return (*i)->openURL (_url); return (*i)->openURL (_url);
TQTimer::singleShot (50, this, TQT_SLOT (waitForImageWindowTimeOut ())); TQTimer::singleShot (50, this, TQ_SLOT (waitForImageWindowTimeOut ()));
//kdError () << "Not the ImageWindow and no ImageWindow found" << endl; //kdError () << "Not the ImageWindow and no ImageWindow found" << endl;
return true; return true;
} }
@ -553,16 +553,16 @@ KDE_NO_EXPORT void KMPlayerPart::connectToPart (KMPlayerPart * m) {
if (m_features & Feat_InfoPanel) if (m_features & Feat_InfoPanel)
m->connectInfoPanel (m_view->infoPanel ()); m->connectInfoPanel (m_view->infoPanel ());
connectSource (m_source, m->source ()); connectSource (m_source, m->source ());
connect (m, TQT_SIGNAL (destroyed (TQObject *)), connect (m, TQ_SIGNAL (destroyed (TQObject *)),
this, TQT_SLOT (viewerPartDestroyed (TQObject *))); this, TQ_SLOT (viewerPartDestroyed (TQObject *)));
connect (m, TQT_SIGNAL (processChanged (const char *)), connect (m, TQ_SIGNAL (processChanged (const char *)),
this, TQT_SLOT (viewerPartProcessChanged (const char *))); this, TQ_SLOT (viewerPartProcessChanged (const char *)));
connect (m, TQT_SIGNAL (sourceChanged (KMPlayer::Source *, KMPlayer::Source *)), connect (m, TQ_SIGNAL (sourceChanged (KMPlayer::Source *, KMPlayer::Source *)),
this, TQT_SLOT (viewerPartSourceChanged (KMPlayer::Source *, KMPlayer::Source *))); this, TQ_SLOT (viewerPartSourceChanged (KMPlayer::Source *, KMPlayer::Source *)));
if (m_features & Feat_StatusBar) { if (m_features & Feat_StatusBar) {
last_time_left = 0; last_time_left = 0;
connect (m, TQT_SIGNAL (positioned (int, int)), connect (m, TQ_SIGNAL (positioned (int, int)),
this, TQT_SLOT (statusPosition (int, int))); this, TQ_SLOT (statusPosition (int, int)));
m_view->statusBar ()->insertItem (TQString ("--:--"), 1, 0, true); m_view->statusBar ()->insertItem (TQString ("--:--"), 1, 0, true);
} }
} }
@ -863,7 +863,7 @@ KDE_NO_CDTOR_EXPORT KMPlayerLiveConnectExtension::KMPlayerLiveConnectExtension (
m_started (false), m_started (false),
m_enablefinish (false), m_enablefinish (false),
m_evaluating (false) { m_evaluating (false) {
connect (parent, TQT_SIGNAL (started (TDEIO::Job *)), this, TQT_SLOT (started ())); connect (parent, TQ_SIGNAL (started (TDEIO::Job *)), this, TQ_SLOT (started ()));
} }
KDE_NO_CDTOR_EXPORT KMPlayerLiveConnectExtension::~KMPlayerLiveConnectExtension() { KDE_NO_CDTOR_EXPORT KMPlayerLiveConnectExtension::~KMPlayerLiveConnectExtension() {
@ -1153,17 +1153,17 @@ KDE_NO_EXPORT void KMPlayerHRefSource::play () {
KDE_NO_EXPORT void KMPlayerHRefSource::activate () { KDE_NO_EXPORT void KMPlayerHRefSource::activate () {
m_player->stop (); m_player->stop ();
if (m_finished) { if (m_finished) {
TQTimer::singleShot (0, this, TQT_SLOT (finished ())); TQTimer::singleShot (0, this, TQ_SLOT (finished ()));
return; return;
} }
init (); init ();
m_player->setProcess ("mplayer"); m_player->setProcess ("mplayer");
if (m_player->process ()->grabPicture (m_url, 0)) if (m_player->process ()->grabPicture (m_url, 0))
connect (m_player->process (), TQT_SIGNAL (grabReady (const TQString &)), connect (m_player->process (), TQ_SIGNAL (grabReady (const TQString &)),
this, TQT_SLOT (grabReady (const TQString &))); this, TQ_SLOT (grabReady (const TQString &)));
else { else {
setURL (KURL ()); setURL (KURL ());
TQTimer::singleShot (0, this, TQT_SLOT (play ())); TQTimer::singleShot (0, this, TQ_SLOT (play ()));
} }
} }
@ -1184,11 +1184,11 @@ KDE_NO_EXPORT void KMPlayerHRefSource::finished () {
if (!view) return; if (!view) return;
if (!view->setPicture (m_grabfile)) { if (!view->setPicture (m_grabfile)) {
clear (); clear ();
TQTimer::singleShot (0, this, TQT_SLOT (play ())); TQTimer::singleShot (0, this, TQ_SLOT (play ()));
return; return;
} }
if (view->viewer ()) if (view->viewer ())
connect (view, TQT_SIGNAL (pictureClicked ()), this, TQT_SLOT (play ())); connect (view, TQ_SIGNAL (pictureClicked ()), this, TQ_SLOT (play ()));
} }
KDE_NO_EXPORT void KMPlayerHRefSource::deactivate () { KDE_NO_EXPORT void KMPlayerHRefSource::deactivate () {
@ -1197,7 +1197,7 @@ KDE_NO_EXPORT void KMPlayerHRefSource::deactivate () {
if (!view) return; if (!view) return;
view->setPicture (TQString ()); view->setPicture (TQString ());
if (view->viewer ()) if (view->viewer ())
disconnect (view, TQT_SIGNAL (pictureClicked ()), this, TQT_SLOT (play ())); disconnect (view, TQ_SIGNAL (pictureClicked ()), this, TQ_SLOT (play ()));
} }
KDE_NO_EXPORT TQString KMPlayerHRefSource::prettyName () { KDE_NO_EXPORT TQString KMPlayerHRefSource::prettyName () {

@ -3425,9 +3425,9 @@ KDE_NO_EXPORT void ImageRuntime::remoteReady (TQByteArray & data) {
if (!pix->isNull ()) { if (!pix->isNull ()) {
cached_img.data->image = pix; cached_img.data->image = pix;
img_movie = new TQMovie (data, data.size ()); img_movie = new TQMovie (data, data.size ());
img_movie->connectUpdate(this,TQT_SLOT(movieUpdated(const TQRect&))); img_movie->connectUpdate(this,TQ_SLOT(movieUpdated(const TQRect&)));
img_movie->connectStatus (this, TQT_SLOT (movieStatus (int))); img_movie->connectStatus (this, TQ_SLOT (movieStatus (int)));
img_movie->connectResize(this,TQT_SLOT (movieResize(const TQSize&))); img_movie->connectResize(this,TQ_SLOT (movieResize(const TQSize&)));
frame_nr = 0; frame_nr = 0;
mt->width = pix->width (); mt->width = pix->width ();
mt->height = pix->height (); mt->height = pix->height ();

@ -516,8 +516,8 @@ KDE_NO_CDTOR_EXPORT KMPlayerApp::KMPlayerApp(TQWidget* , const char* name)
m_minimal_mode (false) m_minimal_mode (false)
{ {
setCentralWidget (m_view); setCentralWidget (m_view);
connect (m_broadcastconfig, TQT_SIGNAL (broadcastStarted()), this, TQT_SLOT (broadcastStarted())); connect (m_broadcastconfig, TQ_SIGNAL (broadcastStarted()), this, TQ_SLOT (broadcastStarted()));
connect (m_broadcastconfig, TQT_SIGNAL (broadcastStopped()), this, TQT_SLOT (broadcastStopped())); connect (m_broadcastconfig, TQ_SIGNAL (broadcastStopped()), this, TQ_SLOT (broadcastStopped()));
initStatusBar(); initStatusBar();
#ifdef HAVE_DBUS #ifdef HAVE_DBUS
m_player->setServiceName (TQString ("org.kde.kmplayer-%1").arg (getpid ())); m_player->setServiceName (TQString ("org.kde.kmplayer-%1").arg (getpid ()));
@ -554,7 +554,7 @@ KDE_NO_CDTOR_EXPORT KMPlayerApp::KMPlayerApp(TQWidget* , const char* name)
kdDebug() << "Window manager: TWin found" << endl; kdDebug() << "Window manager: TWin found" << endl;
else else
kdDebug() << "Window manager: not TWin - using save fullscreen mode" << endl; kdDebug() << "Window manager: not TWin - using save fullscreen mode" << endl;
connect(&m_screensaverTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotFakeKeyEvent())); connect(&m_screensaverTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotFakeKeyEvent()));
m_screensaverTimer.start( 55000 ); m_screensaverTimer.start( 55000 );
//setAutoSaveSettings(); //setAutoSaveSettings();
@ -574,49 +574,49 @@ KDE_NO_CDTOR_EXPORT KMPlayerApp::~KMPlayerApp () {
KDE_NO_EXPORT void KMPlayerApp::initActions () { KDE_NO_EXPORT void KMPlayerApp::initActions () {
TDEActionCollection * ac = actionCollection (); TDEActionCollection * ac = actionCollection ();
fileNewWindow = new TDEAction(i18n("New &Window"), 0, 0, this, TQT_SLOT(slotFileNewWindow()), ac, "new_window"); fileNewWindow = new TDEAction(i18n("New &Window"), 0, 0, this, TQ_SLOT(slotFileNewWindow()), ac, "new_window");
fileOpen = KStdAction::open(this, TQT_SLOT(slotFileOpen()), ac, "open"); fileOpen = KStdAction::open(this, TQ_SLOT(slotFileOpen()), ac, "open");
fileOpenRecent = KStdAction::openRecent(this, TQT_SLOT(slotFileOpenRecent(const KURL&)), ac, "open_recent"); fileOpenRecent = KStdAction::openRecent(this, TQ_SLOT(slotFileOpenRecent(const KURL&)), ac, "open_recent");
KStdAction::saveAs (this, TQT_SLOT (slotSaveAs ()), ac, "save_as"); KStdAction::saveAs (this, TQ_SLOT (slotSaveAs ()), ac, "save_as");
new TDEAction (i18n ("Clear &History"), 0, 0, this, TQT_SLOT (slotClearHistory ()), ac, "clear_history"); new TDEAction (i18n ("Clear &History"), 0, 0, this, TQ_SLOT (slotClearHistory ()), ac, "clear_history");
fileClose = KStdAction::close (this, TQT_SLOT (slotFileClose ()), ac); fileClose = KStdAction::close (this, TQ_SLOT (slotFileClose ()), ac);
fileQuit = KStdAction::quit (this, TQT_SLOT (slotFileQuit ()), ac); fileQuit = KStdAction::quit (this, TQ_SLOT (slotFileQuit ()), ac);
new TDEAction (i18n ("&Open DVD"), TQString ("media-optical-dvd-mounted"), TDEShortcut (), this, TQT_SLOT(openDVD ()), ac, "opendvd"); new TDEAction (i18n ("&Open DVD"), TQString ("media-optical-dvd-mounted"), TDEShortcut (), this, TQ_SLOT(openDVD ()), ac, "opendvd");
new TDEAction (i18n ("&Open VCD"), TQString ("media-optical-cdrom-mounted"), TDEShortcut (), this, TQT_SLOT(openVCD ()), ac, "openvcd"); new TDEAction (i18n ("&Open VCD"), TQString ("media-optical-cdrom-mounted"), TDEShortcut (), this, TQ_SLOT(openVCD ()), ac, "openvcd");
new TDEAction (i18n ("&Open Audio CD"), TQString ("media-optical-cdrom-mounted"), TDEShortcut (), this, TQT_SLOT(openAudioCD ()), ac, "openaudiocd"); new TDEAction (i18n ("&Open Audio CD"), TQString ("media-optical-cdrom-mounted"), TDEShortcut (), this, TQ_SLOT(openAudioCD ()), ac, "openaudiocd");
new TDEAction (i18n ("&Open Pipe..."), TQString ("pipe"), TDEShortcut (), this, TQT_SLOT(openPipe ()), ac, "source_pipe"); new TDEAction (i18n ("&Open Pipe..."), TQString ("pipe"), TDEShortcut (), this, TQ_SLOT(openPipe ()), ac, "source_pipe");
//TDEGlobal::iconLoader ()->loadIconSet (TQString ("tv"), TDEIcon::Small, 0,true) //TDEGlobal::iconLoader ()->loadIconSet (TQString ("tv"), TDEIcon::Small, 0,true)
new TDEAction (i18n ("&Connect"), TQString ("connect_established"), TDEShortcut (), this, TQT_SLOT (openVDR ()), ac, "vdr_connect"); new TDEAction (i18n ("&Connect"), TQString ("connect_established"), TDEShortcut (), this, TQ_SLOT (openVDR ()), ac, "vdr_connect");
editVolumeInc = new TDEAction (i18n ("Increase Volume"), TQString ("player_volume"), TDEShortcut (), m_player, TQT_SLOT (increaseVolume ()), ac, "edit_volume_up"); editVolumeInc = new TDEAction (i18n ("Increase Volume"), TQString ("player_volume"), TDEShortcut (), m_player, TQ_SLOT (increaseVolume ()), ac, "edit_volume_up");
editVolumeDec = new TDEAction (i18n ("Decrease Volume"), TQString ("player_volume"), TDEShortcut (), m_player, TQT_SLOT(decreaseVolume ()), ac, "edit_volume_down"); editVolumeDec = new TDEAction (i18n ("Decrease Volume"), TQString ("player_volume"), TDEShortcut (), m_player, TQ_SLOT(decreaseVolume ()), ac, "edit_volume_down");
toggleView = new TDEAction (i18n ("C&onsole"), TQString ("konsole"), TDEShortcut (), m_player->view(), TQT_SLOT (toggleVideoConsoleWindow ()), ac, "view_video"); toggleView = new TDEAction (i18n ("C&onsole"), TQString ("konsole"), TDEShortcut (), m_player->view(), TQ_SLOT (toggleVideoConsoleWindow ()), ac, "view_video");
//new TDEAction (i18n ("V&ideo"), TQString (video-x-generic"), TDEShortcut (), m_view, TQT_SLOT (toggleVideoConsoleWindow ()), ac, "view_video"); //new TDEAction (i18n ("V&ideo"), TQString (video-x-generic"), TDEShortcut (), m_view, TQ_SLOT (toggleVideoConsoleWindow ()), ac, "view_video");
new TDEAction (i18n ("Pla&y List"), TQString ("player_playlist"), TDEShortcut (), m_player, TQT_SLOT (showPlayListWindow ()), ac, "view_playlist"); new TDEAction (i18n ("Pla&y List"), TQString ("player_playlist"), TDEShortcut (), m_player, TQ_SLOT (showPlayListWindow ()), ac, "view_playlist");
new TDEAction (i18n ("Minimal mode"), TQString ("application-x-zerosize"), TDEShortcut (), this, TQT_SLOT (slotMinimalMode ()), ac, "view_minimal"); new TDEAction (i18n ("Minimal mode"), TQString ("application-x-zerosize"), TDEShortcut (), this, TQ_SLOT (slotMinimalMode ()), ac, "view_minimal");
new TDEAction (i18n ("50%"), 0, 0, this, TQT_SLOT (zoom50 ()), ac, "view_zoom_50"); new TDEAction (i18n ("50%"), 0, 0, this, TQ_SLOT (zoom50 ()), ac, "view_zoom_50");
new TDEAction (i18n ("100%"), TQString ("zoom-fit-best"), TDEShortcut (), this, TQT_SLOT (zoom100 ()), ac, "view_zoom_100"); new TDEAction (i18n ("100%"), TQString ("zoom-fit-best"), TDEShortcut (), this, TQ_SLOT (zoom100 ()), ac, "view_zoom_100");
new TDEAction (i18n ("150%"), 0, 0, this, TQT_SLOT (zoom150 ()), ac, "view_zoom_150"); new TDEAction (i18n ("150%"), 0, 0, this, TQ_SLOT (zoom150 ()), ac, "view_zoom_150");
new TDEAction (i18n ("200%"), 0, TDEShortcut (), this, TQT_SLOT (zoom200 ()), ac, "view_zoom_200"); new TDEAction (i18n ("200%"), 0, TDEShortcut (), this, TQ_SLOT (zoom200 ()), ac, "view_zoom_200");
new TDEAction (i18n ("300%"), 0, TDEShortcut (), this, TQT_SLOT (zoom300 ()), ac, "view_zoom_300"); new TDEAction (i18n ("300%"), 0, TDEShortcut (), this, TQ_SLOT (zoom300 ()), ac, "view_zoom_300");
viewEditMode = new TDEToggleAction (i18n ("&Edit mode"), 0, 0, this, TQT_SLOT (editMode ()), ac, "edit_mode"); viewEditMode = new TDEToggleAction (i18n ("&Edit mode"), 0, 0, this, TQ_SLOT (editMode ()), ac, "edit_mode");
viewSyncEditMode = new TDEAction (i18n ("Sync &with playlist"), TQString ("reload"), TDEShortcut (), this, TQT_SLOT (syncEditMode ()), ac, "sync_edit_mode"); viewSyncEditMode = new TDEAction (i18n ("Sync &with playlist"), TQString ("reload"), TDEShortcut (), this, TQ_SLOT (syncEditMode ()), ac, "sync_edit_mode");
viewSyncEditMode->setEnabled (false); viewSyncEditMode->setEnabled (false);
new TDEAction (i18n ("Show Popup Menu"), TDEShortcut (), m_view->controlPanel (), TQT_SLOT (showPopupMenu ()), ac, "view_show_popup_menu"); new TDEAction (i18n ("Show Popup Menu"), TDEShortcut (), m_view->controlPanel (), TQ_SLOT (showPopupMenu ()), ac, "view_show_popup_menu");
new TDEAction (i18n ("Show Language Menu"), TDEShortcut (TQt::Key_L), m_view->controlPanel (), TQT_SLOT (showLanguageMenu ()), ac, "view_show_lang_menu"); new TDEAction (i18n ("Show Language Menu"), TDEShortcut (TQt::Key_L), m_view->controlPanel (), TQ_SLOT (showLanguageMenu ()), ac, "view_show_lang_menu");
viewKeepRatio = new TDEToggleAction (i18n ("&Keep Width/Height Ratio"), 0, this, TQT_SLOT (keepSizeRatio ()), ac, "view_keep_ratio"); viewKeepRatio = new TDEToggleAction (i18n ("&Keep Width/Height Ratio"), 0, this, TQ_SLOT (keepSizeRatio ()), ac, "view_keep_ratio");
#if KDE_IS_VERSION(3,1,90) #if KDE_IS_VERSION(3,1,90)
viewFullscreen = KStdAction::fullScreen (this, TQT_SLOT(fullScreen ()), ac, 0, "view_fullscreen"); viewFullscreen = KStdAction::fullScreen (this, TQ_SLOT(fullScreen ()), ac, 0, "view_fullscreen");
#else #else
viewFullscreen = new TDEAction (i18n("&Full Screen"), 0, 0, this, TQT_SLOT(fullScreen ()), ac, "view_fullscreen"); viewFullscreen = new TDEAction (i18n("&Full Screen"), 0, 0, this, TQ_SLOT(fullScreen ()), ac, "view_fullscreen");
#endif #endif
/*TDEAction *playact =*/ new TDEAction (i18n ("P&lay"), TQString ("media-playback-start"), TDEShortcut (), m_player, TQT_SLOT (play ()), ac, "play"); /*TDEAction *playact =*/ new TDEAction (i18n ("P&lay"), TQString ("media-playback-start"), TDEShortcut (), m_player, TQ_SLOT (play ()), ac, "play");
/*TDEAction *pauseact =*/ new TDEAction (i18n ("&Pause"), TQString ("media-playback-pause"), TDEShortcut (), m_player, TQT_SLOT (pause ()), ac, "pause"); /*TDEAction *pauseact =*/ new TDEAction (i18n ("&Pause"), TQString ("media-playback-pause"), TDEShortcut (), m_player, TQ_SLOT (pause ()), ac, "pause");
/*TDEAction *stopact =*/ new TDEAction (i18n ("&Stop"), TQString ("media-playback-stop"), TDEShortcut (), m_player, TQT_SLOT (stop ()), ac, "stop"); /*TDEAction *stopact =*/ new TDEAction (i18n ("&Stop"), TQString ("media-playback-stop"), TDEShortcut (), m_player, TQ_SLOT (stop ()), ac, "stop");
/*TDEAction *artsctrl =*/ new TDEAction (i18n ("&Arts Control"), TQString ("player_volume"), TDEShortcut (), this, TQT_SLOT (startArtsControl ()), ac, "view_arts_control"); /*TDEAction *artsctrl =*/ new TDEAction (i18n ("&Arts Control"), TQString ("player_volume"), TDEShortcut (), this, TQ_SLOT (startArtsControl ()), ac, "view_arts_control");
viewToolBar = KStdAction::showToolbar(this, TQT_SLOT(slotViewToolBar()), ac, "showtoolbar"); viewToolBar = KStdAction::showToolbar(this, TQ_SLOT(slotViewToolBar()), ac, "showtoolbar");
viewStatusBar =KStdAction::showStatusbar(this,TQT_SLOT(slotViewStatusBar()),ac, "showstatusbar"); viewStatusBar =KStdAction::showStatusbar(this,TQ_SLOT(slotViewStatusBar()),ac, "showstatusbar");
viewMenuBar = KStdAction::showMenubar(this, TQT_SLOT(slotViewMenuBar()), ac, "showmenu"); viewMenuBar = KStdAction::showMenubar(this, TQ_SLOT(slotViewMenuBar()), ac, "showmenu");
KStdAction::preferences(m_player, TQT_SLOT(showConfigDialog()), ac,"configure"); KStdAction::preferences(m_player, TQ_SLOT(showConfigDialog()), ac,"configure");
fileNewWindow->setStatusText(i18n("Opens a new application window")); fileNewWindow->setStatusText(i18n("Opens a new application window"));
fileOpen->setStatusText(i18n("Opens an existing file")); fileOpen->setStatusText(i18n("Opens an existing file"));
fileOpenRecent->setStatusText(i18n("Opens a recently used file")); fileOpenRecent->setStatusText(i18n("Opens a recently used file"));
@ -625,8 +625,8 @@ KDE_NO_EXPORT void KMPlayerApp::initActions () {
//viewToolBar->setStatusText(i18n("Enables/disables the toolbar")); //viewToolBar->setStatusText(i18n("Enables/disables the toolbar"));
viewStatusBar->setStatusText(i18n("Enables/disables the statusbar")); viewStatusBar->setStatusText(i18n("Enables/disables the statusbar"));
viewMenuBar->setStatusText(i18n("Enables/disables the menubar")); viewMenuBar->setStatusText(i18n("Enables/disables the menubar"));
KStdAction::keyBindings( this, TQT_SLOT(slotConfigureKeys()), ac, "configkeys"); KStdAction::keyBindings( this, TQ_SLOT(slotConfigureKeys()), ac, "configkeys");
KStdAction::configureToolbars (this, TQT_SLOT (slotConfigureToolbars ()), ac, "configtoolbars"); KStdAction::configureToolbars (this, TQ_SLOT (slotConfigureToolbars ()), ac, "configtoolbars");
} }
KDE_NO_EXPORT void KMPlayerApp::initStatusBar () { KDE_NO_EXPORT void KMPlayerApp::initStatusBar () {
@ -646,71 +646,71 @@ KDE_NO_EXPORT void KMPlayerApp::initMenu () {
m_dvdmenu->clear (); m_dvdmenu->clear ();
#ifdef HAVE_XINE #ifdef HAVE_XINE
m_dvdnavmenu->clear (); m_dvdnavmenu->clear ();
m_dvdnavmenu->insertItem (i18n ("&Start"), this, TQT_SLOT (dvdNav ())); m_dvdnavmenu->insertItem (i18n ("&Start"), this, TQ_SLOT (dvdNav ()));
m_dvdmenu->insertItem (i18n ("&DVD Navigator"), m_dvdnavmenu, -1, 1); m_dvdmenu->insertItem (i18n ("&DVD Navigator"), m_dvdnavmenu, -1, 1);
m_dvdmenu->insertItem (i18n ("&Open DVD"), this, TQT_SLOT(openDVD ()), 0,-1, 2); m_dvdmenu->insertItem (i18n ("&Open DVD"), this, TQ_SLOT(openDVD ()), 0,-1, 2);
#else #else
m_dvdmenu->insertItem (i18n ("&Open DVD"), this, TQT_SLOT(openDVD ()), 0,-1, 1); m_dvdmenu->insertItem (i18n ("&Open DVD"), this, TQ_SLOT(openDVD ()), 0,-1, 1);
#endif #endif
m_sourcemenu->popup ()->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("media-optical-cdrom-mounted"), TDEIcon::Small, 0, true), i18n ("V&CD"), m_vcdmenu, -1, 6); m_sourcemenu->popup ()->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("media-optical-cdrom-mounted"), TDEIcon::Small, 0, true), i18n ("V&CD"), m_vcdmenu, -1, 6);
m_vcdmenu->clear (); m_vcdmenu->clear ();
m_sourcemenu->popup ()->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("tv"), TDEIcon::Small, 0, true), i18n ("&TV"), m_tvmenu, -1, 8); m_sourcemenu->popup ()->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("tv"), TDEIcon::Small, 0, true), i18n ("&TV"), m_tvmenu, -1, 8);
m_vcdmenu->insertItem (i18n ("&Open VCD"), this, TQT_SLOT(openVCD ()), 0,-1, 1); m_vcdmenu->insertItem (i18n ("&Open VCD"), this, TQ_SLOT(openVCD ()), 0,-1, 1);
m_sourcemenu->popup ()->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("media-optical-cdrom-mounted"), TDEIcon::Small, 0, true), i18n ("&Audio CD"), m_audiocdmenu, -1, 7); m_sourcemenu->popup ()->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("media-optical-cdrom-mounted"), TDEIcon::Small, 0, true), i18n ("&Audio CD"), m_audiocdmenu, -1, 7);
m_audiocdmenu->insertItem (i18n ("&Open Audio CD"), this, TQT_SLOT(openAudioCD ()), 0,-1, 1); m_audiocdmenu->insertItem (i18n ("&Open Audio CD"), this, TQ_SLOT(openAudioCD ()), 0,-1, 1);
} }
KDE_NO_EXPORT void KMPlayerApp::initView () { KDE_NO_EXPORT void KMPlayerApp::initView () {
//m_view->docArea ()->readDockConfig (config, TQString ("Window Layout")); //m_view->docArea ()->readDockConfig (config, TQString ("Window Layout"));
m_player->connectPanel (m_view->controlPanel ()); m_player->connectPanel (m_view->controlPanel ());
initMenu (); initMenu ();
new TDEAction (i18n ("Increase Volume"), editVolumeInc->shortcut (), m_player, TQT_SLOT (increaseVolume ()), m_view->viewArea ()->actionCollection (), "edit_volume_up"); new TDEAction (i18n ("Increase Volume"), editVolumeInc->shortcut (), m_player, TQ_SLOT (increaseVolume ()), m_view->viewArea ()->actionCollection (), "edit_volume_up");
new TDEAction (i18n ("Decrease Volume"), editVolumeDec->shortcut (), m_player, TQT_SLOT(decreaseVolume ()), m_view->viewArea ()->actionCollection (), "edit_volume_down"); new TDEAction (i18n ("Decrease Volume"), editVolumeDec->shortcut (), m_player, TQ_SLOT(decreaseVolume ()), m_view->viewArea ()->actionCollection (), "edit_volume_down");
connect (m_player->settings (), TQT_SIGNAL (configChanged ()), connect (m_player->settings (), TQ_SIGNAL (configChanged ()),
this, TQT_SLOT (configChanged ())); this, TQ_SLOT (configChanged ()));
connect (m_player, TQT_SIGNAL (loading (int)), connect (m_player, TQ_SIGNAL (loading (int)),
this, TQT_SLOT (loadingProgress (int))); this, TQ_SLOT (loadingProgress (int)));
connect (m_player, TQT_SIGNAL (positioned (int, int)), connect (m_player, TQ_SIGNAL (positioned (int, int)),
this, TQT_SLOT (positioned (int, int))); this, TQ_SLOT (positioned (int, int)));
connect (m_player, TQT_SIGNAL (statusUpdated (const TQString &)), connect (m_player, TQ_SIGNAL (statusUpdated (const TQString &)),
this, TQT_SLOT (slotStatusMsg (const TQString &))); this, TQ_SLOT (slotStatusMsg (const TQString &)));
connect (m_view, TQT_SIGNAL (windowVideoConsoleToggled (int)), connect (m_view, TQ_SIGNAL (windowVideoConsoleToggled (int)),
this, TQT_SLOT (windowVideoConsoleToggled (int))); this, TQ_SLOT (windowVideoConsoleToggled (int)));
connect (m_player, TQT_SIGNAL (sourceChanged (KMPlayer::Source *, KMPlayer::Source *)), this, TQT_SLOT (slotSourceChanged(KMPlayer::Source *, KMPlayer::Source *))); connect (m_player, TQ_SIGNAL (sourceChanged (KMPlayer::Source *, KMPlayer::Source *)), this, TQ_SLOT (slotSourceChanged(KMPlayer::Source *, KMPlayer::Source *)));
m_view->controlPanel ()->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom50, m_view->controlPanel ()->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom50,
this, TQT_SLOT (zoom50 ())); this, TQ_SLOT (zoom50 ()));
m_view->controlPanel ()->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom100, m_view->controlPanel ()->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom100,
this, TQT_SLOT (zoom100 ())); this, TQ_SLOT (zoom100 ()));
m_view->controlPanel ()->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom150, m_view->controlPanel ()->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom150,
this, TQT_SLOT (zoom150 ())); this, TQ_SLOT (zoom150 ()));
m_view->controlPanel ()->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom200, m_view->controlPanel ()->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom200,
this, TQT_SLOT (zoom200 ())); this, TQ_SLOT (zoom200 ()));
m_view->controlPanel ()->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom300, m_view->controlPanel ()->zoomMenu ()->connectItem (KMPlayer::ControlPanel::menu_zoom300,
this, TQT_SLOT (zoom300 ())); this, TQ_SLOT (zoom300 ()));
connect (m_view->controlPanel()->broadcastButton (), TQT_SIGNAL (clicked ()), connect (m_view->controlPanel()->broadcastButton (), TQ_SIGNAL (clicked ()),
this, TQT_SLOT (broadcastClicked ())); this, TQ_SLOT (broadcastClicked ()));
m_auto_resize = m_player->settings ()->autoresize; m_auto_resize = m_player->settings ()->autoresize;
if (m_auto_resize) if (m_auto_resize)
connect (m_player, TQT_SIGNAL (sourceDimensionChanged ()), connect (m_player, TQ_SIGNAL (sourceDimensionChanged ()),
this, TQT_SLOT (zoom100 ())); this, TQ_SLOT (zoom100 ()));
connect (m_view, TQT_SIGNAL (fullScreenChanged ()), connect (m_view, TQ_SIGNAL (fullScreenChanged ()),
this, TQT_SLOT (fullScreen ())); this, TQ_SLOT (fullScreen ()));
connect (m_player, TQT_SIGNAL (toggleMinimalMode ()), connect (m_player, TQ_SIGNAL (toggleMinimalMode ()),
this, TQT_SLOT (slotMinimalMode ())); this, TQ_SLOT (slotMinimalMode ()));
connect (m_view->playList (), TQT_SIGNAL (selectionChanged (TQListViewItem *)), connect (m_view->playList (), TQ_SIGNAL (selectionChanged (TQListViewItem *)),
this, TQT_SLOT (playListItemSelected (TQListViewItem *))); this, TQ_SLOT (playListItemSelected (TQListViewItem *)));
connect (m_view->playList(), TQT_SIGNAL (dropped (TQDropEvent*, TQListViewItem*)), connect (m_view->playList(), TQ_SIGNAL (dropped (TQDropEvent*, TQListViewItem*)),
this, TQT_SLOT (playListItemDropped (TQDropEvent *, TQListViewItem *))); this, TQ_SLOT (playListItemDropped (TQDropEvent *, TQListViewItem *)));
connect (m_view->playList(), TQT_SIGNAL (moved ()), connect (m_view->playList(), TQ_SIGNAL (moved ()),
this, TQT_SLOT (playListItemMoved ())); this, TQ_SLOT (playListItemMoved ()));
connect (m_view->playList(), TQT_SIGNAL (prepareMenu (KMPlayer::PlayListItem *, TQPopupMenu *)), this, TQT_SLOT (preparePlaylistMenu (KMPlayer::PlayListItem *, TQPopupMenu *))); connect (m_view->playList(), TQ_SIGNAL (prepareMenu (KMPlayer::PlayListItem *, TQPopupMenu *)), this, TQ_SLOT (preparePlaylistMenu (KMPlayer::PlayListItem *, TQPopupMenu *)));
m_dropmenu = new TQPopupMenu (m_view->playList ()); m_dropmenu = new TQPopupMenu (m_view->playList ());
m_dropmenu->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("player_playlist"), TDEIcon::Small, 0, true), i18n ("&Add to list"), this, TQT_SLOT (menuDropInList ())); m_dropmenu->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("player_playlist"), TDEIcon::Small, 0, true), i18n ("&Add to list"), this, TQ_SLOT (menuDropInList ()));
m_dropmenu->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("folder_grey"), TDEIcon::Small, 0, true), i18n ("Add in new &Group"), this, TQT_SLOT (menuDropInGroup ())); m_dropmenu->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("folder_grey"), TDEIcon::Small, 0, true), i18n ("Add in new &Group"), this, TQ_SLOT (menuDropInGroup ()));
m_dropmenu->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("edit-copy"), TDEIcon::Small, 0, true), i18n ("&Copy here"), this, TQT_SLOT (menuCopyDrop ())); m_dropmenu->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("edit-copy"), TDEIcon::Small, 0, true), i18n ("&Copy here"), this, TQ_SLOT (menuCopyDrop ()));
m_dropmenu->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("edit-delete"), TDEIcon::Small, 0, true), i18n ("&Delete"), this, TQT_SLOT (menuDeleteNode ())); m_dropmenu->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("edit-delete"), TDEIcon::Small, 0, true), i18n ("&Delete"), this, TQ_SLOT (menuDeleteNode ()));
/*TQPopupMenu * viewmenu = new TQPopupMenu; /*TQPopupMenu * viewmenu = new TQPopupMenu;
viewmenu->insertItem (i18n ("Full Screen"), this, TQT_SLOT(fullScreen ()), viewmenu->insertItem (i18n ("Full Screen"), this, TQ_SLOT(fullScreen ()),
TQKeySequence ("CTRL + Key_F")); TQKeySequence ("CTRL + Key_F"));
menuBar ()->insertItem (i18n ("&View"), viewmenu, -1, 2);*/ menuBar ()->insertItem (i18n ("&View"), viewmenu, -1, 2);*/
//toolBar("mainToolBar")->hide(); //toolBar("mainToolBar")->hide();
@ -834,17 +834,17 @@ KDE_NO_EXPORT void KMPlayerApp::playerStarted () {
KDE_NO_EXPORT void KMPlayerApp::slotSourceChanged (KMPlayer::Source *olds, KMPlayer::Source * news) { KDE_NO_EXPORT void KMPlayerApp::slotSourceChanged (KMPlayer::Source *olds, KMPlayer::Source * news) {
if (olds) { if (olds) {
disconnect (olds, TQT_SIGNAL (titleChanged (const TQString &)), this, disconnect (olds, TQ_SIGNAL (titleChanged (const TQString &)), this,
TQT_SLOT (setCaption (const TQString &))); TQ_SLOT (setCaption (const TQString &)));
disconnect (olds, TQT_SIGNAL (startPlaying ()), disconnect (olds, TQ_SIGNAL (startPlaying ()),
this, TQT_SLOT (playerStarted ())); this, TQ_SLOT (playerStarted ()));
} }
if (news) { if (news) {
setCaption (news->prettyName (), false); setCaption (news->prettyName (), false);
connect (news, TQT_SIGNAL (titleChanged (const TQString &)), connect (news, TQ_SIGNAL (titleChanged (const TQString &)),
this, TQT_SLOT (setCaption (const TQString &))); this, TQ_SLOT (setCaption (const TQString &)));
connect (news, TQT_SIGNAL (startPlaying ()), connect (news, TQ_SIGNAL (startPlaying ()),
this, TQT_SLOT (playerStarted ())); this, TQ_SLOT (playerStarted ()));
viewSyncEditMode->setEnabled (m_view->editMode () || viewSyncEditMode->setEnabled (m_view->editMode () ||
!strcmp (m_player->source ()->name (), "urlsource")); !strcmp (m_player->source ()->name (), "urlsource"));
} }
@ -909,7 +909,7 @@ struct IntroSource : public KMPlayer::Source {
KDE_NO_EXPORT void IntroSource::activate () { KDE_NO_EXPORT void IntroSource::activate () {
if (m_player->settings ()->autoresize) if (m_player->settings ()->autoresize)
m_app->disconnect(m_player, TQT_SIGNAL(sourceDimensionChanged()),m_app,TQT_SLOT(zoom100())); m_app->disconnect(m_player, TQ_SIGNAL(sourceDimensionChanged()),m_app,TQ_SLOT(zoom100()));
m_document = new KMPlayer::Document (TQString (""), this); m_document = new KMPlayer::Document (TQString (""), this);
TQString introfile = locate ("data", "kmplayer/intro.xml"); TQString introfile = locate ("data", "kmplayer/intro.xml");
TQFile file (introfile); TQFile file (introfile);
@ -971,7 +971,7 @@ KDE_NO_EXPORT void IntroSource::stateElementChanged (KMPlayer::Node * node, KMPl
KDE_NO_EXPORT void IntroSource::deactivate () { KDE_NO_EXPORT void IntroSource::deactivate () {
deactivated = true; deactivated = true;
if (m_player->settings ()->autoresize) if (m_player->settings ()->autoresize)
m_app->connect(m_player, TQT_SIGNAL(sourceDimensionChanged()),m_app,TQT_SLOT(zoom100())); m_app->connect(m_player, TQ_SIGNAL(sourceDimensionChanged()),m_app,TQ_SLOT(zoom100()));
if (!finished && m_document) // user opens a source while introducing if (!finished && m_document) // user opens a source while introducing
m_document->reset (); m_document->reset ();
} }
@ -1238,7 +1238,7 @@ KDE_NO_EXPORT void KMPlayerApp::minimalMode (bool by_user) {
if (m_minimal_mode) { if (m_minimal_mode) {
readOptions (); readOptions ();
if (by_user) if (by_user)
disconnect (m_view->controlPanel ()->button (KMPlayer::ControlPanel::button_playlist), TQT_SIGNAL (clicked ()), this, TQT_SLOT (slotMinimalMode ())); disconnect (m_view->controlPanel ()->button (KMPlayer::ControlPanel::button_playlist), TQ_SIGNAL (clicked ()), this, TQ_SLOT (slotMinimalMode ()));
restoreFromConfig (); restoreFromConfig ();
} else { } else {
saveOptions (); saveOptions ();
@ -1246,7 +1246,7 @@ KDE_NO_EXPORT void KMPlayerApp::minimalMode (bool by_user) {
toolBar("mainToolBar")->hide(); toolBar("mainToolBar")->hide();
statusBar()->hide(); statusBar()->hide();
if (by_user) if (by_user)
connect (m_view->controlPanel ()->button (KMPlayer::ControlPanel::button_playlist), TQT_SIGNAL (clicked ()), this, TQT_SLOT (slotMinimalMode ())); connect (m_view->controlPanel ()->button (KMPlayer::ControlPanel::button_playlist), TQ_SIGNAL (clicked ()), this, TQ_SLOT (slotMinimalMode ()));
} }
m_view->viewArea ()->minimalMode (); m_view->viewArea ()->minimalMode ();
m_minimal_mode = !m_minimal_mode; m_minimal_mode = !m_minimal_mode;
@ -1327,7 +1327,7 @@ KDE_NO_EXPORT bool KMPlayerApp::queryClose () {
if (m_played_exit || m_player->settings ()->no_intro || kapp->sessionSaving() ) if (m_played_exit || m_player->settings ()->no_intro || kapp->sessionSaving() )
return true; return true;
if (m_auto_resize) if (m_auto_resize)
disconnect(m_player, TQT_SIGNAL(sourceDimensionChanged()),this,TQT_SLOT(zoom100())); disconnect(m_player, TQ_SIGNAL(sourceDimensionChanged()),this,TQ_SLOT(zoom100()));
m_played_exit = true; m_played_exit = true;
if (!m_minimal_mode) if (!m_minimal_mode)
minimalMode (false); minimalMode (false);
@ -1343,8 +1343,8 @@ KDE_NO_EXPORT bool KMPlayerApp::queryExit()
{ {
if (!m_minimal_mode) if (!m_minimal_mode)
saveOptions(); saveOptions();
disconnect (m_player->settings (), TQT_SIGNAL (configChanged ()), disconnect (m_player->settings (), TQ_SIGNAL (configChanged ()),
this, TQT_SLOT (configChanged ())); this, TQ_SLOT (configChanged ()));
m_player->settings ()->writeConfig (); m_player->settings ()->writeConfig ();
return true; return true;
} }
@ -1489,7 +1489,7 @@ KDE_NO_EXPORT void KMPlayerApp::slotViewMenuBar() {
slotStatusMsg (i18n ("Show Menubar with %1").arg(viewMenuBar->shortcutText())); slotStatusMsg (i18n ("Show Menubar with %1").arg(viewMenuBar->shortcutText()));
if (!m_showStatusbar) { if (!m_showStatusbar) {
statusBar()->show(); statusBar()->show();
TQTimer::singleShot (3000, statusBar(), TQT_SLOT (hide ())); TQTimer::singleShot (3000, statusBar(), TQ_SLOT (hide ()));
} }
} }
} }
@ -1668,12 +1668,12 @@ KDE_NO_EXPORT void KMPlayerApp::preparePlaylistMenu (KMPlayer::PlayListItem * it
pm->insertSeparator (); pm->insertSeparator ();
manip_node = item->node; manip_node = item->node;
if (ri->flags & KMPlayer::PlayListView::Deleteable) if (ri->flags & KMPlayer::PlayListView::Deleteable)
pm->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("edit-delete"), TDEIcon::Small, 0, true), i18n ("&Delete item"), this, TQT_SLOT (menuDeleteNode ())); pm->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("edit-delete"), TDEIcon::Small, 0, true), i18n ("&Delete item"), this, TQ_SLOT (menuDeleteNode ()));
if (ri->flags & KMPlayer::PlayListView::Moveable) { if (ri->flags & KMPlayer::PlayListView::Moveable) {
if (manip_node->previousSibling ()) if (manip_node->previousSibling ())
pm->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("go-up"), TDEIcon::Small, 0, true), i18n ("&Move up"), this, TQT_SLOT (menuMoveUpNode ())); pm->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("go-up"), TDEIcon::Small, 0, true), i18n ("&Move up"), this, TQ_SLOT (menuMoveUpNode ()));
if (manip_node->nextSibling ()) if (manip_node->nextSibling ())
pm->insertItem (TDEGlobal::iconLoader()->loadIconSet (TQString ("go-down"), TDEIcon::Small, 0, true), i18n ("Move &down"), this, TQT_SLOT (menuMoveDownNode ())); pm->insertItem (TDEGlobal::iconLoader()->loadIconSet (TQString ("go-down"), TDEIcon::Small, 0, true), i18n ("Move &down"), this, TQ_SLOT (menuMoveDownNode ()));
} }
} }
} }
@ -1712,9 +1712,9 @@ KDE_NO_EXPORT void KMPlayerApp::configChanged () {
m_systray = 0L; m_systray = 0L;
} }
if (m_player->settings ()->autoresize && !m_auto_resize) if (m_player->settings ()->autoresize && !m_auto_resize)
connect(m_player,TQT_SIGNAL(sourceDimensionChanged()),this,TQT_SLOT(zoom100())); connect(m_player,TQ_SIGNAL(sourceDimensionChanged()),this,TQ_SLOT(zoom100()));
else if (!m_player->settings ()->autoresize && m_auto_resize) else if (!m_player->settings ()->autoresize && m_auto_resize)
disconnect(m_player, TQT_SIGNAL(sourceDimensionChanged()),this,TQT_SLOT(zoom100())); disconnect(m_player, TQ_SIGNAL(sourceDimensionChanged()),this,TQ_SLOT(zoom100()));
m_auto_resize = m_player->settings ()->autoresize; m_auto_resize = m_player->settings ()->autoresize;
static_cast <KMPlayerTVSource *> (m_player->sources () ["tvsource"])->buildMenu (); static_cast <KMPlayerTVSource *> (m_player->sources () ["tvsource"])->buildMenu ();
} }
@ -1889,17 +1889,17 @@ KDE_NO_EXPORT void KMPlayerDVDSource::activate () {
if (!m_player->settings ()->mplayerpost090) { if (!m_player->settings ()->mplayerpost090) {
m_menu->insertItem (i18n ("Audio &Language"), m_dvdlanguagemenu); m_menu->insertItem (i18n ("Audio &Language"), m_dvdlanguagemenu);
m_menu->insertItem (i18n ("&SubTitles"), m_dvdsubtitlemenu); m_menu->insertItem (i18n ("&SubTitles"), m_dvdsubtitlemenu);
connect (m_dvdsubtitlemenu, TQT_SIGNAL (activated (int)), connect (m_dvdsubtitlemenu, TQ_SIGNAL (activated (int)),
this, TQT_SLOT (subtitleMenuClicked (int))); this, TQ_SLOT (subtitleMenuClicked (int)));
connect (m_dvdlanguagemenu, TQT_SIGNAL (activated (int)), connect (m_dvdlanguagemenu, TQ_SIGNAL (activated (int)),
this, TQT_SLOT (languageMenuClicked (int))); this, TQ_SLOT (languageMenuClicked (int)));
} }
connect (m_dvdtitlemenu, TQT_SIGNAL (activated (int)), connect (m_dvdtitlemenu, TQ_SIGNAL (activated (int)),
this, TQT_SLOT (titleMenuClicked (int))); this, TQ_SLOT (titleMenuClicked (int)));
connect (m_dvdchaptermenu, TQT_SIGNAL (activated (int)), connect (m_dvdchaptermenu, TQ_SIGNAL (activated (int)),
this, TQT_SLOT (chapterMenuClicked (int))); this, TQ_SLOT (chapterMenuClicked (int)));
if (m_start_play) if (m_start_play)
TQTimer::singleShot (0, m_player, TQT_SLOT (play ())); TQTimer::singleShot (0, m_player, TQ_SLOT (play ()));
} }
KDE_NO_EXPORT void KMPlayerDVDSource::setIdentified (bool b) { KDE_NO_EXPORT void KMPlayerDVDSource::setIdentified (bool b) {
@ -1930,15 +1930,15 @@ KDE_NO_EXPORT void KMPlayerDVDSource::deactivate () {
if (!m_player->settings ()->mplayerpost090) { if (!m_player->settings ()->mplayerpost090) {
m_menu->removeItemAt (m_menu->count () - 1); m_menu->removeItemAt (m_menu->count () - 1);
m_menu->removeItemAt (m_menu->count () - 1); m_menu->removeItemAt (m_menu->count () - 1);
disconnect (m_dvdsubtitlemenu, TQT_SIGNAL (activated (int)), disconnect (m_dvdsubtitlemenu, TQ_SIGNAL (activated (int)),
this, TQT_SLOT (subtitleMenuClicked (int))); this, TQ_SLOT (subtitleMenuClicked (int)));
disconnect (m_dvdlanguagemenu, TQT_SIGNAL (activated (int)), disconnect (m_dvdlanguagemenu, TQ_SIGNAL (activated (int)),
this, TQT_SLOT (languageMenuClicked (int))); this, TQ_SLOT (languageMenuClicked (int)));
} }
disconnect (m_dvdtitlemenu, TQT_SIGNAL (activated (int)), disconnect (m_dvdtitlemenu, TQ_SIGNAL (activated (int)),
this, TQT_SLOT (titleMenuClicked (int))); this, TQ_SLOT (titleMenuClicked (int)));
disconnect (m_dvdchaptermenu, TQT_SIGNAL (activated (int)), disconnect (m_dvdchaptermenu, TQ_SIGNAL (activated (int)),
this, TQT_SLOT (chapterMenuClicked (int))); this, TQ_SLOT (chapterMenuClicked (int)));
} }
} }
@ -1985,7 +1985,7 @@ KDE_NO_EXPORT void KMPlayerDVDSource::titleMenuClicked (int id) {
m_dvdchaptermenu->clear (); m_dvdchaptermenu->clear ();
m_dvdlanguagemenu->clear (); m_dvdlanguagemenu->clear ();
if (m_start_play) if (m_start_play)
TQTimer::singleShot (0, m_player, TQT_SLOT (play ())); TQTimer::singleShot (0, m_player, TQ_SLOT (play ()));
} }
} }
@ -1993,7 +1993,7 @@ KDE_NO_EXPORT void KMPlayerDVDSource::play () {
buildArguments (); buildArguments ();
if (m_start_play) { if (m_start_play) {
m_player->stop (); m_player->stop ();
TQTimer::singleShot (0, m_player, TQT_SLOT (play ())); TQTimer::singleShot (0, m_player, TQ_SLOT (play ()));
} }
} }
@ -2069,17 +2069,17 @@ KDE_NO_EXPORT void KMPlayerDVDNavSource::deactivate () {
KDE_NO_EXPORT void KMPlayerDVDNavSource::play () { KDE_NO_EXPORT void KMPlayerDVDNavSource::play () {
if (!m_menu->findItem (DVDNav_previous)) { if (!m_menu->findItem (DVDNav_previous)) {
m_menu->insertItem (i18n ("&Previous"), this, TQT_SLOT (navMenuClicked (int)), 0, DVDNav_previous); m_menu->insertItem (i18n ("&Previous"), this, TQ_SLOT (navMenuClicked (int)), 0, DVDNav_previous);
m_menu->insertItem (i18n ("&Next"), this, TQT_SLOT (navMenuClicked (int)), 0, DVDNav_next); m_menu->insertItem (i18n ("&Next"), this, TQ_SLOT (navMenuClicked (int)), 0, DVDNav_next);
m_menu->insertItem (i18n ("&Root"), this, TQT_SLOT (navMenuClicked (int)), 0, DVDNav_root); m_menu->insertItem (i18n ("&Root"), this, TQ_SLOT (navMenuClicked (int)), 0, DVDNav_root);
m_menu->insertItem (i18n ("&Up"), this, TQT_SLOT (navMenuClicked (int)), 0, DVDNav_up); m_menu->insertItem (i18n ("&Up"), this, TQ_SLOT (navMenuClicked (int)), 0, DVDNav_up);
} }
TQTimer::singleShot (0, m_player, TQT_SLOT (play ())); TQTimer::singleShot (0, m_player, TQ_SLOT (play ()));
connect (this, TQT_SIGNAL (stopPlaying ()), this, TQT_SLOT(finished ())); connect (this, TQ_SIGNAL (stopPlaying ()), this, TQ_SLOT(finished ()));
} }
KDE_NO_EXPORT void KMPlayerDVDNavSource::finished () { KDE_NO_EXPORT void KMPlayerDVDNavSource::finished () {
disconnect (this, TQT_SIGNAL (stopPlaying ()), this, TQT_SLOT(finished ())); disconnect (this, TQ_SIGNAL (stopPlaying ()), this, TQ_SLOT(finished ()));
m_menu->removeItem (DVDNav_previous); m_menu->removeItem (DVDNav_previous);
m_menu->removeItem (DVDNav_next); m_menu->removeItem (DVDNav_next);
m_menu->removeItem (DVDNav_root); m_menu->removeItem (DVDNav_root);
@ -2161,7 +2161,7 @@ KDE_NO_EXPORT void KMPlayerVCDSource::activate () {
setURL (KURL ("vcd://")); setURL (KURL ("vcd://"));
buildArguments (); buildArguments ();
if (m_start_play) if (m_start_play)
TQTimer::singleShot (0, m_player, TQT_SLOT (play ())); TQTimer::singleShot (0, m_player, TQ_SLOT (play ()));
} }
KDE_NO_EXPORT void KMPlayerVCDSource::deactivate () { KDE_NO_EXPORT void KMPlayerVCDSource::deactivate () {
@ -2262,7 +2262,7 @@ KDE_NO_EXPORT void KMPlayerAudioCDSource::activate () {
setURL (KURL ("cdda://")); setURL (KURL ("cdda://"));
buildArguments (); buildArguments ();
//if (m_start_play) //if (m_start_play)
TQTimer::singleShot (0, m_player, TQT_SLOT (play ())); TQTimer::singleShot (0, m_player, TQ_SLOT (play ()));
} }
KDE_NO_EXPORT void KMPlayerAudioCDSource::deactivate () { KDE_NO_EXPORT void KMPlayerAudioCDSource::deactivate () {
@ -2324,7 +2324,7 @@ KDE_NO_EXPORT void KMPlayerPipeSource::activate () {
m_recordcmd = m_options = TQString ("-"); // or m_url? m_recordcmd = m_options = TQString ("-"); // or m_url?
m_identified = true; m_identified = true;
reset (); reset ();
TQTimer::singleShot (0, m_player, TQT_SLOT (play ())); TQTimer::singleShot (0, m_player, TQ_SLOT (play ()));
m_app->slotStatusMsg (i18n ("Ready.")); m_app->slotStatusMsg (i18n ("Ready."));
} }

@ -233,24 +233,24 @@ KDE_NO_CDTOR_EXPORT KMPlayerPrefBroadcastFormatPage::KMPlayerPrefBroadcastFormat
TQFrame *profileframe = new TQFrame (this); TQFrame *profileframe = new TQFrame (this);
TQGridLayout *profileslayout = new TQGridLayout (profileframe, 5, 2, 2); TQGridLayout *profileslayout = new TQGridLayout (profileframe, 5, 2, 2);
profile = new TQLineEdit ("", profileframe); profile = new TQLineEdit ("", profileframe);
connect (profile, TQT_SIGNAL(textChanged (const TQString &)), connect (profile, TQ_SIGNAL(textChanged (const TQString &)),
this, TQT_SLOT (slotTextChanged (const TQString &))); this, TQ_SLOT (slotTextChanged (const TQString &)));
profilelist = new TQListBox (profileframe); profilelist = new TQListBox (profileframe);
for (int i = 0; i < (int) profiles.size (); i++) for (int i = 0; i < (int) profiles.size (); i++)
profilelist->insertItem (profiles[i]->name, i); profilelist->insertItem (profiles[i]->name, i);
connect (profilelist, TQT_SIGNAL (selected (int)), connect (profilelist, TQ_SIGNAL (selected (int)),
this, TQT_SLOT (slotIndexChanged (int))); this, TQ_SLOT (slotIndexChanged (int)));
connect (profilelist, TQT_SIGNAL (highlighted (int)), connect (profilelist, TQ_SIGNAL (highlighted (int)),
this, TQT_SLOT (slotItemHighlighted (int))); this, TQ_SLOT (slotItemHighlighted (int)));
load = new TQPushButton (i18n ("Load"), profileframe); load = new TQPushButton (i18n ("Load"), profileframe);
save = new TQPushButton (i18n ("Save"), profileframe); save = new TQPushButton (i18n ("Save"), profileframe);
del = new TQPushButton (i18n ("Delete"), profileframe); del = new TQPushButton (i18n ("Delete"), profileframe);
load->setEnabled (false); load->setEnabled (false);
save->setEnabled (false); save->setEnabled (false);
del->setEnabled (false); del->setEnabled (false);
connect (load, TQT_SIGNAL (clicked ()), this, TQT_SLOT (slotLoad ())); connect (load, TQ_SIGNAL (clicked ()), this, TQ_SLOT (slotLoad ()));
connect (save, TQT_SIGNAL (clicked ()), this, TQT_SLOT (slotSave ())); connect (save, TQ_SIGNAL (clicked ()), this, TQ_SLOT (slotSave ()));
connect (del, TQT_SIGNAL (clicked ()), this, TQT_SLOT (slotDelete ())); connect (del, TQ_SIGNAL (clicked ()), this, TQ_SLOT (slotDelete ()));
profileslayout->addWidget (profile, 0, 0); profileslayout->addWidget (profile, 0, 0);
profileslayout->setRowSpacing (4, 60); profileslayout->setRowSpacing (4, 60);
profileslayout->addMultiCellWidget (profilelist, 1, 4, 0, 0); profileslayout->addMultiCellWidget (profilelist, 1, 4, 0, 0);
@ -459,8 +459,8 @@ KDE_NO_EXPORT void KMPlayerBroadcastConfig::prefLocation (TQString & item, TQStr
TQFrame * KMPlayerBroadcastConfig::prefPage (TQWidget * parent) { TQFrame * KMPlayerBroadcastConfig::prefPage (TQWidget * parent) {
if (!m_configpage) { if (!m_configpage) {
m_configpage = new KMPlayerPrefBroadcastFormatPage (parent, ffserversettingprofiles); m_configpage = new KMPlayerPrefBroadcastFormatPage (parent, ffserversettingprofiles);
connect (m_configpage->startbutton, TQT_SIGNAL (clicked ()), this, TQT_SLOT (startServer ())); connect (m_configpage->startbutton, TQ_SIGNAL (clicked ()), this, TQ_SLOT (startServer ()));
connect (m_player, TQT_SIGNAL (sourceChanged (KMPlayer::Source *, KMPlayer::Source *)), this, TQT_SLOT (sourceChanged (KMPlayer::Source *,KMPlayer::Source *))); connect (m_player, TQ_SIGNAL (sourceChanged (KMPlayer::Source *, KMPlayer::Source *)), this, TQ_SLOT (sourceChanged (KMPlayer::Source *,KMPlayer::Source *)));
m_configpage->startbutton->setEnabled m_configpage->startbutton->setEnabled
(!m_player->source ()->videoDevice ().isEmpty ()); (!m_player->source ()->videoDevice ().isEmpty ());
} }
@ -488,8 +488,8 @@ KDE_NO_EXPORT void KMPlayerBroadcastConfig::startServer () {
m_configpage->setCursor (TQCursor (TQt::WaitCursor)); m_configpage->setCursor (TQCursor (TQt::WaitCursor));
m_ffserver_process = new TDEProcess; m_ffserver_process = new TDEProcess;
m_ffserver_process->setUseShell (true); m_ffserver_process->setUseShell (true);
connect (m_ffserver_process, TQT_SIGNAL (processExited (TDEProcess *)), connect (m_ffserver_process, TQ_SIGNAL (processExited (TDEProcess *)),
this, TQT_SLOT (processStopped (TDEProcess *))); this, TQ_SLOT (processStopped (TDEProcess *)));
TQString conffile = locateLocal ("data", "kmplayer/ffserver.conf"); TQString conffile = locateLocal ("data", "kmplayer/ffserver.conf");
const char * noaudio = m_player->source ()->audioDevice ().isEmpty () ? "NoAudio" : ""; const char * noaudio = m_player->source ()->audioDevice ().isEmpty () ? "NoAudio" : "";
FFServerSetting ffs; FFServerSetting ffs;
@ -512,15 +512,15 @@ KDE_NO_EXPORT void KMPlayerBroadcastConfig::startServer () {
*m_ffserver_process << "ffserver -f " << conffile; *m_ffserver_process << "ffserver -f " << conffile;
m_ffserver_out.truncate (0); m_ffserver_out.truncate (0);
connect (m_ffserver_process, connect (m_ffserver_process,
TQT_SIGNAL (receivedStderr (TDEProcess *, char *, int)), TQ_SIGNAL (receivedStderr (TDEProcess *, char *, int)),
this, TQT_SLOT (processOutput (TDEProcess *, char *, int))); this, TQ_SLOT (processOutput (TDEProcess *, char *, int)));
m_ffserver_process->start (TDEProcess::NotifyOnExit, TDEProcess::Stderr); m_ffserver_process->start (TDEProcess::NotifyOnExit, TDEProcess::Stderr);
if (m_ffserver_process->isRunning ()) { if (m_ffserver_process->isRunning ()) {
m_configpage->startbutton->setText (i18n ("Stop")); m_configpage->startbutton->setText (i18n ("Stop"));
m_configpage->serverled->setState (KLed::On); m_configpage->serverled->setState (KLed::On);
emit broadcastStarted (); emit broadcastStarted ();
} }
TQTimer::singleShot (500, this, TQT_SLOT (startFeed ())); TQTimer::singleShot (500, this, TQ_SLOT (startFeed ()));
} }
KDE_NO_EXPORT void KMPlayerBroadcastConfig::stopServer () { KDE_NO_EXPORT void KMPlayerBroadcastConfig::stopServer () {
@ -548,13 +548,13 @@ KDE_NO_EXPORT void KMPlayerBroadcastConfig::startFeed () {
KMessageBox::error (m_configpage, i18n ("Failed to start ffserver.\n") + m_ffserver_out, i18n ("Error")); KMessageBox::error (m_configpage, i18n ("Failed to start ffserver.\n") + m_ffserver_out, i18n ("Error"));
goto bail_out; goto bail_out;
} }
disconnect (m_ffserver_process, TQT_SIGNAL (receivedStderr (TDEProcess *, char *, int)), disconnect (m_ffserver_process, TQ_SIGNAL (receivedStderr (TDEProcess *, char *, int)),
this, TQT_SLOT (processOutput (TDEProcess *, char *, int))); this, TQ_SLOT (processOutput (TDEProcess *, char *, int)));
if (m_ffmpeg_process) if (m_ffmpeg_process)
m_ffmpeg_process->stop (); m_ffmpeg_process->stop ();
delete m_ffmpeg_process; delete m_ffmpeg_process;
m_ffmpeg_process = new KMPlayer::FFMpeg (m_player, m_player->settings ()); m_ffmpeg_process = new KMPlayer::FFMpeg (m_player, m_player->settings ());
connect (m_ffmpeg_process, TQT_SIGNAL (stateChange (KMPlayer::Process::State, KMPlayer::Process::State)), this, TQT_SLOT (stateChange (KMPlayer::Process::State, KMPlayer::Process::State))); connect (m_ffmpeg_process, TQ_SIGNAL (stateChange (KMPlayer::Process::State, KMPlayer::Process::State)), this, TQ_SLOT (stateChange (KMPlayer::Process::State, KMPlayer::Process::State)));
ffurl.sprintf ("http://localhost:%d/kmplayer.ffm", m_ffserverconfig->ffserverport); ffurl.sprintf ("http://localhost:%d/kmplayer.ffm", m_ffserverconfig->ffserverport);
m_ffmpeg_process->setURL (KURL(ffurl)); m_ffmpeg_process->setURL (KURL(ffurl));
if (!m_ffmpeg_process->play (m_player->source (), KMPlayer::NodePtr())) { if (!m_ffmpeg_process->play (m_player->source (), KMPlayer::NodePtr())) {
@ -582,8 +582,8 @@ KDE_NO_EXPORT void KMPlayerBroadcastConfig::stateChange (KMPlayer::Process::Stat
kdDebug () << "ffmpeg process stopped " << m_endserver << endl; kdDebug () << "ffmpeg process stopped " << m_endserver << endl;
if (m_endserver && !stopProcess (m_ffserver_process)) { if (m_endserver && !stopProcess (m_ffserver_process)) {
disconnect (m_ffserver_process, disconnect (m_ffserver_process,
TQT_SIGNAL (receivedStderr (TDEProcess *, char *, int)), TQ_SIGNAL (receivedStderr (TDEProcess *, char *, int)),
this, TQT_SLOT (processOutput (TDEProcess *, char *, int))); this, TQ_SLOT (processOutput (TDEProcess *, char *, int)));
KMessageBox::error (m_configpage, i18n ("Failed to end ffserver process."), i18n ("Error")); KMessageBox::error (m_configpage, i18n ("Failed to end ffserver process."), i18n ("Error"));
processStopped (0L); processStopped (0L);
} }

@ -365,13 +365,13 @@ KDE_NO_EXPORT bool Settings::createDialog () {
if (p->supports ("urlsource")) if (p->supports ("urlsource"))
configdialog->m_SourcePageURL->backend->insertItem (p->menuName ().remove (TQChar ('&')), id++); configdialog->m_SourcePageURL->backend->insertItem (p->menuName ().remove (TQChar ('&')), id++);
} }
connect (configdialog, TQT_SIGNAL (okClicked ()), connect (configdialog, TQ_SIGNAL (okClicked ()),
this, TQT_SLOT (okPressed ())); this, TQ_SLOT (okPressed ()));
connect (configdialog, TQT_SIGNAL (applyClicked ()), connect (configdialog, TQ_SIGNAL (applyClicked ()),
this, TQT_SLOT (okPressed ())); this, TQ_SLOT (okPressed ()));
if (TDEApplication::kApplication()) if (TDEApplication::kApplication())
connect (configdialog, TQT_SIGNAL (helpClicked ()), connect (configdialog, TQ_SIGNAL (helpClicked ()),
this, TQT_SLOT (getHelp ())); this, TQ_SLOT (getHelp ()));
return true; return true;
} }

@ -423,21 +423,21 @@ KDE_NO_CDTOR_EXPORT ControlPanel::ControlPanel(TQWidget * parent, View * view)
m_popupMenu->insertSeparator (); m_popupMenu->insertSeparator ();
m_popupMenu->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("configure"), TDEIcon::Small, 0, true), i18n ("&Configure KMPlayer..."), menu_config); m_popupMenu->insertItem (TDEGlobal::iconLoader ()->loadIconSet (TQString ("configure"), TDEIcon::Small, 0, true), i18n ("&Configure KMPlayer..."), menu_config);
setAutoControls (true); setAutoControls (true);
connect (m_buttons [button_config], TQT_SIGNAL (clicked ()), connect (m_buttons [button_config], TQ_SIGNAL (clicked ()),
this, TQT_SLOT (buttonClicked ())); this, TQ_SLOT (buttonClicked ()));
connect (m_buttons [button_language], TQT_SIGNAL (clicked ()), connect (m_buttons [button_language], TQ_SIGNAL (clicked ()),
this, TQT_SLOT (buttonClicked ())); this, TQ_SLOT (buttonClicked ()));
connect (m_buttons [button_config], TQT_SIGNAL (mouseEntered ()), connect (m_buttons [button_config], TQ_SIGNAL (mouseEntered ()),
this, TQT_SLOT (buttonMouseEntered ())); this, TQ_SLOT (buttonMouseEntered ()));
connect (m_buttons [button_language], TQT_SIGNAL (mouseEntered ()), connect (m_buttons [button_language], TQ_SIGNAL (mouseEntered ()),
this, TQT_SLOT (buttonMouseEntered ())); this, TQ_SLOT (buttonMouseEntered ()));
connect (m_popupMenu, TQT_SIGNAL (mouseLeft ()), this, TQT_SLOT (menuMouseLeft ())); connect (m_popupMenu, TQ_SIGNAL (mouseLeft ()), this, TQ_SLOT (menuMouseLeft ()));
connect (m_playerMenu, TQT_SIGNAL (mouseLeft ()), this, TQT_SLOT(menuMouseLeft ())); connect (m_playerMenu, TQ_SIGNAL (mouseLeft ()), this, TQ_SLOT(menuMouseLeft ()));
connect (m_zoomMenu, TQT_SIGNAL (mouseLeft ()), this, TQT_SLOT (menuMouseLeft ())); connect (m_zoomMenu, TQ_SIGNAL (mouseLeft ()), this, TQ_SLOT (menuMouseLeft ()));
connect (m_colorMenu, TQT_SIGNAL (mouseLeft ()), this, TQT_SLOT (menuMouseLeft ())); connect (m_colorMenu, TQ_SIGNAL (mouseLeft ()), this, TQ_SLOT (menuMouseLeft ()));
connect (m_languageMenu, TQT_SIGNAL(mouseLeft ()), this, TQT_SLOT(menuMouseLeft())); connect (m_languageMenu, TQ_SIGNAL(mouseLeft ()), this, TQ_SLOT(menuMouseLeft()));
connect (m_subtitleMenu, TQT_SIGNAL(mouseLeft ()), this, TQT_SLOT(menuMouseLeft())); connect (m_subtitleMenu, TQ_SIGNAL(mouseLeft ()), this, TQ_SLOT(menuMouseLeft()));
connect (m_audioMenu, TQT_SIGNAL (mouseLeft ()), this, TQT_SLOT (menuMouseLeft ())); connect (m_audioMenu, TQ_SIGNAL (mouseLeft ()), this, TQ_SLOT (menuMouseLeft ()));
} }
KDE_NO_EXPORT void ControlPanel::setPalette (const TQPalette & pal) { KDE_NO_EXPORT void ControlPanel::setPalette (const TQPalette & pal) {

@ -172,14 +172,14 @@ void PartBase::init (TDEActionCollection * action_collection) {
#ifdef HAVE_NSPR #ifdef HAVE_NSPR
m_players ["npp"] = new NpPlayer (this, m_settings, m_service); m_players ["npp"] = new NpPlayer (this, m_settings, m_service);
#endif #endif
connect(m_settings, TQT_SIGNAL(configChanged()), this, TQT_SLOT(settingsChanged())); connect(m_settings, TQ_SIGNAL(configChanged()), this, TQ_SLOT(settingsChanged()));
m_settings->readConfig (); m_settings->readConfig ();
m_settings->applyColorSetting (false); m_settings->applyColorSetting (false);
m_bookmark_menu = new KBookmarkMenu (m_bookmark_manager, m_bookmark_owner, m_view->controlPanel ()->bookmarkMenu (), action_collection, true, true); m_bookmark_menu = new KBookmarkMenu (m_bookmark_manager, m_bookmark_owner, m_view->controlPanel ()->bookmarkMenu (), action_collection, true, true);
connect (m_view, TQT_SIGNAL (urlDropped (const KURL::List &)), this, TQT_SLOT (openURL (const KURL::List &))); connect (m_view, TQ_SIGNAL (urlDropped (const KURL::List &)), this, TQ_SLOT (openURL (const KURL::List &)));
connectPlaylist (m_view->playList ()); connectPlaylist (m_view->playList ());
connectInfoPanel (m_view->infoPanel ()); connectInfoPanel (m_view->infoPanel ());
new TDEAction (i18n ("Edit playlist &item"), 0, 0, m_view->playList (), TQT_SLOT (editCurrent ()), action_collection, "edit_playlist_item"); new TDEAction (i18n ("Edit playlist &item"), 0, 0, m_view->playList (), TQ_SLOT (editCurrent ()), action_collection, "edit_playlist_item");
} }
void PartBase::connectPanel (ControlPanel * panel) { void PartBase::connectPanel (ControlPanel * panel) {
@ -188,58 +188,58 @@ void PartBase::connectPanel (ControlPanel * panel) {
panel->hueSlider ()->setValue (m_settings->hue); panel->hueSlider ()->setValue (m_settings->hue);
panel->saturationSlider ()->setValue (m_settings->saturation); panel->saturationSlider ()->setValue (m_settings->saturation);
panel->volumeBar ()->setValue (m_settings->volume); panel->volumeBar ()->setValue (m_settings->volume);
connect (panel->button (ControlPanel::button_playlist), TQT_SIGNAL (clicked ()), this, TQT_SLOT (showPlayListWindow ())); connect (panel->button (ControlPanel::button_playlist), TQ_SIGNAL (clicked ()), this, TQ_SLOT (showPlayListWindow ()));
connect (panel->button (ControlPanel::button_back), TQT_SIGNAL (clicked ()), this, TQT_SLOT (back ())); connect (panel->button (ControlPanel::button_back), TQ_SIGNAL (clicked ()), this, TQ_SLOT (back ()));
connect (panel->button (ControlPanel::button_play), TQT_SIGNAL (clicked ()), this, TQT_SLOT (play ())); connect (panel->button (ControlPanel::button_play), TQ_SIGNAL (clicked ()), this, TQ_SLOT (play ()));
connect (panel->button (ControlPanel::button_forward), TQT_SIGNAL (clicked ()), this, TQT_SLOT (forward ())); connect (panel->button (ControlPanel::button_forward), TQ_SIGNAL (clicked ()), this, TQ_SLOT (forward ()));
connect (panel->button (ControlPanel::button_pause), TQT_SIGNAL (clicked ()), this, TQT_SLOT (pause ())); connect (panel->button (ControlPanel::button_pause), TQ_SIGNAL (clicked ()), this, TQ_SLOT (pause ()));
connect (panel->button (ControlPanel::button_stop), TQT_SIGNAL (clicked ()), this, TQT_SLOT (stop ())); connect (panel->button (ControlPanel::button_stop), TQ_SIGNAL (clicked ()), this, TQ_SLOT (stop ()));
connect (panel->button (ControlPanel::button_record), TQT_SIGNAL (clicked()), this, TQT_SLOT (record())); connect (panel->button (ControlPanel::button_record), TQ_SIGNAL (clicked()), this, TQ_SLOT (record()));
connect (panel->volumeBar (), TQT_SIGNAL (volumeChanged (int)), this, TQT_SLOT (volumeChanged (int))); connect (panel->volumeBar (), TQ_SIGNAL (volumeChanged (int)), this, TQ_SLOT (volumeChanged (int)));
connect (panel->positionSlider (), TQT_SIGNAL (valueChanged (int)), this, TQT_SLOT (positionValueChanged (int))); connect (panel->positionSlider (), TQ_SIGNAL (valueChanged (int)), this, TQ_SLOT (positionValueChanged (int)));
connect (panel->positionSlider (), TQT_SIGNAL (sliderPressed()), this, TQT_SLOT (posSliderPressed())); connect (panel->positionSlider (), TQ_SIGNAL (sliderPressed()), this, TQ_SLOT (posSliderPressed()));
connect (panel->positionSlider (), TQT_SIGNAL (sliderReleased()), this, TQT_SLOT (posSliderReleased())); connect (panel->positionSlider (), TQ_SIGNAL (sliderReleased()), this, TQ_SLOT (posSliderReleased()));
connect (this, TQT_SIGNAL (positioned (int, int)), panel, TQT_SLOT (setPlayingProgress (int, int))); connect (this, TQ_SIGNAL (positioned (int, int)), panel, TQ_SLOT (setPlayingProgress (int, int)));
connect (this, TQT_SIGNAL (loading(int)), panel, TQT_SLOT(setLoadingProgress(int))); connect (this, TQ_SIGNAL (loading(int)), panel, TQ_SLOT(setLoadingProgress(int)));
connect (panel->contrastSlider (), TQT_SIGNAL (valueChanged(int)), this, TQT_SLOT (contrastValueChanged(int))); connect (panel->contrastSlider (), TQ_SIGNAL (valueChanged(int)), this, TQ_SLOT (contrastValueChanged(int)));
connect (panel->brightnessSlider (), TQT_SIGNAL (valueChanged(int)), this, TQT_SLOT (brightnessValueChanged(int))); connect (panel->brightnessSlider (), TQ_SIGNAL (valueChanged(int)), this, TQ_SLOT (brightnessValueChanged(int)));
connect (panel->hueSlider (), TQT_SIGNAL (valueChanged(int)), this, TQT_SLOT (hueValueChanged(int))); connect (panel->hueSlider (), TQ_SIGNAL (valueChanged(int)), this, TQ_SLOT (hueValueChanged(int)));
connect (panel->saturationSlider (), TQT_SIGNAL (valueChanged(int)), this, TQT_SLOT (saturationValueChanged(int))); connect (panel->saturationSlider (), TQ_SIGNAL (valueChanged(int)), this, TQ_SLOT (saturationValueChanged(int)));
connect (this, TQT_SIGNAL (languagesUpdated(const TQStringList &, const TQStringList &)), panel, TQT_SLOT (setLanguages (const TQStringList &, const TQStringList &))); connect (this, TQ_SIGNAL (languagesUpdated(const TQStringList &, const TQStringList &)), panel, TQ_SLOT (setLanguages (const TQStringList &, const TQStringList &)));
connect (panel->audioMenu (), TQT_SIGNAL (activated (int)), this, TQT_SLOT (audioSelected (int))); connect (panel->audioMenu (), TQ_SIGNAL (activated (int)), this, TQ_SLOT (audioSelected (int)));
connect (panel->subtitleMenu (), TQT_SIGNAL (activated (int)), this, TQT_SLOT (subtitleSelected (int))); connect (panel->subtitleMenu (), TQ_SIGNAL (activated (int)), this, TQ_SLOT (subtitleSelected (int)));
connect (this, TQT_SIGNAL (audioIsSelected (int)), panel, TQT_SLOT (selectAudioLanguage (int))); connect (this, TQ_SIGNAL (audioIsSelected (int)), panel, TQ_SLOT (selectAudioLanguage (int)));
connect (this, TQT_SIGNAL (subtitleIsSelected (int)), panel, TQT_SLOT (selectSubtitle (int))); connect (this, TQ_SIGNAL (subtitleIsSelected (int)), panel, TQ_SLOT (selectSubtitle (int)));
panel->popupMenu()->connectItem (ControlPanel::menu_fullscreen, this, TQT_SLOT (fullScreen ())); panel->popupMenu()->connectItem (ControlPanel::menu_fullscreen, this, TQ_SLOT (fullScreen ()));
panel->popupMenu ()->connectItem (ControlPanel::menu_config, panel->popupMenu ()->connectItem (ControlPanel::menu_config,
this, TQT_SLOT (showConfigDialog ())); this, TQ_SLOT (showConfigDialog ()));
panel->popupMenu ()->connectItem (ControlPanel::menu_video, panel->popupMenu ()->connectItem (ControlPanel::menu_video,
m_view, TQT_SLOT(toggleVideoConsoleWindow())); m_view, TQ_SLOT(toggleVideoConsoleWindow()));
panel->popupMenu ()->connectItem (ControlPanel::menu_playlist, panel->popupMenu ()->connectItem (ControlPanel::menu_playlist,
m_view, TQT_SLOT (toggleShowPlaylist ())); m_view, TQ_SLOT (toggleShowPlaylist ()));
panel->popupMenu ()->connectItem (ControlPanel::menu_minimal, panel->popupMenu ()->connectItem (ControlPanel::menu_minimal,
this, TQT_SLOT (minimalMode ())); this, TQ_SLOT (minimalMode ()));
connect (this, TQT_SIGNAL (statusUpdated (const TQString &)), connect (this, TQ_SIGNAL (statusUpdated (const TQString &)),
panel->view (), TQT_SLOT (setStatusMessage (const TQString &))); panel->view (), TQ_SLOT (setStatusMessage (const TQString &)));
//connect (panel (), TQT_SIGNAL (clicked ()), m_settings, TQT_SLOT (show ())); //connect (panel (), TQ_SIGNAL (clicked ()), m_settings, TQ_SLOT (show ()));
} }
void PartBase::connectPlaylist (PlayListView * playlist) { void PartBase::connectPlaylist (PlayListView * playlist) {
connect (playlist, TQT_SIGNAL (addBookMark (const TQString &, const TQString &)), connect (playlist, TQ_SIGNAL (addBookMark (const TQString &, const TQString &)),
this, TQT_SLOT (addBookMark (const TQString &, const TQString &))); this, TQ_SLOT (addBookMark (const TQString &, const TQString &)));
connect (playlist, TQT_SIGNAL (executed (TQListViewItem *)), connect (playlist, TQ_SIGNAL (executed (TQListViewItem *)),
this, TQT_SLOT (playListItemExecuted (TQListViewItem *))); this, TQ_SLOT (playListItemExecuted (TQListViewItem *)));
connect (playlist, TQT_SIGNAL (clicked (TQListViewItem *)), connect (playlist, TQ_SIGNAL (clicked (TQListViewItem *)),
this, TQT_SLOT (playListItemClicked (TQListViewItem *))); this, TQ_SLOT (playListItemClicked (TQListViewItem *)));
connect (this, TQT_SIGNAL (treeChanged (int, NodePtr, NodePtr, bool, bool)), connect (this, TQ_SIGNAL (treeChanged (int, NodePtr, NodePtr, bool, bool)),
playlist, TQT_SLOT (updateTree (int, NodePtr, NodePtr, bool, bool))); playlist, TQ_SLOT (updateTree (int, NodePtr, NodePtr, bool, bool)));
connect (this, TQT_SIGNAL (treeUpdated ()), connect (this, TQ_SIGNAL (treeUpdated ()),
playlist, TQT_SLOT (triggerUpdate ())); playlist, TQ_SLOT (triggerUpdate ()));
} }
void PartBase::connectInfoPanel (InfoWindow * infopanel) { void PartBase::connectInfoPanel (InfoWindow * infopanel) {
connect (this, TQT_SIGNAL (infoUpdated (const TQString &)), connect (this, TQ_SIGNAL (infoUpdated (const TQString &)),
infopanel->view (), TQT_SLOT (setInfoMessage (const TQString &))); infopanel->view (), TQ_SLOT (setInfoMessage (const TQString &)));
} }
PartBase::~PartBase () { PartBase::~PartBase () {
@ -398,7 +398,7 @@ void PartBase::updatePlayerMenu (ControlPanel * panel) {
for (ProcessMap::const_iterator i = m_players.begin(); i != e; ++i) { for (ProcessMap::const_iterator i = m_players.begin(); i != e; ++i) {
Process * p = i.data (); Process * p = i.data ();
if (p->supports (m_source->name ())) { if (p->supports (m_source->name ())) {
menu->insertItem (p->menuName (), this, TQT_SLOT (slotPlayerMenu (int)), 0, id++); menu->insertItem (p->menuName (), this, TQ_SLOT (slotPlayerMenu (int)), 0, id++);
if (i.data() == m_process) if (i.data() == m_process)
menu->setItemChecked (id-1, true); menu->setItemChecked (id-1, true);
} }
@ -407,20 +407,20 @@ void PartBase::updatePlayerMenu (ControlPanel * panel) {
void PartBase::connectSource (Source * old_source, Source * source) { void PartBase::connectSource (Source * old_source, Source * source) {
if (old_source) { if (old_source) {
disconnect (old_source, TQT_SIGNAL(endOfPlayItems ()), this, TQT_SLOT(stop ())); disconnect (old_source, TQ_SIGNAL(endOfPlayItems ()), this, TQ_SLOT(stop ()));
disconnect (old_source, TQT_SIGNAL (dimensionsChanged ()), disconnect (old_source, TQ_SIGNAL (dimensionsChanged ()),
this, TQT_SLOT (sourceHasChangedAspects ())); this, TQ_SLOT (sourceHasChangedAspects ()));
disconnect (old_source, TQT_SIGNAL (startPlaying ()), disconnect (old_source, TQ_SIGNAL (startPlaying ()),
this, TQT_SLOT (playingStarted ())); this, TQ_SLOT (playingStarted ()));
disconnect (old_source, TQT_SIGNAL (stopPlaying ()), disconnect (old_source, TQ_SIGNAL (stopPlaying ()),
this, TQT_SLOT (playingStopped ())); this, TQ_SLOT (playingStopped ()));
} }
if (source) { if (source) {
connect (source, TQT_SIGNAL (endOfPlayItems ()), this, TQT_SLOT (stop ())); connect (source, TQ_SIGNAL (endOfPlayItems ()), this, TQ_SLOT (stop ()));
connect (source, TQT_SIGNAL (dimensionsChanged ()), connect (source, TQ_SIGNAL (dimensionsChanged ()),
this, TQT_SLOT (sourceHasChangedAspects ())); this, TQ_SLOT (sourceHasChangedAspects ()));
connect (source, TQT_SIGNAL (startPlaying()), this, TQT_SLOT(playingStarted())); connect (source, TQ_SIGNAL (startPlaying()), this, TQ_SLOT(playingStarted()));
connect (source, TQT_SIGNAL (stopPlaying ()), this, TQT_SLOT(playingStopped())); connect (source, TQ_SIGNAL (stopPlaying ()), this, TQ_SLOT(playingStopped()));
} }
} }
@ -433,12 +433,12 @@ void PartBase::setSource (Source * _source) {
m_view->reset (); m_view->reset ();
emit infoUpdated (TQString ()); emit infoUpdated (TQString ());
} }
disconnect (m_source, TQT_SIGNAL (startRecording ()), disconnect (m_source, TQ_SIGNAL (startRecording ()),
this, TQT_SLOT (recordingStarted ())); this, TQ_SLOT (recordingStarted ()));
disconnect (this, TQT_SIGNAL (audioIsSelected (int)), disconnect (this, TQ_SIGNAL (audioIsSelected (int)),
m_source, TQT_SLOT (setAudioLang (int))); m_source, TQ_SLOT (setAudioLang (int)));
disconnect (this, TQT_SIGNAL (subtitleIsSelected (int)), disconnect (this, TQ_SIGNAL (subtitleIsSelected (int)),
m_source, TQT_SLOT (setSubtitle (int))); m_source, TQ_SLOT (setSubtitle (int)));
} }
if (m_view) { if (m_view) {
if (m_auto_controls) if (m_auto_controls)
@ -452,18 +452,18 @@ void PartBase::setSource (Source * _source) {
m_source = _source; m_source = _source;
connectSource (old_source, m_source); connectSource (old_source, m_source);
m_process->setSource (m_source); m_process->setSource (m_source);
connect (m_source, TQT_SIGNAL(startRecording()), this,TQT_SLOT(recordingStarted())); connect (m_source, TQ_SIGNAL(startRecording()), this,TQ_SLOT(recordingStarted()));
connect (this, TQT_SIGNAL (audioIsSelected (int)), connect (this, TQ_SIGNAL (audioIsSelected (int)),
m_source, TQT_SLOT (setAudioLang (int))); m_source, TQ_SLOT (setAudioLang (int)));
connect (this, TQT_SIGNAL (subtitleIsSelected (int)), connect (this, TQ_SIGNAL (subtitleIsSelected (int)),
m_source, TQT_SLOT (setSubtitle (int))); m_source, TQ_SLOT (setSubtitle (int)));
m_source->init (); m_source->init ();
m_source->setIdentified (false); m_source->setIdentified (false);
if (m_view && m_view->viewer ()) { if (m_view && m_view->viewer ()) {
updatePlayerMenu (m_view->controlPanel ()); updatePlayerMenu (m_view->controlPanel ());
m_view->viewer ()->setAspect (0.0); m_view->viewer ()->setAspect (0.0);
} }
if (m_source) TQTimer::singleShot (0, m_source, TQT_SLOT (activate ())); if (m_source) TQTimer::singleShot (0, m_source, TQ_SLOT (activate ()));
updateTree (true, true); updateTree (true, true);
emit sourceChanged (old_source, m_source); emit sourceChanged (old_source, m_source);
} }
@ -1104,7 +1104,7 @@ bool Source::requestPlayURL (NodePtr mrl) {
else else
m_back_request = mrl; m_back_request = mrl;
m_player->updateTree (); m_player->updateTree ();
TQTimer::singleShot (0, this, TQT_SLOT (playCurrent ())); TQTimer::singleShot (0, this, TQ_SLOT (playCurrent ()));
} }
m_player->setProcess (mrl->mrl ()); m_player->setProcess (mrl->mrl ());
return true; return true;
@ -1144,7 +1144,7 @@ void Source::stateElementChanged (Node * elm, Node::State os, Node::State ns) {
//a SMIL movies stopped by SMIL events rather than movie just ending //a SMIL movies stopped by SMIL events rather than movie just ending
m_player->process ()->stop (); m_player->process ()->stop ();
if (m_player->view ()) // move away the video widget if (m_player->view ()) // move away the video widget
TQTimer::singleShot (0, m_player->view (), TQT_SLOT (updateLayout ())); TQTimer::singleShot (0, m_player->view (), TQ_SLOT (updateLayout ()));
} else if ((ns == Node::state_deferred || } else if ((ns == Node::state_deferred ||
(os == Node::state_deferred && ns > Node::state_deferred)) && (os == Node::state_deferred && ns > Node::state_deferred)) &&
elm == m_document) { elm == m_document) {
@ -1204,7 +1204,7 @@ void Source::insertURL (NodePtr node, const TQString & mrl, const TQString & tit
void Source::play () { void Source::play () {
m_player->updateTree (); m_player->updateTree ();
TQTimer::singleShot (0, m_player, TQT_SLOT (play ())); TQTimer::singleShot (0, m_player, TQ_SLOT (play ()));
//printTree (m_document); //printTree (m_document);
} }
@ -1229,7 +1229,7 @@ void Source::backward () {
else if (m_current) { else if (m_current) {
m_document->reset (); m_document->reset ();
m_current = e; m_current = e;
TQTimer::singleShot (0, this, TQT_SLOT (playCurrent ())); TQTimer::singleShot (0, this, TQ_SLOT (playCurrent ()));
} }
return; return;
} }
@ -1260,7 +1260,7 @@ void Source::jump (NodePtr e) {
if (m_current) if (m_current)
m_document->reset (); m_document->reset ();
m_current = e; m_current = e;
TQTimer::singleShot (0, this, TQT_SLOT (playCurrent ())); TQTimer::singleShot (0, this, TQ_SLOT (playCurrent ()));
} }
} else } else
m_player->updateTree (); m_player->updateTree ();
@ -1450,7 +1450,7 @@ void Source::stateChange(Process *p, Process::State olds, Process::State news) {
(!mrl || mrl->view_mode != Mrl::WindowMode)) (!mrl || mrl->view_mode != Mrl::WindowMode))
static_cast<View*>(m_player->view())->viewArea()->repaint(); static_cast<View*>(m_player->view())->viewArea()->repaint();
} else } else
TQTimer::singleShot (0, this, TQT_SLOT (playCurrent ())); TQTimer::singleShot (0, this, TQ_SLOT (playCurrent ()));
} else if (news == Process::Buffering) { } else if (news == Process::Buffering) {
if (p->mrl ()->mrl ()->view_mode != Mrl::SingleMode) if (p->mrl ()->mrl ()->view_mode != Mrl::SingleMode)
p->mrl ()->defer (); // paused the SMIL p->mrl ()->defer (); // paused the SMIL
@ -1853,14 +1853,14 @@ bool URLSource::resolveURL (NodePtr m) {
job->addMetaData ("PropagateHttpHeader", "true"); job->addMetaData ("PropagateHttpHeader", "true");
job->addMetaData ("errorPage", "false"); job->addMetaData ("errorPage", "false");
m_resolve_info = new ResolveInfo (m, job, m_resolve_info); m_resolve_info = new ResolveInfo (m, job, m_resolve_info);
connect (m_resolve_info->job, TQT_SIGNAL(data(TDEIO::Job*,const TQByteArray&)), connect (m_resolve_info->job, TQ_SIGNAL(data(TDEIO::Job*,const TQByteArray&)),
this, TQT_SLOT (kioData (TDEIO::Job *, const TQByteArray &))); this, TQ_SLOT (kioData (TDEIO::Job *, const TQByteArray &)));
//connect( m_job, TQT_SIGNAL(connected(TDEIO::Job*)), //connect( m_job, TQ_SIGNAL(connected(TDEIO::Job*)),
// this, TQT_SLOT(slotConnected(TDEIO::Job*))); // this, TQ_SLOT(slotConnected(TDEIO::Job*)));
connect(m_resolve_info->job, TQT_SIGNAL(mimetype(TDEIO::Job*,const TQString&)), connect(m_resolve_info->job, TQ_SIGNAL(mimetype(TDEIO::Job*,const TQString&)),
this, TQT_SLOT (kioMimetype (TDEIO::Job *, const TQString &))); this, TQ_SLOT (kioMimetype (TDEIO::Job *, const TQString &)));
connect (m_resolve_info->job, TQT_SIGNAL (result (TDEIO::Job *)), connect (m_resolve_info->job, TQ_SIGNAL (result (TDEIO::Job *)),
this, TQT_SLOT (kioResult (TDEIO::Job *))); this, TQ_SLOT (kioResult (TDEIO::Job *)));
static_cast <View *> (m_player->view ())->controlPanel ()->setPlaying (true); static_cast <View *> (m_player->view ())->controlPanel ()->setPlaying (true);
m_player->updateStatus (i18n ("Connecting")); m_player->updateStatus (i18n ("Connecting"));
m_player->setLoaded (0); m_player->setLoaded (0);
@ -1945,16 +1945,16 @@ KDE_NO_EXPORT bool RemoteObjectPrivate::download (const TQString & str) {
if (memory_cache->preserve (str)) { if (memory_cache->preserve (str)) {
//kdDebug () << "downloading " << str << endl; //kdDebug () << "downloading " << str << endl;
job = TDEIO::get (kurl, false, false); job = TDEIO::get (kurl, false, false);
connect (job, TQT_SIGNAL (data (TDEIO::Job *, const TQByteArray &)), connect (job, TQ_SIGNAL (data (TDEIO::Job *, const TQByteArray &)),
this, TQT_SLOT (slotData (TDEIO::Job *, const TQByteArray &))); this, TQ_SLOT (slotData (TDEIO::Job *, const TQByteArray &)));
connect (job, TQT_SIGNAL (result (TDEIO::Job *)), connect (job, TQ_SIGNAL (result (TDEIO::Job *)),
this, TQT_SLOT (slotResult (TDEIO::Job *))); this, TQ_SLOT (slotResult (TDEIO::Job *)));
connect (job, TQT_SIGNAL (mimetype (TDEIO::Job *, const TQString &)), connect (job, TQ_SIGNAL (mimetype (TDEIO::Job *, const TQString &)),
this, TQT_SLOT (slotMimetype (TDEIO::Job *, const TQString &))); this, TQ_SLOT (slotMimetype (TDEIO::Job *, const TQString &)));
} else { } else {
//kdDebug () << "download preserved " << str << endl; //kdDebug () << "download preserved " << str << endl;
connect (memory_cache, TQT_SIGNAL (preserveRemoved (const TQString &)), connect (memory_cache, TQ_SIGNAL (preserveRemoved (const TQString &)),
this, TQT_SLOT (cachePreserveRemoved (const TQString &))); this, TQ_SLOT (cachePreserveRemoved (const TQString &)));
preserve_wait = true; preserve_wait = true;
} }
return false; return false;
@ -1966,8 +1966,8 @@ KDE_NO_EXPORT void RemoteObjectPrivate::clear () {
job = 0L; job = 0L;
memory_cache->unpreserve (url); memory_cache->unpreserve (url);
} else if (preserve_wait) { } else if (preserve_wait) {
disconnect (memory_cache, TQT_SIGNAL (preserveRemoved (const TQString &)), disconnect (memory_cache, TQ_SIGNAL (preserveRemoved (const TQString &)),
this, TQT_SLOT (cachePreserveRemoved (const TQString &))); this, TQ_SLOT (cachePreserveRemoved (const TQString &)));
preserve_wait = false; preserve_wait = false;
} }
} }
@ -1985,8 +1985,8 @@ KDE_NO_EXPORT
void RemoteObjectPrivate::cachePreserveRemoved (const TQString & str) { void RemoteObjectPrivate::cachePreserveRemoved (const TQString & str) {
if (str == url && !memory_cache->isPreserved (str)) { if (str == url && !memory_cache->isPreserved (str)) {
preserve_wait = false; preserve_wait = false;
disconnect (memory_cache, TQT_SIGNAL (preserveRemoved (const TQString &)), disconnect (memory_cache, TQ_SIGNAL (preserveRemoved (const TQString &)),
this, TQT_SLOT (cachePreserveRemoved (const TQString &))); this, TQ_SLOT (cachePreserveRemoved (const TQString &)));
download (str); download (str);
} }
} }

@ -191,7 +191,7 @@ void Process::setState (State newstate) {
m_old_state = m_state; m_old_state = m_state;
m_state = newstate; m_state = newstate;
if (need_timer && m_source) if (need_timer && m_source)
TQTimer::singleShot (0, this, TQT_SLOT (rescheduledStateChanged ())); TQTimer::singleShot (0, this, TQ_SLOT (rescheduledStateChanged ()));
} }
} }
@ -213,7 +213,7 @@ bool Process::play (Source * src, NodePtr _mrl) {
return deMediafiedPlay (); return deMediafiedPlay ();
m_url = url; m_url = url;
m_job = TDEIO::stat (m_url, false); m_job = TDEIO::stat (m_url, false);
connect(m_job, TQT_SIGNAL (result(TDEIO::Job *)), this, TQT_SLOT(result(TDEIO::Job *))); connect(m_job, TQ_SIGNAL (result(TDEIO::Job *)), this, TQ_SLOT(result(TDEIO::Job *)));
return true; return true;
#else #else
return deMediafiedPlay (); return deMediafiedPlay ();
@ -281,10 +281,10 @@ KDE_NO_EXPORT void MPlayerBase::initProcess (Viewer * viewer) {
if (KProtocolManager::useProxy () && proxyForURL (url, proxy_url)) if (KProtocolManager::useProxy () && proxyForURL (url, proxy_url))
m_process->setEnvironment("http_proxy", proxy_url); m_process->setEnvironment("http_proxy", proxy_url);
} }
connect (m_process, TQT_SIGNAL (wroteStdin (TDEProcess *)), connect (m_process, TQ_SIGNAL (wroteStdin (TDEProcess *)),
this, TQT_SLOT (dataWritten (TDEProcess *))); this, TQ_SLOT (dataWritten (TDEProcess *)));
connect (m_process, TQT_SIGNAL (processExited (TDEProcess *)), connect (m_process, TQ_SIGNAL (processExited (TDEProcess *)),
this, TQT_SLOT (processStopped (TDEProcess *))); this, TQ_SLOT (processStopped (TDEProcess *)));
} }
KDE_NO_EXPORT bool MPlayerBase::sendCommand (const TQString & cmd) { KDE_NO_EXPORT bool MPlayerBase::sendCommand (const TQString & cmd) {
@ -309,8 +309,8 @@ KDE_NO_EXPORT bool MPlayerBase::stop () {
KDE_NO_EXPORT bool MPlayerBase::quit () { KDE_NO_EXPORT bool MPlayerBase::quit () {
if (playing ()) { if (playing ()) {
stop (); stop ();
disconnect (m_process, TQT_SIGNAL (processExited (TDEProcess *)), disconnect (m_process, TQ_SIGNAL (processExited (TDEProcess *)),
this, TQT_SLOT (processStopped (TDEProcess *))); this, TQ_SLOT (processStopped (TDEProcess *)));
if (!m_use_slave) { if (!m_use_slave) {
void (*oldhandler)(int) = signal(SIGTERM, SIG_IGN); void (*oldhandler)(int) = signal(SIGTERM, SIG_IGN);
::kill (-1 * ::getpid (), SIGTERM); ::kill (-1 * ::getpid (), SIGTERM);
@ -523,10 +523,10 @@ KDE_NO_EXPORT bool MPlayer::brightness (int val, bool /*absolute*/) {
bool MPlayer::run (const char * args, const char * pipe) { bool MPlayer::run (const char * args, const char * pipe) {
//m_view->consoleOutput ()->clear (); //m_view->consoleOutput ()->clear ();
m_process_output = TQString (); m_process_output = TQString ();
connect (m_process, TQT_SIGNAL (receivedStdout (TDEProcess *, char *, int)), connect (m_process, TQ_SIGNAL (receivedStdout (TDEProcess *, char *, int)),
this, TQT_SLOT (processOutput (TDEProcess *, char *, int))); this, TQ_SLOT (processOutput (TDEProcess *, char *, int)));
connect (m_process, TQT_SIGNAL (receivedStderr (TDEProcess *, char *, int)), connect (m_process, TQ_SIGNAL (receivedStderr (TDEProcess *, char *, int)),
this, TQT_SLOT (processOutput (TDEProcess *, char *, int))); this, TQ_SLOT (processOutput (TDEProcess *, char *, int)));
m_use_slave = !(pipe && pipe[0]); m_use_slave = !(pipe && pipe[0]);
if (!m_use_slave) { if (!m_use_slave) {
fprintf (stderr, "%s | ", pipe); fprintf (stderr, "%s | ", pipe);
@ -1427,12 +1427,12 @@ TQString CallbackProcess::dcopName () {
void CallbackProcess::initProcess (Viewer * viewer) { void CallbackProcess::initProcess (Viewer * viewer) {
Process::initProcess (viewer); Process::initProcess (viewer);
connect (m_process, TQT_SIGNAL (processExited (TDEProcess *)), connect (m_process, TQ_SIGNAL (processExited (TDEProcess *)),
this, TQT_SLOT (processStopped (TDEProcess *))); this, TQ_SLOT (processStopped (TDEProcess *)));
connect (m_process, TQT_SIGNAL (receivedStdout (TDEProcess *, char *, int)), connect (m_process, TQ_SIGNAL (receivedStdout (TDEProcess *, char *, int)),
this, TQT_SLOT (processOutput (TDEProcess *, char *, int))); this, TQ_SLOT (processOutput (TDEProcess *, char *, int)));
connect (m_process, TQT_SIGNAL (receivedStderr (TDEProcess *, char *, int)), connect (m_process, TQ_SIGNAL (receivedStderr (TDEProcess *, char *, int)),
this, TQT_SLOT (processOutput (TDEProcess *, char *, int))); this, TQ_SLOT (processOutput (TDEProcess *, char *, int)));
} }
KDE_NO_EXPORT void CallbackProcess::processOutput (TDEProcess *, char * str, int slen) { KDE_NO_EXPORT void CallbackProcess::processOutput (TDEProcess *, char * str, int slen) {
@ -1822,8 +1822,8 @@ KDE_NO_EXPORT void FFMpeg::init () {
bool FFMpeg::deMediafiedPlay () { bool FFMpeg::deMediafiedPlay () {
initProcess (viewer ()); initProcess (viewer ());
KURL url (m_url); KURL url (m_url);
connect (m_process, TQT_SIGNAL (processExited (TDEProcess *)), connect (m_process, TQ_SIGNAL (processExited (TDEProcess *)),
this, TQT_SLOT (processStopped (TDEProcess *))); this, TQ_SLOT (processStopped (TDEProcess *)));
TQString outurl = TQString (TQFile::encodeName (m_recordurl.isLocalFile () ? getPath (m_recordurl) : m_recordurl.url ())); TQString outurl = TQString (TQFile::encodeName (m_recordurl.isLocalFile () ? getPath (m_recordurl) : m_recordurl.url ()));
if (m_recordurl.isLocalFile ()) if (m_recordurl.isLocalFile ())
TQFile (outurl).remove (); TQFile (outurl).remove ();
@ -2033,16 +2033,16 @@ KDE_NO_EXPORT void NpStream::open () {
} else { } else {
job = TDEIO::get (url, false, false); job = TDEIO::get (url, false, false);
job->addMetaData ("errorPage", "false"); job->addMetaData ("errorPage", "false");
connect (job, TQT_SIGNAL (data (TDEIO::Job *, const TQByteArray &)), connect (job, TQ_SIGNAL (data (TDEIO::Job *, const TQByteArray &)),
this, TQT_SLOT (slotData (TDEIO::Job *, const TQByteArray &))); this, TQ_SLOT (slotData (TDEIO::Job *, const TQByteArray &)));
connect (job, TQT_SIGNAL (result (TDEIO::Job *)), connect (job, TQ_SIGNAL (result (TDEIO::Job *)),
this, TQT_SLOT (slotResult (TDEIO::Job *))); this, TQ_SLOT (slotResult (TDEIO::Job *)));
connect (job, TQT_SIGNAL (redirection (TDEIO::Job *, const KURL &)), connect (job, TQ_SIGNAL (redirection (TDEIO::Job *, const KURL &)),
this, TQT_SLOT (redirection (TDEIO::Job *, const KURL &))); this, TQ_SLOT (redirection (TDEIO::Job *, const KURL &)));
connect (job, TQT_SIGNAL (mimetype (TDEIO::Job *, const TQString &)), connect (job, TQ_SIGNAL (mimetype (TDEIO::Job *, const TQString &)),
TQT_SLOT (slotMimetype (TDEIO::Job *, const TQString &))); TQ_SLOT (slotMimetype (TDEIO::Job *, const TQString &)));
connect (job, TQT_SIGNAL (totalSize (TDEIO::Job *, TDEIO::filesize_t)), connect (job, TQ_SIGNAL (totalSize (TDEIO::Job *, TDEIO::filesize_t)),
TQT_SLOT (slotTotalSize (TDEIO::Job *, TDEIO::filesize_t))); TQ_SLOT (slotTotalSize (TDEIO::Job *, TDEIO::filesize_t)));
} }
} }
@ -2116,14 +2116,14 @@ KDE_NO_EXPORT void NpPlayer::init () {
KDE_NO_EXPORT void NpPlayer::initProcess (Viewer * viewer) { KDE_NO_EXPORT void NpPlayer::initProcess (Viewer * viewer) {
Process::initProcess (viewer); Process::initProcess (viewer);
connect (m_process, TQT_SIGNAL (processExited (TDEProcess *)), connect (m_process, TQ_SIGNAL (processExited (TDEProcess *)),
this, TQT_SLOT (processStopped (TDEProcess *))); this, TQ_SLOT (processStopped (TDEProcess *)));
connect (m_process, TQT_SIGNAL (receivedStdout (TDEProcess *, char *, int)), connect (m_process, TQ_SIGNAL (receivedStdout (TDEProcess *, char *, int)),
this, TQT_SLOT (processOutput (TDEProcess *, char *, int))); this, TQ_SLOT (processOutput (TDEProcess *, char *, int)));
connect (m_process, TQT_SIGNAL (receivedStderr (TDEProcess *, char *, int)), connect (m_process, TQ_SIGNAL (receivedStderr (TDEProcess *, char *, int)),
this, TQT_SLOT (processOutput (TDEProcess *, char *, int))); this, TQ_SLOT (processOutput (TDEProcess *, char *, int)));
connect (m_process, TQT_SIGNAL (wroteStdin (TDEProcess *)), connect (m_process, TQ_SIGNAL (wroteStdin (TDEProcess *)),
this, TQT_SLOT (wroteStdin (TDEProcess *))); this, TQ_SLOT (wroteStdin (TDEProcess *)));
if (!dbus_static) if (!dbus_static)
dbus_static = dbus_static_deleter.setObject (new DBusStatic ()); dbus_static = dbus_static_deleter.setObject (new DBusStatic ());
if (iface.isEmpty ()) { if (iface.isEmpty ()) {
@ -2316,8 +2316,8 @@ void NpPlayer::requestStream (const TQString &path, const TQString & url, const
sendFinish (sid, 0, NpStream::BecauseDone); sendFinish (sid, 0, NpStream::BecauseDone);
} else { } else {
NpStream * ns = new NpStream (this, sid, uri); NpStream * ns = new NpStream (this, sid, uri);
connect (ns, TQT_SIGNAL (stateChanged ()), connect (ns, TQ_SIGNAL (stateChanged ()),
this, TQT_SLOT (streamStateChanged ())); this, TQ_SLOT (streamStateChanged ()));
streams[sid] = ns; streams[sid] = ns;
if (url != uri.url ()) if (url != uri.url ())
streamRedirected (sid, uri.url ()); streamRedirected (sid, uri.url ());
@ -2453,8 +2453,8 @@ KDE_NO_EXPORT void NpPlayer::processStreams () {
ns->open (); ns->open ();
write_in_progress = false; write_in_progress = false;
if (ns->job) { if (ns->job) {
connect (ns, TQT_SIGNAL (redirected (TQ_UINT32, const KURL&)), connect (ns, TQ_SIGNAL (redirected (TQ_UINT32, const KURL&)),
this, TQT_SLOT (streamRedirected (TQ_UINT32, const KURL&))); this, TQ_SLOT (streamRedirected (TQ_UINT32, const KURL&)));
active_count++; active_count++;
} }
} }

@ -116,7 +116,7 @@ KDE_NO_CDTOR_EXPORT TVDevicePage::TVDevicePage (TQWidget *parent, KMPlayer::Node
inputsTab->addTab (widget, input->mrl ()->pretty_name); inputsTab->addTab (widget, input->mrl ()->pretty_name);
} }
TQPushButton * delButton = new TQPushButton (i18n ("Delete"), this); TQPushButton * delButton = new TQPushButton (i18n ("Delete"), this);
connect (delButton, TQT_SIGNAL (clicked ()), this, TQT_SLOT (slotDelete ())); connect (delButton, TQ_SIGNAL (clicked ()), this, TQ_SLOT (slotDelete ()));
gridlayout->addWidget (audioLabel, 0, 0); gridlayout->addWidget (audioLabel, 0, 0);
gridlayout->addMultiCellWidget (audiodevice, 0, 0, 1, 3); gridlayout->addMultiCellWidget (audiodevice, 0, 0, 1, 3);
gridlayout->addWidget (nameLabel, 1, 0); gridlayout->addWidget (nameLabel, 1, 0);
@ -345,7 +345,7 @@ KDE_NO_CDTOR_EXPORT KMPlayerTVSource::KMPlayerTVSource (KMPlayerApp * a, TQPopup
: KMPlayerMenuSource (i18n ("TV"), a, m, "tvsource"), m_configpage (0L), scanner (0L), config_read (false) { : KMPlayerMenuSource (i18n ("TV"), a, m, "tvsource"), m_configpage (0L), scanner (0L), config_read (false) {
m_url = "tv://"; m_url = "tv://";
m_menu->insertTearOffHandle (); m_menu->insertTearOffHandle ();
connect (m_menu, TQT_SIGNAL (aboutToShow ()), this, TQT_SLOT (menuAboutToShow ())); connect (m_menu, TQ_SIGNAL (aboutToShow ()), this, TQ_SLOT (menuAboutToShow ()));
m_document = new TVDocument (this); m_document = new TVDocument (this);
m_player->settings ()->addPage (this); m_player->settings ()->addPage (this);
tree_id = static_cast <KMPlayer::View*>(m_player->view ())->playList ()->addTree (m_document, "tvsource", "tv", KMPlayer::PlayListView::TreeEdit | KMPlayer::PlayListView::Moveable | KMPlayer::PlayListView::Deleteable); tree_id = static_cast <KMPlayer::View*>(m_player->view ())->playList ()->addTree (m_document, "tvsource", "tv", KMPlayer::PlayListView::TreeEdit | KMPlayer::PlayListView::Moveable | KMPlayer::PlayListView::Deleteable);
@ -379,7 +379,7 @@ KDE_NO_EXPORT void KMPlayerTVSource::activate () {
if (m_cur_tvdevice) { if (m_cur_tvdevice) {
TQString playback = static_cast <KMPlayer::Element *> (m_cur_tvdevice.ptr ())->getAttribute (TQString::fromLatin1 ("playback")); TQString playback = static_cast <KMPlayer::Element *> (m_cur_tvdevice.ptr ())->getAttribute (TQString::fromLatin1 ("playback"));
if (playback.isEmpty () || playback.toInt ()) if (playback.isEmpty () || playback.toInt ())
TQTimer::singleShot (0, m_player, TQT_SLOT (play ())); TQTimer::singleShot (0, m_player, TQ_SLOT (play ()));
} }
} }
/* TODO: playback by /* TODO: playback by
@ -397,7 +397,7 @@ KDE_NO_EXPORT void KMPlayerTVSource::buildMenu () {
int counter = 0; int counter = 0;
for (KMPlayer::NodePtr dp = m_document->firstChild (); dp; dp = dp->nextSibling ()) for (KMPlayer::NodePtr dp = m_document->firstChild (); dp; dp = dp->nextSibling ())
if (dp->id == id_node_tv_device) if (dp->id == id_node_tv_device)
m_menu->insertItem (KMPlayer::convertNode <TVDevice> (dp)->pretty_name, this, TQT_SLOT (menuClicked (int)), 0, counter++); m_menu->insertItem (KMPlayer::convertNode <TVDevice> (dp)->pretty_name, this, TQ_SLOT (menuClicked (int)), 0, counter++);
} }
KDE_NO_EXPORT void KMPlayerTVSource::menuAboutToShow () { KDE_NO_EXPORT void KMPlayerTVSource::menuAboutToShow () {
@ -486,7 +486,7 @@ KDE_NO_EXPORT void KMPlayerTVSource::buildArguments () {
KDE_NO_EXPORT void KMPlayerTVSource::playCurrent () { KDE_NO_EXPORT void KMPlayerTVSource::playCurrent () {
buildArguments (); buildArguments ();
if (m_app->broadcasting ()) if (m_app->broadcasting ())
TQTimer::singleShot (0, m_app->broadcastConfig (), TQT_SLOT (startFeed ())); TQTimer::singleShot (0, m_app->broadcastConfig (), TQ_SLOT (startFeed ()));
else else
KMPlayer::Source::playCurrent (); KMPlayer::Source::playCurrent ();
} }
@ -575,7 +575,7 @@ KDE_NO_EXPORT TQFrame * KMPlayerTVSource::prefPage (TQWidget * parent) {
if (!m_configpage) { if (!m_configpage) {
m_configpage = new KMPlayerPrefSourcePageTV (parent, this); m_configpage = new KMPlayerPrefSourcePageTV (parent, this);
scanner = new TVDeviceScannerSource (this); scanner = new TVDeviceScannerSource (this);
connect (m_configpage->scan, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotScan())); connect (m_configpage->scan, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotScan()));
} }
return m_configpage; return m_configpage;
} }
@ -592,16 +592,16 @@ KDE_NO_EXPORT void KMPlayerTVSource::slotScan () {
TQString devstr = m_configpage->device->lineEdit()->text (); TQString devstr = m_configpage->device->lineEdit()->text ();
if (!hasTVDevice(m_document, devstr)) { if (!hasTVDevice(m_document, devstr)) {
scanner->scan (devstr, m_configpage->driver->text()); scanner->scan (devstr, m_configpage->driver->text());
connect (scanner, TQT_SIGNAL (scanFinished (TVDevice *)), connect (scanner, TQ_SIGNAL (scanFinished (TVDevice *)),
this, TQT_SLOT (slotScanFinished (TVDevice *))); this, TQ_SLOT (slotScanFinished (TVDevice *)));
} else } else
KMessageBox::error (m_configpage, i18n ("Device already present."), KMessageBox::error (m_configpage, i18n ("Device already present."),
i18n ("Error")); i18n ("Error"));
} }
KDE_NO_EXPORT void KMPlayerTVSource::slotScanFinished (TVDevice * tvdevice) { KDE_NO_EXPORT void KMPlayerTVSource::slotScanFinished (TVDevice * tvdevice) {
disconnect (scanner, TQT_SIGNAL (scanFinished (TVDevice *)), disconnect (scanner, TQ_SIGNAL (scanFinished (TVDevice *)),
this, TQT_SLOT (slotScanFinished (TVDevice *))); this, TQ_SLOT (slotScanFinished (TVDevice *)));
if (tvdevice) { if (tvdevice) {
tvdevice->zombie = false; tvdevice->zombie = false;
addTVDevicePage (tvdevice, true); addTVDevicePage (tvdevice, true);
@ -614,8 +614,8 @@ KDE_NO_EXPORT void KMPlayerTVSource::addTVDevicePage(TVDevice *dev, bool show) {
dev->device_page->deleteLater (); dev->device_page->deleteLater ();
dev->device_page = new TVDevicePage (m_configpage->notebook, dev); dev->device_page = new TVDevicePage (m_configpage->notebook, dev);
m_configpage->notebook->insertTab (dev->device_page, dev->pretty_name); m_configpage->notebook->insertTab (dev->device_page, dev->pretty_name);
connect (dev->device_page, TQT_SIGNAL (deleted (TVDevicePage *)), connect (dev->device_page, TQ_SIGNAL (deleted (TVDevicePage *)),
this, TQT_SLOT (slotDeviceDeleted (TVDevicePage *))); this, TQ_SLOT (slotDeviceDeleted (TVDevicePage *)));
if (show) if (show)
m_configpage->notebook->setCurrentPage (m_configpage->notebook->count ()-1); m_configpage->notebook->setCurrentPage (m_configpage->notebook->count ()-1);
} }

@ -142,10 +142,10 @@ KDE_NO_CDTOR_EXPORT KMPlayerVDRSource::KMPlayerVDRSource (KMPlayerApp * app)
m_stored_volume (0) { m_stored_volume (0) {
memset (m_actions, 0, sizeof (TDEAction *) * int (act_last)); memset (m_actions, 0, sizeof (TDEAction *) * int (act_last));
m_player->settings ()->addPage (this); m_player->settings ()->addPage (this);
connect (m_socket, TQT_SIGNAL (connectionClosed()), this, TQT_SLOT(disconnected())); connect (m_socket, TQ_SIGNAL (connectionClosed()), this, TQ_SLOT(disconnected()));
connect (m_socket, TQT_SIGNAL (connected ()), this, TQT_SLOT (connected ())); connect (m_socket, TQ_SIGNAL (connected ()), this, TQ_SLOT (connected ()));
connect (m_socket, TQT_SIGNAL (readyRead ()), this, TQT_SLOT (readyRead ())); connect (m_socket, TQ_SIGNAL (readyRead ()), this, TQ_SLOT (readyRead ()));
connect (m_socket, TQT_SIGNAL (error (int)), this, TQT_SLOT (socketError (int))); connect (m_socket, TQ_SIGNAL (error (int)), this, TQ_SLOT (socketError (int)));
} }
KDE_NO_CDTOR_EXPORT KMPlayerVDRSource::~KMPlayerVDRSource () {} KDE_NO_CDTOR_EXPORT KMPlayerVDRSource::~KMPlayerVDRSource () {}
@ -174,8 +174,8 @@ KDE_NO_EXPORT TQString KMPlayerVDRSource::prettyName () {
KDE_NO_EXPORT void KMPlayerVDRSource::activate () { KDE_NO_EXPORT void KMPlayerVDRSource::activate () {
last_channel = 0; last_channel = 0;
connect (this, TQT_SIGNAL (startPlaying ()), this, TQT_SLOT (processStarted())); connect (this, TQ_SIGNAL (startPlaying ()), this, TQ_SLOT (processStarted()));
connect (this, TQT_SIGNAL (stopPlaying ()), this, TQT_SLOT (processStopped ())); connect (this, TQ_SIGNAL (stopPlaying ()), this, TQ_SLOT (processStopped ()));
KMPlayer::ControlPanel * panel = m_app->view()->controlPanel (); KMPlayer::ControlPanel * panel = m_app->view()->controlPanel ();
panel->button (KMPlayer::ControlPanel::button_red)->show (); panel->button (KMPlayer::ControlPanel::button_red)->show ();
panel->button (KMPlayer::ControlPanel::button_green)->show (); panel->button (KMPlayer::ControlPanel::button_green)->show ();
@ -183,29 +183,29 @@ KDE_NO_EXPORT void KMPlayerVDRSource::activate () {
panel->button (KMPlayer::ControlPanel::button_blue)->show (); panel->button (KMPlayer::ControlPanel::button_blue)->show ();
panel->button (KMPlayer::ControlPanel::button_pause)->hide (); panel->button (KMPlayer::ControlPanel::button_pause)->hide ();
panel->button (KMPlayer::ControlPanel::button_record)->hide (); panel->button (KMPlayer::ControlPanel::button_record)->hide ();
connect (panel->volumeBar (), TQT_SIGNAL (volumeChanged (int)), this, TQT_SLOT (volumeChanged (int))); connect (panel->volumeBar (), TQ_SIGNAL (volumeChanged (int)), this, TQ_SLOT (volumeChanged (int)));
connect (panel->button (KMPlayer::ControlPanel::button_red), TQT_SIGNAL (clicked ()), this, TQT_SLOT (keyRed ())); connect (panel->button (KMPlayer::ControlPanel::button_red), TQ_SIGNAL (clicked ()), this, TQ_SLOT (keyRed ()));
connect (panel->button (KMPlayer::ControlPanel::button_green), TQT_SIGNAL (clicked ()), this, TQT_SLOT (keyGreen ())); connect (panel->button (KMPlayer::ControlPanel::button_green), TQ_SIGNAL (clicked ()), this, TQ_SLOT (keyGreen ()));
connect (panel->button (KMPlayer::ControlPanel::button_yellow), TQT_SIGNAL (clicked ()), this, TQT_SLOT (keyYellow ())); connect (panel->button (KMPlayer::ControlPanel::button_yellow), TQ_SIGNAL (clicked ()), this, TQ_SLOT (keyYellow ()));
connect (panel->button (KMPlayer::ControlPanel::button_blue), TQT_SIGNAL (clicked ()), this, TQT_SLOT (keyBlue ())); connect (panel->button (KMPlayer::ControlPanel::button_blue), TQ_SIGNAL (clicked ()), this, TQ_SLOT (keyBlue ()));
setAspect (m_document, scale ? 16.0/9 : 1.33); setAspect (m_document, scale ? 16.0/9 : 1.33);
if (!m_url.protocol ().compare ("kmplayer")) if (!m_url.protocol ().compare ("kmplayer"))
m_request_jump = KURL::decode_string (m_url.path ()).mid (1); m_request_jump = KURL::decode_string (m_url.path ()).mid (1);
setURL (KURL (TQString ("vdr://localhost:%1").arg (tcp_port))); setURL (KURL (TQString ("vdr://localhost:%1").arg (tcp_port)));
TQTimer::singleShot (0, m_player, TQT_SLOT (play ())); TQTimer::singleShot (0, m_player, TQ_SLOT (play ()));
} }
KDE_NO_EXPORT void KMPlayerVDRSource::deactivate () { KDE_NO_EXPORT void KMPlayerVDRSource::deactivate () {
disconnect (m_socket, TQT_SIGNAL (error (int)), this, TQT_SLOT (socketError (int))); disconnect (m_socket, TQ_SIGNAL (error (int)), this, TQ_SLOT (socketError (int)));
if (m_player->view ()) { if (m_player->view ()) {
disconnect (this, TQT_SIGNAL(startPlaying()), this, TQT_SLOT(processStarted())); disconnect (this, TQ_SIGNAL(startPlaying()), this, TQ_SLOT(processStarted()));
disconnect (this, TQT_SIGNAL (stopPlaying()), this, TQT_SLOT(processStopped())); disconnect (this, TQ_SIGNAL (stopPlaying()), this, TQ_SLOT(processStopped()));
KMPlayer::ControlPanel * panel = m_app->view()->controlPanel (); KMPlayer::ControlPanel * panel = m_app->view()->controlPanel ();
disconnect (panel->volumeBar (), TQT_SIGNAL (volumeChanged (int)), this, TQT_SLOT (volumeChanged (int))); disconnect (panel->volumeBar (), TQ_SIGNAL (volumeChanged (int)), this, TQ_SLOT (volumeChanged (int)));
disconnect (panel->button (KMPlayer::ControlPanel::button_red), TQT_SIGNAL (clicked ()), this, TQT_SLOT (keyRed ())); disconnect (panel->button (KMPlayer::ControlPanel::button_red), TQ_SIGNAL (clicked ()), this, TQ_SLOT (keyRed ()));
disconnect (panel->button (KMPlayer::ControlPanel::button_green), TQT_SIGNAL (clicked ()), this, TQT_SLOT (keyGreen ())); disconnect (panel->button (KMPlayer::ControlPanel::button_green), TQ_SIGNAL (clicked ()), this, TQ_SLOT (keyGreen ()));
disconnect (panel->button (KMPlayer::ControlPanel::button_yellow), TQT_SIGNAL (clicked ()), this, TQT_SLOT (keyYellow ())); disconnect (panel->button (KMPlayer::ControlPanel::button_yellow), TQ_SIGNAL (clicked ()), this, TQ_SLOT (keyYellow ()));
disconnect (panel->button (KMPlayer::ControlPanel::button_blue), TQT_SIGNAL (clicked ()), this, TQT_SLOT (keyBlue ())); disconnect (panel->button (KMPlayer::ControlPanel::button_blue), TQ_SIGNAL (clicked ()), this, TQ_SLOT (keyBlue ()));
} }
processStopped (); processStopped ();
m_request_jump.truncate (0); m_request_jump.truncate (0);
@ -240,29 +240,29 @@ KDE_NO_EXPORT void KMPlayerVDRSource::connected () {
TDEAction * action = m_app->actionCollection ()->action ("vdr_connect"); TDEAction * action = m_app->actionCollection ()->action ("vdr_connect");
action->setIcon (TQString ("connect_no")); action->setIcon (TQString ("connect_no"));
action->setText (i18n ("Dis&connect")); action->setText (i18n ("Dis&connect"));
DEF_ACT (act_up, i18n ("VDR Key Up"), "go-up", , TQT_SLOT (keyUp ()), "vdr_key_up"); DEF_ACT (act_up, i18n ("VDR Key Up"), "go-up", , TQ_SLOT (keyUp ()), "vdr_key_up");
DEF_ACT (act_down, i18n ("VDR Key Down"), "go-down", , TQT_SLOT (keyDown ()), "vdr_key_down"); DEF_ACT (act_down, i18n ("VDR Key Down"), "go-down", , TQ_SLOT (keyDown ()), "vdr_key_down");
DEF_ACT (act_back, i18n ("VDR Key Back"), "back", , TQT_SLOT (keyBack ()), "vdr_key_back"); DEF_ACT (act_back, i18n ("VDR Key Back"), "back", , TQ_SLOT (keyBack ()), "vdr_key_back");
DEF_ACT (act_ok, i18n ("VDR Key Ok"), "ok", , TQT_SLOT (keyOk ()), "vdr_key_ok"); DEF_ACT (act_ok, i18n ("VDR Key Ok"), "ok", , TQ_SLOT (keyOk ()), "vdr_key_ok");
DEF_ACT (act_setup, i18n ("VDR Key Setup"), "configure", , TQT_SLOT (keySetup ()), "vdr_key_setup"); DEF_ACT (act_setup, i18n ("VDR Key Setup"), "configure", , TQ_SLOT (keySetup ()), "vdr_key_setup");
DEF_ACT (act_channels, i18n ("VDR Key Channels"), "player_playlist", , TQT_SLOT (keyChannels ()), "vdr_key_channels"); DEF_ACT (act_channels, i18n ("VDR Key Channels"), "player_playlist", , TQ_SLOT (keyChannels ()), "vdr_key_channels");
DEF_ACT (act_menu, i18n ("VDR Key Menu"), "showmenu", , TQT_SLOT (keyMenu ()), "vdr_key_menu"); DEF_ACT (act_menu, i18n ("VDR Key Menu"), "showmenu", , TQ_SLOT (keyMenu ()), "vdr_key_menu");
DEF_ACT (act_red, i18n ("VDR Key Red"), "red", , TQT_SLOT (keyRed ()), "vdr_key_red"); DEF_ACT (act_red, i18n ("VDR Key Red"), "red", , TQ_SLOT (keyRed ()), "vdr_key_red");
DEF_ACT (act_green, i18n ("VDR Key Green"), "green", , TQT_SLOT (keyGreen ()), "vdr_key_green"); DEF_ACT (act_green, i18n ("VDR Key Green"), "green", , TQ_SLOT (keyGreen ()), "vdr_key_green");
DEF_ACT (act_yellow, i18n ("VDR Key Yellow"), "yellow", , TQT_SLOT (keyYellow ()), "vdr_key_yellow"); DEF_ACT (act_yellow, i18n ("VDR Key Yellow"), "yellow", , TQ_SLOT (keyYellow ()), "vdr_key_yellow");
DEF_ACT (act_blue, i18n ("VDR Key Blue"), "blue", , TQT_SLOT (keyBlue ()), "vdr_key_blue"); DEF_ACT (act_blue, i18n ("VDR Key Blue"), "blue", , TQ_SLOT (keyBlue ()), "vdr_key_blue");
DEF_ACT (act_custom, "VDR Custom Command", "application-x-executable", , TQT_SLOT (customCmd ()), "vdr_key_custom"); DEF_ACT (act_custom, "VDR Custom Command", "application-x-executable", , TQ_SLOT (customCmd ()), "vdr_key_custom");
m_app->initMenu (); // update menu and toolbar m_app->initMenu (); // update menu and toolbar
DEF_ACT (act_0, i18n ("VDR Key 0"), "0", TQt::Key_0, TQT_SLOT (key0 ()), "vdr_key_0"); DEF_ACT (act_0, i18n ("VDR Key 0"), "0", TQt::Key_0, TQ_SLOT (key0 ()), "vdr_key_0");
DEF_ACT (act_1, i18n ("VDR Key 1"), "1", TQt::Key_1, TQT_SLOT (key1 ()), "vdr_key_1"); DEF_ACT (act_1, i18n ("VDR Key 1"), "1", TQt::Key_1, TQ_SLOT (key1 ()), "vdr_key_1");
DEF_ACT (act_2, i18n ("VDR Key 2"), "2", TQt::Key_2, TQT_SLOT (key2 ()), "vdr_key_2"); DEF_ACT (act_2, i18n ("VDR Key 2"), "2", TQt::Key_2, TQ_SLOT (key2 ()), "vdr_key_2");
DEF_ACT (act_3, i18n ("VDR Key 3"), "3", TQt::Key_3, TQT_SLOT (key3 ()), "vdr_key_3"); DEF_ACT (act_3, i18n ("VDR Key 3"), "3", TQt::Key_3, TQ_SLOT (key3 ()), "vdr_key_3");
DEF_ACT (act_4, i18n ("VDR Key 4"), "4", TQt::Key_4, TQT_SLOT (key4 ()), "vdr_key_4"); DEF_ACT (act_4, i18n ("VDR Key 4"), "4", TQt::Key_4, TQ_SLOT (key4 ()), "vdr_key_4");
DEF_ACT (act_5, i18n ("VDR Key 5"), "5", TQt::Key_5, TQT_SLOT (key5 ()), "vdr_key_5"); DEF_ACT (act_5, i18n ("VDR Key 5"), "5", TQt::Key_5, TQ_SLOT (key5 ()), "vdr_key_5");
DEF_ACT (act_6, i18n ("VDR Key 6"), "6", TQt::Key_6, TQT_SLOT (key6 ()), "vdr_key_6"); DEF_ACT (act_6, i18n ("VDR Key 6"), "6", TQt::Key_6, TQ_SLOT (key6 ()), "vdr_key_6");
DEF_ACT (act_7, i18n ("VDR Key 7"), "7", TQt::Key_7, TQT_SLOT (key7 ()), "vdr_key_7"); DEF_ACT (act_7, i18n ("VDR Key 7"), "7", TQt::Key_7, TQ_SLOT (key7 ()), "vdr_key_7");
DEF_ACT (act_8, i18n ("VDR Key 8"), "8", TQt::Key_8, TQT_SLOT (key8 ()), "vdr_key_8"); DEF_ACT (act_8, i18n ("VDR Key 8"), "8", TQt::Key_8, TQ_SLOT (key8 ()), "vdr_key_8");
DEF_ACT (act_9, i18n ("VDR Key 9"), "9", TQt::Key_9, TQT_SLOT (key9 ()), "vdr_key_9"); DEF_ACT (act_9, i18n ("VDR Key 9"), "9", TQt::Key_9, TQ_SLOT (key9 ()), "vdr_key_9");
//KMPlayer::ViewLayer * layer = m_app->view ()->viewArea (); //KMPlayer::ViewLayer * layer = m_app->view ()->viewArea ();
for (int i = 0; i < int (act_last); ++i) for (int i = 0; i < int (act_last); ++i)
// somehow, the configured shortcuts only show up after createGUI() call // somehow, the configured shortcuts only show up after createGUI() call
@ -710,13 +710,13 @@ KDE_NO_EXPORT void KMPlayerVDRSource::sync (bool fromUI) {
} }
} }
} else // wait for showEvent } else // wait for showEvent
connect (xvideo, TQT_SIGNAL (configReceived()), this, TQT_SLOT (configReceived())); connect (xvideo, TQ_SIGNAL (configReceived()), this, TQ_SLOT (configReceived()));
} }
} }
KDE_NO_EXPORT void KMPlayerVDRSource::configReceived () { KDE_NO_EXPORT void KMPlayerVDRSource::configReceived () {
XVideo * xvideo = static_cast<XVideo *>(m_player->players()["xvideo"]); XVideo * xvideo = static_cast<XVideo *>(m_player->players()["xvideo"]);
disconnect (xvideo, TQT_SIGNAL (configReceived()), this, TQT_SLOT (configReceived())); disconnect (xvideo, TQ_SIGNAL (configReceived()), this, TQ_SLOT (configReceived()));
sync (false); sync (false);
} }

@ -362,7 +362,7 @@ KDE_NO_EXPORT void View::updateVolume () {
TQLabel * mixer_label = new TQLabel (i18n ("Volume:"), m_control_panel->popupMenu ()); TQLabel * mixer_label = new TQLabel (i18n ("Volume:"), m_control_panel->popupMenu ());
m_control_panel->popupMenu ()->insertItem (mixer_label, -1, 4); m_control_panel->popupMenu ()->insertItem (mixer_label, -1, 4);
m_volume_slider = new TQSlider (0, 100, 10, volume, TQt::Horizontal, m_control_panel->popupMenu ()); m_volume_slider = new TQSlider (0, 100, 10, volume, TQt::Horizontal, m_control_panel->popupMenu ());
connect(m_volume_slider, TQT_SIGNAL(valueChanged(int)), this,TQT_SLOT(setVolume(int))); connect(m_volume_slider, TQ_SIGNAL(valueChanged(int)), this,TQ_SLOT(setVolume(int)));
m_control_panel->popupMenu ()->insertItem (m_volume_slider, ControlPanel::menu_volume, 5); m_control_panel->popupMenu ()->insertItem (m_volume_slider, ControlPanel::menu_volume, 5);
m_control_panel->popupMenu ()->insertSeparator (6); m_control_panel->popupMenu ()->insertSeparator (6);
} else { } else {
@ -656,7 +656,7 @@ bool View::x11Event (XEvent * e) {
case MapNotify: case MapNotify:
if (e->xmap.event == m_viewer->embeddedWinId ()) { if (e->xmap.event == m_viewer->embeddedWinId ()) {
show (); show ();
TQTimer::singleShot (10, m_viewer, TQT_SLOT (sendConfigureEvent ())); TQTimer::singleShot (10, m_viewer, TQ_SLOT (sendConfigureEvent ()));
} }
break; break;
/*case ConfigureNotify: /*case ConfigureNotify:

@ -134,18 +134,18 @@ KDE_NO_CDTOR_EXPORT PlayListView::PlayListView (TQWidget * parent, View * view,
menu_pix = TDEGlobal::iconLoader ()->loadIcon (TQString ("player_playlist"), TDEIcon::Small); menu_pix = TDEGlobal::iconLoader ()->loadIcon (TQString ("player_playlist"), TDEIcon::Small);
config_pix = TDEGlobal::iconLoader ()->loadIcon (TQString ("configure"), TDEIcon::Small); config_pix = TDEGlobal::iconLoader ()->loadIcon (TQString ("configure"), TDEIcon::Small);
url_pix = TDEGlobal::iconLoader ()->loadIcon (TQString ("www"), TDEIcon::Small); url_pix = TDEGlobal::iconLoader ()->loadIcon (TQString ("www"), TDEIcon::Small);
m_find = KStdAction::find (this, TQT_SLOT (slotFind ()), ac, "find"); m_find = KStdAction::find (this, TQ_SLOT (slotFind ()), ac, "find");
m_find_next = KStdAction::findNext (this, TQT_SLOT(slotFindNext()), ac, "next"); m_find_next = KStdAction::findNext (this, TQ_SLOT(slotFindNext()), ac, "next");
m_find_next->setEnabled (false); m_find_next->setEnabled (false);
connect (this, TQT_SIGNAL (contextMenuRequested (TQListViewItem *, const TQPoint &, int)), this, TQT_SLOT (contextMenuItem (TQListViewItem *, const TQPoint &, int))); connect (this, TQ_SIGNAL (contextMenuRequested (TQListViewItem *, const TQPoint &, int)), this, TQ_SLOT (contextMenuItem (TQListViewItem *, const TQPoint &, int)));
connect (this, TQT_SIGNAL (expanded (TQListViewItem *)), connect (this, TQ_SIGNAL (expanded (TQListViewItem *)),
this, TQT_SLOT (itemExpanded (TQListViewItem *))); this, TQ_SLOT (itemExpanded (TQListViewItem *)));
connect (this, TQT_SIGNAL (dropped (TQDropEvent *, TQListViewItem *)), connect (this, TQ_SIGNAL (dropped (TQDropEvent *, TQListViewItem *)),
this, TQT_SLOT (itemDropped (TQDropEvent *, TQListViewItem *))); this, TQ_SLOT (itemDropped (TQDropEvent *, TQListViewItem *)));
connect (this, TQT_SIGNAL (itemRenamed (TQListViewItem *)), connect (this, TQ_SIGNAL (itemRenamed (TQListViewItem *)),
this, TQT_SLOT (itemIsRenamed (TQListViewItem *))); this, TQ_SLOT (itemIsRenamed (TQListViewItem *)));
connect (this, TQT_SIGNAL (selectionChanged (TQListViewItem *)), connect (this, TQ_SIGNAL (selectionChanged (TQListViewItem *)),
this, TQT_SLOT (itemIsSelected (TQListViewItem *))); this, TQ_SLOT (itemIsSelected (TQListViewItem *)));
} }
KDE_NO_CDTOR_EXPORT PlayListView::~PlayListView () { KDE_NO_CDTOR_EXPORT PlayListView::~PlayListView () {
@ -277,7 +277,7 @@ void PlayListView::updateTree (int id, NodePtr root, NodePtr active,
bool need_timer = !tree_update; bool need_timer = !tree_update;
tree_update = new TreeUpdate (ritem, active, select, open, tree_update); tree_update = new TreeUpdate (ritem, active, select, open, tree_update);
if (need_timer) if (need_timer)
TQTimer::singleShot (0, this, TQT_SLOT (updateTrees ())); TQTimer::singleShot (0, this, TQ_SLOT (updateTrees ()));
} }
KDE_NO_EXPORT void PlayListView::updateTrees () { KDE_NO_EXPORT void PlayListView::updateTrees () {
@ -353,7 +353,7 @@ KDE_NO_EXPORT void PlayListView::contextMenuItem (TQListViewItem * vi, const TQP
m_itemmenu->insertItem (TDEGlobal::iconLoader ()->loadIconSet m_itemmenu->insertItem (TDEGlobal::iconLoader ()->loadIconSet
(TQString ("edit-copy"), TDEIcon::Small, 0, true), (TQString ("edit-copy"), TDEIcon::Small, 0, true),
i18n ("&Copy to Clipboard"), i18n ("&Copy to Clipboard"),
this, TQT_SLOT (copyToClipboard ()), 0, 0); this, TQ_SLOT (copyToClipboard ()), 0, 0);
if (item->m_attr || if (item->m_attr ||
(item->node && (item->node->isPlayable () || (item->node && (item->node->isPlayable () ||
item->node->isDocument ()) && item->node->isDocument ()) &&
@ -361,10 +361,10 @@ KDE_NO_EXPORT void PlayListView::contextMenuItem (TQListViewItem * vi, const TQP
m_itemmenu->insertItem (TDEGlobal::iconLoader ()->loadIconSet m_itemmenu->insertItem (TDEGlobal::iconLoader ()->loadIconSet
(TQString ("bookmark_add"), TDEIcon::Small, 0, true), (TQString ("bookmark_add"), TDEIcon::Small, 0, true),
i18n ("&Add Bookmark"), i18n ("&Add Bookmark"),
this, TQT_SLOT (addBookMark ()), 0, 1); this, TQ_SLOT (addBookMark ()), 0, 1);
if (ritem->have_dark_nodes) { if (ritem->have_dark_nodes) {
m_itemmenu->insertItem (i18n ("&Show all"), m_itemmenu->insertItem (i18n ("&Show all"),
this, TQT_SLOT (toggleShowAllNodes ()), 0, 2); this, TQ_SLOT (toggleShowAllNodes ()), 0, 2);
m_itemmenu->setItemChecked (2, ritem->show_all_nodes); m_itemmenu->setItemChecked (2, ritem->show_all_nodes);
} }
m_itemmenu->insertSeparator (); m_itemmenu->insertSeparator ();
@ -555,7 +555,7 @@ KDE_NO_EXPORT void PlayListView::slotFind () {
if (!m_find_dialog) { if (!m_find_dialog) {
m_find_dialog = new KFindDialog (false, this, "kde_kmplayer_find", KFindDialog::CaseSensitive); m_find_dialog = new KFindDialog (false, this, "kde_kmplayer_find", KFindDialog::CaseSensitive);
m_find_dialog->setHasSelection (false); m_find_dialog->setHasSelection (false);
connect(m_find_dialog, TQT_SIGNAL(okClicked ()), this, TQT_SLOT(slotFindOk ())); connect(m_find_dialog, TQ_SIGNAL(okClicked ()), this, TQ_SLOT(slotFindOk ()));
} else } else
m_find_dialog->setPattern (TQString ()); m_find_dialog->setPattern (TQString ());
m_find_dialog->show (); m_find_dialog->show ();

@ -132,7 +132,7 @@ KDE_NO_CDTOR_EXPORT Preferences::Preferences(PartBase * player, Settings * setti
addPrefPage (p); addPrefPage (p);
connect (this, TQT_SIGNAL (defaultClicked ()), TQT_SLOT (confirmDefaults ())); connect (this, TQ_SIGNAL (defaultClicked ()), TQ_SLOT (confirmDefaults ()));
} }
KDE_NO_EXPORT void Preferences::setPage (const char * name) { KDE_NO_EXPORT void Preferences::setPage (const char * name) {
@ -277,24 +277,24 @@ KDE_NO_CDTOR_EXPORT PrefGeneralPageLooks::PrefGeneralPageLooks (TQWidget *parent
for (int i = 0; i < int (ColorSetting::last_target); i++) for (int i = 0; i < int (ColorSetting::last_target); i++)
colorscombo->insertItem (colors[i].title); colorscombo->insertItem (colors[i].title);
colorscombo->setCurrentItem (0); colorscombo->setCurrentItem (0);
connect (colorscombo, TQT_SIGNAL (activated (int)), connect (colorscombo, TQ_SIGNAL (activated (int)),
this, TQT_SLOT (colorItemChanged(int))); this, TQ_SLOT (colorItemChanged(int)));
colorbutton = new KColorButton (colorbox); colorbutton = new KColorButton (colorbox);
colorbutton->setColor (colors[0].color); colorbutton->setColor (colors[0].color);
connect (colorbutton, TQT_SIGNAL (changed (const TQColor &)), connect (colorbutton, TQ_SIGNAL (changed (const TQColor &)),
this, TQT_SLOT (colorCanged (const TQColor &))); this, TQ_SLOT (colorCanged (const TQColor &)));
TQGroupBox *fontbox = new TQGroupBox (2,TQt::Horizontal, i18n ("Fonts"), this); TQGroupBox *fontbox = new TQGroupBox (2,TQt::Horizontal, i18n ("Fonts"), this);
fontscombo = new TQComboBox (fontbox); fontscombo = new TQComboBox (fontbox);
for (int i = 0; i < int (FontSetting::last_target); i++) for (int i = 0; i < int (FontSetting::last_target); i++)
fontscombo->insertItem (fonts[i].title); fontscombo->insertItem (fonts[i].title);
fontscombo->setCurrentItem (0); fontscombo->setCurrentItem (0);
connect (fontscombo, TQT_SIGNAL (activated (int)), connect (fontscombo, TQ_SIGNAL (activated (int)),
this, TQT_SLOT (fontItemChanged(int))); this, TQ_SLOT (fontItemChanged(int)));
fontbutton = new TQPushButton (i18n ("AaBbCc"), fontbox); fontbutton = new TQPushButton (i18n ("AaBbCc"), fontbox);
fontbutton->setFlat (true); fontbutton->setFlat (true);
fontbutton->setFont (fonts[0].font); fontbutton->setFont (fonts[0].font);
connect (fontbutton, TQT_SIGNAL (clicked ()), this, TQT_SLOT (fontClicked ())); connect (fontbutton, TQ_SIGNAL (clicked ()), this, TQ_SLOT (fontClicked ()));
layout->addWidget (colorbox); layout->addWidget (colorbox);
layout->addWidget (fontbox); layout->addWidget (fontbox);
@ -381,10 +381,10 @@ KDE_NO_CDTOR_EXPORT PrefSourcePageURL::PrefSourcePageURL (TQWidget *parent)
layout->addLayout (gridlayout); layout->addLayout (gridlayout);
layout->addWidget (cbox); layout->addWidget (cbox);
layout->addItem (new TQSpacerItem (0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding)); layout->addItem (new TQSpacerItem (0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding));
connect (urllist, TQT_SIGNAL(textChanged (const TQString &)), connect (urllist, TQ_SIGNAL(textChanged (const TQString &)),
this, TQT_SLOT (slotTextChanged (const TQString &))); this, TQ_SLOT (slotTextChanged (const TQString &)));
connect (sub_urllist, TQT_SIGNAL(textChanged (const TQString &)), connect (sub_urllist, TQ_SIGNAL(textChanged (const TQString &)),
this, TQT_SLOT (slotTextChanged (const TQString &))); this, TQ_SLOT (slotTextChanged (const TQString &)));
} }
KDE_NO_EXPORT void PrefSourcePageURL::slotBrowse () { KDE_NO_EXPORT void PrefSourcePageURL::slotBrowse () {
@ -403,7 +403,7 @@ KDE_NO_CDTOR_EXPORT PrefRecordPage::PrefRecordPage (TQWidget *parent, PartBase *
urllayout->addWidget (urlLabel); urllayout->addWidget (urlLabel);
urllayout->addWidget (url); urllayout->addWidget (url);
recordButton = new TQPushButton (i18n ("Start &Recording"), this); recordButton = new TQPushButton (i18n ("Start &Recording"), this);
connect (recordButton, TQT_SIGNAL (clicked ()), this, TQT_SLOT (slotRecord ())); connect (recordButton, TQ_SIGNAL (clicked ()), this, TQ_SLOT (slotRecord ()));
TQHBoxLayout *buttonlayout = new TQHBoxLayout; TQHBoxLayout *buttonlayout = new TQHBoxLayout;
buttonlayout->addItem (new TQSpacerItem (0, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum)); buttonlayout->addItem (new TQSpacerItem (0, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum));
buttonlayout->addWidget (recordButton); buttonlayout->addWidget (recordButton);
@ -434,9 +434,9 @@ KDE_NO_CDTOR_EXPORT PrefRecordPage::PrefRecordPage (TQWidget *parent, PartBase *
layout->addItem (new TQSpacerItem (5, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum)); layout->addItem (new TQSpacerItem (5, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum));
layout->addLayout (buttonlayout); layout->addLayout (buttonlayout);
layout->addItem (new TQSpacerItem (5, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding)); layout->addItem (new TQSpacerItem (5, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding));
connect (m_player, TQT_SIGNAL (sourceChanged(KMPlayer::Source*,KMPlayer::Source*)), this, TQT_SLOT (sourceChanged(KMPlayer::Source*,KMPlayer::Source*))); connect (m_player, TQ_SIGNAL (sourceChanged(KMPlayer::Source*,KMPlayer::Source*)), this, TQ_SLOT (sourceChanged(KMPlayer::Source*,KMPlayer::Source*)));
connect (recorder, TQT_SIGNAL (clicked(int)), this, TQT_SLOT(recorderClicked(int))); connect (recorder, TQ_SIGNAL (clicked(int)), this, TQ_SLOT(recorderClicked(int)));
connect (replay, TQT_SIGNAL (clicked (int)), this, TQT_SLOT (replayClicked (int))); connect (replay, TQ_SIGNAL (clicked (int)), this, TQ_SLOT (replayClicked (int)));
} }
KDE_NO_EXPORT void PrefRecordPage::recordingStarted () { KDE_NO_EXPORT void PrefRecordPage::recordingStarted () {
@ -448,15 +448,15 @@ KDE_NO_EXPORT void PrefRecordPage::recordingStarted () {
KDE_NO_EXPORT void PrefRecordPage::recordingFinished () { KDE_NO_EXPORT void PrefRecordPage::recordingFinished () {
recordButton->setText (i18n ("Start Recording")); recordButton->setText (i18n ("Start Recording"));
url->setEnabled (true); url->setEnabled (true);
TQTimer::singleShot (0, m_player, TQT_SLOT(recordingStopped())); // removed from PartBase::setSource because PartBase::recordingStopped calls openURL and that will call PartBase::setSource and TQt doesn't like disconnecting/connecting a signal that is current TQTimer::singleShot (0, m_player, TQ_SLOT(recordingStopped())); // removed from PartBase::setSource because PartBase::recordingStopped calls openURL and that will call PartBase::setSource and TQt doesn't like disconnecting/connecting a signal that is current
} }
KDE_NO_EXPORT void PrefRecordPage::sourceChanged (Source * olds, Source * nws) { KDE_NO_EXPORT void PrefRecordPage::sourceChanged (Source * olds, Source * nws) {
int id = 0; int id = 0;
int nr_recs = 0; int nr_recs = 0;
if (olds) { if (olds) {
disconnect(nws,TQT_SIGNAL(startRecording()),this, TQT_SLOT(recordingStarted())); disconnect(nws,TQ_SIGNAL(startRecording()),this, TQ_SLOT(recordingStarted()));
disconnect(nws,TQT_SIGNAL(stopRecording()),this, TQT_SLOT(recordingFinished())); disconnect(nws,TQ_SIGNAL(stopRecording()),this, TQ_SLOT(recordingFinished()));
} }
if (nws) { if (nws) {
for (RecorderPage * p = m_recorders; p; p = p->next, ++id) { for (RecorderPage * p = m_recorders; p; p = p->next, ++id) {
@ -466,8 +466,8 @@ KDE_NO_EXPORT void PrefRecordPage::sourceChanged (Source * olds, Source * nws) {
if (b) nr_recs++; if (b) nr_recs++;
} }
source->setText (i18n ("Current Source: ") + nws->prettyName ()); source->setText (i18n ("Current Source: ") + nws->prettyName ());
connect (nws, TQT_SIGNAL(startRecording()), this, TQT_SLOT(recordingStarted())); connect (nws, TQ_SIGNAL(startRecording()), this, TQ_SLOT(recordingStarted()));
connect (nws, TQT_SIGNAL(stopRecording()), this, TQT_SLOT(recordingFinished())); connect (nws, TQ_SIGNAL(stopRecording()), this, TQ_SLOT(recordingFinished()));
} }
recordButton->setEnabled (nr_recs > 0); recordButton->setEnabled (nr_recs > 0);
} }
@ -490,8 +490,8 @@ KDE_NO_EXPORT void PrefRecordPage::replayClicked (int id) {
} }
KDE_NO_EXPORT void PrefRecordPage::slotRecord () { KDE_NO_EXPORT void PrefRecordPage::slotRecord () {
connect (m_player->source (), TQT_SIGNAL (stopPlaying ()), connect (m_player->source (), TQ_SIGNAL (stopPlaying ()),
this, TQT_SLOT (playingStopped ())); this, TQ_SLOT (playingStopped ()));
if (m_player->process () && m_player->process ()->playing ()) if (m_player->process () && m_player->process ()->playing ())
m_player->process ()->quit (); m_player->process ()->quit ();
else else
@ -499,8 +499,8 @@ KDE_NO_EXPORT void PrefRecordPage::slotRecord () {
} }
KDE_NO_EXPORT void PrefRecordPage::playingStopped () { KDE_NO_EXPORT void PrefRecordPage::playingStopped () {
disconnect (m_player->source (), TQT_SIGNAL (stopPlaying ()), disconnect (m_player->source (), TQ_SIGNAL (stopPlaying ()),
this, TQT_SLOT (playingStopped ())); this, TQ_SLOT (playingStopped ()));
if (!url->lineEdit()->text().isEmpty()) { if (!url->lineEdit()->text().isEmpty()) {
m_player->settings ()->recordfile = url->lineEdit()->text(); m_player->settings ()->recordfile = url->lineEdit()->text();
m_player->settings ()->replaytime = replaytime->text ().toInt (); m_player->settings ()->replaytime = replaytime->text ().toInt ();
@ -553,7 +553,7 @@ KDE_NO_CDTOR_EXPORT PrefMEncoderPage::PrefMEncoderPage (TQWidget *parent, PartBa
gridlayout->addWidget (arguments, 0, 1); gridlayout->addWidget (arguments, 0, 1);
layout->addWidget (format); layout->addWidget (format);
layout->addItem (new TQSpacerItem (0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding)); layout->addItem (new TQSpacerItem (0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding));
connect (format, TQT_SIGNAL (clicked (int)), this, TQT_SLOT (formatClicked (int))); connect (format, TQ_SIGNAL (clicked (int)), this, TQ_SLOT (formatClicked (int)));
} }
KDE_NO_EXPORT void PrefMEncoderPage::formatClicked (int id) { KDE_NO_EXPORT void PrefMEncoderPage::formatClicked (int id) {
@ -806,17 +806,17 @@ KDE_NO_CDTOR_EXPORT PrefOPPagePostProc::PrefOPPagePostProc(TQWidget *parent) : T
tabLayout->addWidget( PostprocessingOptions/*, 1, 0*/ ); tabLayout->addWidget( PostprocessingOptions/*, 1, 0*/ );
PostprocessingOptions->setEnabled(false); PostprocessingOptions->setEnabled(false);
connect( customPreset, TQT_SIGNAL (toggled(bool) ), customFilters, TQT_SLOT(setEnabled(bool))); connect( customPreset, TQ_SIGNAL (toggled(bool) ), customFilters, TQ_SLOT(setEnabled(bool)));
connect( postProcessing, TQT_SIGNAL( toggled(bool) ), PostprocessingOptions, TQT_SLOT( setEnabled(bool) ) ); connect( postProcessing, TQ_SIGNAL( toggled(bool) ), PostprocessingOptions, TQ_SLOT( setEnabled(bool) ) );
connect( HzDeblockFilter, TQT_SIGNAL( toggled(bool) ), HzDeblockAQuality, TQT_SLOT( setEnabled(bool) ) ); connect( HzDeblockFilter, TQ_SIGNAL( toggled(bool) ), HzDeblockAQuality, TQ_SLOT( setEnabled(bool) ) );
connect( HzDeblockFilter, TQT_SIGNAL( toggled(bool) ), HzDeblockCFiltering, TQT_SLOT( setEnabled(bool) ) ); connect( HzDeblockFilter, TQ_SIGNAL( toggled(bool) ), HzDeblockCFiltering, TQ_SLOT( setEnabled(bool) ) );
connect( VtDeblockFilter, TQT_SIGNAL( toggled(bool) ), VtDeblockCFiltering, TQT_SLOT( setEnabled(bool) ) ); connect( VtDeblockFilter, TQ_SIGNAL( toggled(bool) ), VtDeblockCFiltering, TQ_SLOT( setEnabled(bool) ) );
connect( VtDeblockFilter, TQT_SIGNAL( toggled(bool) ), VtDeblockAQuality, TQT_SLOT( setEnabled(bool) ) ); connect( VtDeblockFilter, TQ_SIGNAL( toggled(bool) ), VtDeblockAQuality, TQ_SLOT( setEnabled(bool) ) );
connect( DeringFilter, TQT_SIGNAL( toggled(bool) ), DeringAQuality, TQT_SLOT( setEnabled(bool) ) ); connect( DeringFilter, TQ_SIGNAL( toggled(bool) ), DeringAQuality, TQ_SLOT( setEnabled(bool) ) );
connect( DeringFilter, TQT_SIGNAL( toggled(bool) ), DeringCFiltering, TQT_SLOT( setEnabled(bool) ) ); connect( DeringFilter, TQ_SIGNAL( toggled(bool) ), DeringCFiltering, TQ_SLOT( setEnabled(bool) ) );
//connect( TmpNoiseFilter, TQT_SIGNAL( toggled(bool) ), TmpNoiseSlider, TQT_SLOT( setEnabled(bool) ) ); //connect( TmpNoiseFilter, TQ_SIGNAL( toggled(bool) ), TmpNoiseSlider, TQ_SLOT( setEnabled(bool) ) );
connect( AutolevelsFilter, TQT_SIGNAL( toggled(bool) ), AutolevelsFullrange, TQT_SLOT( setEnabled(bool) ) ); connect( AutolevelsFilter, TQ_SIGNAL( toggled(bool) ), AutolevelsFullrange, TQ_SLOT( setEnabled(bool) ) );
TQWhatsThis::add( defaultPreset, i18n( "Enable mplayer's default postprocessing filters" ) ); TQWhatsThis::add( defaultPreset, i18n( "Enable mplayer's default postprocessing filters" ) );
TQWhatsThis::add( customPreset, i18n( "Enable custom postprocessing filters (See: Custom preset -tab)" ) ); TQWhatsThis::add( customPreset, i18n( "Enable custom postprocessing filters (See: Custom preset -tab)" ) );

@ -1353,7 +1353,7 @@ KDE_NO_CDTOR_EXPORT ViewArea::ViewArea (TQWidget * parent, View * view)
m_minimal (false) { m_minimal (false) {
setEraseColor (TQColor (0, 0, 0)); setEraseColor (TQColor (0, 0, 0));
setAcceptDrops (true); setAcceptDrops (true);
new TDEAction (i18n ("Fullscreen"), TDEShortcut (TQt::Key_F), this, TQT_SLOT (accelActivated ()), m_collection, "view_fullscreen_toggle"); new TDEAction (i18n ("Fullscreen"), TDEShortcut (TQt::Key_F), this, TQ_SLOT (accelActivated ()), m_collection, "view_fullscreen_toggle");
setMouseTracking (true); setMouseTracking (true);
if (!image_data_map) if (!image_data_map)
imageCacheDeleter.setObject (image_data_map, new ImageDataMap); imageCacheDeleter.setObject (image_data_map, new ImageDataMap);
@ -1387,7 +1387,7 @@ KDE_NO_EXPORT void ViewArea::fullScreen () {
TQLabel * lbl = new TQLabel (i18n ("Scale:"), menu); TQLabel * lbl = new TQLabel (i18n ("Scale:"), menu);
scale_lbl_id = menu->insertItem (lbl, -1, 4); scale_lbl_id = menu->insertItem (lbl, -1, 4);
TQSlider * slider = new TQSlider (50, 150, 10, m_fullscreen_scale, TQt::Horizontal, menu); TQSlider * slider = new TQSlider (50, 150, 10, m_fullscreen_scale, TQt::Horizontal, menu);
connect (slider, TQT_SIGNAL (valueChanged (int)), this, TQT_SLOT (scale (int))); connect (slider, TQ_SIGNAL (valueChanged (int)), this, TQ_SLOT (scale (int)));
scale_slider_id = menu->insertItem (slider, -1, 5); scale_slider_id = menu->insertItem (slider, -1, 5);
m_view->controlPanel ()->button (ControlPanel::button_playlist)->setIconSet (TQIconSet (TQPixmap (normal_window_xpm))); m_view->controlPanel ()->button (ControlPanel::button_playlist)->setIconSet (TQIconSet (TQPixmap (normal_window_xpm)));
} }

@ -289,7 +289,7 @@ void Backend::play (int repeat_count) {
} }
void Backend::stop () { void Backend::stop () {
TQTimer::singleShot (0, xineapp, TQT_SLOT (stop ())); TQTimer::singleShot (0, xineapp, TQ_SLOT (stop ()));
} }
void Backend::pause () { void Backend::pause () {
@ -337,7 +337,7 @@ void Backend::quit () {
if (running) if (running)
stop (); stop ();
else else
TQTimer::singleShot (0, tqApp, TQT_SLOT (quit ())); TQTimer::singleShot (0, tqApp, TQ_SLOT (quit ()));
} }
bool updateConfigEntry (const TQString & name, const TQString & value) { bool updateConfigEntry (const TQString & name, const TQString & value) {
@ -441,7 +441,7 @@ void KXinePlayer::init () {
options[i+1] = 0L; options[i+1] = 0L;
xine_config_register_enum (xine, "audio.visualization", 0, (char ** ) options, 0L, 0L, 0, xine_config_cb, 0L); xine_config_register_enum (xine, "audio.visualization", 0, (char ** ) options, 0L, 0L, 0, xine_config_cb, 0L);
if (!callback) if (!callback)
TQTimer::singleShot (10, this, TQT_SLOT (play ())); TQTimer::singleShot (10, this, TQ_SLOT (play ()));
} }
KXinePlayer::~KXinePlayer () { KXinePlayer::~KXinePlayer () {
@ -613,7 +613,7 @@ void KXinePlayer::stop () {
xine_stop (sub_stream); xine_stop (sub_stream);
xine_stop (stream); xine_stop (stream);
mutex.unlock (); mutex.unlock ();
TQTimer::singleShot (10, this, TQT_SLOT (postFinished ())); TQTimer::singleShot (10, this, TQ_SLOT (postFinished ()));
} }
void KXinePlayer::postFinished () { void KXinePlayer::postFinished () {
@ -633,7 +633,7 @@ void KXinePlayer::pause () {
} }
void KXinePlayer::finished () { void KXinePlayer::finished () {
TQTimer::singleShot (10, this, TQT_SLOT (stop ())); TQTimer::singleShot (10, this, TQ_SLOT (stop ()));
} }
void KXinePlayer::setAudioLang (int id, const TQString & al) { void KXinePlayer::setAudioLang (int id, const TQString & al) {
@ -662,7 +662,7 @@ void KXinePlayer::updatePosition () {
movie_pos = pos; movie_pos = pos;
callback->moviePosition (pos/100); callback->moviePosition (pos/100);
} }
TQTimer::singleShot (500, this, TQT_SLOT (updatePosition ())); TQTimer::singleShot (500, this, TQ_SLOT (updatePosition ()));
} }
void KXinePlayer::saturation (int val) { void KXinePlayer::saturation (int val) {
@ -748,7 +748,7 @@ bool KXinePlayer::event (TQEvent * e) {
if (callback) if (callback)
callback->finished (); callback->finished ();
else else
TQTimer::singleShot (0, this, TQT_SLOT (quit ())); TQTimer::singleShot (0, this, TQ_SLOT (quit ()));
break; break;
} }
case event_size: { case event_size: {
@ -758,7 +758,7 @@ bool KXinePlayer::event (TQEvent * e) {
callback->movieParams (se->length/100, se->width, se->height, se->height ? 1.0*se->width/se->height : 1.0, se->alang, se->slang); callback->movieParams (se->length/100, se->width, se->height, se->height ? 1.0*se->width/se->height : 1.0, se->alang, se->slang);
if (se->first_frame) { if (se->first_frame) {
callback->playing (); callback->playing ();
TQTimer::singleShot (500, this, TQT_SLOT (updatePosition ())); TQTimer::singleShot (500, this, TQ_SLOT (updatePosition ()));
} }
} }
break; break;

@ -129,7 +129,7 @@ void Backend::play (int) {
} }
void Backend::stop () { void Backend::stop () {
TQTimer::singleShot (0, xvapp, TQT_SLOT (stop ())); TQTimer::singleShot (0, xvapp, TQ_SLOT (stop ()));
} }
void Backend::pause () { void Backend::pause () {
@ -179,7 +179,7 @@ void Backend::quit () {
if (running) if (running)
stop (); stop ();
else else
TQTimer::singleShot (0, tqApp, TQT_SLOT (quit ())); TQTimer::singleShot (0, tqApp, TQ_SLOT (quit ()));
} }
bool updateConfigEntry (const TQString & name, const TQString & value) { bool updateConfigEntry (const TQString & name, const TQString & value) {
@ -226,7 +226,7 @@ void KXVideoPlayer::init () {
wid = XCreateSimpleWindow(display, XDefaultRootWindow(display), wid = XCreateSimpleWindow(display, XDefaultRootWindow(display),
xpos, ypos, width, height, 1, 0, 0); xpos, ypos, width, height, 1, 0, 0);
if (!callback) if (!callback)
TQTimer::singleShot (10, this, TQT_SLOT (play ())); TQTimer::singleShot (10, this, TQ_SLOT (play ()));
XSelectInput (display, wid, XSelectInput (display, wid,
(PointerMotionMask | ExposureMask | KeyPressMask | ButtonPressMask | StructureNotifyMask)); // | SubstructureNotifyMask)); (PointerMotionMask | ExposureMask | KeyPressMask | ButtonPressMask | StructureNotifyMask)); // | SubstructureNotifyMask));
XvAdaptorInfo * ai; XvAdaptorInfo * ai;
@ -435,11 +435,11 @@ void KXVideoPlayer::stop () {
if (callback) if (callback)
callback->finished (); callback->finished ();
else else
TQTimer::singleShot (0, tqApp, TQT_SLOT (quit ())); TQTimer::singleShot (0, tqApp, TQ_SLOT (quit ()));
} }
void KXVideoPlayer::finished () { void KXVideoPlayer::finished () {
TQTimer::singleShot (10, this, TQT_SLOT (stop ())); TQTimer::singleShot (10, this, TQ_SLOT (stop ()));
} }
void KXVideoPlayer::saturation (int val) { void KXVideoPlayer::saturation (int val) {

Loading…
Cancel
Save