VLCFSPanelController.h 3.02 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
/*****************************************************************************
 * VLCFSPanelController.h: macOS fullscreen controls window controller
 *****************************************************************************
 * Copyright (C) 2006-2016 VLC authors and VideoLAN
 * $Id$
 *
 * 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>

29
#import "VLCWindow.h"
30
#import "VLCDefaultValueSlider.h"
31
#import "VLCTimeField.h"
32 33 34 35 36

@interface VLCFSPanelController : NSWindowController

@property (readwrite, weak) NSTimer   *hideTimer;

37
@property IBOutlet NSView       *controlsView;
38 39 40 41 42
@property IBOutlet NSButton     *playPauseButton;
@property IBOutlet NSButton     *forwardButton;
@property IBOutlet NSButton     *backwardButton;
@property IBOutlet NSButton     *nextButton;
@property IBOutlet NSButton     *previousButton;
43
@property IBOutlet NSButton     *fullscreenButton;
44 45 46 47
@property IBOutlet NSTextField  *mediaTitle;
@property IBOutlet VLCTimeField *elapsedTime;
@property IBOutlet VLCTimeField *remainingOrTotalTime;
@property IBOutlet NSSlider     *timeSlider;
48
@property IBOutlet VLCDefaultValueSlider *volumeSlider;
49

50 51
@property (assign) IBOutlet NSLayoutConstraint *heightMaxConstraint;

52 53 54 55 56 57 58 59 60 61 62 63 64 65
- (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;
66
- (void)centerPanel; //Have to find a better alternative than to centering each time on resize/drag
67

68 69 70
- (void)fixTitleBar;
- (void)unFixTitleBar;

71 72 73 74 75 76 77
- (void)setSeekable:(BOOL)seekable;
- (void)setVolumeLevel:(int)value;
- (void)updatePositionAndTime;
- (void)setStreamTitle:(NSString *)title;
- (void)setPlay;
- (void)setPause;

78 79
// Constrain frame to window. Used by VLCFSPanelDraggableView.
- (NSRect)contrainFrameToAssociatedVoutWindow:(NSRect)frame;
80 81

@end