Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
9cbd95e7
Commit
9cbd95e7
authored
Apr 16, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A bit more modern version of the About dialog
parent
34e1e7dc
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
293 additions
and
163 deletions
+293
-163
modules/gui/qt4/dialogs/help.cpp
modules/gui/qt4/dialogs/help.cpp
+30
-32
modules/gui/qt4/dialogs/help.hpp
modules/gui/qt4/dialogs/help.hpp
+5
-2
modules/gui/qt4/ui/about.ui
modules/gui/qt4/ui/about.ui
+257
-129
modules/gui/qt4/vlc.qrc
modules/gui/qt4/vlc.qrc
+1
-0
No files found.
modules/gui/qt4/dialogs/help.cpp
View file @
9cbd95e7
...
@@ -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
.
license
Edit
->
setText
(
qfu
(
psz_license
)
);
ui
.
license
Page
->
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
...
...
modules/gui/qt4/dialogs/help.hpp
View file @
9cbd95e7
...
@@ -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
...
...
modules/gui/qt4/ui/about.ui
View file @
9cbd95e7
This diff is collapsed.
Click to expand it.
modules/gui/qt4/vlc.qrc
View file @
9cbd95e7
<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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment