-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index 4ee784e..5f750ba 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp | |||
@@ -65,97 +65,97 @@ PlayListWidget::PlayListWidget( MediaPlayerState &mediaPlayerState, QWidget* par | |||
65 | d->tbAddToList = new ToolButton( bar, tr( "Add to Playlist" ), | 65 | d->tbAddToList = new ToolButton( bar, tr( "Add to Playlist" ), |
66 | "opieplayer2/add_to_playlist", | 66 | "opieplayer2/add_to_playlist", |
67 | this , SLOT(addSelected() ) ); | 67 | this , SLOT(addSelected() ) ); |
68 | d->tbRemoveFromList = new ToolButton( bar, tr( "Remove from Playlist" ), | 68 | d->tbRemoveFromList = new ToolButton( bar, tr( "Remove from Playlist" ), |
69 | "opieplayer2/remove_from_playlist", | 69 | "opieplayer2/remove_from_playlist", |
70 | this , SLOT(removeSelected() ) ); | 70 | this , SLOT(removeSelected() ) ); |
71 | d->tbPlay = new ToolButton( bar, tr( "Play" ), "opieplayer2/play", | 71 | d->tbPlay = new ToolButton( bar, tr( "Play" ), "opieplayer2/play", |
72 | this , SLOT( btnPlay( bool) ), TRUE ); | 72 | this , SLOT( btnPlay( bool) ), TRUE ); |
73 | d->tbShuffle = new ToolButton( bar, tr( "Randomize" ),"opieplayer2/shuffle", | 73 | d->tbShuffle = new ToolButton( bar, tr( "Randomize" ),"opieplayer2/shuffle", |
74 | &mediaPlayerState, SLOT( setShuffled( bool ) ), TRUE ); | 74 | &mediaPlayerState, SLOT( setShuffled( bool ) ), TRUE ); |
75 | d->tbLoop = new ToolButton( bar, tr( "Loop" ), "opieplayer2/loop", | 75 | d->tbLoop = new ToolButton( bar, tr( "Loop" ), "opieplayer2/loop", |
76 | &mediaPlayerState, SLOT( setLooping( bool ) ), TRUE ); | 76 | &mediaPlayerState, SLOT( setLooping( bool ) ), TRUE ); |
77 | 77 | ||
78 | (void)new MenuItem( pmPlayList, tr( "Clear List" ), this, SLOT( clearList() ) ); | 78 | (void)new MenuItem( pmPlayList, tr( "Clear List" ), this, SLOT( clearList() ) ); |
79 | (void)new MenuItem( pmPlayList, tr( "Add all audio files" ), | 79 | (void)new MenuItem( pmPlayList, tr( "Add all audio files" ), |
80 | this, SLOT( addAllMusicToList() ) ); | 80 | this, SLOT( addAllMusicToList() ) ); |
81 | (void)new MenuItem( pmPlayList, tr( "Add all video files" ), | 81 | (void)new MenuItem( pmPlayList, tr( "Add all video files" ), |
82 | this, SLOT( addAllVideoToList() ) ); | 82 | this, SLOT( addAllVideoToList() ) ); |
83 | (void)new MenuItem( pmPlayList, tr( "Add all files" ), | 83 | (void)new MenuItem( pmPlayList, tr( "Add all files" ), |
84 | this, SLOT( addAllToList() ) ); | 84 | this, SLOT( addAllToList() ) ); |
85 | pmPlayList->insertSeparator(-1); | 85 | pmPlayList->insertSeparator(-1); |
86 | (void)new MenuItem( pmPlayList, tr( "Add File" ), | 86 | (void)new MenuItem( pmPlayList, tr( "Add File" ), |
87 | this,SLOT( openFile() ) ); | 87 | this,SLOT( openFile() ) ); |
88 | (void)new MenuItem( pmPlayList, tr("Add URL"), | 88 | (void)new MenuItem( pmPlayList, tr("Add URL"), |
89 | this,SLOT( openURL() ) ); | 89 | this,SLOT( openURL() ) ); |
90 | pmPlayList->insertSeparator(-1); | 90 | pmPlayList->insertSeparator(-1); |
91 | (void)new MenuItem( pmPlayList, tr( "Save Playlist" ), | 91 | (void)new MenuItem( pmPlayList, tr( "Save Playlist" ), |
92 | this, SLOT(writem3u() ) ); | 92 | this, SLOT(writem3u() ) ); |
93 | pmPlayList->insertSeparator(-1); | 93 | pmPlayList->insertSeparator(-1); |
94 | (void)new MenuItem( pmPlayList, tr( "Rescan for Audio Files" ), | 94 | (void)new MenuItem( pmPlayList, tr( "Rescan for Audio Files" ), |
95 | audioView, SLOT( scanFiles() ) ); | 95 | audioView, SLOT( scanFiles() ) ); |
96 | (void)new MenuItem( pmPlayList, tr( "Rescan for Video Files" ), | 96 | (void)new MenuItem( pmPlayList, tr( "Rescan for Video Files" ), |
97 | videoView, SLOT( scanFiles() ) ); | 97 | videoView, SLOT( scanFiles() ) ); |
98 | 98 | ||
99 | pmView->insertItem( Resource::loadPixmap("fullscreen") , tr( "Full Screen"), | 99 | pmView->insertItem( Resource::loadPixmap("fullscreen") , tr( "Full Screen"), |
100 | &mediaPlayerState, SLOT( toggleFullscreen() ) ); | 100 | &mediaPlayerState, SLOT( toggleFullscreen() ) ); |
101 | 101 | ||
102 | Config cfg( "OpiePlayer" ); | 102 | Config cfg( "OpiePlayer" ); |
103 | bool b= cfg.readBoolEntry("FullScreen", 0); | 103 | bool b= cfg.readBoolEntry("FullScreen", 0); |
104 | mediaPlayerState.setFullscreen( b ); | 104 | mediaPlayerState.setFullscreen( b ); |
105 | pmView->setItemChecked( -16, b ); | 105 | pmView->setItemChecked( -16, b ); |
106 | 106 | ||
107 | (void)new ToolButton( vbox1, tr( "Move Up" ), "opieplayer2/up", | 107 | (void)new ToolButton( vbox1, tr( "Move Up" ), "opieplayer2/up", |
108 | d->selectedFiles, SLOT(moveSelectedUp() ) ); | 108 | d->selectedFiles, SLOT(moveSelectedUp() ) ); |
109 | (void)new ToolButton( vbox1, tr( "Remove" ), "opieplayer2/cut", | 109 | (void)new ToolButton( vbox1, tr( "Remove" ), "opieplayer2/cut", |
110 | d->selectedFiles, SLOT(removeSelected() ) ); | 110 | d->selectedFiles, SLOT(removeSelected() ) ); |
111 | (void)new ToolButton( vbox1, tr( "Move Down" ), "opieplayer2/down", | 111 | (void)new ToolButton( vbox1, tr( "Move Down" ), "opieplayer2/down", |
112 | d->selectedFiles, SLOT(moveSelectedDown() ) ); | 112 | d->selectedFiles, SLOT(moveSelectedDown() ) ); |
113 | // QVBox *stretch2 = new QVBox( vbox1 ); | 113 | QVBox *stretch2 = new QVBox( vbox1 ); |
114 | 114 | ||
115 | connect( tbDeletePlaylist, ( SIGNAL( released() ) ), | 115 | connect( tbDeletePlaylist, ( SIGNAL( released() ) ), |
116 | SLOT( deletePlaylist() ) ); | 116 | SLOT( deletePlaylist() ) ); |
117 | connect( pmView, SIGNAL( activated( int ) ), | 117 | connect( pmView, SIGNAL( activated( int ) ), |
118 | this, SLOT( pmViewActivated( int ) ) ); | 118 | this, SLOT( pmViewActivated( int ) ) ); |
119 | connect( skinsMenu, SIGNAL( activated( int ) ) , | 119 | connect( skinsMenu, SIGNAL( activated( int ) ) , |
120 | this, SLOT( skinsMenuActivated( int ) ) ); | 120 | this, SLOT( skinsMenuActivated( int ) ) ); |
121 | connect( d->selectedFiles, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int) ), | 121 | connect( d->selectedFiles, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int) ), |
122 | this,SLOT( playlistViewPressed( int, QListViewItem *, const QPoint&, int ) ) ); | 122 | this,SLOT( playlistViewPressed( int, QListViewItem *, const QPoint&, int ) ) ); |
123 | connect( audioView, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int ) ), | 123 | connect( audioView, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int ) ), |
124 | this,SLOT( viewPressed( int, QListViewItem *, const QPoint&, int ) ) ); | 124 | this,SLOT( viewPressed( int, QListViewItem *, const QPoint&, int ) ) ); |
125 | connect( audioView, SIGNAL( returnPressed( QListViewItem *) ), | 125 | connect( audioView, SIGNAL( returnPressed( QListViewItem *) ), |
126 | this,SLOT( playIt( QListViewItem *) ) ); | 126 | this,SLOT( playIt( QListViewItem *) ) ); |
127 | connect( audioView, SIGNAL( doubleClicked( QListViewItem *) ), | 127 | connect( audioView, SIGNAL( doubleClicked( QListViewItem *) ), |
128 | this, SLOT( addToSelection( QListViewItem *) ) ); | 128 | this, SLOT( addToSelection( QListViewItem *) ) ); |
129 | connect( videoView, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int) ), | 129 | connect( videoView, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int) ), |
130 | this,SLOT( viewPressed( int, QListViewItem *, const QPoint&, int) ) ); | 130 | this,SLOT( viewPressed( int, QListViewItem *, const QPoint&, int) ) ); |
131 | connect( videoView, SIGNAL( returnPressed( QListViewItem *) ), | 131 | connect( videoView, SIGNAL( returnPressed( QListViewItem *) ), |
132 | this,SLOT( playIt( QListViewItem *) ) ); | 132 | this,SLOT( playIt( QListViewItem *) ) ); |
133 | connect( videoView, SIGNAL( doubleClicked( QListViewItem *) ), | 133 | connect( videoView, SIGNAL( doubleClicked( QListViewItem *) ), |
134 | this, SLOT( addToSelection( QListViewItem *) ) ); | 134 | this, SLOT( addToSelection( QListViewItem *) ) ); |
135 | connect( playLists, SIGNAL( fileSelected( const DocLnk &) ), | 135 | connect( playLists, SIGNAL( fileSelected( const DocLnk &) ), |
136 | this, SLOT( loadList( const DocLnk & ) ) ); | 136 | this, SLOT( loadList( const DocLnk & ) ) ); |
137 | connect( tabWidget, SIGNAL ( currentChanged(QWidget*) ), | 137 | connect( tabWidget, SIGNAL ( currentChanged(QWidget*) ), |
138 | this, SLOT( tabChanged( QWidget* ) ) ); | 138 | this, SLOT( tabChanged( QWidget* ) ) ); |
139 | connect( &mediaPlayerState, SIGNAL( playingToggled( bool ) ), | 139 | connect( &mediaPlayerState, SIGNAL( playingToggled( bool ) ), |
140 | d->tbPlay, SLOT( setOn( bool ) ) ); | 140 | d->tbPlay, SLOT( setOn( bool ) ) ); |
141 | connect( &mediaPlayerState, SIGNAL( loopingToggled( bool ) ), | 141 | connect( &mediaPlayerState, SIGNAL( loopingToggled( bool ) ), |
142 | d->tbLoop, SLOT( setOn( bool ) ) ); | 142 | d->tbLoop, SLOT( setOn( bool ) ) ); |
143 | connect( &mediaPlayerState, SIGNAL( shuffledToggled( bool ) ), | 143 | connect( &mediaPlayerState, SIGNAL( shuffledToggled( bool ) ), |
144 | d->tbShuffle, SLOT( setOn( bool ) ) ); | 144 | d->tbShuffle, SLOT( setOn( bool ) ) ); |
145 | connect( d->selectedFiles, SIGNAL( doubleClicked( QListViewItem *) ), | 145 | connect( d->selectedFiles, SIGNAL( doubleClicked( QListViewItem *) ), |
146 | this, SLOT( playIt( QListViewItem *) ) ); | 146 | this, SLOT( playIt( QListViewItem *) ) ); |
147 | connect ( gammaSlider, SIGNAL( valueChanged( int ) ), | 147 | connect ( gammaSlider, SIGNAL( valueChanged( int ) ), |
148 | &mediaPlayerState, SLOT( setVideoGamma( int ) ) ); | 148 | &mediaPlayerState, SLOT( setVideoGamma( int ) ) ); |
149 | 149 | ||
150 | // see which skins are installed | 150 | // see which skins are installed |
151 | populateSkinsMenu(); | 151 | populateSkinsMenu(); |
152 | initializeStates(); | 152 | initializeStates(); |
153 | 153 | ||
154 | channel = new QCopChannel( "QPE/Application/opieplayer2", this ); | 154 | channel = new QCopChannel( "QPE/Application/opieplayer2", this ); |
155 | connect( channel, SIGNAL(received(const QCString&, const QByteArray&)), | 155 | connect( channel, SIGNAL(received(const QCString&, const QByteArray&)), |
156 | this, SLOT( qcopReceive(const QCString&, const QByteArray&)) ); | 156 | this, SLOT( qcopReceive(const QCString&, const QByteArray&)) ); |
157 | 157 | ||
158 | 158 | ||
159 | cfg.setGroup("PlayList"); | 159 | cfg.setGroup("PlayList"); |
160 | QString currentPlaylist = cfg.readEntry( "CurrentPlaylist", "default"); | 160 | QString currentPlaylist = cfg.readEntry( "CurrentPlaylist", "default"); |
161 | loadList(DocLnk( currentPlaylist ) ); | 161 | loadList(DocLnk( currentPlaylist ) ); |