From 5b05f3f15aa0676f91bc1d127d31f4fd95ef9f40 Mon Sep 17 00:00:00 2001 From: avenjamin Date: Wed, 24 Jun 2009 15:46:27 +0000 Subject: - Changed the way the BWToolkit framework was included to allow modifications to be made easily. - Fixed show/hide info pane toggle button image states to now show correctly --- .../BWToolkitFramework.framework/BWSplitView.h | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Frameworks/BWToolkitFramework.framework/BWSplitView.h (limited to 'Frameworks/BWToolkitFramework.framework/BWSplitView.h') diff --git a/Frameworks/BWToolkitFramework.framework/BWSplitView.h b/Frameworks/BWToolkitFramework.framework/BWSplitView.h new file mode 100644 index 00000000..b717fa1f --- /dev/null +++ b/Frameworks/BWToolkitFramework.framework/BWSplitView.h @@ -0,0 +1,44 @@ +// +// BWSplitView.h +// BWToolkit +// +// Created by Brandon Walkin (www.brandonwalkin.com) and Fraser Kuyvenhoven. +// All code is provided under the New BSD license. +// + +#import + +@interface BWSplitView : NSSplitView +{ + 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 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 -- cgit v1.2.3