VLCMainWindowControlsBar.h 3.08 KB
Newer Older
1 2 3
/*****************************************************************************
 * ControlsBar.h: MacOS X interface module
 *****************************************************************************
4
 * Copyright (C) 2012-2016 VLC authors and VideoLAN
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
 * $Id$
 *
 * 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 <Cocoa/Cocoa.h>
26
#import "misc.h"
27
#import "VLCControlsBarCommon.h"
28
#import "VLCVolumeSlider.h"
29 30 31 32 33 34 35 36 37

/*****************************************************************************
 * VLCMainWindowControlsBar
 *
 *  Holds all specific outlets, actions and code for the main window controls bar.
 *****************************************************************************/

@interface VLCMainWindowControlsBar : VLCControlsBarCommon

38 39
@property (readwrite, strong) IBOutlet NSButton *stopButton;

40
@property (readwrite, strong) IBOutlet NSButton *prevButton;
41
@property (readwrite, strong) IBOutlet NSLayoutConstraint *prevButtonWidthConstraint;
42
@property (readwrite, strong) IBOutlet NSButton *nextButton;
43
@property (readwrite, strong) IBOutlet NSLayoutConstraint *nextButtonWidthConstraint;
44

45 46
@property (readwrite, strong) IBOutlet NSButton *playlistButton;
@property (readwrite, strong) IBOutlet NSButton *repeatButton;
47 48
@property (readwrite, strong) IBOutlet NSLayoutConstraint *repeatButtonWidthConstraint;

49
@property (readwrite, strong) IBOutlet NSButton *shuffleButton;
50
@property (readwrite, strong) IBOutlet NSLayoutConstraint *shuffleButtonWidthConstraint;
51

52
@property (readwrite, strong) IBOutlet VLCVolumeSlider *volumeSlider;
53 54
@property (readwrite, strong) IBOutlet NSButton *volumeDownButton;
@property (readwrite, strong) IBOutlet NSButton *volumeUpButton;
55

56
@property (readwrite, strong) IBOutlet NSButton *effectsButton;
57
@property (readwrite, strong) IBOutlet NSLayoutConstraint *effectsButtonWidthConstraint;
58 59 60 61 62 63 64 65 66 67 68 69 70 71

- (IBAction)stop:(id)sender;

- (IBAction)shuffle:(id)sender;
- (IBAction)volumeAction:(id)sender;
- (IBAction)effects:(id)sender;

- (void)setRepeatOne;
- (void)setRepeatAll;
- (void)setRepeatOff;
- (IBAction)repeat:(id)sender;

- (void)setShuffle;

72 73
- (IBAction)togglePlaylist:(id)sender;

74
- (void)toggleEffectsButton;
75 76 77 78 79 80 81 82
- (void)toggleJumpButtons;
- (void)togglePlaymodeButtons;

- (void)updateVolumeSlider;
- (void)updateControls;

@end