]> git.sesse.net Git - vlc/blob - modules/gui/macosx/PXSourceList.h
macosx: misc minor improvements to the legacy transcoding code
[vlc] / modules / gui / macosx / PXSourceList.h
1 //
2 //  PXSourceList.h
3 //  PXSourceList
4 //
5 //  Created by Alex Rozanski on 05/09/2009.
6 //  Copyright 2009-10 Alex Rozanski http://perspx.com
7 //
8
9 #import <Cocoa/Cocoa.h>
10 #import "CompatibilityFixes.h"
11
12 #import "PXSourceListDelegate.h"
13 #import "PXSourceListDataSource.h"
14
15 @interface PXSourceList: NSOutlineView <NSOutlineViewDelegate, NSOutlineViewDataSource>
16 {
17     id <PXSourceListDelegate> _secondaryDelegate; //Used to store the publicly visible delegate
18     id <PXSourceListDataSource> _secondaryDataSource; //Used to store the publicly visible data source
19
20     NSSize _iconSize; //The size of icons in the Source List. Defaults to 16x16
21 }
22
23 @property (nonatomic) NSSize iconSize;
24
25 @property (assign) id<PXSourceListDataSource> dataSource;
26 @property (assign) id<PXSourceListDelegate> delegate;
27
28 - (NSUInteger)numberOfGroups; //Returns the number of groups in the Source List
29 - (BOOL)isGroupItem:(id)item; //Returns whether `item` is a group
30 - (BOOL)isGroupAlwaysExpanded:(id)group; //Returns whether `group` is displayed as always expanded
31
32 - (BOOL)itemHasBadge:(id)item; //Returns whether `item` has a badge
33 - (NSInteger)badgeValueForItem:(id)item; //Returns the badge value for `item`
34
35 @end
36