Commit 201cb76f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 : fullscreen Button activation/deactivation

parent 3902f627
......@@ -377,18 +377,19 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i ) :
* 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" ),
......@@ -559,6 +560,13 @@ void ControlsWidget::enableInput( bool enable )
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
**********************************************************************/
......
......@@ -133,6 +133,7 @@ public:
QSlider *volumeSlider;
void setStatus( int );
void enableInput( bool );
void enableVideo( bool );
public slots:
void setNavigation( int );
void updateOnTimer();
......@@ -145,7 +146,7 @@ private:
QGridLayout *controlLayout;
InputSlider *slider;
QPushButton *prevSectionButton, *nextSectionButton, *menuButton;
QPushButton *playButton;
QPushButton *playButton, *fullscreenButton;
QPushButton *slowerButton, *fasterButton;
private slots:
void play();
......
......@@ -889,6 +889,7 @@ void MainInterface::updateOnTimer()
advControls->enableInput( THEMIM->getIM()->hasInput() );
controls->enableInput( THEMIM->getIM()->hasInput() );
advControls->enableVideo( THEMIM->getIM()->hasVideo() );
controls->enableVideo( THEMIM->getIM()->hasVideo() );
if( intf_ShouldDie( p_intf ) )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment