@ -585,7 +585,7 @@ KDE_NO_EXPORT void KMPlayerApp::initActions () {
new TDEAction ( i18n ( " &Open VCD " ) , TQString ( " cdrom_mount " ) , TDEShortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( openVCD ( ) ) , ac , " openvcd " ) ;
new TDEAction ( i18n ( " &Open Audio CD " ) , TQString ( " cdrom_mount " ) , TDEShortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( openAudioCD ( ) ) , ac , " openaudiocd " ) ;
new TDEAction ( i18n ( " &Open Pipe... " ) , TQString ( " pipe " ) , TDEShortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( openPipe ( ) ) , ac , " source_pipe " ) ;
//TDEGlobal::iconLoader ()->loadIconSet (TQString ("tv"), K Icon::Small, 0,true)
//TDEGlobal::iconLoader ()->loadIconSet (TQString ("tv"), TDE Icon::Small, 0,true)
new TDEAction ( i18n ( " &Connect " ) , TQString ( " connect_established " ) , TDEShortcut ( ) , TQT_TQOBJECT ( 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 " ) ;
@ -642,7 +642,7 @@ KDE_NO_EXPORT void KMPlayerApp::initMenu () {
menuBar ( ) - > insertItem ( i18n ( " &Bookmarks " ) , bookmarkmenu , - 1 , 2 ) ;
m_sourcemenu = menuBar ( ) - > findItem ( menuBar ( ) - > idAt ( 0 ) ) ;
m_sourcemenu - > setText ( i18n ( " S&ource " ) ) ;
m_sourcemenu - > popup ( ) - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " dvd_mount " ) , K Icon: : Small , 0 , true ) , i18n ( " &DVD " ) , m_dvdmenu , - 1 , 5 ) ;
m_sourcemenu - > popup ( ) - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " dvd_mount " ) , TDE Icon: : Small , 0 , true ) , i18n ( " &DVD " ) , m_dvdmenu , - 1 , 5 ) ;
m_dvdmenu - > clear ( ) ;
# ifdef HAVE_XINE
m_dvdnavmenu - > clear ( ) ;
@ -652,11 +652,11 @@ KDE_NO_EXPORT void KMPlayerApp::initMenu () {
# else
m_dvdmenu - > insertItem ( i18n ( " &Open DVD " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( openDVD ( ) ) , 0 , - 1 , 1 ) ;
# endif
m_sourcemenu - > popup ( ) - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " cdrom_mount " ) , K Icon: : Small , 0 , true ) , i18n ( " V&CD " ) , m_vcdmenu , - 1 , 6 ) ;
m_sourcemenu - > popup ( ) - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " cdrom_mount " ) , TDE Icon: : Small , 0 , true ) , i18n ( " V&CD " ) , m_vcdmenu , - 1 , 6 ) ;
m_vcdmenu - > clear ( ) ;
m_sourcemenu - > popup ( ) - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " tv " ) , K Icon: : Small , 0 , true ) , i18n ( " &TV " ) , m_tvmenu , - 1 , 8 ) ;
m_sourcemenu - > popup ( ) - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " tv " ) , TDE Icon: : Small , 0 , true ) , i18n ( " &TV " ) , m_tvmenu , - 1 , 8 ) ;
m_vcdmenu - > insertItem ( i18n ( " &Open VCD " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( openVCD ( ) ) , 0 , - 1 , 1 ) ;
m_sourcemenu - > popup ( ) - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " cdrom_mount " ) , K Icon: : Small , 0 , true ) , i18n ( " &Audio CD " ) , m_audiocdmenu , - 1 , 7 ) ;
m_sourcemenu - > popup ( ) - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " cdrom_mount " ) , TDE Icon: : Small , 0 , true ) , i18n ( " &Audio CD " ) , m_audiocdmenu , - 1 , 7 ) ;
m_audiocdmenu - > insertItem ( i18n ( " &Open Audio CD " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( openAudioCD ( ) ) , 0 , - 1 , 1 ) ;
}
@ -705,10 +705,10 @@ KDE_NO_EXPORT void KMPlayerApp::initView () {
TQT_TQOBJECT ( this ) , TQT_SLOT ( playListItemMoved ( ) ) ) ;
connect ( m_view - > playList ( ) , TQT_SIGNAL ( prepareMenu ( KMPlayer : : PlayListItem * , TQPopupMenu * ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( preparePlaylistMenu ( KMPlayer : : PlayListItem * , TQPopupMenu * ) ) ) ;
m_dropmenu = new TQPopupMenu ( m_view - > playList ( ) ) ;
m_dropmenu - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " player_playlist " ) , K Icon: : Small , 0 , true ) , i18n ( " &Add to list " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( menuDropInList ( ) ) ) ;
m_dropmenu - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " folder_grey " ) , K Icon: : Small , 0 , true ) , i18n ( " Add in new &Group " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( menuDropInGroup ( ) ) ) ;
m_dropmenu - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " editcopy " ) , K Icon: : Small , 0 , true ) , i18n ( " &Copy here " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( menuCopyDrop ( ) ) ) ;
m_dropmenu - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " editdelete " ) , K Icon: : Small , 0 , true ) , i18n ( " &Delete " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( menuDeleteNode ( ) ) ) ;
m_dropmenu - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " player_playlist " ) , TDE Icon: : Small , 0 , true ) , i18n ( " &Add to list " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( menuDropInList ( ) ) ) ;
m_dropmenu - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " folder_grey " ) , TDE Icon: : Small , 0 , true ) , i18n ( " Add in new &Group " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( menuDropInGroup ( ) ) ) ;
m_dropmenu - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " editcopy " ) , TDE Icon: : Small , 0 , true ) , i18n ( " &Copy here " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( menuCopyDrop ( ) ) ) ;
m_dropmenu - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " editdelete " ) , TDE Icon: : Small , 0 , true ) , i18n ( " &Delete " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( menuDeleteNode ( ) ) ) ;
/*TQPopupMenu * viewmenu = new TQPopupMenu;
viewmenu - > insertItem ( i18n ( " Full Screen " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( fullScreen ( ) ) ,
TQKeySequence ( " CTRL + Key_F " ) ) ;
@ -1669,12 +1669,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 ( " editdelete " ) , K Icon: : Small , 0 , true ) , i18n ( " &Delete item " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( menuDeleteNode ( ) ) ) ;
pm - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " editdelete " ) , TDE Icon: : Small , 0 , true ) , i18n ( " &Delete item " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( menuDeleteNode ( ) ) ) ;
if ( ri - > flags & KMPlayer : : PlayListView : : Moveable ) {
if ( manip_node - > previousSibling ( ) )
pm - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " up " ) , K Icon: : Small , 0 , true ) , i18n ( " &Move up " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( menuMoveUpNode ( ) ) ) ;
pm - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " up " ) , TDE Icon: : Small , 0 , true ) , i18n ( " &Move up " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( menuMoveUpNode ( ) ) ) ;
if ( manip_node - > nextSibling ( ) )
pm - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " down " ) , K Icon: : Small , 0 , true ) , i18n ( " Move &down " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( menuMoveDownNode ( ) ) ) ;
pm - > insertItem ( TDEGlobal : : iconLoader ( ) - > loadIconSet ( TQString ( " down " ) , TDE Icon: : Small , 0 , true ) , i18n ( " Move &down " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( menuMoveDownNode ( ) ) ) ;
}
}
}
@ -1706,7 +1706,7 @@ KDE_NO_EXPORT void KMPlayerApp::configChanged () {
viewKeepRatio - > setChecked ( m_player - > settings ( ) - > sizeratio ) ;
if ( m_player - > settings ( ) - > docksystray & & ! m_systray ) {
m_systray = new KSystemTray ( this ) ;
m_systray - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( TQString ( " kmplayer " ) , K Icon: : NoGroup , 22 ) ) ;
m_systray - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( TQString ( " kmplayer " ) , TDE Icon: : NoGroup , 22 ) ) ;
m_systray - > show ( ) ;
} else if ( ! m_player - > settings ( ) - > docksystray & & m_systray ) {
delete m_systray ;