Commit be1ee5f7 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - a few additions to the empty GotoTime dialog..

parent 89c1ffd3
...@@ -27,22 +27,35 @@ ...@@ -27,22 +27,35 @@
#include "util/qvlcframe.hpp" #include "util/qvlcframe.hpp"
#include "qt4.hpp" #include "qt4.hpp"
#include <QTextBrowser>
#include <QTabWidget> #include <QTabWidget>
#include <QFile> #include <QFile>
#include <QLabel> #include <QLabel>
#include <QTimeEdit>
#include <QGroupBox>
#include <QHBoxLayout>
GotoTimeDialog *GotoTimeDialog::instance = NULL; GotoTimeDialog *GotoTimeDialog::instance = NULL;
GotoTimeDialog::GotoTimeDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf ) GotoTimeDialog::GotoTimeDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf )
{ {
setWindowTitle( qtr( "GotoTime" ) ); setWindowTitle( qtr( "GotoTime" ) );
resize(600, 500); resize( 400, 200 );
QGridLayout *layout = new QGridLayout(this); QGridLayout *layout = new QGridLayout( this );
QPushButton *closeButton = new QPushButton(qtr("&Close"));
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() ); BUTTONACT( closeButton, close() );
} }
...@@ -53,5 +66,6 @@ GotoTimeDialog::~GotoTimeDialog() ...@@ -53,5 +66,6 @@ GotoTimeDialog::~GotoTimeDialog()
void GotoTimeDialog::close() void GotoTimeDialog::close()
{ {
this->toggleVisible(); this->toggleVisible();
} }
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
#include "util/qvlcframe.hpp" #include "util/qvlcframe.hpp"
class QTimeEdit;
class GotoTimeDialog : public QVLCFrame class GotoTimeDialog : public QVLCFrame
{ {
Q_OBJECT; Q_OBJECT;
...@@ -36,6 +38,7 @@ public: ...@@ -36,6 +38,7 @@ public:
return instance; return instance;
} }
virtual ~GotoTimeDialog(); virtual ~GotoTimeDialog();
QTimeEdit *timeEdit;
private: private:
GotoTimeDialog( intf_thread_t *); GotoTimeDialog( intf_thread_t *);
......
...@@ -37,14 +37,14 @@ HelpDialog *HelpDialog::instance = NULL; ...@@ -37,14 +37,14 @@ HelpDialog *HelpDialog::instance = NULL;
HelpDialog::HelpDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf ) HelpDialog::HelpDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf )
{ {
setWindowTitle( qtr( "Help" ) ); setWindowTitle( qtr( "Help" ) );
resize(600, 500); resize( 600, 500 );
QGridLayout *layout = new QGridLayout(this); QGridLayout *layout = new QGridLayout( this );
QTextBrowser *helpBrowser = new QTextBrowser(this); QTextBrowser *helpBrowser = new QTextBrowser( this );
QPushButton *closeButton = new QPushButton(qtr("&Close")); QPushButton *closeButton = new QPushButton( qtr( "&Close" ) );
layout->addWidget(helpBrowser, 0, 0, 1, 0); layout->addWidget( helpBrowser, 0, 0, 1, 0 );
layout->addWidget(closeButton, 1, 3); layout->addWidget( closeButton, 1, 3 );
BUTTONACT( closeButton, close() ); BUTTONACT( closeButton, close() );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment