[vlc-devel] commit: Add Screen-FPS spinBox to control fps from the UI... Else it is pretty useless.. (Jean-Baptiste Kempf )

git version control git at videolan.org
Thu Sep 11 01:00:40 CEST 2008


vlc | branch: 0.9-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Wed Sep 10 15:59:56 2008 -0700| [3d68a07ad6ab0ad7629b641126cc996b88c6c44d] | committer: Jean-Baptiste Kempf 

Add Screen-FPS spinBox to control fps from the UI... Else it is pretty useless..
(cherry picked from commit ac73295483d5a3af524ee70696b24b8c674d4766)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3d68a07ad6ab0ad7629b641126cc996b88c6c44d
---

 modules/gui/qt4/components/open_panels.cpp |   12 +++++++++++-
 modules/gui/qt4/components/open_panels.hpp |    1 +
 2 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp
index 35e7763..53c3c9f 100644
--- a/modules/gui/qt4/components/open_panels.cpp
+++ b/modules/gui/qt4/components/open_panels.cpp
@@ -953,6 +953,15 @@ void CaptureOpenPanel::initialize()
     screenLabel->setWordWrap( true );
     screenDevLayout->addWidget( screenLabel, 0, 0 );
 
+    QLabel *screenFPSLabel = new QLabel(
+            qtr( "Desired frame rate for the capture." ) );
+    screenPropLayout->addWidget( screenFPSLabel, 0, 0 );
+
+    screenFPS = new QSpinBox;
+    screenFPS->setValue( 1 );
+    screenFPS->setAlignment( Qt::AlignRight );
+    screenPropLayout->addWidget( screenFPS, 0, 1 );
+
     /* General connects */
     CONNECT( ui.deviceCombo, activated( int ) ,
              stackedDevLayout, setCurrentIndex( int ) );
@@ -1048,6 +1057,7 @@ void CaptureOpenPanel::updateMRL()
 #endif
     case SCREEN_DEVICE:
         mrl = "screen://";
+        mrl += " :screen-fps=" + QString("%1").arg( screenFPS->value() );
         updateButtons();
         break;
     }
@@ -1096,7 +1106,7 @@ void CaptureOpenPanel::updateButtons()
         break;
 #endif
     case SCREEN_DEVICE:
-        ui.optionsBox->hide();
+        //ui.optionsBox->hide();
         ui.advancedButton->hide();
         break;
     }
diff --git a/modules/gui/qt4/components/open_panels.hpp b/modules/gui/qt4/components/open_panels.hpp
index d05998a..fb59a96 100644
--- a/modules/gui/qt4/components/open_panels.hpp
+++ b/modules/gui/qt4/components/open_panels.hpp
@@ -202,6 +202,7 @@ private:
     QCheckBox *jackPace, *jackConnect;
     QLineEdit *jackPortsSelected;
 #endif
+    QSpinBox *screenFPS;
 
 public slots:
     virtual void updateMRL();




More information about the vlc-devel mailing list