2022-01-20 18:27:56 +00:00
|
|
|
// This file Copyright © 2011-2022 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
|
|
|
|
2022-06-29 00:15:52 +00:00
|
|
|
#import <AppKit/AppKit.h>
|
2011-02-20 03:58:50 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
#define FILTER_NONE @"None"
|
|
|
|
#define FILTER_ACTIVE @"Active"
|
2011-02-20 03:58:50 +00:00
|
|
|
#define FILTER_DOWNLOAD @"Download"
|
2021-08-15 09:41:48 +00:00
|
|
|
#define FILTER_SEED @"Seed"
|
|
|
|
#define FILTER_PAUSE @"Pause"
|
2022-03-07 06:01:01 +00:00
|
|
|
#define FILTER_ERROR @"Error"
|
2011-02-20 03:58:50 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
#define FILTER_TYPE_NAME @"Name"
|
2011-02-20 03:58:50 +00:00
|
|
|
#define FILTER_TYPE_TRACKER @"Tracker"
|
|
|
|
|
|
|
|
#define GROUP_FILTER_ALL_TAG -2
|
|
|
|
|
|
|
|
@interface FilterBarController : NSViewController
|
2017-01-24 17:53:16 +00:00
|
|
|
|
2022-04-29 22:51:40 +00:00
|
|
|
@property(nonatomic, readonly) NSArray<NSString*>* searchStrings;
|
2011-02-20 03:58:50 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (instancetype)init;
|
2011-02-20 03:58:50 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (void)setFilter:(id)sender;
|
|
|
|
- (void)switchFilter:(BOOL)right;
|
|
|
|
- (void)setSearchText:(id)sender;
|
|
|
|
- (void)setSearchType:(id)sender;
|
|
|
|
- (void)setGroupFilter:(id)sender;
|
|
|
|
- (void)reset:(BOOL)updateUI;
|
|
|
|
- (void)focusSearchField;
|
2011-02-20 03:58:50 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (void)setCountAll:(NSUInteger)all
|
|
|
|
active:(NSUInteger)active
|
|
|
|
downloading:(NSUInteger)downloading
|
|
|
|
seeding:(NSUInteger)seeding
|
2022-03-07 06:01:01 +00:00
|
|
|
paused:(NSUInteger)paused
|
|
|
|
error:(NSUInteger)error;
|
2012-07-25 12:49:11 +00:00
|
|
|
|
2011-02-20 03:58:50 +00:00
|
|
|
@end
|