@ -497,7 +497,7 @@ KDE_NO_EXPORT KMPlayer::NodePtr HtmlObject::childFromTag (const TQString & tag)
}
KDE_NO_CDTOR_EXPORT KMPlayerApp : : KMPlayerApp ( TQWidget * , const char * name )
: K MainWindow( 0 , name ) ,
: TDE MainWindow( 0 , name ) ,
config ( kapp - > config ( ) ) ,
m_systray ( 0L ) ,
m_player ( new KMPlayer : : PartBase ( this , 0L , 0L , 0L , config ) ) ,
@ -573,46 +573,46 @@ KDE_NO_CDTOR_EXPORT KMPlayerApp::~KMPlayerApp () {
KDE_NO_EXPORT void KMPlayerApp : : initActions ( ) {
K ActionCollection * ac = actionCollection ( ) ;
fileNewWindow = new K Action( i18n ( " New &Window " ) , 0 , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFileNewWindow ( ) ) , ac , " new_window " ) ;
TDE ActionCollection * ac = actionCollection ( ) ;
fileNewWindow = new TDE Action( i18n ( " New &Window " ) , 0 , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFileNewWindow ( ) ) , ac , " new_window " ) ;
fileOpen = KStdAction : : open ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFileOpen ( ) ) , ac , " open " ) ;
fileOpenRecent = KStdAction : : openRecent ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFileOpenRecent ( const KURL & ) ) , ac , " open_recent " ) ;
KStdAction : : saveAs ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSaveAs ( ) ) , ac , " save_as " ) ;
new K Action ( i18n ( " Clear &History " ) , 0 , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotClearHistory ( ) ) , ac , " clear_history " ) ;
new TDE Action ( i18n ( " Clear &History " ) , 0 , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotClearHistory ( ) ) , ac , " clear_history " ) ;
fileClose = KStdAction : : close ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFileClose ( ) ) , ac ) ;
fileQuit = KStdAction : : quit ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFileQuit ( ) ) , ac ) ;
new K Action ( i18n ( " &Open DVD " ) , TQString ( " dvd_mount " ) , K Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( openDVD ( ) ) , ac , " opendvd " ) ;
new K Action ( i18n ( " &Open VCD " ) , TQString ( " cdrom_mount " ) , K Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( openVCD ( ) ) , ac , " openvcd " ) ;
new K Action ( i18n ( " &Open Audio CD " ) , TQString ( " cdrom_mount " ) , K Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( openAudioCD ( ) ) , ac , " openaudiocd " ) ;
new K Action ( i18n ( " &Open Pipe... " ) , TQString ( " pipe " ) , K Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( openPipe ( ) ) , ac , " source_pipe " ) ;
new TDE Action ( i18n ( " &Open DVD " ) , TQString ( " dvd_mount " ) , TDE Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( openDVD ( ) ) , ac , " opendvd " ) ;
new TDE Action ( i18n ( " &Open VCD " ) , TQString ( " cdrom_mount " ) , TDE Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( openVCD ( ) ) , ac , " openvcd " ) ;
new TDE Action ( i18n ( " &Open Audio CD " ) , TQString ( " cdrom_mount " ) , TDE Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( openAudioCD ( ) ) , ac , " openaudiocd " ) ;
new TDE Action ( i18n ( " &Open Pipe... " ) , TQString ( " pipe " ) , TDE Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( openPipe ( ) ) , ac , " source_pipe " ) ;
//TDEGlobal::iconLoader ()->loadIconSet (TQString ("tv"), KIcon::Small, 0,true)
new K Action ( i18n ( " &Connect " ) , TQString ( " connect_established " ) , K Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( openVDR ( ) ) , ac , " vdr_connect " ) ;
editVolumeInc = new K Action ( i18n ( " Increase Volume " ) , TQString ( " player_volume " ) , K Shortcut ( ) , m_player , TQT_SLOT ( increaseVolume ( ) ) , ac , " edit_volume_up " ) ;
editVolumeDec = new K Action ( i18n ( " Decrease Volume " ) , TQString ( " player_volume " ) , K Shortcut ( ) , m_player , TQT_SLOT ( decreaseVolume ( ) ) , ac , " edit_volume_down " ) ;
toggleView = new K Action ( i18n ( " C&onsole " ) , TQString ( " konsole " ) , K Shortcut ( ) , TQT_TQOBJECT ( m_player - > view ( ) ) , TQT_SLOT ( toggleVideoConsoleWindow ( ) ) , ac , " view_video " ) ;
//new KAction (i18n ("V&ideo"), TQString ("video"), K Shortcut (), m_view, TQT_SLOT (toggleVideoConsoleWindow ()), ac, "view_video");
new K Action ( i18n ( " Pla&y List " ) , TQString ( " player_playlist " ) , K Shortcut ( ) , m_player , TQT_SLOT ( showPlayListWindow ( ) ) , ac , " view_playlist " ) ;
new K Action ( i18n ( " Minimal mode " ) , TQString ( " empty " ) , K Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotMinimalMode ( ) ) , ac , " view_minimal " ) ;
new K Action ( i18n ( " 50% " ) , 0 , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( zoom50 ( ) ) , ac , " view_zoom_50 " ) ;
new K Action ( i18n ( " 100% " ) , TQString ( " viewmagfit " ) , K Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( zoom100 ( ) ) , ac , " view_zoom_100 " ) ;
new K Action ( i18n ( " 150% " ) , 0 , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( zoom150 ( ) ) , ac , " view_zoom_150 " ) ;
new K Action ( i18n ( " 200% " ) , 0 , K Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( zoom200 ( ) ) , ac , " view_zoom_200 " ) ;
new K Action ( i18n ( " 300% " ) , 0 , K Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( zoom300 ( ) ) , ac , " view_zoom_300 " ) ;
viewEditMode = new K ToggleAction ( i18n ( " &Edit mode " ) , 0 , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( editMode ( ) ) , ac , " edit_mode " ) ;
viewSyncEditMode = new K Action ( i18n ( " Sync &with playlist " ) , TQString ( " reload " ) , K Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( syncEditMode ( ) ) , ac , " sync_edit_mode " ) ;
new TDE Action ( i18n ( " &Connect " ) , TQString ( " connect_established " ) , TDE Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( openVDR ( ) ) , ac , " vdr_connect " ) ;
editVolumeInc = new TDE Action ( i18n ( " Increase Volume " ) , TQString ( " player_volume " ) , TDE Shortcut ( ) , m_player , TQT_SLOT ( increaseVolume ( ) ) , ac , " edit_volume_up " ) ;
editVolumeDec = new TDE Action ( i18n ( " Decrease Volume " ) , TQString ( " player_volume " ) , TDE Shortcut ( ) , m_player , TQT_SLOT ( decreaseVolume ( ) ) , ac , " edit_volume_down " ) ;
toggleView = new TDE Action ( i18n ( " C&onsole " ) , TQString ( " konsole " ) , TDE Shortcut ( ) , TQT_TQOBJECT ( m_player - > view ( ) ) , TQT_SLOT ( toggleVideoConsoleWindow ( ) ) , ac , " view_video " ) ;
//new TDEAction (i18n ("V&ideo"), TQString ("video"), TDE Shortcut (), m_view, TQT_SLOT (toggleVideoConsoleWindow ()), ac, "view_video");
new TDE Action ( i18n ( " Pla&y List " ) , TQString ( " player_playlist " ) , TDE Shortcut ( ) , m_player , TQT_SLOT ( showPlayListWindow ( ) ) , ac , " view_playlist " ) ;
new TDE Action ( i18n ( " Minimal mode " ) , TQString ( " empty " ) , TDE Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotMinimalMode ( ) ) , ac , " view_minimal " ) ;
new TDE Action ( i18n ( " 50% " ) , 0 , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( zoom50 ( ) ) , ac , " view_zoom_50 " ) ;
new TDE Action ( i18n ( " 100% " ) , TQString ( " viewmagfit " ) , TDE Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( zoom100 ( ) ) , ac , " view_zoom_100 " ) ;
new TDE Action ( i18n ( " 150% " ) , 0 , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( zoom150 ( ) ) , ac , " view_zoom_150 " ) ;
new TDE Action ( i18n ( " 200% " ) , 0 , TDE Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( zoom200 ( ) ) , ac , " view_zoom_200 " ) ;
new TDE Action ( i18n ( " 300% " ) , 0 , TDE Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( zoom300 ( ) ) , ac , " view_zoom_300 " ) ;
viewEditMode = new TDE ToggleAction ( i18n ( " &Edit mode " ) , 0 , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( editMode ( ) ) , ac , " edit_mode " ) ;
viewSyncEditMode = new TDE Action ( i18n ( " Sync &with playlist " ) , TQString ( " reload " ) , TDE Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( syncEditMode ( ) ) , ac , " sync_edit_mode " ) ;
viewSyncEditMode - > setEnabled ( false ) ;
new K Action ( i18n ( " Show Popup Menu " ) , K Shortcut ( ) , TQT_TQOBJECT ( m_view - > controlPanel ( ) ) , TQT_SLOT ( showPopupMenu ( ) ) , ac , " view_show_popup_menu " ) ;
new K Action ( i18n ( " Show Language Menu " ) , K Shortcut ( TQt : : Key_L ) , TQT_TQOBJECT ( m_view - > controlPanel ( ) ) , TQT_SLOT ( showLanguageMenu ( ) ) , ac , " view_show_lang_menu " ) ;
viewKeepRatio = new K ToggleAction ( i18n ( " &Keep Width/Height Ratio " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( keepSizeRatio ( ) ) , ac , " view_keep_ratio " ) ;
new TDE Action ( i18n ( " Show Popup Menu " ) , TDE Shortcut ( ) , TQT_TQOBJECT ( m_view - > controlPanel ( ) ) , TQT_SLOT ( showPopupMenu ( ) ) , ac , " view_show_popup_menu " ) ;
new TDE Action ( i18n ( " Show Language Menu " ) , TDE Shortcut ( TQt : : Key_L ) , TQT_TQOBJECT ( m_view - > controlPanel ( ) ) , TQT_SLOT ( showLanguageMenu ( ) ) , ac , " view_show_lang_menu " ) ;
viewKeepRatio = new TDE ToggleAction ( i18n ( " &Keep Width/Height Ratio " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( keepSizeRatio ( ) ) , ac , " view_keep_ratio " ) ;
# if KDE_IS_VERSION(3,1,90)
viewFullscreen = KStdAction : : fullScreen ( TQT_TQOBJECT ( this ) , TQT_SLOT ( fullScreen ( ) ) , ac , 0 , " view_fullscreen " ) ;
# else
viewFullscreen = new K Action ( i18n ( " &Full Screen " ) , 0 , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( fullScreen ( ) ) , ac , " view_fullscreen " ) ;
viewFullscreen = new TDE Action ( i18n ( " &Full Screen " ) , 0 , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( fullScreen ( ) ) , ac , " view_fullscreen " ) ;
# endif
/* KAction *playact =*/ new K Action ( i18n ( " P&lay " ) , TQString ( " player_play " ) , K Shortcut ( ) , m_player , TQT_SLOT ( play ( ) ) , ac , " play " ) ;
/* KAction *pauseact =*/ new K Action ( i18n ( " &Pause " ) , TQString ( " player_pause " ) , K Shortcut ( ) , m_player , TQT_SLOT ( pause ( ) ) , ac , " pause " ) ;
/* KAction *stopact =*/ new K Action ( i18n ( " &Stop " ) , TQString ( " player_stop " ) , K Shortcut ( ) , m_player , TQT_SLOT ( stop ( ) ) , ac , " stop " ) ;
/* KAction *artsctrl =*/ new K Action ( i18n ( " &Arts Control " ) , TQString ( " player_volume " ) , K Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( startArtsControl ( ) ) , ac , " view_arts_control " ) ;
/* TDEAction *playact =*/ new TDE Action ( i18n ( " P&lay " ) , TQString ( " player_play " ) , TDE Shortcut ( ) , m_player , TQT_SLOT ( play ( ) ) , ac , " play " ) ;
/* TDEAction *pauseact =*/ new TDE Action ( i18n ( " &Pause " ) , TQString ( " player_pause " ) , TDE Shortcut ( ) , m_player , TQT_SLOT ( pause ( ) ) , ac , " pause " ) ;
/* TDEAction *stopact =*/ new TDE Action ( i18n ( " &Stop " ) , TQString ( " player_stop " ) , TDE Shortcut ( ) , m_player , TQT_SLOT ( stop ( ) ) , ac , " stop " ) ;
/* TDEAction *artsctrl =*/ new TDE Action ( i18n ( " &Arts Control " ) , TQString ( " player_volume " ) , TDE Shortcut ( ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( startArtsControl ( ) ) , ac , " view_arts_control " ) ;
viewToolBar = KStdAction : : showToolbar ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewToolBar ( ) ) , ac , " showtoolbar " ) ;
viewStatusBar = KStdAction : : showStatusbar ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewStatusBar ( ) ) , ac , " showstatusbar " ) ;
viewMenuBar = KStdAction : : showMenubar ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotViewMenuBar ( ) ) , ac , " showmenu " ) ;
@ -664,8 +664,8 @@ KDE_NO_EXPORT void KMPlayerApp::initView () {
//m_view->docArea ()->readDockConfig (config, TQString ("Window Layout"));
m_player - > connectPanel ( m_view - > controlPanel ( ) ) ;
initMenu ( ) ;
new K Action ( i18n ( " Increase Volume " ) , editVolumeInc - > shortcut ( ) , m_player , TQT_SLOT ( increaseVolume ( ) ) , m_view - > viewArea ( ) - > actionCollection ( ) , " edit_volume_up " ) ;
new K Action ( i18n ( " Decrease Volume " ) , editVolumeDec - > shortcut ( ) , m_player , TQT_SLOT ( decreaseVolume ( ) ) , m_view - > viewArea ( ) - > actionCollection ( ) , " edit_volume_down " ) ;
new TDE Action ( i18n ( " Increase Volume " ) , editVolumeInc - > shortcut ( ) , m_player , TQT_SLOT ( increaseVolume ( ) ) , m_view - > viewArea ( ) - > actionCollection ( ) , " edit_volume_up " ) ;
new TDE Action ( i18n ( " Decrease Volume " ) , editVolumeDec - > shortcut ( ) , m_player , TQT_SLOT ( decreaseVolume ( ) ) , m_view - > viewArea ( ) - > actionCollection ( ) , " edit_volume_down " ) ;
connect ( m_player - > settings ( ) , TQT_SIGNAL ( configChanged ( ) ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( configChanged ( ) ) ) ;
connect ( m_player , TQT_SIGNAL ( loading ( int ) ) ,
@ -1193,8 +1193,8 @@ KDE_NO_EXPORT void KMPlayerApp::readOptions() {
config - > setGroup ( " General Options " ) ;
// bar position settings
K ToolBar: : BarPosition toolBarPos ;
toolBarPos = ( K ToolBar: : BarPosition ) config - > readNumEntry ( " ToolBarPos " , K ToolBar: : Top ) ;
TDE ToolBar: : BarPosition toolBarPos ;
toolBarPos = ( TDE ToolBar: : BarPosition ) config - > readNumEntry ( " ToolBarPos " , TDE ToolBar: : Top ) ;
toolBar ( " mainToolBar " ) - > setBarPos ( toolBarPos ) ;
// bar status settings
@ -1436,7 +1436,7 @@ KDE_NO_EXPORT void KMPlayerApp::slotFileQuit()
tqApp - > quit ( ) ;
// close the first window, the list makes the next one the first again.
// This ensures that queryClose() is called on each window to ask for closing
/* K MainWindow* w;
/* TDE MainWindow* w;
if ( memberList )
{
for ( w = memberList - > first ( ) ; w ! = 0 ; w = memberList - > first ( ) )
@ -1501,8 +1501,8 @@ KDE_NO_EXPORT void KMPlayerApp::slotStatusMsg (const TQString &text) {
}
KDE_NO_EXPORT void KMPlayerApp : : fullScreen ( ) {
// if (TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender ()))->metaObject ()->inherits (" K Action"))
if ( TQT_TQOBJECT ( const_cast < TQT_BASE_OBJECT_NAME * > ( sender ( ) ) ) - > inherits ( " K Action" ) )
// if (TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender ()))->metaObject ()->inherits (" TDE Action"))
if ( TQT_TQOBJECT ( const_cast < TQT_BASE_OBJECT_NAME * > ( sender ( ) ) ) - > inherits ( " TDE Action" ) )
m_view - > fullScreen ( ) ;
# if KDE_IS_VERSION(3,1,90)
viewFullscreen - > setChecked ( m_view - > isFullScreen ( ) ) ;