mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
d669050551
This adds a subclass to PBNiceSplitView which has collapsible subviews as well as an uncollapse-method. The initWithTopMin method is used to set the minimum sizes for the subviews. Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
24 lines
482 B
Objective-C
24 lines
482 B
Objective-C
//
|
|
// PBCollapsibleSplitView.h
|
|
// GitX
|
|
//
|
|
// Created by Johannes Gilger on 6/21/09.
|
|
// Copyright 2009 Johannes Gilger. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "PBNiceSplitView.h"
|
|
|
|
@interface PBCollapsibleSplitView : PBNiceSplitView {
|
|
CGFloat topViewMin;
|
|
CGFloat bottomViewMin;
|
|
}
|
|
|
|
@property (readonly) CGFloat topViewMin;
|
|
@property (readonly) CGFloat bottomViewMin;
|
|
|
|
- (void)setTopMin:(CGFloat)topMin andBottomMin:(CGFloat)bottomMin;
|
|
- (void)uncollapse;
|
|
|
|
@end
|