-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathInfoWindowController.h
executable file
·62 lines (44 loc) · 1.39 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
//
// InfoWindowController.h
// KnockKnock
//
// Created by Patrick Wardle on 2/21/15.
// Copyright (c) 2015 Objective-See. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "PlistWindowController.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;
//file window specific outlets
@property(weak)IBOutlet NSTextField *hashes;
@property(weak)IBOutlet NSTextField *size;
@property(weak)IBOutlet NSTextField *sign;
@property (weak) IBOutlet NSTextField *plistLabel;
@property (weak) IBOutlet NSTextField *plist;
//extension window specific outlets
@property (weak) IBOutlet NSTextField *details;
@property (weak) IBOutlet NSTextField *identifier;
//window controller
@property(nonatomic, strong)InfoWindowController *windowController;
//item
@property(nonatomic, retain)ItemBase* itemObj;
//plist popup controller
@property (strong) PlistWindowController* plistWindowController;
/* METHODS */
//init method
// ->save item and load nib
-(id)initWithItem:(ItemBase*)selectedItem;
//configure window
// ->add item's attributes (name, path, etc.)
-(void)configure;
//close button handler
-(IBAction)closeWindow:(id)sender;
@end