mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-17 09:59:37 +00:00
48 lines
986 B
Objective-C
48 lines
986 B
Objective-C
//
|
|
// MPContextBarViewController.h
|
|
// MacPass
|
|
//
|
|
// Created by Michael Starke on 16/12/13.
|
|
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
|
//
|
|
|
|
#import "MPViewController.h"
|
|
#import "MPEntryFilterHelper.h"
|
|
|
|
@protocol MPContextBarDelegate <NSObject>
|
|
|
|
@optional
|
|
- (void)contextBarDidChangeFilter;
|
|
- (void)contextBarDidExitFilter;
|
|
- (void)contextBarDidExitHistory;
|
|
- (void)contextBarShouldEmptyTrash;
|
|
@end
|
|
|
|
@class HNHGradientView;
|
|
|
|
@interface MPContextBarViewController : MPViewController
|
|
|
|
@property (nonatomic, assign) MPFilterMode filterMode;
|
|
@property (nonatomic, readonly) BOOL hasFilter;
|
|
@property (nonatomic, weak) id<MPContextBarDelegate> delegate;
|
|
@property (weak) NSView *nextKeyView;
|
|
|
|
- (NSString *)filterString;
|
|
|
|
- (IBAction)toggleFilterSpace:(id)sender;
|
|
- (IBAction)exitFilter:(id)sender;
|
|
|
|
- (BOOL)showsFilter;
|
|
- (BOOL)showsHistory;
|
|
- (BOOL)showsTrash;
|
|
|
|
- (void)showFilter;
|
|
|
|
- (void)showHistory;
|
|
- (void)showTrash;
|
|
|
|
- (void)enable;
|
|
- (void)disable;
|
|
|
|
@end
|