[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 00:58:47 CEST 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Sep 10 15:59:56 2008 -0700| [ac73295483d5a3af524ee70696b24b8c674d4766] | committer: Jean-Baptiste Kempf
Add Screen-FPS spinBox to control fps from the UI... Else it is pretty useless..
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ac73295483d5a3af524ee70696b24b8c674d4766
---
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