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
7bcedb58
Commit
7bcedb58
authored
Jan 05, 2003
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Added the possibility to select DVD menus with VIDEO_TS folder in the
OS X open panel.
parent
a7eb9fc8
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
30 deletions
+41
-30
extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib
...s/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib
+2
-0
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
+1
-1
extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
...s/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
+0
-0
modules/gui/macosx/open.h
modules/gui/macosx/open.h
+3
-1
modules/gui/macosx/open.m
modules/gui/macosx/open.m
+35
-28
No files found.
extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib
View file @
7bcedb58
...
@@ -112,6 +112,7 @@
...
@@ -112,6 +112,7 @@
{
{
ACTIONS = {
ACTIONS = {
openDisc = id;
openDisc = id;
openDiscMenusChanged = id;
openDiscStepperChanged = id;
openDiscStepperChanged = id;
openDiscTypeChanged = id;
openDiscTypeChanged = id;
openFile = id;
openFile = id;
...
@@ -135,6 +136,7 @@
...
@@ -135,6 +136,7 @@
"o_disc_chapter_stp" = id;
"o_disc_chapter_stp" = id;
"o_disc_device" = id;
"o_disc_device" = id;
"o_disc_device_lbl" = id;
"o_disc_device_lbl" = id;
"o_disc_dvd_menus" = id;
"o_disc_title" = id;
"o_disc_title" = id;
"o_disc_title_lbl" = id;
"o_disc_title_lbl" = id;
"o_disc_title_stp" = id;
"o_disc_title_stp" = id;
...
...
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
View file @
7bcedb58
...
@@ -15,9 +15,9 @@
...
@@ -15,9 +15,9 @@
<string>
291.0
</string>
<string>
291.0
</string>
<key>
IBOpenObjects
</key>
<key>
IBOpenObjects
</key>
<array>
<array>
<integer>
21
</integer>
<integer>
29
</integer>
<integer>
29
</integer>
<integer>
636
</integer>
<integer>
636
</integer>
<integer>
21
</integer>
</array>
</array>
<key>
IBSystem Version
</key>
<key>
IBSystem Version
</key>
<string>
6G30
</string>
<string>
6G30
</string>
...
...
extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
View file @
7bcedb58
No preview for this file type
modules/gui/macosx/open.h
View file @
7bcedb58
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* open.h: MacOS X plugin for vlc
* open.h: MacOS X plugin for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* Copyright (C) 2002 VideoLAN
* $Id: open.h,v 1.
4 2002/12/30 23:45:21
massiot Exp $
* $Id: open.h,v 1.
5 2003/01/05 02:39:48
massiot Exp $
*
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
*
*
...
@@ -54,6 +54,7 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class );
...
@@ -54,6 +54,7 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class );
IBOutlet
id
o_disc_chapter_stp
;
IBOutlet
id
o_disc_chapter_stp
;
IBOutlet
id
o_disc_videots_folder
;
IBOutlet
id
o_disc_videots_folder
;
IBOutlet
id
o_disc_videots_btn_browse
;
IBOutlet
id
o_disc_videots_btn_browse
;
IBOutlet
id
o_disc_dvd_menus
;
IBOutlet
id
o_net_mode
;
IBOutlet
id
o_net_mode
;
IBOutlet
id
o_net_udp_port
;
IBOutlet
id
o_net_udp_port
;
...
@@ -85,6 +86,7 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class );
...
@@ -85,6 +86,7 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class );
-
(
IBAction
)
openDiscTypeChanged
:(
id
)
sender
;
-
(
IBAction
)
openDiscTypeChanged
:(
id
)
sender
;
-
(
IBAction
)
openDiscStepperChanged
:(
id
)
sender
;
-
(
IBAction
)
openDiscStepperChanged
:(
id
)
sender
;
-
(
void
)
openDiscInfoChanged
:(
NSNotification
*
)
o_notification
;
-
(
void
)
openDiscInfoChanged
:(
NSNotification
*
)
o_notification
;
-
(
IBAction
)
openDiscMenusChanged
:(
id
)
sender
;
-
(
IBAction
)
openVTSBrowse
:(
id
)
sender
;
-
(
IBAction
)
openVTSBrowse
:(
id
)
sender
;
-
(
IBAction
)
openNet
:(
id
)
sender
;
-
(
IBAction
)
openNet
:(
id
)
sender
;
...
...
modules/gui/macosx/open.m
View file @
7bcedb58
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* open.m: MacOS X plugin for vlc
* open.m: MacOS X plugin for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* Copyright (C) 2002 VideoLAN
* $Id: open.m,v 1.
5 2002/12/30 23:45:21
massiot Exp $
* $Id: open.m,v 1.
6 2003/01/05 02:39:48
massiot Exp $
*
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
* Christophe Massiot <massiot@via.ecp.fr>
...
@@ -154,11 +154,11 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class )
...
@@ -154,11 +154,11 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class )
[
o_disc_title_lbl
setStringValue
:
_NS
(
"Title"
)];
[
o_disc_title_lbl
setStringValue
:
_NS
(
"Title"
)];
[
o_disc_chapter_lbl
setStringValue
:
_NS
(
"Chapter"
)];
[
o_disc_chapter_lbl
setStringValue
:
_NS
(
"Chapter"
)];
[
o_disc_videots_btn_browse
setStringValue
:
_NS
(
"Browse..."
)];
[
o_disc_videots_btn_browse
setStringValue
:
_NS
(
"Browse..."
)];
[
o_disc_dvd_menus
setTitle
:
_NS
(
"Use DVD menus"
)];
[[
o_disc_type
cellAtRow
:
0
column
:
0
]
setTitle
:
_NS
(
"
DVD
"
)];
[[
o_disc_type
cellAtRow
:
0
column
:
0
]
setTitle
:
_NS
(
"
VIDEO_TS folder
"
)];
[[
o_disc_type
cellAtRow
:
1
column
:
0
]
setTitle
:
_NS
(
"DVD
with menus
"
)];
[[
o_disc_type
cellAtRow
:
1
column
:
0
]
setTitle
:
_NS
(
"DVD"
)];
[[
o_disc_type
cellAtRow
:
2
column
:
0
]
setTitle
:
_NS
(
"VCD"
)];
[[
o_disc_type
cellAtRow
:
2
column
:
0
]
setTitle
:
_NS
(
"VCD"
)];
[[
o_disc_type
cellAtRow
:
3
column
:
0
]
setTitle
:
_NS
(
"VIDEO_TS folder"
)];
[
o_net_udp_port_lbl
setStringValue
:
_NS
(
"Port"
)];
[
o_net_udp_port_lbl
setStringValue
:
_NS
(
"Port"
)];
[
o_net_udpm_addr_lbl
setStringValue
:
_NS
(
"Address"
)];
[
o_net_udpm_addr_lbl
setStringValue
:
_NS
(
"Address"
)];
...
@@ -299,40 +299,36 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class )
...
@@ -299,40 +299,36 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class )
-
(
IBAction
)
openDiscTypeChanged
:(
id
)
sender
-
(
IBAction
)
openDiscTypeChanged
:(
id
)
sender
{
{
NSString
*
o_type
;
NSString
*
o_type
;
vlc_bool_t
b_
vts
,
b_device
,
b_title_chapter
;
vlc_bool_t
b_
device
,
b_menus
,
b_title_chapter
;
[
o_disc_device
removeAllItems
];
[
o_disc_device
removeAllItems
];
b_title_chapter
=
!
[
o_disc_dvd_menus
state
];
o_type
=
[[
o_disc_type
selectedCell
]
title
];
o_type
=
[[
o_disc_type
selectedCell
]
title
];
if
(
[
o_type
isEqualToString
:
_NS
(
"VIDEO_TS folder"
)]
)
if
(
[
o_type
isEqualToString
:
_NS
(
"VIDEO_TS folder"
)]
)
{
{
b_
vts
=
1
;
b_device
=
b_title_chapter
=
0
;
b_
device
=
0
;
b_menus
=
1
;
}
}
else
else
{
{
NSArray
*
o_devices
;
NSArray
*
o_devices
;
NSString
*
o_disc
;
NSString
*
o_disc
;
const
char
*
psz_class
=
NULL
;
const
char
*
psz_class
=
NULL
;
b_
vts
=
0
;
b_
device
=
1
;
b_device
=
1
;
if
(
[
o_type
isEqualToString
:
_NS
(
"VCD"
)]
)
if
(
[
o_type
isEqualToString
:
_NS
(
"VCD"
)]
)
{
{
psz_class
=
kIOCDMediaClass
;
psz_class
=
kIOCDMediaClass
;
o_disc
=
o_type
;
o_disc
=
o_type
;
b_title_chapter
=
1
;
b_menus
=
0
;
b_title_chapter
=
1
;
[
o_disc_dvd_menus
setState
:
FALSE
];
}
}
else
if
(
[
o_type
isEqualToString
:
_NS
(
"DVD"
)]
)
else
{
{
psz_class
=
kIODVDMediaClass
;
psz_class
=
kIODVDMediaClass
;
o_disc
=
o_type
;
o_disc
=
o_type
;
b_title_chapter
=
1
;
b_menus
=
1
;
}
else
/* DVD with menus */
{
psz_class
=
kIODVDMediaClass
;
o_disc
=
_NS
(
"DVD"
);
b_title_chapter
=
0
;
}
}
o_devices
=
GetEjectableMediaOfClass
(
psz_class
);
o_devices
=
GetEjectableMediaOfClass
(
psz_class
);
...
@@ -365,8 +361,9 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class )
...
@@ -365,8 +361,9 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class )
[
o_disc_title_stp
setEnabled
:
b_title_chapter
];
[
o_disc_title_stp
setEnabled
:
b_title_chapter
];
[
o_disc_chapter
setEnabled
:
b_title_chapter
];
[
o_disc_chapter
setEnabled
:
b_title_chapter
];
[
o_disc_chapter_stp
setEnabled
:
b_title_chapter
];
[
o_disc_chapter_stp
setEnabled
:
b_title_chapter
];
[
o_disc_videots_folder
setEnabled
:
b_vts
];
[
o_disc_videots_folder
setEnabled
:
!
b_device
];
[
o_disc_videots_btn_browse
setEnabled
:
b_vts
];
[
o_disc_videots_btn_browse
setEnabled
:
!
b_device
];
[
o_disc_dvd_menus
setEnabled
:
b_menus
];
[
self
openDiscInfoChanged
:
nil
];
[
self
openDiscInfoChanged
:
nil
];
}
}
...
@@ -394,12 +391,14 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class )
...
@@ -394,12 +391,14 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class )
NSString
*
o_videots
;
NSString
*
o_videots
;
NSString
*
o_mrl_string
;
NSString
*
o_mrl_string
;
int
i_title
,
i_chapter
;
int
i_title
,
i_chapter
;
vlc_bool_t
b_menus
;
o_type
=
[[
o_disc_type
selectedCell
]
title
];
o_type
=
[[
o_disc_type
selectedCell
]
title
];
o_device
=
[
o_disc_device
stringValue
];
o_device
=
[
o_disc_device
stringValue
];
i_title
=
[
o_disc_title
intValue
];
i_title
=
[
o_disc_title
intValue
];
i_chapter
=
[
o_disc_chapter
intValue
];
i_chapter
=
[
o_disc_chapter
intValue
];
o_videots
=
[
o_disc_videots_folder
stringValue
];
o_videots
=
[
o_disc_videots_folder
stringValue
];
b_menus
=
[
o_disc_dvd_menus
state
];
if
(
[
o_type
isEqualToString
:
_NS
(
"VCD"
)]
)
if
(
[
o_type
isEqualToString
:
_NS
(
"VCD"
)]
)
{
{
...
@@ -414,24 +413,32 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class )
...
@@ -414,24 +413,32 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class )
if
(
[
o_device
isEqualToString
:
if
(
[
o_device
isEqualToString
:
[
NSString
stringWithFormat
:
_NS
(
"No %@s found"
),
o_type
]]
)
[
NSString
stringWithFormat
:
_NS
(
"No %@s found"
),
o_type
]]
)
o_device
=
@""
;
o_device
=
@""
;
if
(
b_menus
)
o_mrl_string
=
[
NSString
stringWithFormat
:
@"dvdplay://%@"
,
o_device
];
else
o_mrl_string
=
[
NSString
stringWithFormat
:
@"dvdold://%@@%i,%i"
,
o_mrl_string
=
[
NSString
stringWithFormat
:
@"dvdold://%@@%i,%i"
,
o_device
,
i_title
,
i_chapter
];
o_device
,
i_title
,
i_chapter
];
}
}
else
if
(
[
o_type
isEqualToString
:
_NS
(
"DVD with menus"
)]
)
{
if
(
[
o_device
isEqualToString
:
[
NSString
stringWithFormat
:
_NS
(
"No %@s found"
),
_NS
(
"DVD"
)]]
)
o_device
=
@""
;
o_mrl_string
=
[
NSString
stringWithFormat
:
@"dvdplay://%@"
,
o_device
];
}
else
/* VIDEO_TS folder */
else
/* VIDEO_TS folder */
{
{
o_mrl_string
=
[
NSString
stringWithFormat
:
@"dvdread://%@"
,
o_videots
];
if
(
b_menus
)
o_mrl_string
=
[
NSString
stringWithFormat
:
@"dvdplay://%@"
,
o_videots
];
else
o_mrl_string
=
[
NSString
stringWithFormat
:
@"dvdread://%@@%i,%i"
,
o_videots
,
i_title
,
i_chapter
];
}
}
[
o_mrl
setStringValue
:
o_mrl_string
];
[
o_mrl
setStringValue
:
o_mrl_string
];
}
}
-
(
IBAction
)
openDiscMenusChanged
:(
id
)
sender
{
[
self
openDiscInfoChanged
:
nil
];
[
self
openDiscTypeChanged
:
nil
];
}
-
(
IBAction
)
openNetModeChanged
:(
id
)
sender
-
(
IBAction
)
openNetModeChanged
:(
id
)
sender
{
{
NSString
*
o_mode
;
NSString
*
o_mode
;
...
...
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