committed by
Jean-Baptiste Kempf
7 changed files with 0 additions and 276 deletions
@ -1,193 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES"> |
|||
<dependencies> |
|||
<deployment identifier="macosx"/> |
|||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14490.70"/> |
|||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> |
|||
</dependencies> |
|||
<objects> |
|||
<customObject id="-2" userLabel="File's Owner" customClass="NSWindowController"> |
|||
<connections> |
|||
<outlet property="window" destination="2" id="62"/> |
|||
</connections> |
|||
</customObject> |
|||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/> |
|||
<customObject id="-3" userLabel="Application" customClass="NSObject"/> |
|||
<window title="VLC media player" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" restorable="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="detachedvideowindow" animationBehavior="default" id="2" userLabel="Detached Video Window" customClass="VLCDetachedVideoWindow"> |
|||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/> |
|||
<windowPositionMask key="initialPositionMask" leftStrut="YES" topStrut="YES"/> |
|||
<rect key="contentRect" x="91" y="467" width="363" height="239"/> |
|||
<rect key="screenRect" x="0.0" y="0.0" width="1920" height="1177"/> |
|||
<view key="contentView" id="4"> |
|||
<rect key="frame" x="0.0" y="0.0" width="363" height="239"/> |
|||
<autoresizingMask key="autoresizingMask"/> |
|||
<subviews> |
|||
<customView translatesAutoresizingMaskIntoConstraints="NO" id="5" customClass="VLCBottomBarView"> |
|||
<rect key="frame" x="0.0" y="0.0" width="363" height="36"/> |
|||
<subviews> |
|||
<customView translatesAutoresizingMaskIntoConstraints="NO" id="65" customClass="VLCDragDropView"> |
|||
<rect key="frame" x="0.0" y="0.0" width="363" height="36"/> |
|||
<subviews> |
|||
<customView translatesAutoresizingMaskIntoConstraints="NO" id="Vae-cT-EEI" userLabel="Play controls group"> |
|||
<rect key="frame" x="8" y="7" width="85" height="23"/> |
|||
<subviews> |
|||
<button translatesAutoresizingMaskIntoConstraints="NO" id="11"> |
|||
<rect key="frame" x="0.0" y="0.0" width="29" height="23"/> |
|||
<buttonCell key="cell" type="bevel" bezelStyle="regularSquare" image="backward-3btns" imagePosition="only" alignment="center" alternateImage="backward-3btns-pressed" continuous="YES" enabled="NO" id="14"> |
|||
<behavior key="behavior" lightByContents="YES"/> |
|||
<font key="font" metaFont="label"/> |
|||
</buttonCell> |
|||
<connections> |
|||
<action selector="bwd:" target="3" id="56"/> |
|||
</connections> |
|||
</button> |
|||
<button translatesAutoresizingMaskIntoConstraints="NO" id="10"> |
|||
<rect key="frame" x="29" y="0.0" width="27" height="23"/> |
|||
<buttonCell key="cell" type="bevel" bezelStyle="regularSquare" image="play" imagePosition="only" alignment="center" alternateImage="play-pressed" id="15"> |
|||
<behavior key="behavior" lightByContents="YES"/> |
|||
<font key="font" metaFont="titleBar" size="12"/> |
|||
</buttonCell> |
|||
<connections> |
|||
<action selector="play:" target="3" id="39"/> |
|||
</connections> |
|||
</button> |
|||
<button translatesAutoresizingMaskIntoConstraints="NO" id="12"> |
|||
<rect key="frame" x="56" y="0.0" width="29" height="23"/> |
|||
<buttonCell key="cell" type="bevel" bezelStyle="regularSquare" image="forward-3btns" imagePosition="only" alignment="center" alternateImage="forward-3btns-pressed" continuous="YES" enabled="NO" id="13"> |
|||
<behavior key="behavior" lightByContents="YES"/> |
|||
<font key="font" metaFont="label"/> |
|||
</buttonCell> |
|||
<connections> |
|||
<action selector="fwd:" target="3" id="51"/> |
|||
</connections> |
|||
</button> |
|||
</subviews> |
|||
<constraints> |
|||
<constraint firstItem="11" firstAttribute="top" secondItem="Vae-cT-EEI" secondAttribute="top" id="11i-jS-o5W"/> |
|||
<constraint firstItem="10" firstAttribute="left" secondItem="11" secondAttribute="right" id="496-Ip-nTd"/> |
|||
<constraint firstItem="10" firstAttribute="top" secondItem="Vae-cT-EEI" secondAttribute="top" id="9Kr-xx-Ssf"/> |
|||
<constraint firstAttribute="right" secondItem="12" secondAttribute="right" id="KOc-oW-4iH"/> |
|||
<constraint firstAttribute="height" constant="23" id="bN7-k9-7Iy"/> |
|||
<constraint firstAttribute="bottom" secondItem="11" secondAttribute="bottom" id="fFe-7J-ver"/> |
|||
<constraint firstItem="12" firstAttribute="top" secondItem="Vae-cT-EEI" secondAttribute="top" id="gwB-yN-SK0"/> |
|||
<constraint firstAttribute="bottom" secondItem="12" secondAttribute="bottom" id="l2h-EI-MAG"/> |
|||
<constraint firstItem="12" firstAttribute="left" secondItem="10" secondAttribute="right" id="mOu-KM-Uo8"/> |
|||
<constraint firstItem="11" firstAttribute="left" secondItem="Vae-cT-EEI" secondAttribute="left" id="rI6-bN-oCM"/> |
|||
<constraint firstAttribute="bottom" secondItem="10" secondAttribute="bottom" id="yGM-Jx-9fD"/> |
|||
</constraints> |
|||
</customView> |
|||
<slider hidden="YES" horizontalHuggingPriority="200" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="20" customClass="VLCSlider"> |
|||
<rect key="frame" x="101" y="10" width="157" height="16"/> |
|||
<constraints> |
|||
<constraint firstAttribute="height" constant="14" id="MYp-CS-yPe"/> |
|||
</constraints> |
|||
<sliderCell key="cell" controlSize="small" continuous="YES" state="on" alignment="left" maxValue="1" doubleValue="0.32600000000000001" tickMarkPosition="above" sliderType="linear" id="23" customClass="VLCSliderCell"> |
|||
<font key="font" size="12" name="Helvetica"/> |
|||
</sliderCell> |
|||
<connections> |
|||
<action selector="timeSliderAction:" target="3" id="46"/> |
|||
</connections> |
|||
</slider> |
|||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="9" customClass="VLCTimeField"> |
|||
<rect key="frame" x="264" y="12" width="56" height="13"/> |
|||
<constraints> |
|||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="52" id="EvZ-Sy-m25"/> |
|||
<constraint firstAttribute="height" constant="13" id="LYT-Sd-Gf6"/> |
|||
</constraints> |
|||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" state="on" alignment="center" title="00:00" id="16"> |
|||
<font key="font" metaFont="label"/> |
|||
<color key="textColor" white="0.25" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> |
|||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/> |
|||
</textFieldCell> |
|||
</textField> |
|||
<button translatesAutoresizingMaskIntoConstraints="NO" id="8"> |
|||
<rect key="frame" x="326" y="7" width="29" height="23"/> |
|||
<constraints> |
|||
<constraint firstAttribute="width" constant="29" id="VjW-79-ABX"/> |
|||
<constraint firstAttribute="height" constant="23" id="fNg-pN-oQw"/> |
|||
</constraints> |
|||
<buttonCell key="cell" type="bevel" bezelStyle="regularSquare" image="fullscreen-one-button" imagePosition="only" alignment="center" alternateImage="fullscreen-one-button-pressed" id="17"> |
|||
<behavior key="behavior" pushIn="YES" changeContents="YES" lightByContents="YES"/> |
|||
<font key="font" metaFont="label"/> |
|||
</buttonCell> |
|||
<connections> |
|||
<action selector="fullscreen:" target="3" id="37"/> |
|||
</connections> |
|||
</button> |
|||
</subviews> |
|||
<constraints> |
|||
<constraint firstItem="9" firstAttribute="leading" secondItem="20" secondAttribute="trailing" constant="8" id="7ak-Mt-KYW"/> |
|||
<constraint firstItem="8" firstAttribute="centerY" secondItem="65" secondAttribute="centerY" id="7yx-e0-WmY"/> |
|||
<constraint firstItem="8" firstAttribute="centerY" secondItem="9" secondAttribute="centerY" id="IBe-RR-daQ"/> |
|||
<constraint firstAttribute="trailing" secondItem="8" secondAttribute="trailing" constant="8" id="Kfi-X6-dCb"/> |
|||
<constraint firstItem="Vae-cT-EEI" firstAttribute="centerY" secondItem="65" secondAttribute="centerY" id="L8J-t8-eZg"/> |
|||
<constraint firstItem="20" firstAttribute="centerY" secondItem="65" secondAttribute="centerY" id="QoR-o1-tfE"/> |
|||
<constraint firstItem="20" firstAttribute="leading" secondItem="Vae-cT-EEI" secondAttribute="trailing" constant="8" id="T6G-xN-FkQ"/> |
|||
<constraint firstItem="Vae-cT-EEI" firstAttribute="leading" secondItem="65" secondAttribute="leading" constant="8" id="ju1-w7-CzH"/> |
|||
<constraint firstItem="8" firstAttribute="leading" secondItem="9" secondAttribute="trailing" constant="8" symbolic="YES" id="qs6-O2-pGr"/> |
|||
</constraints> |
|||
</customView> |
|||
</subviews> |
|||
<constraints> |
|||
<constraint firstAttribute="trailing" secondItem="65" secondAttribute="trailing" id="1uG-1s-rI0"/> |
|||
<constraint firstItem="65" firstAttribute="leading" secondItem="5" secondAttribute="leading" id="84j-is-ZZ4"/> |
|||
<constraint firstAttribute="bottom" secondItem="65" secondAttribute="bottom" id="WrS-PS-vpi"/> |
|||
<constraint firstItem="65" firstAttribute="top" secondItem="5" secondAttribute="top" id="ecn-UJ-dvK"/> |
|||
<constraint firstAttribute="height" constant="36" id="z2X-5w-wme"/> |
|||
</constraints> |
|||
</customView> |
|||
<customView translatesAutoresizingMaskIntoConstraints="NO" id="63" customClass="VLCVoutView"> |
|||
<rect key="frame" x="0.0" y="36" width="363" height="203"/> |
|||
</customView> |
|||
</subviews> |
|||
<constraints> |
|||
<constraint firstItem="5" firstAttribute="leading" secondItem="4" secondAttribute="leading" id="9Ml-c7-Mey"/> |
|||
<constraint firstItem="63" firstAttribute="top" secondItem="4" secondAttribute="top" id="SR5-da-lz7"> |
|||
<attributedString key="userComments"> |
|||
<fragment content="Optional constraint if no titlebar"> |
|||
<attributes> |
|||
<font key="NSFont" metaFont="smallSystem"/> |
|||
<paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/> |
|||
</attributes> |
|||
</fragment> |
|||
</attributedString> |
|||
</constraint> |
|||
<constraint firstItem="5" firstAttribute="top" secondItem="63" secondAttribute="bottom" priority="999" id="VbV-nq-qDN"/> |
|||
<constraint firstAttribute="bottom" secondItem="63" secondAttribute="bottom" priority="750" id="Xml-gb-MF1"/> |
|||
<constraint firstItem="63" firstAttribute="leading" secondItem="4" secondAttribute="leading" id="b8K-0j-YLT"/> |
|||
<constraint firstAttribute="trailing" secondItem="63" secondAttribute="trailing" id="b8X-Kc-BfD"/> |
|||
<constraint firstAttribute="trailing" secondItem="5" secondAttribute="trailing" id="jZw-zr-cck"/> |
|||
<constraint firstAttribute="bottom" secondItem="5" secondAttribute="bottom" id="mhi-VL-aFb"/> |
|||
</constraints> |
|||
</view> |
|||
<connections> |
|||
<outlet property="controlsBar" destination="3" id="69"/> |
|||
<outlet property="videoView" destination="63" id="68"/> |
|||
<outlet property="videoViewBottomConstraint" destination="VbV-nq-qDN" id="twJ-2J-MZX"/> |
|||
</connections> |
|||
</window> |
|||
<customObject id="3" userLabel="Detached Window Controls Bar" customClass="VLCControlsBarCommon"> |
|||
<connections> |
|||
<outlet property="backwardButton" destination="11" id="aQU-S3-4ZI"/> |
|||
<outlet property="bottomBarView" destination="5" id="67"/> |
|||
<outlet property="dropView" destination="65" id="9kL-XQ-Akn"/> |
|||
<outlet property="forwardButton" destination="12" id="f7L-YR-p1H"/> |
|||
<outlet property="fullscreenButton" destination="8" id="HTb-D0-BTG"/> |
|||
<outlet property="fullscreenButtonWidthConstraint" destination="VjW-79-ABX" id="D5Z-dr-RIN"/> |
|||
<outlet property="playButton" destination="10" id="Gsq-tx-qf3"/> |
|||
<outlet property="timeField" destination="9" id="uzI-2c-bs3"/> |
|||
<outlet property="timeSlider" destination="20" id="AFS-sq-vuw"/> |
|||
</connections> |
|||
</customObject> |
|||
</objects> |
|||
<resources> |
|||
<image name="backward-3btns" width="29" height="23"/> |
|||
<image name="backward-3btns-pressed" width="29" height="23"/> |
|||
<image name="forward-3btns" width="29" height="23"/> |
|||
<image name="forward-3btns-pressed" width="29" height="23"/> |
|||
<image name="fullscreen-one-button" width="29" height="23"/> |
|||
<image name="fullscreen-one-button-pressed" width="29" height="23"/> |
|||
<image name="play" width="27" height="23"/> |
|||
<image name="play-pressed" width="27" height="23"/> |
|||
</resources> |
|||
</document> |
|||
@ -1,28 +0,0 @@ |
|||
/*****************************************************************************
|
|||
* VLCDetachedVideoWindow.m: MacOS X interface module |
|||
***************************************************************************** |
|||
* Copyright (C) 2002-2019 VLC authors and VideoLAN |
|||
* |
|||
* Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org> |
|||
* David Fuhrmann <david dot fuhrmann at googlemail dot com> |
|||
* |
|||
* This program is free software; you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation; either version 2 of the License, or |
|||
* (at your option) any later version. |
|||
* |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program; if not, write to the Free Software |
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. |
|||
*****************************************************************************/ |
|||
|
|||
#import "VLCAspectRatioRetainingVideoWindow.h" |
|||
|
|||
@interface VLCDetachedVideoWindow : VLCAspectRatioRetainingVideoWindow |
|||
|
|||
@end |
|||
@ -1,39 +0,0 @@ |
|||
/***************************************************************************** |
|||
* VLCDetachedVideoWindow.m: MacOS X interface module |
|||
***************************************************************************** |
|||
* Copyright (C) 2002-2019 VLC authors and VideoLAN |
|||
* |
|||
* Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org> |
|||
* David Fuhrmann <david dot fuhrmann at googlemail dot com> |
|||
* |
|||
* This program is free software; you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation; either version 2 of the License, or |
|||
* (at your option) any later version. |
|||
* |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program; if not, write to the Free Software |
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. |
|||
*****************************************************************************/ |
|||
|
|||
#import "VLCDetachedVideoWindow.h" |
|||
|
|||
#import "windows/mainwindow/VLCControlsBarCommon.h" |
|||
|
|||
@implementation VLCDetachedVideoWindow |
|||
|
|||
- (void)awakeFromNib |
|||
{ |
|||
// sets lion fullscreen behaviour |
|||
[super awakeFromNib]; |
|||
[self setAcceptsMouseMovedEvents: YES]; |
|||
|
|||
[self setContentMinSize: NSMakeSize(363., VLCVideoWindowCommonMinimalHeight + [[self controlsBar] height])]; |
|||
} |
|||
|
|||
@end |
|||
Loading…
Reference in new issue