-
Notifications
You must be signed in to change notification settings - Fork 14
/
InfoWindowController.h
69 lines (48 loc) · 1.54 KB
/
InfoWindowController.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
//
// InfoWindowController.h
// TaskExplorer
//
// Created by Patrick Wardle on 2/21/15.
// Copyright (c) 2015 Objective-See. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class ItemBase;
@interface InfoWindowController : NSWindowController <NSWindowDelegate>
{
}
//properties in window
// ->attributes about the item
@property(weak)IBOutlet NSImageView *icon;
@property(weak)IBOutlet NSTextField *name;
@property(weak)IBOutlet NSTextField *path;
@property(weak)IBOutlet NSTextField *date;
//task-specific outlets
@property (weak) IBOutlet NSTextField *arguments;
//file window specific outlets
@property(weak)IBOutlet NSTextField *hashes;
@property(weak)IBOutlet NSTextField *size;
@property(weak)IBOutlet NSTextField *sign;
//file window specific outlets
@property (weak) IBOutlet NSTextField *type;
//network window specific outlets
@property (weak) IBOutlet NSTextField *connection;
@property (weak) IBOutlet NSTextField *protocol;
@property (weak) IBOutlet NSTextField *family;
@property (weak) IBOutlet NSTextField *state;
//window controller
@property(nonatomic, strong)InfoWindowController *windowController;
//item
@property(nonatomic, retain)ItemBase* itemObj;
/* METHODS */
//init method
// ->save item and load nib
-(id)initWithItem:(id)selectedItem;
//configure window
// ->add item's attributes (name, path, etc.)
-(void)configure;
//check if something is nil
// ->if so, return the default
-(NSString*)valueForStringItem:(NSString*)item default:(NSString*)defaultValue;
//close button handler
-(IBAction)closeWindow:(id)sender;
@end