]> git.sesse.net Git - vlc/blob - modules/gui/macosx_dialog_provider/VLCUIWidgets.h
macosx dialog provider: moved UI widgets out of the interface implementation
[vlc] / modules / gui / macosx_dialog_provider / VLCUIWidgets.h
1 /*****************************************************************************
2  * VLCUIWidgets.h: Widgets for VLC's Minimal Dialog Provider for Mac OS X
3  *****************************************************************************
4  * Copyright (C) 2009-2010 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 @interface VLCDialogButton : NSButton
28 {
29     extension_widget_t *widget;
30 }
31 @property (readwrite) extension_widget_t *widget;
32 @end
33
34
35 @interface VLCDialogPopUpButton : NSPopUpButton
36 {
37     extension_widget_t *widget;
38 }
39 @property (readwrite) extension_widget_t *widget;
40 @end
41
42
43 @interface VLCDialogTextField : NSTextField
44 {
45     extension_widget_t *widget;
46 }
47 @property (readwrite) extension_widget_t *widget;
48 @end
49
50
51 @interface VLCDialogWindow : NSWindow
52 {
53     extension_dialog_t *dialog;
54 }
55 @property (readwrite) extension_dialog_t *dialog;
56 @end
57
58
59 @interface VLCDialogList : NSTableView
60 {
61     extension_widget_t *widget;
62     NSMutableArray *contentArray;
63 }
64 @property (readwrite) extension_widget_t *widget;
65 @property (readwrite, retain) NSMutableArray *contentArray;
66 @end
67
68
69 @interface VLCDialogGridView : NSView {
70     NSUInteger _rowCount, _colCount;
71     NSMutableArray *_gridedViews;
72 }
73
74 - (void)addSubview:(NSView *)view atRow:(NSUInteger)row column:(NSUInteger)column rowSpan:(NSUInteger)rowSpan colSpan:(NSUInteger)colSpan;
75 - (NSSize)flexSize:(NSSize)size;
76 - (void)removeSubview:(NSView *)view;
77 @end