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 ) : ...@@ -377,18 +377,19 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i ) :
* Might need to be inside a frame to avoid a few resizing pb * Might need to be inside a frame to avoid a few resizing pb
* FIXME * 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 **/ /** Playlist Button **/
playlistButton = new QPushButton; playlistButton = new QPushButton;
playlistButton->setMaximumSize( QSize( 26, 26 ) ); playlistButton->setMaximumSize( QSize( 26, 26 ) );
playlistButton->setIconSize( QSize( 20, 20 ) );
controlLayout->addWidget( playlistButton, 3, 10 ); 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 **/ /** extended Settings **/
QPushButton *extSettingsButton = new QPushButton( "F" ); QPushButton *extSettingsButton = new QPushButton( "F" );
BUTTON_SET_ACT( extSettingsButton, "Ex", qtr( "Extended Settings" ), BUTTON_SET_ACT( extSettingsButton, "Ex", qtr( "Extended Settings" ),
...@@ -559,6 +560,13 @@ void ControlsWidget::enableInput( bool enable ) ...@@ -559,6 +560,13 @@ void ControlsWidget::enableInput( bool enable )
fasterButton->setEnabled( 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 * Playlist Widget. The embedded playlist
**********************************************************************/ **********************************************************************/
......
...@@ -133,6 +133,7 @@ public: ...@@ -133,6 +133,7 @@ public:
QSlider *volumeSlider; QSlider *volumeSlider;
void setStatus( int ); void setStatus( int );
void enableInput( bool ); void enableInput( bool );
void enableVideo( bool );
public slots: public slots:
void setNavigation( int ); void setNavigation( int );
void updateOnTimer(); void updateOnTimer();
...@@ -145,7 +146,7 @@ private: ...@@ -145,7 +146,7 @@ private:
QGridLayout *controlLayout; QGridLayout *controlLayout;
InputSlider *slider; InputSlider *slider;
QPushButton *prevSectionButton, *nextSectionButton, *menuButton; QPushButton *prevSectionButton, *nextSectionButton, *menuButton;
QPushButton *playButton; QPushButton *playButton, *fullscreenButton;
QPushButton *slowerButton, *fasterButton; QPushButton *slowerButton, *fasterButton;
private slots: private slots:
void play(); void play();
......
...@@ -889,6 +889,7 @@ void MainInterface::updateOnTimer() ...@@ -889,6 +889,7 @@ void MainInterface::updateOnTimer()
advControls->enableInput( THEMIM->getIM()->hasInput() ); advControls->enableInput( THEMIM->getIM()->hasInput() );
controls->enableInput( THEMIM->getIM()->hasInput() ); controls->enableInput( THEMIM->getIM()->hasInput() );
advControls->enableVideo( THEMIM->getIM()->hasVideo() ); advControls->enableVideo( THEMIM->getIM()->hasVideo() );
controls->enableVideo( THEMIM->getIM()->hasVideo() );
if( intf_ShouldDie( p_intf ) ) 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