mirror of
https://github.com/objective-see/TaskExplorer.git
synced 2026-03-22 07:02:39 +00:00
-fixed sync deadlock -fixed autolayout issue -scaled back exec'ing external tasks (vmmap, etc) -improved UI for global search -added patrons to 'About View'
89 lines
2.0 KiB
Objective-C
89 lines
2.0 KiB
Objective-C
//
|
|
// FlaggedItems.h
|
|
// TaskExplorer
|
|
//
|
|
// Created by Patrick Wardle on 8/14/15.
|
|
// Copyright (c) 2015 Objective-See. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import "CustomTextField.h"
|
|
#import "InfoWindowController.h"
|
|
#import "VTInfoWindowController.h"
|
|
|
|
|
|
@interface SearchWindowController : NSWindowController <NSWindowDelegate>
|
|
|
|
//PROPERTIES
|
|
|
|
//flag for first time init's
|
|
@property BOOL didInit;
|
|
|
|
//enumeration state thread
|
|
@property (nonatomic, retain) NSThread* stateMonitor;
|
|
|
|
//search box
|
|
@property (weak) IBOutlet NSTextField *searchBox;
|
|
|
|
//table
|
|
@property (weak) IBOutlet NSTableView *searchTable;
|
|
|
|
//table items
|
|
@property (nonatomic, retain) NSMutableArray* searchResults;
|
|
|
|
//activity indicator
|
|
@property (weak) IBOutlet NSProgressIndicator *activityIndicator;
|
|
|
|
//activity indicator label
|
|
@property (weak) IBOutlet NSTextField *activityIndicatorLabel;
|
|
|
|
//filter object
|
|
@property (nonatomic, retain) Filter* filterObj;
|
|
|
|
//search status message
|
|
@property (weak) IBOutlet NSTextField *searchResultsMessage;
|
|
|
|
//overlay for serach
|
|
@property (weak) IBOutlet NSView *overlay;
|
|
|
|
//activity indicator for overlay
|
|
@property (weak) IBOutlet NSProgressIndicator *overlaySpinner;
|
|
|
|
//mesasge for overlay
|
|
@property (weak) IBOutlet NSTextField *overlayMessage;
|
|
|
|
//vt window controller
|
|
@property (nonatomic, retain) VTInfoWindowController* vtWindowController;
|
|
|
|
//info window controller
|
|
@property (nonatomic, retain) InfoWindowController* infoWindowController;
|
|
|
|
//overlay view
|
|
@property (weak) IBOutlet NSView *overlayView;
|
|
|
|
//flag for filter field (autocomplete)
|
|
@property BOOL completePosting;
|
|
|
|
//flag for filter field (autocomplete)
|
|
@property BOOL commandHandling;
|
|
|
|
//custom search field
|
|
@property (nonatomic, retain)CustomTextField* customSearchField;
|
|
|
|
|
|
/* METHODS */
|
|
|
|
//init/prepare
|
|
// ->make sure everything is cleanly init'd
|
|
-(void)prepare;
|
|
|
|
//search
|
|
-(void)search;
|
|
|
|
//callback for when searching is done
|
|
// ->update UI by removing overlay and reloading table
|
|
-(void)completeSearch;
|
|
|
|
@end
|