Commit 9cbd95e7 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

A bit more modern version of the About dialog

parent 34e1e7dc
...@@ -83,53 +83,51 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) ...@@ -83,53 +83,51 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf)
{ {
/* Build UI */ /* Build UI */
ui.setupUi( this ); ui.setupUi( this );
ui.closeButtonBox->addButton(
new QPushButton( qtr("&Close"), this ), QDialogButtonBox::RejectRole );
setWindowTitle( qtr( "About" ) ); setWindowTitle( qtr( "About" ) );
setWindowRole( "vlc-about" ); setWindowRole( "vlc-about" );
setMinimumSize( 600, 500 );
resize( 600, 500 );
setWindowModality( Qt::WindowModal ); setWindowModality( Qt::WindowModal );
CONNECT( ui.closeButtonBox, rejected(), this, close() ); ui.version->setText(qfu( " " VERSION_MESSAGE ) );
ui.closeButtonBox->setFocus(); #if 0
ui.introduction->setText(
qtr( "VLC media player" ) + qfu( " " VERSION_MESSAGE ) );
if( QDate::currentDate().dayOfYear() >= QT_XMAS_JOKE_DAY && var_InheritBool( p_intf, "qt-icon-change" ) ) if( QDate::currentDate().dayOfYear() >= QT_XMAS_JOKE_DAY && var_InheritBool( p_intf, "qt-icon-change" ) )
ui.iconVLC->setPixmap( QPixmap( ":/logo/vlc128-xmas.png" ) ); ui.iconVLC->setPixmap( QPixmap( ":/logo/vlc128-xmas.png" ) );
else else
ui.iconVLC->setPixmap( QPixmap( ":/logo/vlc128.png" ) ); ui.iconVLC->setPixmap( QPixmap( ":/logo/vlc128.png" ) );
#endif
/* Main Introduction */ #if 0
ui.infoLabel->setText( ifdef UPDATE_CHECK
qtr( "VLC media player is a free media player, " #else
"encoder and streamer that can read from files, " ui.update->hide();
"CDs, DVDs, network streams, capture cards and even more!\n" #endif
"VLC uses its internal codecs and works on essentially every "
"popular platform.\n\n" )
+ qtr( "This version of VLC was compiled by:\n" )
+ qfu( VLC_CompileBy() )+ " on " + qfu( VLC_CompileHost() ) +
+ " ("__DATE__" "__TIME__").\n"
+ qtr( "Compiler: " ) + qfu( VLC_Compiler() ) + ".\n"
+ qtr( "You are using the Qt Interface.\n\n" )
+ qtr( "Copyright (C) " ) + COPYRIGHT_YEARS
+ qtr( " by the VideoLAN Team.\n" )
+ "<a href=\"http://www.videolan.org\">http://www.videolan.org</a>" );
/* Be translators friendly: Convert to rich text */
ui.infoLabel->setText( ui.infoLabel->text().replace( "\n", "<br/>" ) );
/* GPL License */ /* GPL License */
ui.licenseEdit->setText( qfu( psz_license ) ); ui.licensePage->setText( qfu( psz_license ) );
/* People who helped */ /* People who helped */
ui.thanksEdit->setText( qfu( psz_thanks ) ); ui.creditPage->setText( qfu( psz_thanks ) );
/* People who wrote the software */ /* People who wrote the software */
ui.authorsEdit->setText( qfu( psz_authors ) ); ui.authorsPage->setText( qfu( psz_authors ) );
BUTTONACT(ui.licenseButton, showLicense() );
BUTTONACT(ui.authorsButton, showAuthors() );
BUTTONACT(ui.creditsButton, showCredit() );
}
void AboutDialog::showLicense()
{
ui.stackedWidget->setCurrentWidget( ui.licensePage );
}
void AboutDialog::showAuthors()
{
ui.stackedWidget->setCurrentWidget( ui.authorsPage );
}
void AboutDialog::showCredit()
{
ui.stackedWidget->setCurrentWidget( ui.creditPage );
} }
#ifdef UPDATE_CHECK #ifdef UPDATE_CHECK
......
...@@ -58,9 +58,12 @@ private: ...@@ -58,9 +58,12 @@ private:
Ui::aboutWidget ui; Ui::aboutWidget ui;
public slots: public slots:
virtual void close() { toggleVisible(); }
friend class Singleton<AboutDialog>; friend class Singleton<AboutDialog>;
private slots:
void showLicense();
void showAuthors();
void showCredit();
}; };
#ifdef UPDATE_CHECK #ifdef UPDATE_CHECK
......
This diff is collapsed.
<RCC> <RCC>
<qresource prefix="/logo"> <qresource prefix="/logo">
<file alias="vlc256.png">../../../share/icons/256x256/vlc.png</file>
<file alias="vlc128.png">../../../share/icons/128x128/vlc.png</file> <file alias="vlc128.png">../../../share/icons/128x128/vlc.png</file>
<file alias="vlc16.png">../../../share/icons/16x16/vlc.png</file> <file alias="vlc16.png">../../../share/icons/16x16/vlc.png</file>
<file alias="vlc48.png">../../../share/icons/48x48/vlc.png</file> <file alias="vlc48.png">../../../share/icons/48x48/vlc.png</file>
......
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