changeset 58 | ed94e1e8390e |
parent 54 | c5b304f4d89b |
54:c5b304f4d89b | 58:ed94e1e8390e |
---|---|
63 mEqualizerWidget( 0 ), |
63 mEqualizerWidget( 0 ), |
64 mSoftKeyBack( 0 ), |
64 mSoftKeyBack( 0 ), |
65 mActivated( false ), |
65 mActivated( false ), |
66 mPlayIcon( 0 ), |
66 mPlayIcon( 0 ), |
67 mPauseIcon( 0 ), |
67 mPauseIcon( 0 ), |
68 mShuffleOnIcon( 0 ), |
|
69 mShuffleOffIcon( 0 ), |
|
70 mTimer(0), |
68 mTimer(0), |
71 mSeeking(false) |
69 mSeeking(false) |
72 |
70 |
73 { |
71 { |
74 TX_LOG |
72 TX_LOG |
81 { |
79 { |
82 TX_ENTRY |
80 TX_ENTRY |
83 delete mSoftKeyBack; |
81 delete mSoftKeyBack; |
84 delete mPlayIcon; |
82 delete mPlayIcon; |
85 delete mPauseIcon; |
83 delete mPauseIcon; |
86 delete mShuffleOnIcon; |
|
87 delete mShuffleOffIcon; |
|
88 delete mEqualizerWidget; |
84 delete mEqualizerWidget; |
89 TX_EXIT |
85 TX_EXIT |
90 } |
86 } |
91 |
87 |
92 |
88 |
286 Slot to handle /a shuffle setting change. |
282 Slot to handle /a shuffle setting change. |
287 */ |
283 */ |
288 void MpPlaybackView::shuffleChanged( bool shuffle ) |
284 void MpPlaybackView::shuffleChanged( bool shuffle ) |
289 { |
285 { |
290 mShuffle = shuffle; |
286 mShuffle = shuffle; |
291 mShuffleAction->setIcon( mShuffle ? *mShuffleOnIcon : *mShuffleOffIcon ); |
287 mShuffleAction->setChecked( mShuffle ); |
292 } |
288 } |
293 |
289 |
294 /*! |
290 /*! |
295 Slot to handle repeat toggle. |
291 Slot to handle repeat toggle. |
296 */ |
292 */ |
350 myToolBar->setObjectName("PlaybackToolbar"); |
346 myToolBar->setObjectName("PlaybackToolbar"); |
351 myToolBar->setOrientation( Qt::Horizontal ); |
347 myToolBar->setOrientation( Qt::Horizontal ); |
352 QActionGroup *actionsGroup = new QActionGroup( myToolBar ); |
348 QActionGroup *actionsGroup = new QActionGroup( myToolBar ); |
353 |
349 |
354 if ( mViewMode == MpCommon::DefaultView || mViewMode == MpCommon::EmbeddedView ) { |
350 if ( mViewMode == MpCommon::DefaultView || mViewMode == MpCommon::EmbeddedView ) { |
355 mShuffleOnIcon = new HbIcon( "qtg_mono_shuffle" ); |
|
356 mShuffleOffIcon = new HbIcon( "qtg_mono_shuffle_off" ); |
|
357 mShuffleAction = new HbAction( actionsGroup ); |
351 mShuffleAction = new HbAction( actionsGroup ); |
358 mShuffle = MpSettingsManager::shuffle(); |
352 mShuffle = MpSettingsManager::shuffle(); |
359 mShuffleAction->setIcon( mShuffle ? *mShuffleOnIcon : *mShuffleOffIcon ); |
353 mShuffleAction->setIcon( HbIcon( "qtg_mono_shuffle" ) ); |
360 mShuffleAction->setCheckable( false ); |
354 mShuffleAction->setCheckable( true ); |
355 mShuffleAction->setChecked( mShuffle ); |
|
361 |
356 |
362 if ( mViewMode == MpCommon::DefaultView ) { |
357 if ( mViewMode == MpCommon::DefaultView ) { |
363 connect( mShuffleAction, SIGNAL( triggered( bool ) ), |
358 connect( mShuffleAction, SIGNAL( triggered( bool ) ), |
364 this, SLOT( toggleShuffle() ) ); |
359 this, SLOT( toggleShuffle() ) ); |
365 } |
360 } |
585 TX_ENTRY |
580 TX_ENTRY |
586 if ( !mEqualizerWidget ){ |
581 if ( !mEqualizerWidget ){ |
587 mEqualizerWidget = new MpEqualizerWidget(); |
582 mEqualizerWidget = new MpEqualizerWidget(); |
588 mEqualizerWidget->prepareDialog(); |
583 mEqualizerWidget->prepareDialog(); |
589 } |
584 } |
590 |
585 |
591 mEqualizerWidget->show(); |
586 mEqualizerWidget->show(); |
592 |
587 |
593 TX_EXIT |
588 TX_EXIT |
594 } |
589 } |
595 |
590 |
596 /*! |
591 /*! |