1 /*****************************************************************************
2 * ExtensionsDialogProvider.h: Mac OS X Extensions Dialogs
3 *****************************************************************************
4 * Copyright (C) 2005-2012 VLC authors and VideoLAN
7 * Authors: Brendon Justin <brendonjustin@gmail.com>,
8 * Derk-Jan Hartman <hartman@videolan dot org>,
9 * Felix Paul Kühne <fkuehne@videolan dot org>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24 *****************************************************************************/
26 #import "coredialogs.h"
28 #import "VLCUIWidgets.h"
30 #import <vlc_common.h>
31 #import <vlc_dialog.h>
32 #import <vlc_extensions.h>
34 #import <Cocoa/Cocoa.h>
36 /*****************************************************************************
37 * ExtensionsDialogProvider interface
38 *****************************************************************************/
39 @interface ExtensionsDialogProvider : NSObject <NSWindowDelegate>
41 intf_thread_t *p_intf;
44 + (ExtensionsDialogProvider *)sharedInstance:(intf_thread_t *)_p_intf;
47 - (id)initWithIntf:(intf_thread_t *)_p_intf;
49 - (void)performEventWithObject: (NSValue *)o_value ofType:(const char*)type;
51 - (void)triggerClick:(id)sender;
52 - (void)syncTextField:(NSNotification *)notifcation;
53 - (void)tableViewSelectionDidChange:(NSNotification *)notifcation;
54 - (void)popUpSelectionChanged:(id)sender;
55 - (NSSize)windowWillResize:(NSWindow *)sender toSize:(NSSize)frameSize;
56 - (BOOL)windowShouldClose:(id)sender;
57 - (void)updateWidgets:(extension_dialog_t *)dialog;
59 - (VLCDialogWindow *)createExtensionDialog:(extension_dialog_t *)p_dialog;
60 - (int)destroyExtensionDialog:(extension_dialog_t *)o_value;
61 - (VLCDialogWindow *)updateExtensionDialog:(NSValue *)o_value;
62 - (void)manageDialog:(extension_dialog_t *)p_dialog;