Commit d9affb14 authored by Pavlov Konstantin's avatar Pavlov Konstantin

QT4: Modify About dialog: make it brief, clean and simple.

parent 46e1689c
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
#define I_MENU_BOOKMARK N_("Bookmarks...") #define I_MENU_BOOKMARK N_("Bookmarks...")
#define I_MENU_VLM N_("VLM Configuration...") #define I_MENU_VLM N_("VLM Configuration...")
#define I_MENU_ABOUT N_("About VLC media player...") #define I_MENU_ABOUT N_("About...")
/* Playlist popup */ /* Playlist popup */
#define I_POP_PLAY N_("Play") #define I_POP_PLAY N_("Play")
......
...@@ -56,7 +56,6 @@ HelpDialog::HelpDialog( QWidget *parent, intf_thread_t *_p_intf ) ...@@ -56,7 +56,6 @@ HelpDialog::HelpDialog( QWidget *parent, intf_thread_t *_p_intf )
: QVLCDialog( parent, _p_intf ) : QVLCDialog( parent, _p_intf )
{ {
setWindowTitle( qtr( "Help" ) ); setWindowTitle( qtr( "Help" ) );
resize( 600, 560 );
QGridLayout *layout = new QGridLayout( this ); QGridLayout *layout = new QGridLayout( this );
QTextBrowser *helpBrowser = new QTextBrowser( this ); QTextBrowser *helpBrowser = new QTextBrowser( this );
...@@ -85,6 +84,7 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf ) ...@@ -85,6 +84,7 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf )
{ {
setWindowTitle( qtr( "About" ) ); setWindowTitle( qtr( "About" ) );
resize( 600, 500 ); resize( 600, 500 );
setMinimumSize( 600, 500 );
QGridLayout *layout = new QGridLayout( this ); QGridLayout *layout = new QGridLayout( this );
QTabWidget *tab = new QTabWidget( this ); QTabWidget *tab = new QTabWidget( this );
...@@ -94,7 +94,7 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf ) ...@@ -94,7 +94,7 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf )
closeButton->setDefault( true ); closeButton->setDefault( true );
QLabel *introduction = new QLabel( QLabel *introduction = new QLabel(
qtr( "Information about VLC media player." ) ); qtr( "VLC media player " VERSION_MESSAGE ) );
QLabel *iconVLC = new QLabel; QLabel *iconVLC = new QLabel;
if( QDate::currentDate().dayOfYear() >= 354 ) if( QDate::currentDate().dayOfYear() >= 354 )
iconVLC->setPixmap( QPixmap( ":/vlc48-christmas.png" ) ); iconVLC->setPixmap( QPixmap( ":/vlc48-christmas.png" ) );
...@@ -108,24 +108,19 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf ) ...@@ -108,24 +108,19 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf )
/* Main Introduction */ /* Main Introduction */
QWidget *infoWidget = new QWidget( this ); QWidget *infoWidget = new QWidget( this );
QHBoxLayout *infoLayout = new QHBoxLayout( infoWidget ); QHBoxLayout *infoLayout = new QHBoxLayout( infoWidget );
QLabel *infoLabel = new QLabel( "VLC media player " VERSION_MESSAGE "\n\n" QLabel *infoLabel = new QLabel(
"(c) " COPYRIGHT_YEARS " - the VideoLAN Team\n\n" + qtr( "VLC media player is a free media player, "
qtr( "VLC media player is a free media player, made by the " "encoder and streamer that can read from files, "
"VideoLAN Team.\nIt is a standalone multimedia player, " "CDs, DVDs, network streams, capture cards and even more!\n"
"encoder and streamer, that can read from many supports " "Also, VLC works on essentially every popular platform.\n\n" )
"(files, CDs, DVDs, networks, capture cards...) and that " + qtr( "This version of VLC was compiled by:\n " )
"works on many platforms.\n\n" ) + qfu( VLC_CompileBy() )+ "@" + qfu( VLC_CompileHost() ) + "."
+ qtr( "You are using the Qt4 Interface.\n" )
+ qtr( "Compiled by " ) + qfu( VLC_CompileBy() )+ "@"
+ qfu( VLC_CompileHost() ) + "."
+ qfu( VLC_CompileDomain() ) + ".\n" + qfu( VLC_CompileDomain() ) + ".\n"
+ "Compiler: " + qfu( VLC_Compiler() ) + ".\n" + "Compiler: " + qfu( VLC_Compiler() ) + ".\n"
+ qtr( "Based on SVN revision: " ) + qfu( VLC_Changeset() ) + qtr( "Based on SVN revision: " ) + qfu( VLC_Changeset() ) + ".\n"
+ ".\n\n" + qtr( "You are using the Qt4 Interface.\n\n" )
+ qtr( "This program comes with NO WARRANTY, to the extent " + qtr( "Copyright (c) " COPYRIGHT_YEARS " by the VideoLAN Team.\n" )
"permitted by the law; read the distribution tab.\n\n" ) + "vlc@videolan.org, http://www.videolan.org" );
+ "The VideoLAN team <videolan@videolan.org> \n"
"http://www.videolan.org/\n" );
infoLabel->setWordWrap( infoLabel ); infoLabel->setWordWrap( infoLabel );
QLabel *iconVLC2 = new QLabel; QLabel *iconVLC2 = new QLabel;
...@@ -138,7 +133,6 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf ) ...@@ -138,7 +133,6 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf )
/* GPL License */ /* GPL License */
QTextEdit *licenseEdit = new QTextEdit( this ); QTextEdit *licenseEdit = new QTextEdit( this );
licenseEdit->setFontFamily( "Monospace" );
licenseEdit->setText( qfu( psz_license ) ); licenseEdit->setText( qfu( psz_license ) );
licenseEdit->setReadOnly( true ); licenseEdit->setReadOnly( true );
...@@ -163,10 +157,10 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf ) ...@@ -163,10 +157,10 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf )
authorsEdit->setReadOnly( true ); authorsEdit->setReadOnly( true );
/* add the tabs to the Tabwidget */ /* add the tabs to the Tabwidget */
tab->addTab( infoWidget, qtr( "General Info" ) ); tab->addTab( infoWidget, qtr( "About" ) );
tab->addTab( authorsEdit, qtr( "Authors" ) ); tab->addTab( authorsEdit, qtr( "Authors" ) );
tab->addTab( thanksWidget, qtr("Thanks") ); tab->addTab( thanksWidget, qtr("Thanks") );
tab->addTab( licenseEdit, qtr("Distribution License") ); tab->addTab( licenseEdit, qtr("License") );
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