diff options
Diffstat (limited to 'src/kmplayerapp.cpp')
-rw-r--r-- | src/kmplayerapp.cpp | 272 |
1 files changed, 136 insertions, 136 deletions
diff --git a/src/kmplayerapp.cpp b/src/kmplayerapp.cpp index 6463738..7d7abe8 100644 --- a/src/kmplayerapp.cpp +++ b/src/kmplayerapp.cpp @@ -516,8 +516,8 @@ KDE_NO_CDTOR_EXPORT KMPlayerApp::KMPlayerApp(TQWidget* , const char* name) m_minimal_mode (false) { setCentralWidget (m_view); - connect (m_broadcastconfig, TQT_SIGNAL (broadcastStarted()), this, TQT_SLOT (broadcastStarted())); - connect (m_broadcastconfig, TQT_SIGNAL (broadcastStopped()), this, TQT_SLOT (broadcastStopped())); + connect (m_broadcastconfig, TQ_SIGNAL (broadcastStarted()), this, TQ_SLOT (broadcastStarted())); + connect (m_broadcastconfig, TQ_SIGNAL (broadcastStopped()), this, TQ_SLOT (broadcastStopped())); initStatusBar(); #ifdef HAVE_DBUS 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; else 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 ); //setAutoSaveSettings(); @@ -574,49 +574,49 @@ KDE_NO_CDTOR_EXPORT KMPlayerApp::~KMPlayerApp () { KDE_NO_EXPORT void KMPlayerApp::initActions () { TDEActionCollection * ac = actionCollection (); - fileNewWindow = new TDEAction(i18n("New &Window"), 0, 0, this, TQT_SLOT(slotFileNewWindow()), ac, "new_window"); - fileOpen = KStdAction::open(this, TQT_SLOT(slotFileOpen()), ac, "open"); - fileOpenRecent = KStdAction::openRecent(this, TQT_SLOT(slotFileOpenRecent(const KURL&)), ac, "open_recent"); - KStdAction::saveAs (this, TQT_SLOT (slotSaveAs ()), ac, "save_as"); - new TDEAction (i18n ("Clear &History"), 0, 0, this, TQT_SLOT (slotClearHistory ()), ac, "clear_history"); - fileClose = KStdAction::close (this, TQT_SLOT (slotFileClose ()), ac); - fileQuit = KStdAction::quit (this, TQT_SLOT (slotFileQuit ()), ac); - new TDEAction (i18n ("&Open DVD"), TQString ("media-optical-dvd-mounted"), TDEShortcut (), this, TQT_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 Audio CD"), TQString ("media-optical-cdrom-mounted"), TDEShortcut (), this, TQT_SLOT(openAudioCD ()), ac, "openaudiocd"); - new TDEAction (i18n ("&Open Pipe..."), TQString ("pipe"), TDEShortcut (), this, TQT_SLOT(openPipe ()), ac, "source_pipe"); + fileNewWindow = new TDEAction(i18n("New &Window"), 0, 0, this, TQ_SLOT(slotFileNewWindow()), ac, "new_window"); + fileOpen = KStdAction::open(this, TQ_SLOT(slotFileOpen()), ac, "open"); + fileOpenRecent = KStdAction::openRecent(this, TQ_SLOT(slotFileOpenRecent(const KURL&)), ac, "open_recent"); + KStdAction::saveAs (this, TQ_SLOT (slotSaveAs ()), ac, "save_as"); + new TDEAction (i18n ("Clear &History"), 0, 0, this, TQ_SLOT (slotClearHistory ()), ac, "clear_history"); + fileClose = KStdAction::close (this, TQ_SLOT (slotFileClose ()), ac); + fileQuit = KStdAction::quit (this, TQ_SLOT (slotFileQuit ()), ac); + 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, TQ_SLOT(openVCD ()), ac, "openvcd"); + 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, TQ_SLOT(openPipe ()), ac, "source_pipe"); //TDEGlobal::iconLoader ()->loadIconSet (TQString ("tv"), TDEIcon::Small, 0,true) - new TDEAction (i18n ("&Connect"), TQString ("connect_established"), TDEShortcut (), this, TQT_SLOT (openVDR ()), ac, "vdr_connect"); - editVolumeInc = new TDEAction (i18n ("Increase Volume"), TQString ("player_volume"), TDEShortcut (), m_player, TQT_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"); - toggleView = new TDEAction (i18n ("C&onsole"), TQString ("konsole"), TDEShortcut (), m_player->view(), TQT_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 ("Pla&y List"), TQString ("player_playlist"), TDEShortcut (), m_player, TQT_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 ("50%"), 0, 0, this, TQT_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 ("150%"), 0, 0, this, TQT_SLOT (zoom150 ()), ac, "view_zoom_150"); - new TDEAction (i18n ("200%"), 0, TDEShortcut (), this, TQT_SLOT (zoom200 ()), ac, "view_zoom_200"); - new TDEAction (i18n ("300%"), 0, TDEShortcut (), this, TQT_SLOT (zoom300 ()), ac, "view_zoom_300"); - viewEditMode = new TDEToggleAction (i18n ("&Edit mode"), 0, 0, this, TQT_SLOT (editMode ()), ac, "edit_mode"); - viewSyncEditMode = new TDEAction (i18n ("Sync &with playlist"), TQString ("reload"), TDEShortcut (), this, TQT_SLOT (syncEditMode ()), ac, "sync_edit_mode"); + 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, TQ_SLOT (increaseVolume ()), ac, "edit_volume_up"); + 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(), TQ_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, TQ_SLOT (showPlayListWindow ()), ac, "view_playlist"); + new TDEAction (i18n ("Minimal mode"), TQString ("application-x-zerosize"), TDEShortcut (), this, TQ_SLOT (slotMinimalMode ()), ac, "view_minimal"); + new TDEAction (i18n ("50%"), 0, 0, this, TQ_SLOT (zoom50 ()), ac, "view_zoom_50"); + new TDEAction (i18n ("100%"), TQString ("zoom-fit-best"), TDEShortcut (), this, TQ_SLOT (zoom100 ()), ac, "view_zoom_100"); + new TDEAction (i18n ("150%"), 0, 0, this, TQ_SLOT (zoom150 ()), ac, "view_zoom_150"); + new TDEAction (i18n ("200%"), 0, TDEShortcut (), this, TQ_SLOT (zoom200 ()), ac, "view_zoom_200"); + new TDEAction (i18n ("300%"), 0, TDEShortcut (), this, TQ_SLOT (zoom300 ()), ac, "view_zoom_300"); + 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, TQ_SLOT (syncEditMode ()), ac, "sync_edit_mode"); 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 Language Menu"), TDEShortcut (TQt::Key_L), m_view->controlPanel (), TQT_SLOT (showLanguageMenu ()), ac, "view_show_lang_menu"); - viewKeepRatio = new TDEToggleAction (i18n ("&Keep Width/Height Ratio"), 0, this, TQT_SLOT (keepSizeRatio ()), ac, "view_keep_ratio"); + 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 (), TQ_SLOT (showLanguageMenu ()), ac, "view_show_lang_menu"); + viewKeepRatio = new TDEToggleAction (i18n ("&Keep Width/Height Ratio"), 0, this, TQ_SLOT (keepSizeRatio ()), ac, "view_keep_ratio"); #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 - 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 - /*TDEAction *playact =*/ new TDEAction (i18n ("P&lay"), TQString ("media-playback-start"), TDEShortcut (), m_player, TQT_SLOT (play ()), ac, "play"); - /*TDEAction *pauseact =*/ new TDEAction (i18n ("&Pause"), TQString ("media-playback-pause"), TDEShortcut (), m_player, TQT_SLOT (pause ()), ac, "pause"); - /*TDEAction *stopact =*/ new TDEAction (i18n ("&Stop"), TQString ("media-playback-stop"), TDEShortcut (), m_player, TQT_SLOT (stop ()), ac, "stop"); - /*TDEAction *artsctrl =*/ new TDEAction (i18n ("&Arts Control"), TQString ("player_volume"), TDEShortcut (), this, TQT_SLOT (startArtsControl ()), ac, "view_arts_control"); - viewToolBar = KStdAction::showToolbar(this, TQT_SLOT(slotViewToolBar()), ac, "showtoolbar"); - viewStatusBar =KStdAction::showStatusbar(this,TQT_SLOT(slotViewStatusBar()),ac, "showstatusbar"); - viewMenuBar = KStdAction::showMenubar(this, TQT_SLOT(slotViewMenuBar()), ac, "showmenu"); - KStdAction::preferences(m_player, TQT_SLOT(showConfigDialog()), ac,"configure"); + /*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, TQ_SLOT (pause ()), ac, "pause"); + /*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, TQ_SLOT (startArtsControl ()), ac, "view_arts_control"); + viewToolBar = KStdAction::showToolbar(this, TQ_SLOT(slotViewToolBar()), ac, "showtoolbar"); + viewStatusBar =KStdAction::showStatusbar(this,TQ_SLOT(slotViewStatusBar()),ac, "showstatusbar"); + viewMenuBar = KStdAction::showMenubar(this, TQ_SLOT(slotViewMenuBar()), ac, "showmenu"); + KStdAction::preferences(m_player, TQ_SLOT(showConfigDialog()), ac,"configure"); fileNewWindow->setStatusText(i18n("Opens a new application window")); fileOpen->setStatusText(i18n("Opens an existing 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")); viewStatusBar->setStatusText(i18n("Enables/disables the statusbar")); viewMenuBar->setStatusText(i18n("Enables/disables the menubar")); - KStdAction::keyBindings( this, TQT_SLOT(slotConfigureKeys()), ac, "configkeys"); - KStdAction::configureToolbars (this, TQT_SLOT (slotConfigureToolbars ()), ac, "configtoolbars"); + KStdAction::keyBindings( this, TQ_SLOT(slotConfigureKeys()), ac, "configkeys"); + KStdAction::configureToolbars (this, TQ_SLOT (slotConfigureToolbars ()), ac, "configtoolbars"); } KDE_NO_EXPORT void KMPlayerApp::initStatusBar () { @@ -646,71 +646,71 @@ KDE_NO_EXPORT void KMPlayerApp::initMenu () { m_dvdmenu->clear (); #ifdef HAVE_XINE 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 ("&Open DVD"), this, TQT_SLOT(openDVD ()), 0,-1, 2); + m_dvdmenu->insertItem (i18n ("&Open DVD"), this, TQ_SLOT(openDVD ()), 0,-1, 2); #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 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_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_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 () { //m_view->docArea ()->readDockConfig (config, TQString ("Window Layout")); m_player->connectPanel (m_view->controlPanel ()); initMenu (); - new TDEAction (i18n ("Increase Volume"), editVolumeInc->shortcut (), m_player, TQT_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"); - connect (m_player->settings (), TQT_SIGNAL (configChanged ()), - this, TQT_SLOT (configChanged ())); - connect (m_player, TQT_SIGNAL (loading (int)), - this, TQT_SLOT (loadingProgress (int))); - connect (m_player, TQT_SIGNAL (positioned (int, int)), - this, TQT_SLOT (positioned (int, int))); - connect (m_player, TQT_SIGNAL (statusUpdated (const TQString &)), - this, TQT_SLOT (slotStatusMsg (const TQString &))); - connect (m_view, TQT_SIGNAL (windowVideoConsoleToggled (int)), - this, TQT_SLOT (windowVideoConsoleToggled (int))); - connect (m_player, TQT_SIGNAL (sourceChanged (KMPlayer::Source *, KMPlayer::Source *)), this, TQT_SLOT (slotSourceChanged(KMPlayer::Source *, KMPlayer::Source *))); + 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, TQ_SLOT(decreaseVolume ()), m_view->viewArea ()->actionCollection (), "edit_volume_down"); + connect (m_player->settings (), TQ_SIGNAL (configChanged ()), + this, TQ_SLOT (configChanged ())); + connect (m_player, TQ_SIGNAL (loading (int)), + this, TQ_SLOT (loadingProgress (int))); + connect (m_player, TQ_SIGNAL (positioned (int, int)), + this, TQ_SLOT (positioned (int, int))); + connect (m_player, TQ_SIGNAL (statusUpdated (const TQString &)), + this, TQ_SLOT (slotStatusMsg (const TQString &))); + connect (m_view, TQ_SIGNAL (windowVideoConsoleToggled (int)), + this, TQ_SLOT (windowVideoConsoleToggled (int))); + 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, - this, TQT_SLOT (zoom50 ())); + this, TQ_SLOT (zoom50 ())); 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, - this, TQT_SLOT (zoom150 ())); + this, TQ_SLOT (zoom150 ())); 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, - this, TQT_SLOT (zoom300 ())); - connect (m_view->controlPanel()->broadcastButton (), TQT_SIGNAL (clicked ()), - this, TQT_SLOT (broadcastClicked ())); + this, TQ_SLOT (zoom300 ())); + connect (m_view->controlPanel()->broadcastButton (), TQ_SIGNAL (clicked ()), + this, TQ_SLOT (broadcastClicked ())); m_auto_resize = m_player->settings ()->autoresize; if (m_auto_resize) - connect (m_player, TQT_SIGNAL (sourceDimensionChanged ()), - this, TQT_SLOT (zoom100 ())); - connect (m_view, TQT_SIGNAL (fullScreenChanged ()), - this, TQT_SLOT (fullScreen ())); - connect (m_player, TQT_SIGNAL (toggleMinimalMode ()), - this, TQT_SLOT (slotMinimalMode ())); - connect (m_view->playList (), TQT_SIGNAL (selectionChanged (TQListViewItem *)), - this, TQT_SLOT (playListItemSelected (TQListViewItem *))); - connect (m_view->playList(), TQT_SIGNAL (dropped (TQDropEvent*, TQListViewItem*)), - this, TQT_SLOT (playListItemDropped (TQDropEvent *, TQListViewItem *))); - connect (m_view->playList(), TQT_SIGNAL (moved ()), - this, TQT_SLOT (playListItemMoved ())); - connect (m_view->playList(), TQT_SIGNAL (prepareMenu (KMPlayer::PlayListItem *, TQPopupMenu *)), this, TQT_SLOT (preparePlaylistMenu (KMPlayer::PlayListItem *, TQPopupMenu *))); + connect (m_player, TQ_SIGNAL (sourceDimensionChanged ()), + this, TQ_SLOT (zoom100 ())); + connect (m_view, TQ_SIGNAL (fullScreenChanged ()), + this, TQ_SLOT (fullScreen ())); + connect (m_player, TQ_SIGNAL (toggleMinimalMode ()), + this, TQ_SLOT (slotMinimalMode ())); + connect (m_view->playList (), TQ_SIGNAL (selectionChanged (TQListViewItem *)), + this, TQ_SLOT (playListItemSelected (TQListViewItem *))); + connect (m_view->playList(), TQ_SIGNAL (dropped (TQDropEvent*, TQListViewItem*)), + this, TQ_SLOT (playListItemDropped (TQDropEvent *, TQListViewItem *))); + connect (m_view->playList(), TQ_SIGNAL (moved ()), + this, TQ_SLOT (playListItemMoved ())); + 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->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 ("folder_grey"), TDEIcon::Small, 0, true), i18n ("Add in new &Group"), this, TQT_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-delete"), TDEIcon::Small, 0, true), i18n ("&Delete"), this, TQT_SLOT (menuDeleteNode ())); + 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, TQ_SLOT (menuDropInGroup ())); + 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, TQ_SLOT (menuDeleteNode ())); /*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")); menuBar ()->insertItem (i18n ("&View"), viewmenu, -1, 2);*/ //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) { if (olds) { - disconnect (olds, TQT_SIGNAL (titleChanged (const TQString &)), this, - TQT_SLOT (setCaption (const TQString &))); - disconnect (olds, TQT_SIGNAL (startPlaying ()), - this, TQT_SLOT (playerStarted ())); + disconnect (olds, TQ_SIGNAL (titleChanged (const TQString &)), this, + TQ_SLOT (setCaption (const TQString &))); + disconnect (olds, TQ_SIGNAL (startPlaying ()), + this, TQ_SLOT (playerStarted ())); } if (news) { setCaption (news->prettyName (), false); - connect (news, TQT_SIGNAL (titleChanged (const TQString &)), - this, TQT_SLOT (setCaption (const TQString &))); - connect (news, TQT_SIGNAL (startPlaying ()), - this, TQT_SLOT (playerStarted ())); + connect (news, TQ_SIGNAL (titleChanged (const TQString &)), + this, TQ_SLOT (setCaption (const TQString &))); + connect (news, TQ_SIGNAL (startPlaying ()), + this, TQ_SLOT (playerStarted ())); viewSyncEditMode->setEnabled (m_view->editMode () || !strcmp (m_player->source ()->name (), "urlsource")); } @@ -909,7 +909,7 @@ struct IntroSource : public KMPlayer::Source { KDE_NO_EXPORT void IntroSource::activate () { 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); TQString introfile = locate ("data", "kmplayer/intro.xml"); TQFile file (introfile); @@ -971,7 +971,7 @@ KDE_NO_EXPORT void IntroSource::stateElementChanged (KMPlayer::Node * node, KMPl KDE_NO_EXPORT void IntroSource::deactivate () { deactivated = true; 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 m_document->reset (); } @@ -1238,7 +1238,7 @@ KDE_NO_EXPORT void KMPlayerApp::minimalMode (bool by_user) { if (m_minimal_mode) { readOptions (); 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 (); } else { saveOptions (); @@ -1246,7 +1246,7 @@ KDE_NO_EXPORT void KMPlayerApp::minimalMode (bool by_user) { toolBar("mainToolBar")->hide(); statusBar()->hide(); 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_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() ) return true; 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; if (!m_minimal_mode) minimalMode (false); @@ -1343,8 +1343,8 @@ KDE_NO_EXPORT bool KMPlayerApp::queryExit() { if (!m_minimal_mode) saveOptions(); - disconnect (m_player->settings (), TQT_SIGNAL (configChanged ()), - this, TQT_SLOT (configChanged ())); + disconnect (m_player->settings (), TQ_SIGNAL (configChanged ()), + this, TQ_SLOT (configChanged ())); m_player->settings ()->writeConfig (); return true; } @@ -1489,7 +1489,7 @@ KDE_NO_EXPORT void KMPlayerApp::slotViewMenuBar() { slotStatusMsg (i18n ("Show Menubar with %1").arg(viewMenuBar->shortcutText())); if (!m_showStatusbar) { 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 (); manip_node = item->node; 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 (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 ()) - 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; } 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) - 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; static_cast <KMPlayerTVSource *> (m_player->sources () ["tvsource"])->buildMenu (); } @@ -1889,17 +1889,17 @@ KDE_NO_EXPORT void KMPlayerDVDSource::activate () { if (!m_player->settings ()->mplayerpost090) { m_menu->insertItem (i18n ("Audio &Language"), m_dvdlanguagemenu); m_menu->insertItem (i18n ("&SubTitles"), m_dvdsubtitlemenu); - connect (m_dvdsubtitlemenu, TQT_SIGNAL (activated (int)), - this, TQT_SLOT (subtitleMenuClicked (int))); - connect (m_dvdlanguagemenu, TQT_SIGNAL (activated (int)), - this, TQT_SLOT (languageMenuClicked (int))); + connect (m_dvdsubtitlemenu, TQ_SIGNAL (activated (int)), + this, TQ_SLOT (subtitleMenuClicked (int))); + connect (m_dvdlanguagemenu, TQ_SIGNAL (activated (int)), + this, TQ_SLOT (languageMenuClicked (int))); } - connect (m_dvdtitlemenu, TQT_SIGNAL (activated (int)), - this, TQT_SLOT (titleMenuClicked (int))); - connect (m_dvdchaptermenu, TQT_SIGNAL (activated (int)), - this, TQT_SLOT (chapterMenuClicked (int))); + connect (m_dvdtitlemenu, TQ_SIGNAL (activated (int)), + this, TQ_SLOT (titleMenuClicked (int))); + connect (m_dvdchaptermenu, TQ_SIGNAL (activated (int)), + this, TQ_SLOT (chapterMenuClicked (int))); 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) { @@ -1930,15 +1930,15 @@ KDE_NO_EXPORT void KMPlayerDVDSource::deactivate () { if (!m_player->settings ()->mplayerpost090) { m_menu->removeItemAt (m_menu->count () - 1); m_menu->removeItemAt (m_menu->count () - 1); - disconnect (m_dvdsubtitlemenu, TQT_SIGNAL (activated (int)), - this, TQT_SLOT (subtitleMenuClicked (int))); - disconnect (m_dvdlanguagemenu, TQT_SIGNAL (activated (int)), - this, TQT_SLOT (languageMenuClicked (int))); + disconnect (m_dvdsubtitlemenu, TQ_SIGNAL (activated (int)), + this, TQ_SLOT (subtitleMenuClicked (int))); + disconnect (m_dvdlanguagemenu, TQ_SIGNAL (activated (int)), + this, TQ_SLOT (languageMenuClicked (int))); } - disconnect (m_dvdtitlemenu, TQT_SIGNAL (activated (int)), - this, TQT_SLOT (titleMenuClicked (int))); - disconnect (m_dvdchaptermenu, TQT_SIGNAL (activated (int)), - this, TQT_SLOT (chapterMenuClicked (int))); + disconnect (m_dvdtitlemenu, TQ_SIGNAL (activated (int)), + this, TQ_SLOT (titleMenuClicked (int))); + disconnect (m_dvdchaptermenu, TQ_SIGNAL (activated (int)), + this, TQ_SLOT (chapterMenuClicked (int))); } } @@ -1985,7 +1985,7 @@ KDE_NO_EXPORT void KMPlayerDVDSource::titleMenuClicked (int id) { m_dvdchaptermenu->clear (); m_dvdlanguagemenu->clear (); 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 (); if (m_start_play) { 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 () { if (!m_menu->findItem (DVDNav_previous)) { - m_menu->insertItem (i18n ("&Previous"), this, TQT_SLOT (navMenuClicked (int)), 0, DVDNav_previous); - m_menu->insertItem (i18n ("&Next"), this, TQT_SLOT (navMenuClicked (int)), 0, DVDNav_next); - m_menu->insertItem (i18n ("&Root"), this, TQT_SLOT (navMenuClicked (int)), 0, DVDNav_root); - m_menu->insertItem (i18n ("&Up"), this, TQT_SLOT (navMenuClicked (int)), 0, DVDNav_up); + m_menu->insertItem (i18n ("&Previous"), this, TQ_SLOT (navMenuClicked (int)), 0, DVDNav_previous); + m_menu->insertItem (i18n ("&Next"), this, TQ_SLOT (navMenuClicked (int)), 0, DVDNav_next); + m_menu->insertItem (i18n ("&Root"), this, TQ_SLOT (navMenuClicked (int)), 0, DVDNav_root); + m_menu->insertItem (i18n ("&Up"), this, TQ_SLOT (navMenuClicked (int)), 0, DVDNav_up); } - TQTimer::singleShot (0, m_player, TQT_SLOT (play ())); - connect (this, TQT_SIGNAL (stopPlaying ()), this, TQT_SLOT(finished ())); + TQTimer::singleShot (0, m_player, TQ_SLOT (play ())); + connect (this, TQ_SIGNAL (stopPlaying ()), this, TQ_SLOT(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_next); m_menu->removeItem (DVDNav_root); @@ -2161,7 +2161,7 @@ KDE_NO_EXPORT void KMPlayerVCDSource::activate () { setURL (KURL ("vcd://")); buildArguments (); 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 () { @@ -2262,7 +2262,7 @@ KDE_NO_EXPORT void KMPlayerAudioCDSource::activate () { setURL (KURL ("cdda://")); buildArguments (); //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 () { @@ -2324,7 +2324,7 @@ KDE_NO_EXPORT void KMPlayerPipeSource::activate () { m_recordcmd = m_options = TQString ("-"); // or m_url? m_identified = true; reset (); - TQTimer::singleShot (0, m_player, TQT_SLOT (play ())); + TQTimer::singleShot (0, m_player, TQ_SLOT (play ())); m_app->slotStatusMsg (i18n ("Ready.")); } |