From: Pavlov Konstantin Date: Fri, 25 Jan 2008 22:23:55 +0000 (+0000) Subject: QT4: Modify About dialog: make it brief, clean and simple. X-Git-Tag: 0.9.0-test0~3198 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d9affb14ae51d0d3efc584c050313fed9e8a4c4b;p=vlc QT4: Modify About dialog: make it brief, clean and simple. --- diff --git a/include/vlc_intf_strings.h b/include/vlc_intf_strings.h index ccf1e1e060..5c041686f6 100644 --- a/include/vlc_intf_strings.h +++ b/include/vlc_intf_strings.h @@ -46,7 +46,7 @@ #define I_MENU_BOOKMARK N_("Bookmarks...") #define I_MENU_VLM N_("VLM Configuration...") -#define I_MENU_ABOUT N_("About VLC media player...") +#define I_MENU_ABOUT N_("About...") /* Playlist popup */ #define I_POP_PLAY N_("Play") diff --git a/modules/gui/qt4/dialogs/help.cpp b/modules/gui/qt4/dialogs/help.cpp index 19fc589b49..075b59d351 100644 --- a/modules/gui/qt4/dialogs/help.cpp +++ b/modules/gui/qt4/dialogs/help.cpp @@ -56,7 +56,6 @@ HelpDialog::HelpDialog( QWidget *parent, intf_thread_t *_p_intf ) : QVLCDialog( parent, _p_intf ) { setWindowTitle( qtr( "Help" ) ); - resize( 600, 560 ); QGridLayout *layout = new QGridLayout( this ); QTextBrowser *helpBrowser = new QTextBrowser( this ); @@ -85,6 +84,7 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf ) { setWindowTitle( qtr( "About" ) ); resize( 600, 500 ); + setMinimumSize( 600, 500 ); QGridLayout *layout = new QGridLayout( this ); QTabWidget *tab = new QTabWidget( this ); @@ -94,7 +94,7 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf ) closeButton->setDefault( true ); QLabel *introduction = new QLabel( - qtr( "Information about VLC media player." ) ); + qtr( "VLC media player " VERSION_MESSAGE ) ); QLabel *iconVLC = new QLabel; if( QDate::currentDate().dayOfYear() >= 354 ) iconVLC->setPixmap( QPixmap( ":/vlc48-christmas.png" ) ); @@ -108,24 +108,19 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf ) /* Main Introduction */ QWidget *infoWidget = new QWidget( this ); QHBoxLayout *infoLayout = new QHBoxLayout( infoWidget ); - QLabel *infoLabel = new QLabel( "VLC media player " VERSION_MESSAGE "\n\n" - "(c) " COPYRIGHT_YEARS " - the VideoLAN Team\n\n" + - qtr( "VLC media player is a free media player, made by the " - "VideoLAN Team.\nIt is a standalone multimedia player, " - "encoder and streamer, that can read from many supports " - "(files, CDs, DVDs, networks, capture cards...) and that " - "works on many platforms.\n\n" ) - + qtr( "You are using the Qt4 Interface.\n" ) - + qtr( "Compiled by " ) + qfu( VLC_CompileBy() )+ "@" - + qfu( VLC_CompileHost() ) + "." + QLabel *infoLabel = new QLabel( + qtr( "VLC media player is a free media player, " + "encoder and streamer that can read from files, " + "CDs, DVDs, network streams, capture cards and even more!\n" + "Also, VLC works on essentially every popular platform.\n\n" ) + + qtr( "This version of VLC was compiled by:\n " ) + + qfu( VLC_CompileBy() )+ "@" + qfu( VLC_CompileHost() ) + "." + qfu( VLC_CompileDomain() ) + ".\n" + "Compiler: " + qfu( VLC_Compiler() ) + ".\n" - + qtr( "Based on SVN revision: " ) + qfu( VLC_Changeset() ) - + ".\n\n" - + qtr( "This program comes with NO WARRANTY, to the extent " - "permitted by the law; read the distribution tab.\n\n" ) - + "The VideoLAN team \n" - "http://www.videolan.org/\n" ); + + qtr( "Based on SVN revision: " ) + qfu( VLC_Changeset() ) + ".\n" + + qtr( "You are using the Qt4 Interface.\n\n" ) + + qtr( "Copyright (c) " COPYRIGHT_YEARS " by the VideoLAN Team.\n" ) + + "vlc@videolan.org, http://www.videolan.org" ); infoLabel->setWordWrap( infoLabel ); QLabel *iconVLC2 = new QLabel; @@ -138,7 +133,6 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf ) /* GPL License */ QTextEdit *licenseEdit = new QTextEdit( this ); - licenseEdit->setFontFamily( "Monospace" ); licenseEdit->setText( qfu( psz_license ) ); licenseEdit->setReadOnly( true ); @@ -163,10 +157,10 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf ) authorsEdit->setReadOnly( true ); /* add the tabs to the Tabwidget */ - tab->addTab( infoWidget, qtr( "General Info" ) ); + tab->addTab( infoWidget, qtr( "About" ) ); tab->addTab( authorsEdit, qtr( "Authors" ) ); tab->addTab( thanksWidget, qtr("Thanks") ); - tab->addTab( licenseEdit, qtr("Distribution License") ); + tab->addTab( licenseEdit, qtr("License") ); BUTTONACT( closeButton, close() ); }