mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-12 13:44:56 +02:00
713fc86ec6
This also fixes the include order in related files
71 lines
2.7 KiB
Objective-C
71 lines
2.7 KiB
Objective-C
/*****************************************************************************
|
|
* VLCFSPanelController.h: macOS fullscreen controls window controller
|
|
*****************************************************************************
|
|
* Copyright (C) 2006-2019 VLC authors and VideoLAN
|
|
*
|
|
* Authors: Jérôme Decoodt <djc at videolan dot org>
|
|
* Felix Paul Kühne <fkuehne at videolan dot org>
|
|
* David Fuhrmann <david dot fuhrmann at googlemail dot com>
|
|
* Marvin Scholz <epirat07 at gmail 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 <Cocoa/Cocoa.h>
|
|
|
|
#import "windows/video/VLCWindow.h"
|
|
#import "views/VLCDefaultValueSlider.h"
|
|
#import "views/VLCTimeField.h"
|
|
#import "views/VLCSlider.h"
|
|
|
|
@interface VLCFSPanelController : NSWindowController
|
|
|
|
@property (readwrite, weak) NSTimer *hideTimer;
|
|
|
|
@property IBOutlet NSView *controlsView;
|
|
@property IBOutlet NSButton *playPauseButton;
|
|
@property IBOutlet NSButton *forwardButton;
|
|
@property IBOutlet NSButton *backwardButton;
|
|
@property IBOutlet NSButton *nextButton;
|
|
@property IBOutlet NSButton *previousButton;
|
|
@property IBOutlet NSButton *fullscreenButton;
|
|
@property IBOutlet NSTextField *mediaTitle;
|
|
@property IBOutlet VLCTimeField *elapsedTime;
|
|
@property IBOutlet VLCTimeField *remainingOrTotalTime;
|
|
@property IBOutlet VLCSlider *timeSlider;
|
|
@property IBOutlet VLCDefaultValueSlider *volumeSlider;
|
|
|
|
@property (assign) IBOutlet NSLayoutConstraint *heightMaxConstraint;
|
|
|
|
- (IBAction)togglePlayPause:(id)sender;
|
|
- (IBAction)jumpForward:(id)sender;
|
|
- (IBAction)jumpBackward:(id)sender;
|
|
- (IBAction)gotoPrevious:(id)sender;
|
|
- (IBAction)gotoNext:(id)sender;
|
|
- (IBAction)toggleFullscreen:(id)sender;
|
|
- (IBAction)timeSliderUpdate:(id)sender;
|
|
- (IBAction)volumeSliderUpdate:(id)sender;
|
|
|
|
- (void)fadeIn;
|
|
- (void)fadeOut;
|
|
- (void)setActive;
|
|
- (void)setNonActive;
|
|
- (void)setVoutWasUpdated:(VLCWindow *)voutWindow;
|
|
|
|
// Constrain frame to window. Used by VLCFSPanelDraggableView.
|
|
- (NSRect)contrainFrameToAssociatedVoutWindow:(NSRect)frame;
|
|
|
|
@end
|