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'
70 lines
1.5 KiB
Objective-C
70 lines
1.5 KiB
Objective-C
//
|
|
// 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
|