1 /*****************************************************************************
2 * VLCUIWidgets.h: Widgets for VLC's Minimal Dialog Provider for Mac OS X
3 *****************************************************************************
4 * Copyright (C) 2009-2012 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 at class VLCDialogGridView;
29 at interface VLCDialogButton : NSButton
31 at property (readwrite) extension_widget_t *widget;
35 at interface VLCDialogPopUpButton : NSPopUpButton
37 at property (readwrite) extension_widget_t *widget;
41 at interface VLCDialogTextField : NSTextField
43 at property (readwrite) extension_widget_t *widget;
47 at interface VLCDialogWindow : NSWindow
49 at property (readwrite) extension_dialog_t *dialog;
50 at property (readwrite) BOOL has_lock;
54 at interface VLCDialogList : NSTableView <NSTableViewDataSource>
56 at property (readwrite) extension_widget_t *widget;
57 at property (readwrite, retain) NSMutableArray *contentArray;
61 at interface VLCDialogGridView : NSView {
62 NSUInteger _rowCount, _colCount;
63 NSMutableArray *_griddedViews;
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;
70 at property (readonly) NSUInteger numViews;