Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (25 sloc) 1.02 KB
#import "BackgroundView.h"
#import "StatusItemView.h"
@class PanelController;
@protocol PanelControllerDelegate <NSObject>
@optional
- (StatusItemView *)statusItemViewForPanelController:(PanelController *)controller;
@end
#pragma mark -
@interface PanelController : NSWindowController <NSWindowDelegate>
{
BOOL _hasActivePanel;
__unsafe_unretained BackgroundView *_backgroundView;
__unsafe_unretained id<PanelControllerDelegate> _delegate;
__unsafe_unretained NSSearchField *_searchField;
__unsafe_unretained NSTextField *_textField;
}
@property (nonatomic, unsafe_unretained) IBOutlet BackgroundView *backgroundView;
@property (nonatomic, unsafe_unretained) IBOutlet NSSearchField *searchField;
@property (nonatomic, unsafe_unretained) IBOutlet NSTextField *textField;
@property (nonatomic) BOOL hasActivePanel;
@property (nonatomic, unsafe_unretained, readonly) id<PanelControllerDelegate> delegate;
- (id)initWithDelegate:(id<PanelControllerDelegate>)delegate;
- (void)openPanel;
- (void)closePanel;
@end