1 /*****************************************************************************
2 * VLCUIWidgets.h: Widgets for VLC's Minimal Dialog Provider for Mac OS X
3 *****************************************************************************
4 * Copyright (C) 2009-2010 the VideoLAN team
7 * Authors: Pierre d'Herbemont <pdherbemont # videolan dot>
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.
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.
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 *****************************************************************************/
24 #import <Cocoa/Cocoa.h>
25 #import <vlc_extensions.h>
27 @interface VLCDialogButton : NSButton
29 extension_widget_t *widget;
31 @property (readwrite) extension_widget_t *widget;
35 @interface VLCDialogPopUpButton : NSPopUpButton
37 extension_widget_t *widget;
39 @property (readwrite) extension_widget_t *widget;
43 @interface VLCDialogTextField : NSTextField
45 extension_widget_t *widget;
47 @property (readwrite) extension_widget_t *widget;
51 @interface VLCDialogWindow : NSWindow
53 extension_dialog_t *dialog;
55 @property (readwrite) extension_dialog_t *dialog;
59 @interface VLCDialogList : NSTableView
61 extension_widget_t *widget;
62 NSMutableArray *contentArray;
64 @property (readwrite) extension_widget_t *widget;
65 @property (readwrite, retain) NSMutableArray *contentArray;
69 @interface VLCDialogGridView : NSView {
70 NSUInteger _rowCount, _colCount;
71 NSMutableArray *_gridedViews;
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;