-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidgetgui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp b/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp index f073102..ce472f1 100644 --- a/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp | |||
@@ -152,77 +152,77 @@ PlayListWidgetGui::PlayListWidgetGui( QWidget* parent, const char* name, WFlags | |||
152 | Alayout->setSpacing( 2 ); | 152 | Alayout->setSpacing( 2 ); |
153 | Alayout->setMargin( 2 ); | 153 | Alayout->setMargin( 2 ); |
154 | audioView = new QListView( aTab, "Audioview" ); | 154 | audioView = new QListView( aTab, "Audioview" ); |
155 | audioView->addColumn( tr( "Title" ), 140 ); | 155 | audioView->addColumn( tr( "Title" ), 140 ); |
156 | audioView->addColumn( tr( "Size" ), -1 ); | 156 | audioView->addColumn( tr( "Size" ), -1 ); |
157 | audioView->addColumn( tr( "Media" ), -1 ); | 157 | audioView->addColumn( tr( "Media" ), -1 ); |
158 | audioView->addColumn( tr( "Path" ), 0 ); | 158 | audioView->addColumn( tr( "Path" ), 0 ); |
159 | audioView->setColumnAlignment( 1, Qt::AlignRight ); | 159 | audioView->setColumnAlignment( 1, Qt::AlignRight ); |
160 | audioView->setColumnAlignment( 2, Qt::AlignRight ); | 160 | audioView->setColumnAlignment( 2, Qt::AlignRight ); |
161 | audioView->setAllColumnsShowFocus( TRUE ); | 161 | audioView->setAllColumnsShowFocus( TRUE ); |
162 | audioView->setSorting( 0, TRUE ); | 162 | audioView->setSorting( 0, TRUE ); |
163 | audioView->setMultiSelection( TRUE ); | 163 | audioView->setMultiSelection( TRUE ); |
164 | audioView->setSelectionMode( QListView::Extended ); | 164 | audioView->setSelectionMode( QListView::Extended ); |
165 | Alayout->addMultiCellWidget( audioView, 0, 0, 0, 1 ); | 165 | Alayout->addMultiCellWidget( audioView, 0, 0, 0, 1 ); |
166 | tabWidget->insertTab( aTab, tr( "Audio" ) ); | 166 | tabWidget->insertTab( aTab, tr( "Audio" ) ); |
167 | 167 | ||
168 | QPEApplication::setStylusOperation( audioView->viewport(), QPEApplication::RightOnHold ); | 168 | QPEApplication::setStylusOperation( audioView->viewport(), QPEApplication::RightOnHold ); |
169 | 169 | ||
170 | QWidget *vTab; | 170 | QWidget *vTab; |
171 | vTab = new QWidget( tabWidget, "vTab" ); | 171 | vTab = new QWidget( tabWidget, "vTab" ); |
172 | 172 | ||
173 | QGridLayout *Vlayout = new QGridLayout( vTab ); | 173 | QGridLayout *Vlayout = new QGridLayout( vTab ); |
174 | Vlayout->setSpacing( 2 ); | 174 | Vlayout->setSpacing( 2 ); |
175 | Vlayout->setMargin( 2 ); | 175 | Vlayout->setMargin( 2 ); |
176 | videoView = new QListView( vTab, "Videoview" ); | 176 | videoView = new QListView( vTab, "Videoview" ); |
177 | videoView->addColumn( tr( "Title" ), 140); | 177 | videoView->addColumn( tr( "Title" ), 140); |
178 | videoView->addColumn( tr( "Size" ), -1 ); | 178 | videoView->addColumn( tr( "Size" ), -1 ); |
179 | videoView->addColumn(tr( "Media" ), -1 ); | 179 | videoView->addColumn(tr( "Media" ), -1 ); |
180 | videoView->addColumn(tr( "Path" ), 0 ); | 180 | videoView->addColumn(tr( "Path" ), 0 ); |
181 | videoView->setColumnAlignment( 1, Qt::AlignRight ); | 181 | videoView->setColumnAlignment( 1, Qt::AlignRight ); |
182 | videoView->setColumnAlignment( 2, Qt::AlignRight ); | 182 | videoView->setColumnAlignment( 2, Qt::AlignRight ); |
183 | videoView->setAllColumnsShowFocus( TRUE ); | 183 | videoView->setAllColumnsShowFocus( TRUE ); |
184 | videoView->setSorting( 0, TRUE ); | 184 | videoView->setSorting( 0, TRUE ); |
185 | videoView->setMultiSelection( TRUE ); | 185 | videoView->setMultiSelection( TRUE ); |
186 | videoView->setSelectionMode( QListView::Extended ); | 186 | videoView->setSelectionMode( QListView::Extended ); |
187 | Vlayout->addMultiCellWidget( videoView, 0, 0, 0, 1 ); | 187 | Vlayout->addMultiCellWidget( videoView, 0, 0, 0, 1 ); |
188 | 188 | ||
189 | QPEApplication::setStylusOperation( videoView->viewport(), QPEApplication::RightOnHold ); | 189 | QPEApplication::setStylusOperation( videoView->viewport(), QPEApplication::RightOnHold ); |
190 | 190 | ||
191 | tabWidget->insertTab( vTab, tr( "Video" ) ); | 191 | tabWidget->insertTab( vTab, tr( "Video" ) ); |
192 | 192 | ||
193 | //playlists list | 193 | //playlists list |
194 | QWidget *LTab; | 194 | QWidget *LTab; |
195 | LTab = new QWidget( tabWidget, "LTab" ); | 195 | LTab = new QWidget( tabWidget, "LTab" ); |
196 | QGridLayout *Llayout = new QGridLayout( LTab ); | 196 | QGridLayout *Llayout = new QGridLayout( LTab ); |
197 | Llayout->setSpacing( 2 ); | 197 | Llayout->setSpacing( 2 ); |
198 | Llayout->setMargin( 2 ); | 198 | Llayout->setMargin( 2 ); |
199 | 199 | ||
200 | playLists = new FileSelector( "playlist/plain", LTab, "fileselector" , FALSE, FALSE ); //buggy | 200 | playLists = new FileSelector( "playlist/plain;audio/x-mpegurl", LTab, "fileselector" , FALSE, FALSE ); |
201 | Llayout->addMultiCellWidget( playLists, 0, 0, 0, 1 ); | 201 | Llayout->addMultiCellWidget( playLists, 0, 0, 0, 1 ); |
202 | 202 | ||
203 | tabWidget->insertTab( LTab, tr( "Lists" ) ); | 203 | tabWidget->insertTab( LTab, tr( "Lists" ) ); |
204 | 204 | ||
205 | setCentralWidget( vbox5 ); | 205 | setCentralWidget( vbox5 ); |
206 | } | 206 | } |
207 | 207 | ||
208 | 208 | ||
209 | 209 | ||
210 | PlayListWidgetGui::~PlayListWidgetGui() { | 210 | PlayListWidgetGui::~PlayListWidgetGui() { |
211 | } | 211 | } |
212 | 212 | ||
213 | void PlayListWidgetGui::setView( char view ) { | 213 | void PlayListWidgetGui::setView( char view ) { |
214 | if ( view == 'l' ) | 214 | if ( view == 'l' ) |
215 | showMaximized(); | 215 | showMaximized(); |
216 | else | 216 | else |
217 | hide(); | 217 | hide(); |
218 | } | 218 | } |
219 | 219 | ||
220 | 220 | ||
221 | void PlayListWidgetGui::setActiveWindow() { | 221 | void PlayListWidgetGui::setActiveWindow() { |
222 | // qDebug("SETTING active window"); | 222 | // qDebug("SETTING active window"); |
223 | // When we get raised we need to ensure that it switches views | 223 | // When we get raised we need to ensure that it switches views |
224 | char origView = mediaPlayerState->view(); | 224 | char origView = mediaPlayerState->view(); |
225 | mediaPlayerState->setView( 'l' ); // invalidate | 225 | mediaPlayerState->setView( 'l' ); // invalidate |
226 | mediaPlayerState->setView( origView ); // now switch back | 226 | mediaPlayerState->setView( origView ); // now switch back |
227 | } | 227 | } |
228 | 228 | ||