From 4e0d9312a613df70ebfdbbc3c2c3bd9a7b8c6e9c Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Mon, 16 Apr 2007 20:53:10 +0000 Subject: [PATCH] Qt4 - Open Dialog. Implement start-time in advanced options. Cosmetic (enabling suffixes INSIDE spinBoxes) changes. --- modules/gui/qt4/dialogs/open.cpp | 5 + modules/gui/qt4/ui/open.ui | 221 +++++++++++++++++-------------- 2 files changed, 126 insertions(+), 100 deletions(-) diff --git a/modules/gui/qt4/dialogs/open.cpp b/modules/gui/qt4/dialogs/open.cpp index b1881cc8c7..451f693bfb 100644 --- a/modules/gui/qt4/dialogs/open.cpp +++ b/modules/gui/qt4/dialogs/open.cpp @@ -109,6 +109,7 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal, CONNECT( ui.slaveText, textChanged(QString), this, updateMRL()); CONNECT( ui.cacheSpinBox, valueChanged(int), this, updateMRL()); + CONNECT( ui.startTimeSpinBox, valueChanged(int), this, updateMRL()); /* Buttons action */ BUTTONACT( playButton, play()); @@ -271,6 +272,10 @@ void OpenDialog::updateMRL() { mrl += QString(" :%1=%2").arg(storedMethod). arg(ui.cacheSpinBox->value()); } + if( ui.startTimeSpinBox->value()) { + mrl += " :start-time=" + QString("%1"). + arg(ui.startTimeSpinBox->value()); + } ui.advancedLineInput->setText(mrl); } diff --git a/modules/gui/qt4/ui/open.ui b/modules/gui/qt4/ui/open.ui index 2c82dba900..1bcad015d9 100644 --- a/modules/gui/qt4/ui/open.ui +++ b/modules/gui/qt4/ui/open.ui @@ -10,7 +10,7 @@ 0 0 440 - 231 + 286 @@ -50,113 +50,134 @@ QFrame::StyledPanel - + 9 6 - - - - 0 + + + + Start Time - - 6 + + + + + + + 0 + 0 + 0 + 0 + + + + Qt::AlignRight + + + s + + + 999999 + + + + + + + + 0 + 5 + 0 + 0 + + + + Caching + + + + + + + + + + Play another media synchronously (extra audio file, ...) + + + + + + + Qt::Horizontal + + + + + + + Customize + + + + + + + false + + + Extra media + + + + + + + false + + + + + + + false + + + Browse... + + + + + + + Qt::Horizontal + + + + + + + + 0 + 0 + 0 + 0 + + + + Qt::AlignRight + + + ms + + + 999999 - - - - - 0 - 5 - 0 - 0 - - - - Caching - - - - - - - - - - Customize - - - - - - - ms - - - - - - - Play another media synchronously (extra audio file, ...) - - - - - - - false - - - Browse... - - - - - - - false - - - - - - - false - - - Extra media - - - - - - - - 0 - 0 - 0 - 0 - - - - Qt::AlignRight - - - 999999 - - - - - - - Qt::Horizontal - - - - + -- 2.39.2