1 /*****************************************************************************
2 * VLCUIWidgets.h: Widgets for VLC's extensions dialogs for Mac OS X
3 *****************************************************************************
4 * Copyright (C) 2009-2014 the VideoLAN team and authors
7 * Authors: Pierre d'Herbemont <pdherbemont # videolan dot>,
8 * Brendon Justin <brendonjustin@gmail.com>
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.
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.
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 *****************************************************************************/
25 #import <Cocoa/Cocoa.h>
26 #import <vlc_extensions.h>
28 @class VLCDialogGridView;
30 @interface VLCDialogButton : NSButton
32 extension_widget_t *widget;
35 @property (readwrite) extension_widget_t *widget;
39 @interface VLCDialogPopUpButton : NSPopUpButton
41 extension_widget_t *widget;
44 @property (readwrite) extension_widget_t *widget;
48 @interface VLCDialogTextField : NSTextField
50 extension_widget_t *widget;
53 @property (readwrite) extension_widget_t *widget;
57 @interface VLCDialogWindow : NSWindow
59 extension_dialog_t *dialog;
63 @property (readwrite) extension_dialog_t *dialog;
64 @property (readwrite) BOOL has_lock;
68 @interface VLCDialogList : NSTableView <NSTableViewDataSource>
70 extension_widget_t *widget;
71 NSMutableArray *contentArray;
74 @property (readwrite) extension_widget_t *widget;
75 @property (readwrite, retain) NSMutableArray *contentArray;
79 @interface VLCDialogGridView : NSView
81 NSUInteger _rowCount, _colCount;
82 NSMutableArray *_griddedViews;
85 - (void)addSubview:(NSView *)view atRow:(NSUInteger)row column:(NSUInteger)column rowSpan:(NSUInteger)rowSpan colSpan:(NSUInteger)colSpan;
86 - (NSSize)flexSize:(NSSize)size;
87 - (void)removeSubview:(NSView *)view;
89 @property (readonly) NSUInteger numViews;