]> git.sesse.net Git - vlc/commitdiff
Add Screen-FPS spinBox to control fps from the UI... Else it is pretty useless..
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 10 Sep 2008 22:59:56 +0000 (15:59 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 10 Sep 2008 23:01:16 +0000 (16:01 -0700)
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.hpp

index 35e7763e2ecb6a52d159e2ff4662731899af8893..53c3c9f21882a443022fcd4d769fc173dac91186 100644 (file)
@@ -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;
     }
index d05998a856a18f67c9d462bda03e048f8cb0027f..fb59a965d112720a424c993e59f964ea58ae8a69 100644 (file)
@@ -202,6 +202,7 @@ private:
     QCheckBox *jackPace, *jackConnect;
     QLineEdit *jackPortsSelected;
 #endif
+    QSpinBox *screenFPS;
 
 public slots:
     virtual void updateMRL();