mirror of
https://github.com/videolan/vlc.git
synced 2024-11-30 21:33:40 +08:00
macosx: Rename VLCVoutWindowController to VLCVideoOutputProvider
This better matches the naming scheme, as WindowController is typically used to have one designated window which is controlled.
This commit is contained in:
parent
4841da0ec1
commit
04e8c62ccb
@ -63,6 +63,7 @@
|
||||
1C31140D1E508C8800D4DD76 /* SPMediaKeyTap.m in Sources */ = {isa = PBXBuildFile; fileRef = CCF0777C13659A8000AF19FD /* SPMediaKeyTap.m */; };
|
||||
1C5716AC1F5B142200678627 /* coreaudio_common.c in Sources */ = {isa = PBXBuildFile; fileRef = 1C5716AB1F5B142200678627 /* coreaudio_common.c */; };
|
||||
1C69FDF61EAB30C7007724ED /* Windows.m in Sources */ = {isa = PBXBuildFile; fileRef = E06CF7F516020F6200C698B7 /* Windows.m */; };
|
||||
1CAC3EE820CD1B3B00613DB2 /* VLCVideoOutputProvider.m in Sources */ = {isa = PBXBuildFile; fileRef = 1CAC3EE620CD1B3B00613DB2 /* VLCVideoOutputProvider.m */; };
|
||||
1CCC88EC2078A3D500E5626F /* MainMenu.xib in Sources */ = {isa = PBXBuildFile; fileRef = 6B8224091E4D2A9000833BE1 /* MainMenu.xib */; };
|
||||
1CCC88ED2078A3D500E5626F /* MainWindow.xib in Sources */ = {isa = PBXBuildFile; fileRef = 6B82240A1E4D2A9000833BE1 /* MainWindow.xib */; };
|
||||
1CCC88EE2078A3D500E5626F /* VLCStatusBarIconMainMenu.xib in Sources */ = {isa = PBXBuildFile; fileRef = 6B82241A1E4D2A9000833BE1 /* VLCStatusBarIconMainMenu.xib */; };
|
||||
@ -105,7 +106,6 @@
|
||||
6B7F1FDF1F07DA920002BDD8 /* VLCHexNumberFormatter.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B7F1FDE1F07DA920002BDD8 /* VLCHexNumberFormatter.m */; };
|
||||
6B8166291EBFC34300C26F1B /* VLCDefaultValueSlider.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B6A499B1DFD9B23009128AC /* VLCDefaultValueSlider.m */; };
|
||||
6B81662A1EBFC34300C26F1B /* VLCDefaultValueSliderCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B6A499D1DFD9B23009128AC /* VLCDefaultValueSliderCell.m */; };
|
||||
6B81662B1EBFC35D00C26F1B /* VLCVoutWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = E0C2583F161B593D00185AAD /* VLCVoutWindowController.m */; };
|
||||
6B81662C1EBFC38100C26F1B /* VLCUIWidgets.m in Sources */ = {isa = PBXBuildFile; fileRef = 5CCED71514C0D4A90057F8D1 /* VLCUIWidgets.m */; };
|
||||
6BBB05DA1EEFEA29003A1019 /* VLCHUDOutlineView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6BBB05D91EEFEA29003A1019 /* VLCHUDOutlineView.m */; };
|
||||
6BBB05E01EEFF165003A1019 /* VLCHUDTableCornerView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6BBB05DF1EEFF165003A1019 /* VLCHUDTableCornerView.m */; };
|
||||
@ -152,6 +152,8 @@
|
||||
1C67C8A71D58C0A40079E1C1 /* VLCAboutWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VLCAboutWindowController.m; sourceTree = "<group>"; };
|
||||
1C7CB91A1D787E7600388902 /* VLCPopupPanelController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VLCPopupPanelController.h; sourceTree = "<group>"; };
|
||||
1C7CB91B1D787E7600388902 /* VLCPopupPanelController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VLCPopupPanelController.m; sourceTree = "<group>"; };
|
||||
1CAC3EE620CD1B3B00613DB2 /* VLCVideoOutputProvider.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VLCVideoOutputProvider.m; sourceTree = "<group>"; };
|
||||
1CAC3EE720CD1B3B00613DB2 /* VLCVideoOutputProvider.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VLCVideoOutputProvider.h; sourceTree = "<group>"; };
|
||||
1CAEBBFF1E1EC0A400A99E49 /* VLCFSPanelDraggableView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VLCFSPanelDraggableView.h; sourceTree = "<group>"; };
|
||||
1CAEBC001E1EC0A400A99E49 /* VLCFSPanelDraggableView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VLCFSPanelDraggableView.m; sourceTree = "<group>"; };
|
||||
1CC25CA71B2C585D0003F994 /* darwinvlc.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = darwinvlc.m; path = ../../../bin/darwinvlc.m; sourceTree = "<group>"; };
|
||||
@ -517,8 +519,6 @@
|
||||
E0382C01160BA09E0031D7FF /* VLCControlsBarCommon.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VLCControlsBarCommon.m; sourceTree = "<group>"; };
|
||||
E06CF7F416020F6200C698B7 /* Windows.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Windows.h; sourceTree = "<group>"; };
|
||||
E06CF7F516020F6200C698B7 /* Windows.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Windows.m; sourceTree = "<group>"; };
|
||||
E0C2583E161B593D00185AAD /* VLCVoutWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VLCVoutWindowController.h; sourceTree = "<group>"; };
|
||||
E0C2583F161B593D00185AAD /* VLCVoutWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VLCVoutWindowController.m; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
@ -1100,8 +1100,8 @@
|
||||
children = (
|
||||
CCCCDCA01413E1C000FE3DE1 /* VLCVoutView.h */,
|
||||
CCCCDCA11413E1C000FE3DE1 /* VLCVoutView.m */,
|
||||
E0C2583E161B593D00185AAD /* VLCVoutWindowController.h */,
|
||||
E0C2583F161B593D00185AAD /* VLCVoutWindowController.m */,
|
||||
1CAC3EE720CD1B3B00613DB2 /* VLCVideoOutputProvider.h */,
|
||||
1CAC3EE620CD1B3B00613DB2 /* VLCVideoOutputProvider.m */,
|
||||
);
|
||||
name = "Video Output";
|
||||
sourceTree = "<group>";
|
||||
@ -1537,7 +1537,6 @@
|
||||
1CCC89062078A3D500E5626F /* TimeSelectionPanel.xib in Sources */,
|
||||
6B81662C1EBFC38100C26F1B /* VLCUIWidgets.m in Sources */,
|
||||
6B0AB0F11F1AC8B3003A1B4E /* VLCSliderCell.m in Sources */,
|
||||
6B81662B1EBFC35D00C26F1B /* VLCVoutWindowController.m in Sources */,
|
||||
6B8166291EBFC34300C26F1B /* VLCDefaultValueSlider.m in Sources */,
|
||||
6B81662A1EBFC34300C26F1B /* VLCDefaultValueSliderCell.m in Sources */,
|
||||
1C69FDF61EAB30C7007724ED /* Windows.m in Sources */,
|
||||
@ -1583,6 +1582,7 @@
|
||||
1C3113B41E508C6900D4DD76 /* VLCInputManager.m in Sources */,
|
||||
1C3113B61E508C6900D4DD76 /* VLCMain+OldPrefs.m in Sources */,
|
||||
1C3113B81E508C6900D4DD76 /* VLCMain.m in Sources */,
|
||||
1CAC3EE820CD1B3B00613DB2 /* VLCVideoOutputProvider.m in Sources */,
|
||||
1C3113BA1E508C6900D4DD76 /* VLCApplication.m in Sources */,
|
||||
1C3113BC1E508C6900D4DD76 /* VLCKeyboardBacklightControl.m in Sources */,
|
||||
1C3113BD1E508C6900D4DD76 /* macosx.m in Sources */,
|
||||
|
@ -65,7 +65,7 @@ libmacosx_plugin_la_SOURCES = \
|
||||
gui/macosx/VLCUIWidgets.h gui/macosx/VLCUIWidgets.m \
|
||||
gui/macosx/VLCScrollingClipView.h gui/macosx/VLCScrollingClipView.m \
|
||||
gui/macosx/VLCStatusBarIcon.h gui/macosx/VLCStatusBarIcon.m \
|
||||
gui/macosx/VLCVoutWindowController.h gui/macosx/VLCVoutWindowController.m \
|
||||
gui/macosx/VLCVideoOutputProvider.h gui/macosx/VLCVideoOutputProvider.m \
|
||||
gui/macosx/Windows.h gui/macosx/Windows.m \
|
||||
gui/macosx/VLCAudioEffectsWindowController.h gui/macosx/VLCAudioEffectsWindowController.m \
|
||||
gui/macosx/VLCBookmarksWindowController.h gui/macosx/VLCBookmarksWindowController.m \
|
||||
|
@ -352,7 +352,7 @@
|
||||
if ([self.window isKeyWindow])
|
||||
[self.window orderOut:sender];
|
||||
else {
|
||||
[self.window setLevel: [[[VLCMain sharedInstance] voutController] currentStatusWindowLevel]];
|
||||
[self.window setLevel: [[[VLCMain sharedInstance] voutProvider] currentStatusWindowLevel]];
|
||||
[self.window makeKeyAndOrderFront:sender];
|
||||
}
|
||||
}
|
||||
|
@ -107,7 +107,7 @@
|
||||
if ([self.window isVisible])
|
||||
[self.window orderOut:sender];
|
||||
else {
|
||||
[self.window setLevel: [[[VLCMain sharedInstance] voutController] currentStatusWindowLevel]];
|
||||
[self.window setLevel: [[[VLCMain sharedInstance] voutProvider] currentStatusWindowLevel]];
|
||||
[self.window makeKeyAndOrderFront:sender];
|
||||
}
|
||||
}
|
||||
|
@ -694,7 +694,7 @@ static int BossCallback(vlc_object_t *p_this, const char *psz_var,
|
||||
vlc_object_release(p_vout);
|
||||
} else { // e.g. lion fullscreen toggle
|
||||
BOOL b_fs = var_ToggleBool(pl_Get(p_intf), "fullscreen");
|
||||
[[[VLCMain sharedInstance] voutController] setFullscreen:b_fs forWindow:nil withAnimation:YES];
|
||||
[[[VLCMain sharedInstance] voutProvider] setFullscreen:b_fs forWindow:nil withAnimation:YES];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import "misc.h"
|
||||
#import "VLCMainWindow.h"
|
||||
#import "VLCVoutWindowController.h"
|
||||
#import "VLCVideoOutputProvider.h"
|
||||
#import "VLCStatusBarIcon.h"
|
||||
#import "VLCStringUtility.h"
|
||||
|
||||
@ -79,7 +79,7 @@ static NSString * VLCMediaKeySupportSettingChangedNotification = @"VLCMediaKeySu
|
||||
|
||||
@interface VLCMain : NSObject <NSWindowDelegate, NSApplicationDelegate>
|
||||
|
||||
@property (readonly) VLCVoutWindowController* voutController;
|
||||
@property (readonly) VLCVideoOutputProvider* voutProvider;
|
||||
@property (readonly) BOOL nativeFullscreenMode;
|
||||
@property (nonatomic, readwrite) BOOL playlistUpdatedSelectorInQueue;
|
||||
|
||||
|
@ -231,7 +231,7 @@ static VLCMain *sharedInstance = nil;
|
||||
_mainmenu = [[VLCMainMenu alloc] init];
|
||||
_statusBarIcon = [[VLCStatusBarIcon alloc] init];
|
||||
|
||||
_voutController = [[VLCVoutWindowController alloc] init];
|
||||
_voutProvider = [[VLCVideoOutputProvider alloc] init];
|
||||
_playlist = [[VLCPlaylist alloc] init];
|
||||
|
||||
_mainWindowController = [[NSWindowController alloc] initWithWindowNibName:@"MainWindow"];
|
||||
@ -350,7 +350,7 @@ static VLCMain *sharedInstance = nil;
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
|
||||
// closes all open vouts
|
||||
_voutController = nil;
|
||||
_voutProvider = nil;
|
||||
|
||||
/* write cached user defaults to disk */
|
||||
[[NSUserDefaults standardUserDefaults] synchronize];
|
||||
|
@ -682,7 +682,7 @@
|
||||
config_PutInt("macosx-show-playback-buttons", b_value);
|
||||
|
||||
[(VLCMainWindowControlsBar *)[[[VLCMain sharedInstance] mainWindow] controlsBar] toggleJumpButtons];
|
||||
[[[VLCMain sharedInstance] voutController] updateWindowsUsingBlock:^(VLCVideoWindowCommon *window) {
|
||||
[[[VLCMain sharedInstance] voutProvider] updateWindowsUsingBlock:^(VLCVideoWindowCommon *window) {
|
||||
[[window controlsBar] toggleForwardBackwardMode: b_value];
|
||||
}];
|
||||
|
||||
@ -1242,7 +1242,7 @@
|
||||
|
||||
- (IBAction)showPreferences:(id)sender
|
||||
{
|
||||
NSInteger i_level = [[[VLCMain sharedInstance] voutController] currentStatusWindowLevel];
|
||||
NSInteger i_level = [[[VLCMain sharedInstance] voutProvider] currentStatusWindowLevel];
|
||||
[[[VLCMain sharedInstance] simplePreferences] showSimplePrefsWithLevel:i_level];
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@
|
||||
|
||||
#import "VLCMainWindowControlsBar.h"
|
||||
#import "VLCVoutView.h"
|
||||
#import "VLCVoutWindowController.h"
|
||||
#import "VLCVideoOutputProvider.h"
|
||||
|
||||
|
||||
@interface VLCMainWindow() <PXSourceListDataSource, PXSourceListDelegate, NSOutlineViewDataSource, NSOutlineViewDelegate, NSWindowDelegate, NSAnimationDelegate, NSSplitViewDelegate>
|
||||
@ -572,7 +572,7 @@ static const float f_min_window_height = 307.;
|
||||
[self.controlsBar updateTimeSlider];
|
||||
[self.fspanel updatePositionAndTime];
|
||||
|
||||
[[[VLCMain sharedInstance] voutController] updateControlsBarsUsingBlock:^(VLCControlsBarCommon *controlsBar) {
|
||||
[[[VLCMain sharedInstance] voutProvider] updateControlsBarsUsingBlock:^(VLCControlsBarCommon *controlsBar) {
|
||||
[controlsBar updateTimeSlider];
|
||||
}];
|
||||
|
||||
@ -602,12 +602,12 @@ static const float f_min_window_height = 307.;
|
||||
NSURL * o_url = [NSURL URLWithString:toNSStr(uri)];
|
||||
if ([o_url isFileURL]) {
|
||||
[self setRepresentedURL: o_url];
|
||||
[[[VLCMain sharedInstance] voutController] updateWindowsUsingBlock:^(VLCVideoWindowCommon *o_window) {
|
||||
[[[VLCMain sharedInstance] voutProvider] updateWindowsUsingBlock:^(VLCVideoWindowCommon *o_window) {
|
||||
[o_window setRepresentedURL:o_url];
|
||||
}];
|
||||
} else {
|
||||
[self setRepresentedURL: nil];
|
||||
[[[VLCMain sharedInstance] voutController] updateWindowsUsingBlock:^(VLCVideoWindowCommon *o_window) {
|
||||
[[[VLCMain sharedInstance] voutProvider] updateWindowsUsingBlock:^(VLCVideoWindowCommon *o_window) {
|
||||
[o_window setRepresentedURL:nil];
|
||||
}];
|
||||
}
|
||||
@ -622,7 +622,7 @@ static const float f_min_window_height = 307.;
|
||||
|
||||
if ([aString length] > 0) {
|
||||
[self setTitle: aString];
|
||||
[[[VLCMain sharedInstance] voutController] updateWindowsUsingBlock:^(VLCVideoWindowCommon *o_window) {
|
||||
[[[VLCMain sharedInstance] voutProvider] updateWindowsUsingBlock:^(VLCVideoWindowCommon *o_window) {
|
||||
[o_window setTitle:aString];
|
||||
}];
|
||||
|
||||
@ -642,7 +642,7 @@ static const float f_min_window_height = 307.;
|
||||
- (void)updateWindow
|
||||
{
|
||||
[self.controlsBar updateControls];
|
||||
[[[VLCMain sharedInstance] voutController] updateControlsBarsUsingBlock:^(VLCControlsBarCommon *controlsBar) {
|
||||
[[[VLCMain sharedInstance] voutProvider] updateControlsBarsUsingBlock:^(VLCControlsBarCommon *controlsBar) {
|
||||
[controlsBar updateControls];
|
||||
}];
|
||||
|
||||
@ -678,7 +678,7 @@ static const float f_min_window_height = 307.;
|
||||
[self.controlsBar setPause];
|
||||
[self.fspanel setPause];
|
||||
|
||||
[[[VLCMain sharedInstance] voutController] updateControlsBarsUsingBlock:^(VLCControlsBarCommon *controlsBar) {
|
||||
[[[VLCMain sharedInstance] voutProvider] updateControlsBarsUsingBlock:^(VLCControlsBarCommon *controlsBar) {
|
||||
[controlsBar setPause];
|
||||
}];
|
||||
}
|
||||
@ -688,7 +688,7 @@ static const float f_min_window_height = 307.;
|
||||
[self.controlsBar setPlay];
|
||||
[self.fspanel setPlay];
|
||||
|
||||
[[[VLCMain sharedInstance] voutController] updateControlsBarsUsingBlock:^(VLCControlsBarCommon *controlsBar) {
|
||||
[[[VLCMain sharedInstance] voutProvider] updateControlsBarsUsingBlock:^(VLCControlsBarCommon *controlsBar) {
|
||||
[controlsBar setPlay];
|
||||
}];
|
||||
}
|
||||
@ -735,7 +735,7 @@ static const float f_min_window_height = 307.;
|
||||
}
|
||||
|
||||
[self makeFirstResponder: _playlistScrollView];
|
||||
[[[VLCMain sharedInstance] voutController] updateWindowLevelForHelperWindows: NSNormalWindowLevel];
|
||||
[[[VLCMain sharedInstance] voutProvider] updateWindowLevelForHelperWindows: NSNormalWindowLevel];
|
||||
|
||||
// restore alpha value to 1 for the case that macosx-opaqueness is set to < 1
|
||||
[self setAlphaValue:1.0];
|
||||
|
@ -131,7 +131,7 @@
|
||||
if ([self.window isKeyWindow])
|
||||
[self.window orderOut:sender];
|
||||
else {
|
||||
[self.window setLevel: [[[VLCMain sharedInstance] voutController] currentStatusWindowLevel]];
|
||||
[self.window setLevel: [[[VLCMain sharedInstance] voutProvider] currentStatusWindowLevel]];
|
||||
[self.window makeKeyAndOrderFront:sender];
|
||||
}
|
||||
}
|
||||
|
@ -76,7 +76,7 @@
|
||||
userInfo:nil
|
||||
repeats:YES];
|
||||
|
||||
[w setLevel:[[[VLCMain sharedInstance] voutController] currentStatusWindowLevel]];
|
||||
[w setLevel:[[[VLCMain sharedInstance] voutProvider] currentStatusWindowLevel]];
|
||||
[w center];
|
||||
|
||||
[w makeKeyAndOrderFront:nil];
|
||||
|
@ -97,7 +97,7 @@
|
||||
if ([self.window isVisible])
|
||||
[self.window orderOut:sender];
|
||||
else {
|
||||
[self.window setLevel: [[[VLCMain sharedInstance] voutController] currentStatusWindowLevel]];
|
||||
[self.window setLevel: [[[VLCMain sharedInstance] voutProvider] currentStatusWindowLevel]];
|
||||
[self.window makeKeyAndOrderFront:sender];
|
||||
|
||||
[self updateValues];
|
||||
|
@ -757,7 +757,7 @@
|
||||
if ([self.window isKeyWindow])
|
||||
[self.window orderOut:sender];
|
||||
else {
|
||||
[self.window setLevel: [[[VLCMain sharedInstance] voutController] currentStatusWindowLevel]];
|
||||
[self.window setLevel: [[[VLCMain sharedInstance] voutProvider] currentStatusWindowLevel]];
|
||||
[self.window makeKeyAndOrderFront:sender];
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*****************************************************************************
|
||||
* VLCVoutWindowController.h: MacOS X interface module
|
||||
* VLCVideoOutputProvider.h: MacOS X interface module
|
||||
*****************************************************************************
|
||||
* Copyright (C) 2012-2014 VLC authors and VideoLAN
|
||||
* $Id$
|
||||
@ -31,7 +31,7 @@
|
||||
@class VLCVideoWindowCommon;
|
||||
@class VLCVoutView;
|
||||
|
||||
@interface VLCVoutWindowController : NSObject
|
||||
@interface VLCVideoOutputProvider : NSObject
|
||||
|
||||
@property (readonly, nonatomic) NSInteger currentStatusWindowLevel;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*****************************************************************************
|
||||
* VLCVoutWindowController.m: MacOS X interface module
|
||||
* VLCVideoOutputProvider.m: MacOS X interface module
|
||||
*****************************************************************************
|
||||
* Copyright (C) 2012-2014 VLC authors and VideoLAN
|
||||
* $Id$
|
||||
@ -25,7 +25,7 @@
|
||||
#include <vlc_vout_display.h>
|
||||
|
||||
#import "CompatibilityFixes.h"
|
||||
#import "VLCVoutWindowController.h"
|
||||
#import "VLCVideoOutputProvider.h"
|
||||
#import "VLCMain.h"
|
||||
#import "VLCMainWindow.h"
|
||||
#import "VLCVoutView.h"
|
||||
@ -55,15 +55,15 @@ int WindowOpen(vout_window_t *p_wnd, const vout_window_cfg_t *cfg)
|
||||
|
||||
NSRect proposedVideoViewPosition = NSMakeRect(cfg->x, cfg->y, cfg->width, cfg->height);
|
||||
|
||||
VLCVoutWindowController *voutController = [[VLCMain sharedInstance] voutController];
|
||||
if (!voutController) {
|
||||
VLCVideoOutputProvider *voutProvider = [[VLCMain sharedInstance] voutProvider];
|
||||
if (!voutProvider) {
|
||||
return VLC_EGENERIC;
|
||||
}
|
||||
|
||||
__block VLCVoutView *videoView = nil;
|
||||
|
||||
dispatch_sync(dispatch_get_main_queue(), ^{
|
||||
videoView = [voutController setupVoutForWindow:p_wnd
|
||||
videoView = [voutProvider setupVoutForWindow:p_wnd
|
||||
withProposedVideoViewPosition:proposedVideoViewPosition];
|
||||
});
|
||||
|
||||
@ -84,8 +84,8 @@ int WindowOpen(vout_window_t *p_wnd, const vout_window_cfg_t *cfg)
|
||||
static int WindowControl(vout_window_t *p_wnd, int i_query, va_list args)
|
||||
{
|
||||
@autoreleasepool {
|
||||
VLCVoutWindowController *voutController = [[VLCMain sharedInstance] voutController];
|
||||
if (!voutController) {
|
||||
VLCVideoOutputProvider *voutProvider = [[VLCMain sharedInstance] voutProvider];
|
||||
if (!voutProvider) {
|
||||
return VLC_EGENERIC;
|
||||
}
|
||||
|
||||
@ -105,7 +105,7 @@ static int WindowControl(vout_window_t *p_wnd, int i_query, va_list args)
|
||||
i_cooca_level = NSStatusWindowLevel;
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[voutController setWindowLevel:i_cooca_level forWindow:p_wnd];
|
||||
[voutProvider setWindowLevel:i_cooca_level forWindow:p_wnd];
|
||||
});
|
||||
|
||||
break;
|
||||
@ -116,7 +116,7 @@ static int WindowControl(vout_window_t *p_wnd, int i_query, va_list args)
|
||||
unsigned int i_height = va_arg(args, unsigned int);
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[voutController setNativeVideoSize:NSMakeSize(i_width, i_height)
|
||||
[voutProvider setNativeVideoSize:NSMakeSize(i_width, i_height)
|
||||
forWindow:p_wnd];
|
||||
});
|
||||
|
||||
@ -134,7 +134,7 @@ static int WindowControl(vout_window_t *p_wnd, int i_query, va_list args)
|
||||
BOOL b_animation = YES;
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[voutController setFullscreen:i_full
|
||||
[voutProvider setFullscreen:i_full
|
||||
forWindow:p_wnd
|
||||
withAnimation:b_animation];
|
||||
});
|
||||
@ -143,7 +143,7 @@ static int WindowControl(vout_window_t *p_wnd, int i_query, va_list args)
|
||||
}
|
||||
case VOUT_WINDOW_HIDE_MOUSE:
|
||||
{
|
||||
[voutController hideMouseForWindow:p_wnd];
|
||||
[voutProvider hideMouseForWindow:p_wnd];
|
||||
break;
|
||||
}
|
||||
default:
|
||||
@ -161,18 +161,18 @@ static int WindowControl(vout_window_t *p_wnd, int i_query, va_list args)
|
||||
void WindowClose(vout_window_t *p_wnd)
|
||||
{
|
||||
@autoreleasepool {
|
||||
VLCVoutWindowController *voutController = [[VLCMain sharedInstance] voutController];
|
||||
if (!voutController) {
|
||||
VLCVideoOutputProvider *voutProvider = [[VLCMain sharedInstance] voutProvider];
|
||||
if (!voutProvider) {
|
||||
return;
|
||||
}
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[voutController removeVoutForDisplay:[NSValue valueWithPointer:p_wnd]];
|
||||
[voutProvider removeVoutForDisplay:[NSValue valueWithPointer:p_wnd]];
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@interface VLCVoutWindowController ()
|
||||
@interface VLCVideoOutputProvider ()
|
||||
{
|
||||
NSMutableDictionary *voutWindows;
|
||||
VLCKeyboardBacklightControl *keyboardBacklight;
|
||||
@ -187,7 +187,7 @@ void WindowClose(vout_window_t *p_wnd)
|
||||
}
|
||||
@end
|
||||
|
||||
@implementation VLCVoutWindowController
|
||||
@implementation VLCVideoOutputProvider
|
||||
|
||||
- (id)init
|
||||
{
|
@ -604,7 +604,7 @@
|
||||
|
||||
NSInteger i_currLevel = [self level];
|
||||
// self.fullscreen and _inFullscreenTransition must not be true yet
|
||||
[[[VLCMain sharedInstance] voutController] updateWindowLevelForHelperWindows: NSNormalWindowLevel];
|
||||
[[[VLCMain sharedInstance] voutProvider] updateWindowLevelForHelperWindows: NSNormalWindowLevel];
|
||||
[self setLevel:NSNormalWindowLevel];
|
||||
i_originalLevel = i_currLevel;
|
||||
|
||||
@ -682,7 +682,7 @@
|
||||
{
|
||||
_inFullscreenTransition = NO;
|
||||
|
||||
[[[VLCMain sharedInstance] voutController] updateWindowLevelForHelperWindows: i_originalLevel];
|
||||
[[[VLCMain sharedInstance] voutProvider] updateWindowLevelForHelperWindows: i_originalLevel];
|
||||
[self setLevel:i_originalLevel];
|
||||
}
|
||||
|
||||
@ -720,7 +720,7 @@
|
||||
/* Make sure we don't see the window flashes in float-on-top mode */
|
||||
NSInteger i_currLevel = [self level];
|
||||
// self.fullscreen must not be true yet
|
||||
[[[VLCMain sharedInstance] voutController] updateWindowLevelForHelperWindows: NSNormalWindowLevel];
|
||||
[[[VLCMain sharedInstance] voutProvider] updateWindowLevelForHelperWindows: NSNormalWindowLevel];
|
||||
[self setLevel:NSNormalWindowLevel];
|
||||
i_originalLevel = i_currLevel; // would be overwritten by previous call
|
||||
|
||||
@ -984,7 +984,7 @@
|
||||
|
||||
o_fullscreen_window = nil;
|
||||
|
||||
[[[VLCMain sharedInstance] voutController] updateWindowLevelForHelperWindows: i_originalLevel];
|
||||
[[[VLCMain sharedInstance] voutProvider] updateWindowLevelForHelperWindows: i_originalLevel];
|
||||
[self setLevel:i_originalLevel];
|
||||
|
||||
[self setAlphaValue: config_GetFloat("macosx-opaqueness")];
|
||||
|
@ -558,8 +558,8 @@ modules/gui/macosx/VLCVolumeSliderCell.h
|
||||
modules/gui/macosx/VLCVolumeSliderCell.m
|
||||
modules/gui/macosx/VLCVoutView.h
|
||||
modules/gui/macosx/VLCVoutView.m
|
||||
modules/gui/macosx/VLCVoutWindowController.h
|
||||
modules/gui/macosx/VLCVoutWindowController.m
|
||||
modules/gui/macosx/VLCVideoOutputProvider.h
|
||||
modules/gui/macosx/VLCVideoOutputProvider.m
|
||||
modules/gui/macosx/VLCWrappableTextField.h
|
||||
modules/gui/macosx/VLCWrappableTextField.m
|
||||
modules/gui/macosx/Windows.h
|
||||
|
Loading…
Reference in New Issue
Block a user