intf.h 3.89 KB
Newer Older
1
/*****************************************************************************
2
 * intf.h: MacOS X interface module
3
 *****************************************************************************
4
 * Copyright (C) 2002-2015 VLC authors and VideoLAN
5
 * $Id$
6
 *
7
 * Authors: Derk-Jan Hartman <hartman at videolan dot org>
8
 *          Felix Paul Kühne <fkuehne at videolan dot org>
9
 *          David Fuhrmann <david dot fuhrmann at googlemail dot com>
10
 *          Pierre d'Herbemont <pdherbemont # videolan org>
11 12 13 14 15
 *
 * 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.
16
 *
17 18 19 20 21 22 23
 * 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
dionoea's avatar
dionoea committed
24
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
25 26
 *****************************************************************************/

Rafaël Carré's avatar
Rafaël Carré committed
27 28 29 30
#ifdef HAVE_CONFIG_H
#   include "config.h"
#endif

31 32 33 34 35 36
#import <vlc_common.h>
#import <vlc_interface.h>
#import <vlc_playlist.h>
#import <vlc_vout.h>
#import <vlc_aout.h>
#import <vlc_input.h>
37
#import <vlc_vout_window.h>
38
#import <vlc_atomic.h>
39

40
#import <Cocoa/Cocoa.h>
41
#import "misc.h"
42
#import "MainWindow.h"
43
#import "VLCVoutWindowController.h"
44
#import "StringUtility.h"
45

46
/*****************************************************************************
hartman's avatar
hartman committed
47
 * Local prototypes.
48
 *****************************************************************************/
49
#define VLCIntf [[VLCMain sharedInstance] intf]
50

51
static NSString * VLCInputChangedNotification = @"VLCInputChangedNotification";
52 53

/*****************************************************************************
54
 * VLCMain interface
55
 *****************************************************************************/
56
@class AppleRemote;
57 58
@class VLCInfo;
@class VLCMainMenu;
59
@class VLCPlaylist;
60
@class VLCInputManager;
61
@class ResumeDialogController;
62 63 64 65 66
@class VLCSimplePrefs;
@class VLCPrefs;
@class VLCCoreDialogProvider;
@class VLCBookmarks;
@class VLCOpen;
67
@class VLCDebugMessageVisualizer;
68
@class VLCTrackSynchronization;
69
@class VLCAudioEffects;
70
@class VLCVideoEffects;
71
@class VLCConvertAndSave;
72

73
@interface VLCMain : NSObject <NSWindowDelegate, NSApplicationDelegate>
74
{
75
    IBOutlet VLCMainWindow *o_mainwindow;            /* VLCMainWindow */
76 77
}

78
@property (readonly) VLCVoutWindowController* voutController;
79
@property (readonly) BOOL nativeFullscreenMode;
80
@property (nonatomic, readwrite) BOOL playlistUpdatedSelectorInQueue;
hartman's avatar
hartman committed
81 82
+ (VLCMain *)sharedInstance;

83
- (intf_thread_t *)intf;
hartman's avatar
hartman committed
84 85
- (void)setIntf:(intf_thread_t *)p_mainintf;

86
- (VLCMainMenu *)mainMenu;
87
- (VLCMainWindow *)mainWindow;
88 89 90 91
- (VLCBookmarks *)bookmarks;
- (VLCOpen *)open;
- (VLCSimplePrefs *)simplePreferences;
- (VLCPrefs *)preferences;
92
- (VLCPlaylist *)playlist;
93
- (VLCCoreDialogProvider *)coreDialogProvider;
94
- (ResumeDialogController *)resumeDialog;
95
- (VLCInputManager *)inputManager;
96 97
- (VLCDebugMessageVisualizer *)debugMsgPanel;

98
- (VLCTrackSynchronization *)trackSyncPanel;
99
- (VLCAudioEffects *)audioEffectsPanel;
100
- (VLCVideoEffects *)videoEffectsPanel;
101

102 103
- (VLCConvertAndSave *)convertAndSaveWindow;

104 105
- (void)setActiveVideoPlayback:(BOOL)b_value;
- (BOOL)activeVideoPlayback;
106
- (void)applicationWillTerminate:(NSNotification *)notification;
107

Felix Paul Kühne's avatar
Felix Paul Kühne committed
108
- (void)showFullscreenController;
109

110 111
- (BOOL)isTerminating;

112 113
@end

114 115 116 117 118 119

/*****************************************************************************
 * VLCApplication interface
 *****************************************************************************/

@interface VLCApplication : NSApplication
Felix Paul Kühne's avatar
Felix Paul Kühne committed
120

121
@end
122 123

#import "helpers.h"