-
Notifications
You must be signed in to change notification settings - Fork 14
/
TaskTableController.h
84 lines (59 loc) · 1.78 KB
/
TaskTableController.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
//
// ItemTableController.h
// TaskExplorer
//
// Created by Patrick Wardle on 2/18/15.
// Copyright (c) 2015 Objective-See. All rights reserved.
//
#import "Task.h"
#import "InfoWindowController.h"
#import "VTInfoWindowController.h"
#import "3rdParty/OrderedDictionary.h"
#import <Foundation/Foundation.h>
@interface TaskTableController : NSViewController <NSTableViewDataSource, NSTableViewDelegate>
{
}
//flag for first time init's
@property BOOL didInit;
//flag for ignoring automated row selections
@property BOOL ignoreSelection;
//flag for filtering
@property BOOL isFiltered;
//all table items
@property(nonatomic, retain)NSMutableArray* tableItems;
//filtered table items
@property(nonatomic, retain)NSMutableArray* filteredItems;
//category table view
@property(weak) IBOutlet NSTableView *itemView;
//info window controller
@property(retain, nonatomic)InfoWindowController* infoWindowController;
//virus total window controller
@property (nonatomic, retain)VTInfoWindowController* vtWindowController;
//currently selected row
// ->can help determine if newly selected row is really new
@property NSUInteger selectedRow;
//flag to differentiate between top/bottom view
@property BOOL isBottomPane;
/* METHODS */
//reload table
-(void)reloadTable;
//custom reload
// ->ensures selected row remains selected
-(void)refresh;
//grab a task at a row
-(Task*)taskForRow:(id)sender;
//button handler
// ->show item in finder
- (IBAction)showInFinder:(id)sender;
//button handler
// ->show info window
- (IBAction)showInfo:(id)sender;
//button handler
// ->show virus total info window
-(void)showVTInfo:(NSView*)button;
//scroll back up to top of table
-(void)scrollToTop;
//handle when user clicks row
// ->update bottom pane w/ task's dylibs/files/etc
-(void)handleRowSelection;
@end