@ -516,8 +516,8 @@ KDE_NO_CDTOR_EXPORT KMPlayerApp::KMPlayerApp(TQWidget* , const char* name)
m_minimal_mode ( false )
{
setCentralWidget ( m_view ) ;
connect ( m_broadcastconfig , TQ T _SIGNAL ( broadcastStarted ( ) ) , this , TQ T _SLOT ( broadcastStarted ( ) ) ) ;
connect ( m_broadcastconfig , TQ T _SIGNAL ( broadcastStopped ( ) ) , this , TQ T _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 , TQ T _SIGNAL( timeout ( ) ) , this , TQ T _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 , TQ T _SLOT( slotFileNewWindow ( ) ) , ac , " new_window " ) ;
fileOpen = KStdAction : : open ( this , TQ T _SLOT( slotFileOpen ( ) ) , ac , " open " ) ;
fileOpenRecent = KStdAction : : openRecent ( this , TQ T _SLOT( slotFileOpenRecent ( const KURL & ) ) , ac , " open_recent " ) ;
KStdAction : : saveAs ( this , TQ T _SLOT ( slotSaveAs ( ) ) , ac , " save_as " ) ;
new TDEAction ( i18n ( " Clear &History " ) , 0 , 0 , this , TQ T _SLOT ( slotClearHistory ( ) ) , ac , " clear_history " ) ;
fileClose = KStdAction : : close ( this , TQ T _SLOT ( slotFileClose ( ) ) , ac ) ;
fileQuit = KStdAction : : quit ( this , TQ T _SLOT ( slotFileQuit ( ) ) , ac ) ;
new TDEAction ( i18n ( " &Open DVD " ) , TQString ( " media-optical-dvd-mounted " ) , TDEShortcut ( ) , this , TQ T _SLOT( openDVD ( ) ) , ac , " opendvd " ) ;
new TDEAction ( i18n ( " &Open VCD " ) , TQString ( " media-optical-cdrom-mounted " ) , TDEShortcut ( ) , this , TQ T _SLOT( openVCD ( ) ) , ac , " openvcd " ) ;
new TDEAction ( i18n ( " &Open Audio CD " ) , TQString ( " media-optical-cdrom-mounted " ) , TDEShortcut ( ) , this , TQ T _SLOT( openAudioCD ( ) ) , ac , " openaudiocd " ) ;
new TDEAction ( i18n ( " &Open Pipe... " ) , TQString ( " pipe " ) , TDEShortcut ( ) , this , TQ T _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 , TQ T _SLOT ( openVDR ( ) ) , ac , " vdr_connect " ) ;
editVolumeInc = new TDEAction ( i18n ( " Increase Volume " ) , TQString ( " player_volume " ) , TDEShortcut ( ) , m_player , TQ T _SLOT ( increaseVolume ( ) ) , ac , " edit_volume_up " ) ;
editVolumeDec = new TDEAction ( i18n ( " Decrease Volume " ) , TQString ( " player_volume " ) , TDEShortcut ( ) , m_player , TQ T _SLOT( decreaseVolume ( ) ) , ac , " edit_volume_down " ) ;
toggleView = new TDEAction ( i18n ( " C&onsole " ) , TQString ( " konsole " ) , TDEShortcut ( ) , m_player - > view ( ) , TQ T _SLOT ( toggleVideoConsoleWindow ( ) ) , ac , " view_video " ) ;
//new TDEAction (i18n ("V&ideo"), TQString (video-x-generic"), TDEShortcut (), m_view, TQ T _SLOT (toggleVideoConsoleWindow ()), ac, "view_video");
new TDEAction ( i18n ( " Pla&y List " ) , TQString ( " player_playlist " ) , TDEShortcut ( ) , m_player , TQ T _SLOT ( showPlayListWindow ( ) ) , ac , " view_playlist " ) ;
new TDEAction ( i18n ( " Minimal mode " ) , TQString ( " application-x-zerosize " ) , TDEShortcut ( ) , this , TQ T _SLOT ( slotMinimalMode ( ) ) , ac , " view_minimal " ) ;
new TDEAction ( i18n ( " 50% " ) , 0 , 0 , this , TQ T _SLOT ( zoom50 ( ) ) , ac , " view_zoom_50 " ) ;
new TDEAction ( i18n ( " 100% " ) , TQString ( " zoom-fit-best " ) , TDEShortcut ( ) , this , TQ T _SLOT ( zoom100 ( ) ) , ac , " view_zoom_100 " ) ;
new TDEAction ( i18n ( " 150% " ) , 0 , 0 , this , TQ T _SLOT ( zoom150 ( ) ) , ac , " view_zoom_150 " ) ;
new TDEAction ( i18n ( " 200% " ) , 0 , TDEShortcut ( ) , this , TQ T _SLOT ( zoom200 ( ) ) , ac , " view_zoom_200 " ) ;
new TDEAction ( i18n ( " 300% " ) , 0 , TDEShortcut ( ) , this , TQ T _SLOT ( zoom300 ( ) ) , ac , " view_zoom_300 " ) ;
viewEditMode = new TDEToggleAction ( i18n ( " &Edit mode " ) , 0 , 0 , this , TQ T _SLOT ( editMode ( ) ) , ac , " edit_mode " ) ;
viewSyncEditMode = new TDEAction ( i18n ( " Sync &with playlist " ) , TQString ( " reload " ) , TDEShortcut ( ) , this , TQ T _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 ( ) , TQ T _SLOT ( showPopupMenu ( ) ) , ac , " view_show_popup_menu " ) ;
new TDEAction ( i18n ( " Show Language Menu " ) , TDEShortcut ( TQt : : Key_L ) , m_view - > controlPanel ( ) , TQ T _SLOT ( showLanguageMenu ( ) ) , ac , " view_show_lang_menu " ) ;
viewKeepRatio = new TDEToggleAction ( i18n ( " &Keep Width/Height Ratio " ) , 0 , this , TQ T _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 , TQ T _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 , TQ T _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 , TQ T _SLOT ( play ( ) ) , ac , " play " ) ;
/*TDEAction *pauseact =*/ new TDEAction ( i18n ( " &Pause " ) , TQString ( " media-playback-pause " ) , TDEShortcut ( ) , m_player , TQ T _SLOT ( pause ( ) ) , ac , " pause " ) ;
/*TDEAction *stopact =*/ new TDEAction ( i18n ( " &Stop " ) , TQString ( " media-playback-stop " ) , TDEShortcut ( ) , m_player , TQ T _SLOT ( stop ( ) ) , ac , " stop " ) ;
/*TDEAction *artsctrl =*/ new TDEAction ( i18n ( " &Arts Control " ) , TQString ( " player_volume " ) , TDEShortcut ( ) , this , TQ T _SLOT ( startArtsControl ( ) ) , ac , " view_arts_control " ) ;
viewToolBar = KStdAction : : showToolbar ( this , TQ T _SLOT( slotViewToolBar ( ) ) , ac , " showtoolbar " ) ;
viewStatusBar = KStdAction : : showStatusbar ( this , TQ T _SLOT( slotViewStatusBar ( ) ) , ac , " showstatusbar " ) ;
viewMenuBar = KStdAction : : showMenubar ( this , TQ T _SLOT( slotViewMenuBar ( ) ) , ac , " showmenu " ) ;
KStdAction : : preferences ( m_player , TQ T _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 , TQ T _SLOT( slotConfigureKeys ( ) ) , ac , " configkeys " ) ;
KStdAction : : configureToolbars ( this , TQ T _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 , TQ T _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 , TQ T _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 , TQ T _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 , TQ T _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 , TQ T _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 , TQ T _SLOT ( increaseVolume ( ) ) , m_view - > viewArea ( ) - > actionCollection ( ) , " edit_volume_up " ) ;
new TDEAction ( i18n ( " Decrease Volume " ) , editVolumeDec - > shortcut ( ) , m_player , TQ T _SLOT( decreaseVolume ( ) ) , m_view - > viewArea ( ) - > actionCollection ( ) , " edit_volume_down " ) ;
connect ( m_player - > settings ( ) , TQ T _SIGNAL ( configChanged ( ) ) ,
this , TQ T _SLOT ( configChanged ( ) ) ) ;
connect ( m_player , TQ T _SIGNAL ( loading ( int ) ) ,
this , TQ T _SLOT ( loadingProgress ( int ) ) ) ;
connect ( m_player , TQ T _SIGNAL ( positioned ( int , int ) ) ,
this , TQ T _SLOT ( positioned ( int , int ) ) ) ;
connect ( m_player , TQ T _SIGNAL ( statusUpdated ( const TQString & ) ) ,
this , TQ T _SLOT ( slotStatusMsg ( const TQString & ) ) ) ;
connect ( m_view , TQ T _SIGNAL ( windowVideoConsoleToggled ( int ) ) ,
this , TQ T _SLOT ( windowVideoConsoleToggled ( int ) ) ) ;
connect ( m_player , TQ T _SIGNAL ( sourceChanged ( KMPlayer : : Source * , KMPlayer : : Source * ) ) , this , TQ T _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 , TQ T _SLOT ( zoom50 ( ) ) ) ;
this , TQ _SLOT ( zoom50 ( ) ) ) ;
m_view - > controlPanel ( ) - > zoomMenu ( ) - > connectItem ( KMPlayer : : ControlPanel : : menu_zoom100 ,
this , TQ T _SLOT ( zoom100 ( ) ) ) ;
this , TQ _SLOT ( zoom100 ( ) ) ) ;
m_view - > controlPanel ( ) - > zoomMenu ( ) - > connectItem ( KMPlayer : : ControlPanel : : menu_zoom150 ,
this , TQ T _SLOT ( zoom150 ( ) ) ) ;
this , TQ _SLOT ( zoom150 ( ) ) ) ;
m_view - > controlPanel ( ) - > zoomMenu ( ) - > connectItem ( KMPlayer : : ControlPanel : : menu_zoom200 ,
this , TQ T _SLOT ( zoom200 ( ) ) ) ;
this , TQ _SLOT ( zoom200 ( ) ) ) ;
m_view - > controlPanel ( ) - > zoomMenu ( ) - > connectItem ( KMPlayer : : ControlPanel : : menu_zoom300 ,
this , TQ T _SLOT ( zoom300 ( ) ) ) ;
connect ( m_view - > controlPanel ( ) - > broadcastButton ( ) , TQ T _SIGNAL ( clicked ( ) ) ,
this , TQ T _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 , TQ T _SIGNAL ( sourceDimensionChanged ( ) ) ,
this , TQ T _SLOT ( zoom100 ( ) ) ) ;
connect ( m_view , TQ T _SIGNAL ( fullScreenChanged ( ) ) ,
this , TQ T _SLOT ( fullScreen ( ) ) ) ;
connect ( m_player , TQ T _SIGNAL ( toggleMinimalMode ( ) ) ,
this , TQ T _SLOT ( slotMinimalMode ( ) ) ) ;
connect ( m_view - > playList ( ) , TQ T _SIGNAL ( selectionChanged ( TQListViewItem * ) ) ,
this , TQ T _SLOT ( playListItemSelected ( TQListViewItem * ) ) ) ;
connect ( m_view - > playList ( ) , TQ T _SIGNAL ( dropped ( TQDropEvent * , TQListViewItem * ) ) ,
this , TQ T _SLOT ( playListItemDropped ( TQDropEvent * , TQListViewItem * ) ) ) ;
connect ( m_view - > playList ( ) , TQ T _SIGNAL ( moved ( ) ) ,
this , TQ T _SLOT ( playListItemMoved ( ) ) ) ;
connect ( m_view - > playList ( ) , TQ T _SIGNAL ( prepareMenu ( KMPlayer : : PlayListItem * , TQPopupMenu * ) ) , this , TQ T _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 , TQ T _SLOT ( menuDropInList ( ) ) ) ;
m_dropmenu - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " folder_grey " ) , TDEIcon : : Small , 0 , true ) , i18n ( " Add in new &Group " ) , this , TQ T _SLOT ( menuDropInGroup ( ) ) ) ;
m_dropmenu - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " edit-copy " ) , TDEIcon : : Small , 0 , true ) , i18n ( " &Copy here " ) , this , TQ T _SLOT ( menuCopyDrop ( ) ) ) ;
m_dropmenu - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " edit-delete " ) , TDEIcon : : Small , 0 , true ) , i18n ( " &Delete " ) , this , TQ T _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 , TQ T _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 , TQ T _SIGNAL ( titleChanged ( const TQString & ) ) , this ,
TQ T _SLOT ( setCaption ( const TQString & ) ) ) ;
disconnect ( olds , TQ T _SIGNAL ( startPlaying ( ) ) ,
this , TQ T _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 , TQ T _SIGNAL ( titleChanged ( const TQString & ) ) ,
this , TQ T _SLOT ( setCaption ( const TQString & ) ) ) ;
connect ( news , TQ T _SIGNAL ( startPlaying ( ) ) ,
this , TQ T _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 , TQ T _SIGNAL( sourceDimensionChanged ( ) ) , m_app , TQ T _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 , TQ T _SIGNAL( sourceDimensionChanged ( ) ) , m_app , TQ T _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 ) , TQ T _SIGNAL ( clicked ( ) ) , this , TQ T _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 ) , TQ T _SIGNAL ( clicked ( ) ) , this , TQ T _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 , TQ T _SIGNAL( sourceDimensionChanged ( ) ) , this , TQ T _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 ( ) , TQ T _SIGNAL ( configChanged ( ) ) ,
this , TQ T _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 ( ) , TQ T _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 , TQ T _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 , TQ T _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 , TQ T _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 , TQ T _SIGNAL( sourceDimensionChanged ( ) ) , this , TQ T _SLOT( zoom100 ( ) ) ) ;
connect ( m_player , TQ _SIGNAL( sourceDimensionChanged ( ) ) , this , TQ _SLOT( zoom100 ( ) ) ) ;
else if ( ! m_player - > settings ( ) - > autoresize & & m_auto_resize )
disconnect ( m_player , TQ T _SIGNAL( sourceDimensionChanged ( ) ) , this , TQ T _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 , TQ T _SIGNAL ( activated ( int ) ) ,
this , TQ T _SLOT ( subtitleMenuClicked ( int ) ) ) ;
connect ( m_dvdlanguagemenu , TQ T _SIGNAL ( activated ( int ) ) ,
this , TQ T _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 , TQ T _SIGNAL ( activated ( int ) ) ,
this , TQ T _SLOT ( titleMenuClicked ( int ) ) ) ;
connect ( m_dvdchaptermenu , TQ T _SIGNAL ( activated ( int ) ) ,
this , TQ T _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 , TQ T _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 , TQ T _SIGNAL ( activated ( int ) ) ,
this , TQ T _SLOT ( subtitleMenuClicked ( int ) ) ) ;
disconnect ( m_dvdlanguagemenu , TQ T _SIGNAL ( activated ( int ) ) ,
this , TQ T _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 , TQ T _SIGNAL ( activated ( int ) ) ,
this , TQ T _SLOT ( titleMenuClicked ( int ) ) ) ;
disconnect ( m_dvdchaptermenu , TQ T _SIGNAL ( activated ( int ) ) ,
this , TQ T _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 , TQ T _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 , TQ T _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 , TQ T _SLOT ( navMenuClicked ( int ) ) , 0 , DVDNav_previous ) ;
m_menu - > insertItem ( i18n ( " &Next " ) , this , TQ T _SLOT ( navMenuClicked ( int ) ) , 0 , DVDNav_next ) ;
m_menu - > insertItem ( i18n ( " &Root " ) , this , TQ T _SLOT ( navMenuClicked ( int ) ) , 0 , DVDNav_root ) ;
m_menu - > insertItem ( i18n ( " &Up " ) , this , TQ T _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 , TQ T _SLOT ( play ( ) ) ) ;
connect ( this , TQ T _SIGNAL ( stopPlaying ( ) ) , this , TQ T _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 , TQ T _SIGNAL ( stopPlaying ( ) ) , this , TQ T _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 , TQ T _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 , TQ T _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 , TQ T _SLOT ( play ( ) ) ) ;
TQTimer : : singleShot ( 0 , m_player , TQ _SLOT ( play ( ) ) ) ;
m_app - > slotStatusMsg ( i18n ( " Ready. " ) ) ;
}