transmission/macosx/FilterBarController.h

52 lines
1.3 KiB
C
Raw Normal View History

// 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
#import <Cocoa/Cocoa.h>
@class FilterButton;
#define FILTER_NONE @"None"
#define FILTER_ACTIVE @"Active"
2011-02-20 03:58:50 +00:00
#define FILTER_DOWNLOAD @"Download"
#define FILTER_SEED @"Seed"
#define FILTER_PAUSE @"Pause"
2011-02-20 03:58:50 +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
{
IBOutlet FilterButton* fNoFilterButton;
IBOutlet FilterButton* fActiveFilterButton;
IBOutlet FilterButton* fDownloadFilterButton;
IBOutlet FilterButton* fSeedFilterButton;
IBOutlet FilterButton* fPauseFilterButton;
IBOutlet NSSearchField* fSearchField;
IBOutlet NSPopUpButton* fGroupsButton;
2011-02-20 03:58:50 +00:00
}
- (instancetype)init;
2011-02-20 03:58:50 +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;
2011-02-20 03:58:50 +00:00
@property(nonatomic, readonly) NSArray* searchStrings;
- (void)focusSearchField;
2011-02-20 03:58:50 +00:00
- (void)setCountAll:(NSUInteger)all
active:(NSUInteger)active
downloading:(NSUInteger)downloading
seeding:(NSUInteger)seeding
paused:(NSUInteger)paused;
2011-02-20 03:58:50 +00:00
@end