transmission/macosx/FilterBarController.h

46 lines
1.3 KiB
C
Raw Normal View History

// This file Copyright © Transmission authors and contributors.
// It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder.
2011-02-20 03:58:50 +00:00
#import <AppKit/AppKit.h>
2011-02-20 03:58:50 +00:00
typedef NSString* FilterType NS_TYPED_EXTENSIBLE_ENUM;
2011-02-20 03:58:50 +00:00
extern FilterType const FilterTypeNone;
extern FilterType const FilterTypeActive;
extern FilterType const FilterTypeDownload;
extern FilterType const FilterTypeSeed;
extern FilterType const FilterTypePause;
extern FilterType const FilterTypeError;
2011-02-20 03:58:50 +00:00
typedef NSString* FilterSearchType NS_TYPED_EXTENSIBLE_ENUM;
extern FilterSearchType const FilterSearchTypeName;
extern FilterSearchType const FilterSearchTypeTracker;
extern NSInteger const kGroupFilterAllTag;
2011-02-20 03:58:50 +00:00
@interface FilterBarController : NSViewController
2022-04-29 22:51:40 +00:00
@property(nonatomic, readonly) NSArray<NSString*>* searchStrings;
2011-02-20 03:58:50 +00:00
- (instancetype)init;
2011-02-20 03:58:50 +00:00
2022-11-15 16:50:16 +00:00
- (IBAction)setFilter:(id)sender;
- (void)switchFilter:(BOOL)right;
2022-11-15 16:50:16 +00:00
- (IBAction)setSearchText:(id)sender;
- (IBAction)setSearchType:(id)sender;
- (IBAction)setGroupFilter:(id)sender;
- (void)reset:(BOOL)updateUI;
- (void)focusSearchField;
- (BOOL)isFocused;
2011-02-20 03:58:50 +00:00
- (void)setCountAll:(NSUInteger)all
active:(NSUInteger)active
downloading:(NSUInteger)downloading
seeding:(NSUInteger)seeding
paused:(NSUInteger)paused
error:(NSUInteger)error;
2011-02-20 03:58:50 +00:00
@end