-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathSearchWindowController.h
88 lines (59 loc) · 1.95 KB
/
SearchWindowController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
//
// 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