]> git.sesse.net Git - vlc/commitdiff
Qt reverse for trickplay: show the button by default, and show it only when trickplay...
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 21 Feb 2009 10:46:09 +0000 (11:46 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 21 Feb 2009 10:47:10 +0000 (11:47 +0100)
It is based on the "can-rewind" variable. This may be wrong, if so, tell me so and I'll revert this.

modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.hpp

index 3cb2d23b96d6f9186edb7f19af8836417506daf3..e1aaad1228d83893e6264ee168b4255731aabe7f 100644 (file)
@@ -79,6 +79,9 @@ void AbstractController::setStatus( int status )
 
     emit inputIsRecordable( b_hasInput &&
                             var_GetBool( THEMIM->getInput(), "can-record" ) );
+
+    emit inputIsTrickPlayable( b_hasInput &&
+                            var_GetBool( THEMIM->getInput(), "can-rewind" ) );
 }
 
 /* Generic button setup */
@@ -383,7 +386,7 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
         reverseButton->setCheckable( true );
         /* You should, of COURSE change this to the correct event,
            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 );
         widget = reverseButton;
         }
index 43ae9bea8be654648d14dc9eed1e079991c2bb7f..4a6b73e909109573283b8c13a69f6ca7e6fa1147 100644 (file)
@@ -38,7 +38,7 @@
 #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 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"
 
 
@@ -162,6 +162,7 @@ signals:
     void inputExists( bool ); /// This might be usefull in the IM ?
     void inputPlaying( bool ); /// This might be usefull in the IM ?
     void inputIsRecordable( bool ); /// same ?
+    void inputIsTrickPlayable( bool ); /// same ?
 };
 
 /* Advanced Button Bar */