Commit e6072d0d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt reverse for trickplay: show the button by default, and show it only when trickplay is possible.

It is based on the "can-rewind" variable. This may be wrong, if so, tell me so and I'll revert this.
parent 16a3cb1b
...@@ -79,6 +79,9 @@ void AbstractController::setStatus( int status ) ...@@ -79,6 +79,9 @@ void AbstractController::setStatus( int status )
emit inputIsRecordable( b_hasInput && emit inputIsRecordable( b_hasInput &&
var_GetBool( THEMIM->getInput(), "can-record" ) ); var_GetBool( THEMIM->getInput(), "can-record" ) );
emit inputIsTrickPlayable( b_hasInput &&
var_GetBool( THEMIM->getInput(), "can-rewind" ) );
} }
/* Generic button setup */ /* Generic button setup */
...@@ -383,7 +386,7 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options ) ...@@ -383,7 +386,7 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
reverseButton->setCheckable( true ); reverseButton->setCheckable( true );
/* You should, of COURSE change this to the correct event, /* You should, of COURSE change this to the correct event,
when/if we have one, that tells us if trickplay is possible . */ when/if we have one, that tells us if trickplay is possible . */
CONNECT( this, inputExists( bool ), reverseButton, setVisible( bool ) ); CONNECT( this, inputIsTrickPlayable( bool ), reverseButton, setVisible( bool ) );
reverseButton->setVisible( false ); reverseButton->setVisible( false );
widget = reverseButton; widget = reverseButton;
} }
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
#define MAIN_TB1_DEFAULT "64;39;64;38;65" #define MAIN_TB1_DEFAULT "64;39;64;38;65"
#define MAIN_TB2_DEFAULT "0-2;64;3;1;4;64;7;10;9;64-4;37;65;35-4" #define MAIN_TB2_DEFAULT "0-2;64;3;1;4;64;7;10;9;64-4;37;65;35-4"
#define ADV_TB_DEFAULT "12;11;13;14" #define ADV_TB_DEFAULT "12;11;13;14"
#define INPT_TB_DEFAULT "5-1;33;6-1" #define INPT_TB_DEFAULT "5-1;15-1;33;6-1"
#define FSC_TB_DEFAULT "0-2;64;3;1;4;64;37;64;38;64;8;65;35-4;34" #define FSC_TB_DEFAULT "0-2;64;3;1;4;64;37;64;38;64;8;65;35-4;34"
...@@ -162,6 +162,7 @@ signals: ...@@ -162,6 +162,7 @@ signals:
void inputExists( bool ); /// This might be usefull in the IM ? void inputExists( bool ); /// This might be usefull in the IM ?
void inputPlaying( bool ); /// This might be usefull in the IM ? void inputPlaying( bool ); /// This might be usefull in the IM ?
void inputIsRecordable( bool ); /// same ? void inputIsRecordable( bool ); /// same ?
void inputIsTrickPlayable( bool ); /// same ?
}; };
/* Advanced Button Bar */ /* Advanced Button Bar */
......
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