@ -123,37 +123,37 @@ PlaylistWindow::PlaylistWindow()
new K3bExporter ( ) ;
KStdAction : : configureToolbars ( TQT_TQOBJECT( kapp) , TQT_SLOT ( slotConfigToolBars ( ) ) , ac ) ;
KStdAction : : keyBindings ( TQT_TQOBJECT( kapp) , TQT_SLOT ( slotConfigShortcuts ( ) ) , ac ) ;
KStdAction : : keyBindings ( TQT_TQOBJECT( kapp) , TQT_SLOT ( slotConfigGlobalShortcuts ( ) ) , ac , " options_configure_globals " ) ;
KStdAction : : preferences ( TQT_TQOBJECT( kapp) , TQT_SLOT ( slotConfigAmarok ( ) ) , ac ) ;
KStdAction : : configureToolbars ( kapp, TQT_SLOT ( slotConfigToolBars ( ) ) , ac ) ;
KStdAction : : keyBindings ( kapp, TQT_SLOT ( slotConfigShortcuts ( ) ) , ac ) ;
KStdAction : : keyBindings ( kapp, TQT_SLOT ( slotConfigGlobalShortcuts ( ) ) , ac , " options_configure_globals " ) ;
KStdAction : : preferences ( kapp, TQT_SLOT ( slotConfigAmarok ( ) ) , ac ) ;
ac - > action ( " options_configure_globals " ) - > setIcon ( Amarok : : icon ( " configure " ) ) ;
ac - > action ( KStdAction : : name ( KStdAction : : KeyBindings ) ) - > setIcon ( Amarok : : icon ( " configure " ) ) ;
ac - > action ( KStdAction : : name ( KStdAction : : ConfigureToolbars ) ) - > setIcon ( Amarok : : icon ( " configure " ) ) ;
ac - > action ( KStdAction : : name ( KStdAction : : Preferences ) ) - > setIcon ( Amarok : : icon ( " configure " ) ) ;
KStdAction : : quit ( TQT_TQOBJECT( kapp) , TQT_SLOT ( quit ( ) ) , ac ) ;
KStdAction : : open ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAddLocation ( ) ) , ac , " playlist_add " ) - > setText ( i18n ( " &Add Media... " ) ) ;
KStdAction : : quit ( kapp, TQT_SLOT ( quit ( ) ) , ac ) ;
KStdAction : : open ( this , TQT_SLOT ( slotAddLocation ( ) ) , ac , " playlist_add " ) - > setText ( i18n ( " &Add Media... " ) ) ;
ac - > action ( " playlist_add " ) - > setIcon ( Amarok : : icon ( " files " ) ) ;
KStdAction : : open ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAddStream ( ) ) , ac , " stream_add " ) - > setText ( i18n ( " &Add Stream... " ) ) ;
KStdAction : : open ( this , TQT_SLOT ( slotAddStream ( ) ) , ac , " stream_add " ) - > setText ( i18n ( " &Add Stream... " ) ) ;
ac - > action ( " stream_add " ) - > setIcon ( Amarok : : icon ( " files " ) ) ;
KStdAction : : save ( TQT_TQOBJECT ( this ) , TQT_SLOT ( savePlaylist ( ) ) , ac , " playlist_save " ) - > setText ( i18n ( " &Save Playlist As... " ) ) ;
KStdAction : : save ( this , TQT_SLOT ( savePlaylist ( ) ) , ac , " playlist_save " ) - > setText ( i18n ( " &Save Playlist As... " ) ) ;
ac - > action ( " playlist_save " ) - > setIcon ( Amarok : : icon ( " save " ) ) ;
# ifndef TQ_WS_MAC
KStdAction : : showMenubar ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotToggleMenu ( ) ) , ac ) ;
KStdAction : : showMenubar ( this , TQT_SLOT ( slotToggleMenu ( ) ) , ac ) ;
# endif
//FIXME: after string freeze rename to "Burn Current Playlist"?
new TDEAction ( i18n ( " Burn to CD " ) , Amarok : : icon ( " burn " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotBurnPlaylist ( ) ) , ac , " playlist_burn " ) ;
new TDEAction ( i18n ( " Burn to CD " ) , Amarok : : icon ( " burn " ) , 0 , this , TQT_SLOT ( slotBurnPlaylist ( ) ) , ac , " playlist_burn " ) ;
actionCollection ( ) - > action ( " playlist_burn " ) - > setEnabled ( K3bExporter : : isAvailable ( ) ) ;
new TDEAction ( i18n ( " Play Media... " ) , Amarok : : icon ( " files " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPlayMedia ( ) ) , ac , " playlist_playmedia " ) ;
new TDEAction ( i18n ( " Play Audio CD " ) , Amarok : : icon ( " album " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( playAudioCD ( ) ) , ac , " play_audiocd " ) ;
new TDEAction ( i18n ( " Play Media... " ) , Amarok : : icon ( " files " ) , 0 , this , TQT_SLOT ( slotPlayMedia ( ) ) , ac , " playlist_playmedia " ) ;
new TDEAction ( i18n ( " Play Audio CD " ) , Amarok : : icon ( " album " ) , 0 , this , TQT_SLOT ( playAudioCD ( ) ) , ac , " play_audiocd " ) ;
TDEAction * playPause = new TDEAction ( i18n ( " &Play/Pause " ) , Amarok : : icon ( " play " ) , Key_Space , ec , TQT_SLOT ( playPause ( ) ) , ac , " play_pause " ) ;
new TDEAction ( i18n ( " Script Manager " ) , Amarok : : icon ( " scripts " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( showScriptSelector ( ) ) , ac , " script_manager " ) ;
new TDEAction ( i18n ( " Queue Manager " ) , Amarok : : icon ( " queue " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( showQueueManager ( ) ) , ac , " queue_manager " ) ;
new TDEAction ( i18n ( " Script Manager " ) , Amarok : : icon ( " scripts " ) , 0 , this , TQT_SLOT ( showScriptSelector ( ) ) , ac , " script_manager " ) ;
new TDEAction ( i18n ( " Queue Manager " ) , Amarok : : icon ( " queue " ) , 0 , this , TQT_SLOT ( showQueueManager ( ) ) , ac , " queue_manager " ) ;
TDEAction * seekForward = new TDEAction ( i18n ( " &Seek Forward " ) , Amarok : : icon ( " fastforward " ) , Key_Right , ec , TQT_SLOT ( seekForward ( ) ) , ac , " seek_forward " ) ;
TDEAction * seekBackward = new TDEAction ( i18n ( " &Seek Backward " ) , Amarok : : icon ( " rewind " ) , Key_Left , ec , TQT_SLOT ( seekBackward ( ) ) , ac , " seek_backward " ) ;
new TDEAction ( i18n ( " Statistics " ) , Amarok : : icon ( " info " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( showStatistics ( ) ) , ac , " statistics " ) ;
new TDEAction ( i18n ( " Statistics " ) , Amarok : : icon ( " info " ) , 0 , this , TQT_SLOT ( showStatistics ( ) ) , ac , " statistics " ) ;
new TDEAction ( i18n ( " Update Collection " ) , Amarok : : icon ( " refresh " ) , 0 , CollectionDB : : instance ( ) , TQT_SLOT ( scanModifiedDirs ( ) ) , actionCollection ( ) , " update_collection " ) ;
m_lastfmTags < < " Alternative " < < " Ambient " < < " Chill Out " < < " Classical " < < " Dance "
@ -196,7 +196,7 @@ PlaylistWindow::PlaylistWindow()
new TDEAction ( i18n ( " Pause " ) , Amarok : : icon ( " pause " ) , 0 , ec , TQT_SLOT ( pause ( ) ) , ac , " pause " ) ;
new TDEAction ( i18n ( " Next Track " ) , Amarok : : icon ( " next " ) , 0 , ec , TQT_SLOT ( next ( ) ) , ac , " next " ) ;
TDEAction * toggleFocus = new TDEAction ( i18n ( " Toggle Focus " ) , " reload " , CTRL + Key_Tab , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotToggleFocus ( ) ) , ac , " toggle_focus " ) ;
TDEAction * toggleFocus = new TDEAction ( i18n ( " Toggle Focus " ) , " reload " , CTRL + Key_Tab , this , TQT_SLOT ( slotToggleFocus ( ) ) , ac , " toggle_focus " ) ;
{ // TDEAction idiocy -- shortcuts don't work until they've been plugged into a menu
@ -368,7 +368,7 @@ void PlaylistWindow::init()
m_toolsMenu - > insertItem ( SmallIconSet ( Amarok : : icon ( " covermanager " ) ) , i18n ( " &Cover Manager " ) , Amarok : : Menu : : ID_SHOW_COVER_MANAGER ) ;
actionCollection ( ) - > action ( " queue_manager " ) - > plug ( m_toolsMenu ) ;
m_toolsMenu - > insertItem ( SmallIconSet ( Amarok : : icon ( " visualizations " ) ) , i18n ( " &Visualizations " ) , Amarok : : Menu : : ID_SHOW_VIS_SELECTOR ) ;
m_toolsMenu - > insertItem ( SmallIconSet ( Amarok : : icon ( " equalizer " ) ) , i18n ( " &Equalizer " ) , TQT_TQOBJECT( kapp) , TQT_SLOT ( slotConfigEqualizer ( ) ) , 0 , Amarok : : Menu : : ID_CONFIGURE_EQUALIZER ) ;
m_toolsMenu - > insertItem ( SmallIconSet ( Amarok : : icon ( " equalizer " ) ) , i18n ( " &Equalizer " ) , kapp, TQT_SLOT ( slotConfigEqualizer ( ) ) , 0 , Amarok : : Menu : : ID_CONFIGURE_EQUALIZER ) ;
actionCollection ( ) - > action ( " script_manager " ) - > plug ( m_toolsMenu ) ;
actionCollection ( ) - > action ( " statistics " ) - > plug ( m_toolsMenu ) ;
m_toolsMenu - > insertSeparator ( ) ;
@ -554,7 +554,7 @@ void PlaylistWindow::createGUI()
( * it ) - > unplug ( m_toolbar ) ;
KXMLGUIBuilder builder ( this ) ;
KXMLGUIFactory factory ( & builder , TQT_TQOBJECT ( this ) ) ;
KXMLGUIFactory factory ( & builder , this ) ;
//build Toolbar, plug actions
factory . addClient ( this ) ;
@ -578,7 +578,7 @@ void PlaylistWindow::createGUI()
const TQStringList : : ConstIterator last = list . fromLast ( ) ;
for ( TQStringList : : ConstIterator it = list . constBegin ( ) ; it ! = end ; + + it )
{
TDEToolBarButton * const button = static_cast < TDEToolBarButton * > ( TQT_TQWIDGET( m_toolbar- > child ( ( * it ) . latin1 ( ) ) ) ) ;
TDEToolBarButton * const button = static_cast < TDEToolBarButton * > ( m_toolbar- > child ( ( * it ) . latin1 ( ) ) ) ;
if ( it = = last ) {
//if the user has no PlayerWindow, he MUST have the menu action plugged