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
f1e0ca60
Commit
f1e0ca60
authored
Feb 06, 2004
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Move GetCapabilityHelp from intf's to vlc_help.h
parent
a4b48614
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
77 deletions
+41
-77
include/vlc_help.h
include/vlc_help.h
+39
-1
modules/gui/macosx/prefs.m
modules/gui/macosx/prefs.m
+1
-38
modules/gui/wxwindows/preferences.cpp
modules/gui/wxwindows/preferences.cpp
+1
-38
No files found.
include/vlc_help.h
View file @
f1e0ca60
...
...
@@ -2,7 +2,7 @@
* vlc_help.h: Help strings
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: vlc_help.h,v 1.
7 2004/01/25 18:17:08 zorglub
Exp $
* $Id: vlc_help.h,v 1.
8 2004/02/06 03:52:09 hartman
Exp $
*
* Authors: Clment Stenac <zorglub@videolan.org>
* Anil Daoud <anil@videolan.org>
...
...
@@ -112,4 +112,42 @@
#define UNKNOWN_TITLE N_("No help available" )
#define UNKNOWN_HELP N_("No help is available for these modules")
/*****************************************************************************
* GetCapabilityHelp: Display the help for one capability.
*****************************************************************************/
static
char
*
GetCapabilityHelp
(
char
*
psz_capability
,
int
i_type
)
{
if
(
psz_capability
==
NULL
)
return
""
;
if
(
!
strcasecmp
(
psz_capability
,
"access"
)
)
return
i_type
==
1
?
ACCESS_TITLE
:
ACCESS_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"audio filter"
)
)
return
i_type
==
1
?
AUDIO_FILTER_TITLE
:
AUDIO_FILTER_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"audio output"
)
)
return
i_type
==
1
?
AOUT_TITLE
:
AOUT_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"audio encoder"
)
)
return
i_type
==
1
?
AOUT_ENC_TITLE
:
AOUT_ENC_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"chroma"
)
)
return
i_type
==
1
?
CHROMA_TITLE
:
CHROMA_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"decoder"
)
)
return
i_type
==
1
?
DECODER_TITLE
:
DECODER_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"demux"
)
)
return
i_type
==
1
?
DEMUX_TITLE
:
DEMUX_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"interface"
)
)
return
i_type
==
1
?
INTERFACE_TITLE
:
INTERFACE_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"sout access"
)
)
return
i_type
==
1
?
SOUT_TITLE
:
SOUT_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"subtitle demux"
)
)
return
i_type
==
1
?
SUBTITLE_DEMUX_TITLE
:
SUBTITLE_DEMUX_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"text renderer"
)
)
return
i_type
==
1
?
TEXT_TITLE
:
TEXT_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"video output"
)
)
return
i_type
==
1
?
VOUT__TITLE
:
VOUT_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"video filter"
)
)
return
i_type
==
1
?
VIDEO_FILTER_TITLE
:
VIDEO_FILTER_HELP
;
return
""
;
}
#endif
/* VLC_HELP_H */
modules/gui/macosx/prefs.m
View file @
f1e0ca60
...
...
@@ -2,7 +2,7 @@
* prefs.m: MacOS X module for vlc
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
* $Id: prefs.m,v 1.
39 2004/02/02 08:50:41 titer
Exp $
* $Id: prefs.m,v 1.
40 2004/02/06 03:52:09 hartman
Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Derk-Jan Hartman <hartman at videolan.org>
...
...
@@ -38,43 +38,6 @@
#define MODULE_ID 1243
#define CAPABILITY_ID 1244
/*****************************************************************************
* GetCapabilityHelp: Display the help for one capability.
*****************************************************************************/
static
char
*
GetCapabilityHelp
(
char
*
psz_capability
,
int
i_type
)
{
if
(
psz_capability
==
NULL
)
return
""
;
if
(
!
strcasecmp
(
psz_capability
,
"access"
)
)
return
i_type
==
1
?
ACCESS_TITLE
:
ACCESS_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"audio filter"
)
)
return
i_type
==
1
?
AUDIO_FILTER_TITLE
:
AUDIO_FILTER_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"audio output"
)
)
return
i_type
==
1
?
AOUT_TITLE
:
AOUT_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"audio encoder"
)
)
return
i_type
==
1
?
AOUT_ENC_TITLE
:
AOUT_ENC_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"chroma"
)
)
return
i_type
==
1
?
CHROMA_TITLE
:
CHROMA_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"decoder"
)
)
return
i_type
==
1
?
DECODER_TITLE
:
DECODER_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"demux"
)
)
return
i_type
==
1
?
DEMUX_TITLE
:
DEMUX_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"interface"
)
)
return
i_type
==
1
?
INTERFACE_TITLE
:
INTERFACE_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"sout access"
)
)
return
i_type
==
1
?
SOUT_TITLE
:
SOUT_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"subtitle demux"
)
)
return
i_type
==
1
?
SUBTITLE_DEMUX_TITLE
:
SUBTITLE_DEMUX_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"text renderer"
)
)
return
i_type
==
1
?
TEXT_TITLE
:
TEXT_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"video output"
)
)
return
i_type
==
1
?
VOUT__TITLE
:
VOUT_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"video filter"
)
)
return
i_type
==
1
?
VIDEO_FILTER_TITLE
:
VIDEO_FILTER_HELP
;
return
" "
;
}
/*****************************************************************************
* VLCPrefs implementation
*****************************************************************************/
...
...
modules/gui/wxwindows/preferences.cpp
View file @
f1e0ca60
...
...
@@ -2,7 +2,7 @@
* preferences.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2004 VideoLAN
* $Id: preferences.cpp,v 1.4
6 2004/01/25 03:29:01
hartman Exp $
* $Id: preferences.cpp,v 1.4
7 2004/02/06 03:52:09
hartman Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -291,43 +291,6 @@ void PrefsDialog::OnAdvanced( wxCommandEvent& event )
prefs_tree
->
AddPendingEvent
(
newevent
);
}
/*****************************************************************************
* GetCapabilityHelp: Display the help for one capability.
*****************************************************************************/
static
char
*
GetCapabilityHelp
(
char
*
psz_capability
,
int
i_type
)
{
if
(
psz_capability
==
NULL
)
return
""
;
if
(
!
strcasecmp
(
psz_capability
,
"access"
)
)
return
i_type
==
1
?
ACCESS_TITLE
:
ACCESS_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"audio filter"
)
)
return
i_type
==
1
?
AUDIO_FILTER_TITLE
:
AUDIO_FILTER_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"audio output"
)
)
return
i_type
==
1
?
AOUT_TITLE
:
AOUT_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"audio encoder"
)
)
return
i_type
==
1
?
AOUT_ENC_TITLE
:
AOUT_ENC_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"chroma"
)
)
return
i_type
==
1
?
CHROMA_TITLE
:
CHROMA_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"decoder"
)
)
return
i_type
==
1
?
DECODER_TITLE
:
DECODER_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"demux"
)
)
return
i_type
==
1
?
DEMUX_TITLE
:
DEMUX_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"interface"
)
)
return
i_type
==
1
?
INTERFACE_TITLE
:
INTERFACE_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"sout access"
)
)
return
i_type
==
1
?
SOUT_TITLE
:
SOUT_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"subtitle demux"
)
)
return
i_type
==
1
?
SUBTITLE_DEMUX_TITLE
:
SUBTITLE_DEMUX_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"text renderer"
)
)
return
i_type
==
1
?
TEXT_TITLE
:
TEXT_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"video output"
)
)
return
i_type
==
1
?
VOUT__TITLE
:
VOUT_HELP
;
if
(
!
strcasecmp
(
psz_capability
,
"video filter"
)
)
return
i_type
==
1
?
VIDEO_FILTER_TITLE
:
VIDEO_FILTER_HELP
;
return
" "
;
}
/*****************************************************************************
* PrefsTreeCtrl class definition.
*****************************************************************************/
...
...
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