VLCUIWidgets.h 2.34 KB
Newer Older
1
/*****************************************************************************
2
 * VLCUIWidgets.h: Widgets for VLC's extensions dialogs for Mac OS X
3
 *****************************************************************************
4
 * Copyright (C) 2009-2015 the VideoLAN team and authors
5 6
 * $Id$
 *
7 8
 * Authors: Pierre d'Herbemont <pdherbemont # videolan dot>,
 *          Brendon Justin <brendonjustin@gmail.com>
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/

#import <Cocoa/Cocoa.h>
#import <vlc_extensions.h>

28
@class VLCDialogGridView;
29

30
@interface VLCDialogButton : NSButton
31 32
@property (readwrite) extension_widget_t *widget;
@end
33

34
@interface VLCDialogPopUpButton : NSPopUpButton
35 36
@property (readwrite) extension_widget_t *widget;
@end
37

38
@interface VLCDialogTextField : NSTextField
39 40
@property (readwrite) extension_widget_t *widget;
@end
41

42
@interface VLCDialogWindow : NSWindow
43 44 45
@property (readwrite) extension_dialog_t *dialog;
@property (readwrite) BOOL has_lock;
@end
46 47


48
@interface VLCDialogList : NSTableView <NSTableViewDataSource>
49 50 51
@property (readwrite) extension_widget_t *widget;
@property (readwrite, retain) NSMutableArray *contentArray;
@end
52

53
@interface VLCDialogGridView : NSView
54 55 56

- (void)addSubview:(NSView *)view atRow:(NSUInteger)row column:(NSUInteger)column rowSpan:(NSUInteger)rowSpan colSpan:(NSUInteger)colSpan;
- (NSSize)flexSize:(NSSize)size;
57 58 59 60 61
- (void)updateSubview:(NSView *)view
                atRow:(NSUInteger)row
               column:(NSUInteger)column
              rowSpan:(NSUInteger)rowSpan
              colSpan:(NSUInteger)colSpan;
62 63
- (void)removeSubview:(NSView *)view;

64
@property (readonly) NSUInteger numViews;
65

66
@end