]> git.sesse.net Git - vlc/blob - modules/gui/macosx/VLCUIWidgets.h
326e4673b516ec1ffbcff9f91c7c6b7f562dfecf
[vlc] / modules / gui / macosx / VLCUIWidgets.h
1 /*****************************************************************************
2  * VLCUIWidgets.h: Widgets for VLC's Minimal Dialog Provider for Mac OS X
3  *****************************************************************************
4  * Copyright (C) 2009-2012 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Pierre d'Herbemont <pdherbemont # videolan dot>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #import <Cocoa/Cocoa.h>
25 #import <vlc_extensions.h>
26
27  at class VLCDialogGridView;
28
29  at interface VLCDialogButton : NSButton
30
31  at property (readwrite) extension_widget_t *widget;
32  at end
33
34
35  at interface VLCDialogPopUpButton : NSPopUpButton
36
37  at property (readwrite) extension_widget_t *widget;
38  at end
39
40
41  at interface VLCDialogTextField : NSTextField
42
43  at property (readwrite) extension_widget_t *widget;
44  at end
45
46
47  at interface VLCDialogWindow : NSWindow
48
49  at property (readwrite) extension_dialog_t *dialog;
50  at property (readwrite) BOOL has_lock;
51  at end
52
53
54  at interface VLCDialogList : NSTableView <NSTableViewDataSource>
55
56  at property (readwrite) extension_widget_t *widget;
57  at property (readwrite, retain) NSMutableArray *contentArray;
58  at end
59
60
61  at interface VLCDialogGridView : NSView {
62     NSUInteger _rowCount, _colCount;
63     NSMutableArray *_griddedViews;
64 }
65
66 - (void)addSubview:(NSView *)view atRow:(NSUInteger)row column:(NSUInteger)column rowSpan:(NSUInteger)rowSpan colSpan:(NSUInteger)colSpan;
67 - (NSSize)flexSize:(NSSize)size;
68 - (void)removeSubview:(NSView *)view;
69
70  at property (readonly) NSUInteger numViews;
71
72  at end