* Might need to be inside a frame to avoid a few resizing pb
* FIXME
*/
+ /** Fullscreen/Visualisation **/
+ fullscreenButton = new QPushButton( "F" );
+ BUTTON_SET_ACT( fullscreenButton, "F", qtr( "Fullscreen" ), fullscreen() );
+ fullscreenButton->setMaximumSize( QSize( 26, 26 ) );
+ controlLayout->addWidget( fullscreenButton, 3, 11 );
+
/** Playlist Button **/
playlistButton = new QPushButton;
playlistButton->setMaximumSize( QSize( 26, 26 ) );
+ playlistButton->setIconSize( QSize( 20, 20 ) );
controlLayout->addWidget( playlistButton, 3, 10 );
- /** Fullscreen/Visualisation **/
- QPushButton *fullscreenButton = new QPushButton( "F" );
- BUTTON_SET_ACT( fullscreenButton, "F", qtr( "Fullscreen" ), fullscreen() );
- fullscreenButton->setMaximumSize( QSize( 26, 26 ) );
- controlLayout->addWidget( fullscreenButton, 3, 11 );
-
/** extended Settings **/
QPushButton *extSettingsButton = new QPushButton( "F" );
BUTTON_SET_ACT( extSettingsButton, "Ex", qtr( "Extended Settings" ),
fasterButton->setEnabled( enable );
}
+void ControlsWidget::enableVideo( bool enable )
+{
+ // TODO Later make the fullscreenButton toggle Visualisation and so on.
+ fullscreenButton->setEnabled( enable );
+}
+
+
/**********************************************************************
* Playlist Widget. The embedded playlist
**********************************************************************/
QSlider *volumeSlider;
void setStatus( int );
void enableInput( bool );
+ void enableVideo( bool );
public slots:
void setNavigation( int );
void updateOnTimer();
QGridLayout *controlLayout;
InputSlider *slider;
QPushButton *prevSectionButton, *nextSectionButton, *menuButton;
- QPushButton *playButton;
+ QPushButton *playButton, *fullscreenButton;
QPushButton *slowerButton, *fasterButton;
private slots:
void play();