- /* CONTROLS */
- QWidget *controls = new QWidget;
- ui.setupUi( controls );
-
- /* Configure the UI */
- slider = new InputSlider( Qt::Horizontal, NULL );
- mainLayout->insertWidget( 0, slider );
- ui.discFrame->hide();
-
- BUTTON_SET_IMG( ui.prevSectionButton, "", previous.png, "" );
- BUTTON_SET_IMG( ui.nextSectionButton, "", next.png, "" );
- BUTTON_SET_IMG( ui.menuButton, "", previous.png, "" );
-
- BUTTON_SET_ACT_I( ui.prevButton, "" , previous.png,
- qtr("Previous"), prev() );
- BUTTON_SET_ACT_I( ui.nextButton, "", next.png, qtr("Next"), next() );
- BUTTON_SET_ACT_I( ui.playButton, "", play.png, qtr("Play"), play() );
- BUTTON_SET_ACT_I( ui.stopButton, "", stop.png, qtr("Stop"), stop() );
-
- /* Volume */
- ui.volMuteLabel->setPixmap( QPixmap( ":/pixmaps/volume-low.png" ) );
- ui.volumeSlider->setMaximum( 100 );
- ui.volMuteLabel->setToolTip( qtr( "Mute" ) );
- VolumeClickHandler *h = new VolumeClickHandler( p_intf, this );
- ui.volMuteLabel->installEventFilter(h);
- ui.volumeSlider->setFocusPolicy( Qt::NoFocus );
-
- BUTTON_SET_IMG( ui.playlistButton, "" , playlist_icon.png,
- playlistEmbeddedFlag ? qtr( "Show playlist" ) :
- qtr( "Open playlist" ) );
- BUTTONACT( ui.playlistButton, playlist() );
-
-#if DEBUG_COLOR
- QPalette palette;
- palette.setColor(main->backgroundRole(), Qt::green);
- main->setPalette(palette);
-#endif