forked from sononum/bwtoolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BWSplitView.h
45 lines (37 loc) · 1.5 KB
/
BWSplitView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// BWSplitView.h
// BWToolkit
//
// Created by Brandon Walkin (www.brandonwalkin.com) and Fraser Kuyvenhoven.
// All code is provided under the New BSD license.
//
#import <Cocoa/Cocoa.h>
@interface BWSplitView : NSSplitView <NSSplitViewDelegate>
{
NSColor *color;
BOOL colorIsEnabled, checkboxIsEnabled, dividerCanCollapse, collapsibleSubviewCollapsed;
id secondaryDelegate;
NSMutableDictionary *minValues, *maxValues, *minUnits, *maxUnits;
NSMutableDictionary *resizableSubviewPreferredProportion, *nonresizableSubviewPreferredSize;
NSArray *stateForLastPreferredCalculations;
int collapsiblePopupSelection;
float uncollapsedSize;
// Collapse button
NSButton *toggleCollapseButton;
BOOL isAnimating;
}
@property (retain) NSMutableDictionary *minValues, *maxValues, *minUnits, *maxUnits;
@property (retain) NSMutableDictionary *resizableSubviewPreferredProportion, *nonresizableSubviewPreferredSize;
@property (retain) NSArray *stateForLastPreferredCalculations;
@property (retain) NSButton *toggleCollapseButton;
@property (assign) id secondaryDelegate;
@property BOOL collapsibleSubviewCollapsed;
@property int collapsiblePopupSelection;
@property BOOL dividerCanCollapse;
// The split view divider color
@property (copy) NSColor *color;
// Flag for whether a custom divider color is enabled. If not, the standard divider color is used.
@property BOOL colorIsEnabled;
// Call this method to collapse or expand a subview configured as collapsible in the IB inspector.
- (IBAction)toggleCollapse:(id)sender;
@end