]> git.sesse.net Git - vlc/commitdiff
Qt4 - a few additions to the empty GotoTime dialog..
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 31 Mar 2007 15:31:26 +0000 (15:31 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 31 Mar 2007 15:31:26 +0000 (15:31 +0000)
modules/gui/qt4/dialogs/gototime.cpp
modules/gui/qt4/dialogs/gototime.hpp
modules/gui/qt4/dialogs/help.cpp

index 144add4315a7d606cbc30e605cb0e761a6053dfd..0e35e36864c1142898d29464aaefebbcf0cfda8d 100644 (file)
 #include "util/qvlcframe.hpp"
 #include "qt4.hpp"
 
-#include <QTextBrowser>
 #include <QTabWidget>
 #include <QFile>
 #include <QLabel>
+#include <QTimeEdit>
+#include <QGroupBox>
+#include <QHBoxLayout>
 
 GotoTimeDialog *GotoTimeDialog::instance = NULL;
 
 GotoTimeDialog::GotoTimeDialog( intf_thread_t *_p_intf) :  QVLCFrame( _p_intf )
 {
     setWindowTitle( qtr( "GotoTime" ) );
-    resize(600, 500);
+    resize( 400, 200 );
 
-    QGridLayout *layout = new QGridLayout(this);
-    QPushButton *closeButton = new QPushButton(qtr("&Close"));
+    QGridLayout *layout = new QGridLayout( this );
 
-    layout->addWidget(closeButton, 1, 3);
+    QPushButton *closeButton = new QPushButton( qtr( "&Close" ) );
+    QLabel *timeIntro = new 
+        QLabel( "Enter below the desired time you want to go in the media" );
+
+    QGroupBox *timeGroupBox = new QGroupBox( "Time" );
+    QHBoxLayout *boxLayout = new QHBoxLayout( timeGroupBox );
+
+    timeEdit = new QTimeEdit();
+    boxLayout->addWidget( timeEdit );
+
+    layout->addWidget( timeIntro, 0, 0, 1, 4 );
+    layout->addWidget( timeGroupBox, 1, 0, 1, 4 );
+    layout->addWidget( closeButton, 2, 3 );
 
     BUTTONACT( closeButton, close() );
 }
@@ -53,5 +66,6 @@ GotoTimeDialog::~GotoTimeDialog()
 
 void GotoTimeDialog::close()
 {
+
     this->toggleVisible();
 }
index 61c9abd4fb787db0039b1d5a3fa83f83c76dbe11..d5ca3b1ca7762954680767a31d86c0d1e3a4e3ce 100644 (file)
@@ -25,6 +25,8 @@
 
 #include "util/qvlcframe.hpp"
 
+class QTimeEdit;
+
 class GotoTimeDialog : public QVLCFrame
 {
     Q_OBJECT;
@@ -36,6 +38,7 @@ public:
         return instance;
     }
     virtual ~GotoTimeDialog();
+    QTimeEdit *timeEdit;
 
 private:
     GotoTimeDialog( intf_thread_t *);
index c571d4e0ac1747cb3c7857fba0420a068c78dc07..7519b2e969b82a90cda161e75640b6fee39b9b83 100644 (file)
@@ -37,14 +37,14 @@ HelpDialog *HelpDialog::instance = NULL;
 HelpDialog::HelpDialog( intf_thread_t *_p_intf) :  QVLCFrame( _p_intf )
 {
     setWindowTitle( qtr( "Help" ) );
-    resize(600, 500);
+    resize( 600, 500 );
 
-    QGridLayout *layout = new QGridLayout(this);
-    QTextBrowser *helpBrowser = new QTextBrowser(this);
-    QPushButton *closeButton = new QPushButton(qtr("&Close"));
+    QGridLayout *layout = new QGridLayout( this );
+    QTextBrowser *helpBrowser = new QTextBrowser( this );
+    QPushButton *closeButton = new QPushButton( qtr( "&Close" ) );
 
-    layout->addWidget(helpBrowser, 0, 0, 1, 0);
-    layout->addWidget(closeButton, 1, 3);
+    layout->addWidget( helpBrowser, 0, 0, 1, 0 );
+    layout->addWidget( closeButton, 1, 3 );
 
     BUTTONACT( closeButton, close() );
 }