Commit 348fbef1 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

qt4 - Subtitles Sprefs icon change and About dialog modification... But the...

qt4 - Subtitles Sprefs icon change and About dialog modification... But the file is not yet displayed.

parent 257f7072
...@@ -29,13 +29,16 @@ ...@@ -29,13 +29,16 @@
#include <QTextBrowser> #include <QTextBrowser>
#include <QTabWidget> #include <QTabWidget>
#include <QFile>
#include <QTextBrowser>
#include <QLabel>
HelpDialog *HelpDialog::instance = NULL; 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(450, 500); resize(600, 500);
QGridLayout *layout = new QGridLayout(this); QGridLayout *layout = new QGridLayout(this);
QTextBrowser *helpBrowser = new QTextBrowser(this); QTextBrowser *helpBrowser = new QTextBrowser(this);
...@@ -60,14 +63,27 @@ AboutDialog *AboutDialog::instance = NULL; ...@@ -60,14 +63,27 @@ AboutDialog *AboutDialog::instance = NULL;
AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf ) AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf )
{ {
setWindowTitle( qtr( "About" ) ); setWindowTitle( qtr( "About" ) );
resize( 450, 250 ); resize( 600, 500 );
QGridLayout *layout = new QGridLayout( this ); QGridLayout *layout = new QGridLayout( this );
QTabWidget *tab = new QTabWidget( this ); QTabWidget *tab = new QTabWidget( this );
QPushButton *closeButton = new QPushButton( qtr( "&Close" ) ); QPushButton *closeButton = new QPushButton( qtr( "&Close" ) );
closeButton->setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum );
QLabel *introduction = new QLabel( qtr( "Infos about VLC media player" ) );
layout->addWidget( introduction, 0, 0, 1, 2 );
layout->addWidget( tab, 1, 0, 1, 2 );
layout->addWidget( closeButton, 2, 1, 1, 1 );
QFile *licenseFile = new QFile( "/usr/src/vlc/COPYING" );
QTextEdit *licenseEdit = new QTextEdit( this );
licenseEdit->setText( licenseFile->readAll() );
licenseEdit->setReadOnly( true );
tab->addTab( licenseEdit, _("Distribution License") );
layout->addWidget( tab, 0, 0);
layout->addWidget( closeButton, 1, 3 );
BUTTONACT( closeButton, close() ); BUTTONACT( closeButton, close() );
} }
......
...@@ -42,6 +42,7 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal ) : ...@@ -42,6 +42,7 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal ) :
setModal( modal ); setModal( modal );
ui.setupUi( this ); ui.setupUi( this );
setWindowTitle( qtr("Open" ) ); setWindowTitle( qtr("Open" ) );
fileOpenPanel = new FileOpenPanel( this , p_intf ); fileOpenPanel = new FileOpenPanel( this , p_intf );
diskOpenPanel = new DiskOpenPanel( this , p_intf ); diskOpenPanel = new DiskOpenPanel( this , p_intf );
netOpenPanel = new NetOpenPanel( this , p_intf ); netOpenPanel = new NetOpenPanel( this , p_intf );
......
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