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
c82be797
Commit
c82be797
authored
Nov 04, 2007
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* show the platform the in the about panel to make end-user-support a bit easier
parent
507cb45e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
26 deletions
+27
-26
modules/gui/macosx/about.m
modules/gui/macosx/about.m
+27
-26
No files found.
modules/gui/macosx/about.m
View file @
c82be797
...
...
@@ -55,8 +55,8 @@ static VLAboutBox *_o_sharedInstance = nil;
if
(
!
o_credits_path
)
{
NSString
*
o_name
;
NSString
*
o_version
;
NSString
*
o_thanks_path
;
NSString
*
o_platform
;
/* Get the info dictionary (Info.plist) */
o_info_dict
=
[[
NSBundle
mainBundle
]
infoDictionary
];
...
...
@@ -68,45 +68,46 @@ static VLAboutBox *_o_sharedInstance = nil;
/* Setup the name field */
o_name
=
[
o_local_dict
objectForKey
:
@"CFBundleName"
];
/* Set the about box title */
[
o_about_window
setTitle
:
_NS
(
"About VLC media player"
)];
/* Setup the version field */
o_version
=
[
o_info_dict
objectForKey
:
@"CFBundleVersion"
];
#ifdef __powerpc__ || __ppc__ || __ppc64__
o_platform
=
@"PowerPC"
;
#else
o_platform
=
@"Intel"
;
#endif
/* setup the creator / revision field */
if
(
VLC_Changeset
()
!=
"exported"
)
[
o_revision_field
setStringValue
:
[
NSString
stringWithFormat
:
\
_NS
(
"Compiled by %s, based on SVN revision %s"
),
VLC_CompileBy
(),
\
VLC_Changeset
()]];
[
o_revision_field
setStringValue
:
[
NSString
stringWithFormat
:
_NS
(
"Compiled by %s, based on SVN revision %s"
),
VLC_CompileBy
(),
VLC_Changeset
()]];
else
[
o_revision_field
setStringValue
:
[
NSString
stringWithFormat
:
\
_NS
(
"Compiled by %s"
),
VLC_CompileBy
()]];
[
o_revision_field
setStringValue
:
[
NSString
stringWithFormat
:
_NS
(
"Compiled by %s"
),
VLC_CompileBy
()]];
/* Setup the nameversion field */
o_name_version
=
[
NSString
stringWithFormat
:
@"Version %
@"
,
o_version
];
o_name_version
=
[
NSString
stringWithFormat
:
@"Version %
s (%@)"
,
VLC_Version
(),
o_platform
];
[
o_name_version_field
setStringValue
:
o_name_version
];
/* Setup our credits */
o_credits_path
=
[[
NSBundle
mainBundle
]
pathForResource
:
@"AUTHORS"
ofType
:
nil
];
o_credits
=
[[
NSString
alloc
]
initWithData
:
[
NSData
dataWithContentsOfFile
:
o_credits_path
]
encoding
:
NSUTF8StringEncoding
];
/* Parse the authors string */
NSMutableString
*
o_outString
=
[
NSMutableString
stringWithFormat
:
@"%@
\n\n
"
,
_NS
(
INTF_ABOUT_MSG
)];
NSScanner
*
o_scan_credits
=
[
NSScanner
scannerWithString
:
o_credits
];
NSCharacterSet
*
o_stopSet
=
[
NSCharacterSet
characterSetWithCharactersInString
:
@"
\n\r
"
];
while
(
!
[
o_scan_credits
isAtEnd
]
)
{
NSString
*
o_person
;
NSScanner
*
o_scan_person
;
[
o_scan_credits
scanUpToString
:
@"N:"
intoString
:
nil
];
[
o_scan_credits
scanString
:
@"N:"
intoString
:
nil
];
[
o_scan_credits
scanUpToString
:
@"N:"
intoString
:
&
o_person
];
o_scan_person
=
[
NSScanner
scannerWithString
:
o_person
];
NSString
*
o_name
;
NSString
*
o_email
;
NSMutableString
*
o_jobs
=
[
NSMutableString
string
];
...
...
@@ -118,7 +119,7 @@ static VLAboutBox *_o_sharedInstance = nil;
[
o_scan_person
scanUpToString
:
@"D:"
intoString
:
&
o_next
];
[
o_scan_person
scanUpToString
:
@":"
intoString
:
&
o_next
];
[
o_scan_person
scanString
:
@":"
intoString
:
nil
];
while
(
[
o_next
characterAtIndex
:[
o_next
length
]
-
1
]
==
'D'
)
{
NSString
*
o_job
;
...
...
@@ -127,30 +128,30 @@ static VLAboutBox *_o_sharedInstance = nil;
[
o_scan_person
scanUpToString
:
@":"
intoString
:
&
o_next
];
[
o_scan_person
scanString
:
@":"
intoString
:
nil
];
}
[
o_outString
appendFormat
:
@"%@ <%@>
\n
%@
\n\n
"
,
o_name
,
o_email
,
o_jobs
];
}
/* Parse the thanks string */
o_thanks_path
=
[[
NSBundle
mainBundle
]
pathForResource
:
@"THANKS"
ofType
:
nil
];
o_thanks
=
[[
NSString
alloc
]
initWithData
:
[
NSData
dataWithContentsOfFile
:
o_thanks_path
]
encoding
:
NSUTF8StringEncoding
];
NSScanner
*
o_scan_thanks
=
[
NSScanner
scannerWithString
:
o_thanks
];
[
o_scan_thanks
scanUpToCharactersFromSet
:
o_stopSet
intoString
:
nil
];
while
(
!
[
o_scan_thanks
isAtEnd
]
)
{
NSString
*
o_person
;
NSString
*
o_job
;
[
o_scan_thanks
scanUpToString
:
@" - "
intoString
:
&
o_person
];
[
o_scan_thanks
scanString
:
@" - "
intoString
:
nil
];
[
o_scan_thanks
scanUpToCharactersFromSet
:
o_stopSet
intoString
:
&
o_job
];
[
o_outString
appendFormat
:
@"%@
\n
%@
\n\n
"
,
o_person
,
o_job
];
}
[
o_credits_textview
setString
:
o_outString
];
/* Setup the copyright field */
o_copyright
=
[
o_local_dict
objectForKey
:
@"NSHumanReadableCopyright"
];
[
o_copyright_field
setStringValue
:
o_copyright
];
...
...
@@ -162,7 +163,7 @@ static VLAboutBox *_o_sharedInstance = nil;
[
o_about_window
setMenu
:
nil
];
[
o_about_window
center
];
}
/* Show the window */
b_restart
=
YES
;
[
o_about_window
makeKeyAndOrderFront
:
nil
];
...
...
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