Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
be9943b7
Commit
be9943b7
authored
Sep 01, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4/about: reads data from the files when they are shipped with the binary (i.e. on windows)
parent
f4760a11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
8 deletions
+31
-8
modules/gui/qt4/Modules.am
modules/gui/qt4/Modules.am
+6
-7
modules/gui/qt4/dialogs/help.cpp
modules/gui/qt4/dialogs/help.cpp
+25
-1
No files found.
modules/gui/qt4/Modules.am
View file @
be9943b7
...
...
@@ -78,18 +78,17 @@ resources.cpp: res.qrc
dialogs/help.cpp: dialogs/about.hpp
dialogs/about.hpp:
echo "
char *psz_licence =
{ \\" > dialogs/about.hpp
dialogs/about.hpp:
../../../AUTHORS ../../../COPYING ../../../THANKS
echo "
#define LICENCE
{ \\" > dialogs/about.hpp
cat $(top_srcdir)/COPYING | sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\" \\" }' >> dialogs/about.hpp
echo "};" >> dialogs/about.hpp
echo "
char *psz_thanks =
{ \\" >> dialogs/about.hpp
cat $(top_srcdir)/THANKS |
grep -v '$$Id:' |
sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\" \\" }' >> dialogs/about.hpp
echo "
#define THANKS
{ \\" >> dialogs/about.hpp
cat $(top_srcdir)/THANKS |
tail -$$((`wc -l $(top_srcdir)/THANKS|cut -d" " -f 1` - 2))|
sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\" \\" }' >> dialogs/about.hpp
echo "};" >> dialogs/about.hpp
echo "
char *psz_authors =
{ \\" >> dialogs/about.hpp
cat $(top_srcdir)/AUTHORS |
grep -v '$$Id:' |
sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\" \\" }' >> dialogs/about.hpp
echo "
#define AUTHORS
{ \\" >> dialogs/about.hpp
cat $(top_srcdir)/AUTHORS |
tail -$$((`wc -l $(top_srcdir)/AUTHORS|cut -d" " -f 1` - 2))|
sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\" \\" }' >> dialogs/about.hpp
echo "};" >> dialogs/about.hpp
SOURCES_qt4 = qt4.cpp \
menus.cpp \
main_interface.cpp \
...
...
modules/gui/qt4/dialogs/help.cpp
View file @
be9943b7
...
...
@@ -114,7 +114,15 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf )
/* GPL License */
QTextEdit
*
licenseEdit
=
new
QTextEdit
(
this
);
licenseEdit
->
setText
(
qfu
(
psz_licence
)
);
#ifdef WIN32
QFile
*
licenseFile
=
new
QFile
(
"COPYING.txt"
);
licenseFile
->
open
(
QIODevice
::
ReadOnly
|
QIODevice
::
Text
);
licenseEdit
->
setText
(
licenseFile
->
readAll
().
data
()
);
licenseFile
->
close
();
#else
char
*
psz_license
=
LICENCE
;
licenseEdit
->
setText
(
qfu
(
psz_license
)
);
#endif
licenseEdit
->
setReadOnly
(
true
);
/* People who helped */
...
...
@@ -128,13 +136,29 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf )
thanksLabel
->
setWordWrap
(
true
);
thanksLayout
->
addWidget
(
thanksLabel
);
QTextEdit
*
thanksEdit
=
new
QTextEdit
(
this
);
#ifdef WIN32
QFile
*
thanksFile
=
new
QFile
(
"THANKS.txt"
);
thanksFile
->
open
(
QIODevice
::
ReadOnly
|
QIODevice
::
Text
);
thanksEdit
->
setText
(
thanksFile
->
readAll
().
data
()
);
thanksFile
->
close
();
#else
char
*
psz_thanks
=
THANKS
;
thanksEdit
->
setText
(
qfu
(
psz_thanks
)
);
#endif
thanksEdit
->
setReadOnly
(
true
);
thanksLayout
->
addWidget
(
thanksEdit
);
/* People who wrote the software */
QTextEdit
*
authorsEdit
=
new
QTextEdit
(
this
);
#ifdef WIN32
QFile
*
authorsFile
=
new
QFile
(
"COPYING.txt"
);
authorsFile
->
open
(
QIODevice
::
ReadOnly
|
QIODevice
::
Text
);
authorsEdit
->
setText
(
authorsFile
->
readAll
().
data
()
);
authorsFile
->
close
();
#else
char
*
psz_authors
=
AUTHORS
;
authorsEdit
->
setText
(
qfu
(
psz_authors
)
);
#endif
authorsEdit
->
setReadOnly
(
true
);
/* add the tabs to the Tabwidget */
...
...
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