Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
ead6422c
Commit
ead6422c
authored
Aug 20, 2011
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: simplified the subtitle opening sheet
parent
5cf832c9
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
284 additions
and
110 deletions
+284
-110
extras/package/macosx/Resources/English.lproj/Open.xib
extras/package/macosx/Resources/English.lproj/Open.xib
+253
-97
modules/gui/macosx/CompatibilityFixes.h
modules/gui/macosx/CompatibilityFixes.h
+0
-1
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+0
-1
modules/gui/macosx/open.h
modules/gui/macosx/open.h
+4
-1
modules/gui/macosx/open.m
modules/gui/macosx/open.m
+27
-10
No files found.
extras/package/macosx/Resources/English.lproj/Open.xib
View file @
ead6422c
This diff is collapsed.
Click to expand it.
modules/gui/macosx/CompatibilityFixes.h
View file @
ead6422c
...
...
@@ -62,7 +62,6 @@ enum {
#pragma Fixes for OS X Snow Leopard (10.6)
#ifndef MAC_OS_X_VERSION_10_7
enum
{
NSWindowCollectionBehaviorFullScreenPrimary
=
1
<<
7
,
NSWindowCollectionBehaviorFullScreenAuxiliary
=
1
<<
8
...
...
modules/gui/macosx/intf.m
View file @
ead6422c
...
...
@@ -1334,7 +1334,6 @@ unsigned int CocoaKeyToVLC( unichar i_key )
-
(
void
)
updateRecordState
:
(
BOOL
)
b_value
{
NSLog
(
@"record state: %i"
,
b_value
);
[
o_mainmenu
updateRecordState
:
b_value
];
}
...
...
modules/gui/macosx/open.h
View file @
ead6422c
...
...
@@ -136,7 +136,9 @@
IBOutlet
id
o_file_sub_ckbox
;
IBOutlet
id
o_file_sub_btn_settings
;
IBOutlet
id
o_file_sub_sheet
;
IBOutlet
id
o_file_sub_path
;
IBOutlet
id
o_file_sub_path_lbl
;
IBOutlet
id
o_file_sub_path_fld
;
IBOutlet
id
o_file_sub_icon_view
;
IBOutlet
id
o_file_sub_btn_browse
;
IBOutlet
id
o_file_sub_override
;
IBOutlet
id
o_file_sub_delay
;
...
...
@@ -219,6 +221,7 @@
NSString
*
o_file_path
;
id
o_currentCaptureView
;
NSString
*
o_file_slave_path
;
NSString
*
o_sub_path
;
NSString
*
o_mrl
;
intf_thread_t
*
p_intf
;
}
...
...
modules/gui/macosx/open.m
View file @
ead6422c
...
...
@@ -31,6 +31,8 @@
#import <stdlib.h>
/* malloc(), free() */
#import <sys/param.h>
/* for MAXPATHLEN */
#import "CompatibilityFixes.h"
#import <paths.h>
#import <IOKit/IOBSD.h>
#import <IOKit/storage/IOMedia.h>
...
...
@@ -40,7 +42,6 @@
#import <Cocoa/Cocoa.h>
#import <QTKit/QTKit.h>
#import "CompatibilityFixes.h"
#import "intf.h"
#import "playlist.h"
#import "open.h"
...
...
@@ -98,6 +99,8 @@ static VLCOpen *_o_sharedMainInstance = nil;
if
(
o_file_slave_path
)
[
o_file_slave_path
release
];
[
o_mrl
release
];
if
(
o_sub_path
)
[
o_sub_path
release
];
[
o_currentOpticalMediaIconView
release
];
[
o_currentOpticalMediaView
release
];
[
super
dealloc
];
...
...
@@ -296,7 +299,10 @@ static VLCOpen *_o_sharedMainInstance = nil;
module_config_t
*
p_item
;
[
o_file_sub_ckbox
setTitle
:
_NS
(
"Load subtitles file:"
)];
[
o_file_sub_btn_settings
setTitle
:
_NS
(
"Settings..."
)];
[
o_file_sub_path_lbl
setStringValue
:
_NS
(
"Choose a file"
)];
[
o_file_sub_path_lbl
setHidden
:
NO
];
[
o_file_sub_path_fld
setStringValue
:
@""
];
[
o_file_sub_btn_settings
setTitle
:
_NS
(
"Choose..."
)];
[
o_file_sub_btn_browse
setTitle
:
_NS
(
"Browse..."
)];
[
o_file_sub_override
setTitle
:
_NS
(
"Override parametters"
)];
[
o_file_sub_delay_lbl
setStringValue
:
_NS
(
"Delay"
)];
...
...
@@ -379,7 +385,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
{
module_config_t
*
p_item
;
[
o_options
addObject
:
[
NSString
stringWithFormat
:
@"sub-file=%@"
,
[
o_file_sub_path
stringValue
]
]];
[
o_options
addObject
:
[
NSString
stringWithFormat
:
@"sub-file=%@"
,
o_sub_path
]];
if
(
[
o_file_sub_override
state
]
==
NSOnState
)
{
[
o_options
addObject
:
[
NSString
stringWithFormat
:
@"sub-delay=%i"
,
(
int
)(
[
o_file_sub_delay
intValue
]
*
10
)]];
...
...
@@ -1321,9 +1327,9 @@ static VLCOpen *_o_sharedMainInstance = nil;
if
([
o_file_sub_ckbox
state
]
==
NSOnState
)
{
[
o_file_sub_btn_settings
setEnabled
:
YES
];
if
(
[[
o_file_sub_path
stringValue
]
length
]
>
0
)
{
[
o_file_subtitles_filename_lbl
setStringValue
:
[[
NSFileManager
defaultManager
]
displayNameAtPath
:
[
o_file_sub_path
stringValue
]
]];
[
o_file_subtitles_icon_well
setImage
:
[[
NSWorkspace
sharedWorkspace
]
iconForFile
:
[
o_file_sub_path
stringValue
]
]];
if
(
o_sub_path
)
{
[
o_file_subtitles_filename_lbl
setStringValue
:
[[
NSFileManager
defaultManager
]
displayNameAtPath
:
o_sub_path
]];
[
o_file_subtitles_icon_well
setImage
:
[[
NSWorkspace
sharedWorkspace
]
iconForFile
:
o_sub_path
]];
}
}
else
...
...
@@ -1360,10 +1366,21 @@ static VLCOpen *_o_sharedMainInstance = nil;
if
(
[
o_open_panel
runModal
]
==
NSOKButton
)
{
NSString
*
o_filename
=
[[[
o_open_panel
URLs
]
objectAtIndex
:
0
]
path
];
[
o_file_sub_path
setStringValue
:
o_filename
];
[
o_file_subtitles_filename_lbl
setStringValue
:
[[
NSFileManager
defaultManager
]
displayNameAtPath
:
o_filename
]];
[
o_file_subtitles_icon_well
setImage
:
[[
NSWorkspace
sharedWorkspace
]
iconForFile
:
o_filename
]];
o_sub_path
=
[[[
o_open_panel
URLs
]
objectAtIndex
:
0
]
path
];
[
o_sub_path
retain
];
[
o_file_subtitles_filename_lbl
setStringValue
:
[[
NSFileManager
defaultManager
]
displayNameAtPath
:
o_sub_path
]];
[
o_file_sub_path_fld
setStringValue
:
[
o_file_subtitles_filename_lbl
stringValue
]];
[
o_file_sub_path_lbl
setHidden
:
YES
];
[
o_file_subtitles_icon_well
setImage
:
[[
NSWorkspace
sharedWorkspace
]
iconForFile
:
o_sub_path
]];
[
o_file_sub_icon_view
setImage
:
[
o_file_subtitles_icon_well
image
]];
}
else
{
[
o_file_sub_path_lbl
setHidden
:
NO
];
[
o_file_sub_path_fld
setStringValue
:
@""
];
[
o_file_subtitles_filename_lbl
setStringValue
:
@""
];
[
o_file_subtitles_icon_well
setImage
:
nil
];
[
o_file_sub_icon_view
setImage
:
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