#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() );
}
void GotoTimeDialog::close()
{
+
this->toggleVisible();
}
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() );
}