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

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

parent 89c1ffd3
......@@ -27,22 +27,35 @@
#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();
}
......@@ -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 *);
......
......@@ -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() );
}
......
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