]> git.sesse.net Git - vlc/blob - modules/gui/macosx/VLCUIWidgets.h
Add shorthands for audio channel maps
[vlc] / modules / gui / macosx / VLCUIWidgets.h
1 /*****************************************************************************
2  * VLCUIWidgets.h: Widgets for VLC's extensions dialogs for Mac OS X
3  *****************************************************************************
4  * Copyright (C) 2009-2012 the VideoLAN team and authors
5  * $Id$
6  *
7  * Authors: Pierre d'Herbemont <pdherbemont # videolan dot>,
8  *          Brendon Justin <brendonjustin@gmail.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 <vlc_extensions.h>
27
28 @class VLCDialogGridView;
29
30 @interface VLCDialogButton : NSButton {
31     extension_widget_t *widget;
32 }
33
34 @property (readwrite) extension_widget_t *widget;
35 @end
36
37
38 @interface VLCDialogPopUpButton : NSPopUpButton {
39     extension_widget_t *widget;
40 }
41
42 @property (readwrite) extension_widget_t *widget;
43 @end
44
45
46 @interface VLCDialogTextField : NSTextField {
47     extension_widget_t *widget;
48 }
49
50 @property (readwrite) extension_widget_t *widget;
51 @end
52
53
54 @interface VLCDialogWindow : NSWindow {
55     extension_dialog_t *dialog;
56     BOOL has_lock;
57 }
58
59 @property (readwrite) extension_dialog_t *dialog;
60 @property (readwrite) BOOL has_lock;
61 @end
62
63
64 @interface VLCDialogList : NSTableView {
65     extension_widget_t *widget;
66     NSMutableArray *contentArray;
67 }
68
69 @property (readwrite) extension_widget_t *widget;
70 @property (readwrite, retain) NSMutableArray *contentArray;
71 @end
72
73
74 @interface VLCDialogGridView : NSView {
75     NSUInteger _rowCount, _colCount;
76     NSMutableArray *_griddedViews;
77 }
78
79 - (void)addSubview:(NSView *)view atRow:(NSUInteger)row column:(NSUInteger)column rowSpan:(NSUInteger)rowSpan colSpan:(NSUInteger)colSpan;
80 - (NSSize)flexSize:(NSSize)size;
81 - (void)removeSubview:(NSView *)view;
82
83 @property (readonly) NSUInteger numViews;
84
85 @end