VLCLibraryWindow.h 3.8 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
/*****************************************************************************
 * VLCLibraryWindow.h: MacOS X interface module
 *****************************************************************************
 * Copyright (C) 2019 VLC authors and VideoLAN
 *
 * Authors: Felix Paul Kühne <fkuehne # videolan -dot- org>
 *
 * 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.
 *****************************************************************************/

23
#import "windows/video/VLCVideoWindowCommon.h"
24 25 26

NS_ASSUME_NONNULL_BEGIN

27
@class VLCDragDropView;
28
@class VLCRoundedCornerTextField;
29

30 31 32 33 34 35 36 37 38
@interface VLCLibraryWindowController : NSWindowController

- (instancetype)initWithLibraryWindow;

@end

@interface VLCLibraryWindow : VLCVideoWindowCommon

@property (readwrite, weak) IBOutlet NSSegmentedControl *segmentedTitleControl;
39
@property (readwrite, weak) IBOutlet NSSplitView *mainSplitView;
40
@property (readwrite, weak) IBOutlet NSStackView *videoLibraryStackView;
41
@property (readwrite, strong) IBOutlet NSView *playlistView;
42
@property (readwrite, weak) IBOutlet NSCollectionView *videoLibraryCollectionView;
43
@property (readwrite, weak) IBOutlet NSCollectionView *recentVideoLibraryCollectionView;
44
@property (readwrite, weak) IBOutlet NSCollectionView *mediaSourceCollectionView;
45 46 47 48
@property (readwrite, weak) IBOutlet NSSplitView *audioLibrarySplitView;
@property (readwrite, weak) IBOutlet NSTableView *audioCategorySelectionTableView;
@property (readwrite, weak) IBOutlet NSTableView *audioCollectionSelectionTableView;
@property (readwrite, weak) IBOutlet NSTableView *audioGroupSelectionTableView;
49
@property (readwrite, weak) IBOutlet NSScrollView *mediaSourceScrollView;
50
@property (readwrite, weak) IBOutlet NSView *libraryTargetView;
51
@property (readwrite, weak) IBOutlet NSTableView *playlistTableView;
52
@property (readwrite, weak) IBOutlet NSTextField *upNextLabel;
53 54
@property (readwrite, weak) IBOutlet VLCDragDropView *playlistDragDropView;
@property (readwrite, weak) IBOutlet NSButton *openMediaButton;
55 56 57 58 59
@property (readwrite, weak) IBOutlet NSBox *upNextSeparator;
@property (readwrite, weak) IBOutlet NSButton *clearPlaylistButton;
@property (readwrite, weak) IBOutlet NSBox *clearPlaylistSeparator;
@property (readwrite, weak) IBOutlet NSButton *repeatPlaylistButton;
@property (readwrite, weak) IBOutlet NSButton *shufflePlaylistButton;
60
@property (readwrite, weak) IBOutlet VLCRoundedCornerTextField *playlistCounterTextField;
61 62 63
@property (readwrite, weak) IBOutlet NSView *alternativeAudioView;
@property (readwrite, weak) IBOutlet NSCollectionView *alternativeAudioCollectionView;
@property (readwrite, weak) IBOutlet NSSegmentedControl *alternativeAudioSegmentedControl;
64

65 66 67
@property (readonly) BOOL nativeFullscreenMode;
@property (readwrite) BOOL nonembedded;

68
- (void)videoPlaybackWillBeStarted;
69 70
- (void)enableVideoPlaybackAppearance;
- (void)disableVideoPlaybackAppearance;
71

72
- (IBAction)playlistDoubleClickAction:(id)sender;
73 74 75
- (IBAction)shuffleAction:(id)sender;
- (IBAction)repeatAction:(id)sender;
- (IBAction)clearPlaylist:(id)sender;
76
- (IBAction)sortPlaylist:(id)sender;
77
- (IBAction)sortLibrary:(id)sender;
78
- (IBAction)openMedia:(id)sender;
79
- (IBAction)showAndHidePlaylist:(id)sender;
80

81 82 83
@end

NS_ASSUME_NONNULL_END