1 /*****************************************************************************
2  * VLCControlsBarCommon.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2012-2016 VLC authors and VideoLAN
5  * $Id: d19321655b5bcfa5a02de2742a3e1ca94b22cb83 $
6  *
7  * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
8  *          David Fuhrmann <david dot fuhrmann at googlemail dot com>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24 
25 #import <Cocoa/Cocoa.h>
26 #import "misc.h"
27 
28 #import "VLCBottomBarView.h"
29 #import "VLCTimeField.h"
30 #import "VLCSlider.h"
31 
32 /*****************************************************************************
33  * VLCControlsBarCommon
34  *
35  *  Holds all outlets, actions and code common for controls bar in detached
36  *  and in main window.
37  *****************************************************************************/
38 
39 @interface VLCControlsBarCommon : NSObject
40 
41 @property (readwrite, strong) IBOutlet VLCDragDropView *dropView;
42 
43 @property (readwrite, strong) IBOutlet NSButton *playButton;
44 @property (readwrite, strong) IBOutlet NSButton *backwardButton;
45 @property (readwrite, strong) IBOutlet NSButton *forwardButton;
46 
47 @property (readwrite, strong) IBOutlet VLCSlider *timeSlider;
48 
49 @property (readwrite, strong) IBOutlet VLCTimeField *timeField;
50 @property (readwrite, strong) IBOutlet NSButton *fullscreenButton;
51 @property (readwrite, strong) IBOutlet NSLayoutConstraint *fullscreenButtonWidthConstraint;
52 
53 @property (readwrite, strong) IBOutlet VLCBottomBarView *bottomBarView;
54 
55 @property (readonly) BOOL darkInterface;
56 @property (readonly) BOOL nativeFullscreenMode;
57 
58 - (CGFloat)height;
59 - (void)toggleForwardBackwardMode:(BOOL)b_alt;
60 
61 - (IBAction)play:(id)sender;
62 - (IBAction)bwd:(id)sender;
63 - (IBAction)fwd:(id)sender;
64 
65 - (IBAction)timeSliderAction:(id)sender;
66 - (IBAction)fullscreen:(id)sender;
67 
68 - (void)updateTimeSlider;
69 - (void)updateControls;
70 - (void)setPause;
71 - (void)setPlay;
72 - (void)setFullscreenState:(BOOL)b_fullscreen;
73 
74 - (void)setBrightButtonImageSet;
75 - (void)setDarkButtonImageSet;
76 
77 @end
78