largely completed virus total logic

began implementing sorting logic (just for top pane)
This commit is contained in:
Patrick Wardle
2015-06-21 21:37:52 -10:00
parent 014f70da94
commit ff77a49ed5
20 changed files with 1020 additions and 287 deletions
+11 -11
View File
@@ -13,7 +13,7 @@
@implementation VTButton
@synthesize fileObj;
@synthesize binary;
@synthesize delegate;
@synthesize mouseDown;
@synthesize mouseExit;
@@ -53,8 +53,8 @@
//flagged files
// ->make em red!
if( (nil != self.fileObj.vtInfo) &&
(0 != [self.fileObj.vtInfo[VT_RESULTS_POSITIVES] unsignedIntegerValue]) )
if( (nil != self.binary.vtInfo) &&
(0 != [self.binary.vtInfo[VT_RESULTS_POSITIVES] unsignedIntegerValue]) )
{
//set color (light red)
color = [NSColor colorWithCalibratedRed:(255/255.0f) green:(1.0/255.0f) blue:(1.0/255.0f) alpha:0.5];
@@ -94,8 +94,8 @@
//flagged files
// ->make em red!
if( (nil != self.fileObj.vtInfo) &&
(0 != [self.fileObj.vtInfo[VT_RESULTS_POSITIVES] unsignedIntegerValue]) )
if( (nil != self.binary.vtInfo) &&
(0 != [self.binary.vtInfo[VT_RESULTS_POSITIVES] unsignedIntegerValue]) )
{
//set color (light red)
color = [NSColor redColor];
@@ -126,8 +126,8 @@
//flagged files
// ->make em red!
if( (nil != self.fileObj.vtInfo) &&
(0 != [self.fileObj.vtInfo[VT_RESULTS_POSITIVES] unsignedIntegerValue]) )
if( (nil != self.binary.vtInfo) &&
(0 != [self.binary.vtInfo[VT_RESULTS_POSITIVES] unsignedIntegerValue]) )
{
//set color (lightish red)
color = [NSColor colorWithCalibratedRed:(255/255.0f) green:(1.0/255.0f) blue:(1.0/255.0f) alpha:0.66];
@@ -162,8 +162,8 @@
{
//flagged files
// ->make em red!
if( (nil != self.fileObj.vtInfo) &&
(0 != [self.fileObj.vtInfo[VT_RESULTS_POSITIVES] unsignedIntegerValue]) )
if( (nil != self.binary.vtInfo) &&
(0 != [self.binary.vtInfo[VT_RESULTS_POSITIVES] unsignedIntegerValue]) )
{
//set color (lightish red)
color = [NSColor colorWithCalibratedRed:(255/255.0f) green:(1.0/255.0f) blue:(1.0/255.0f) alpha:0.66];
@@ -182,8 +182,8 @@
{
//flagged files
// ->make em red!
if( (nil != self.fileObj.vtInfo) &&
(0 != [self.fileObj.vtInfo[VT_RESULTS_POSITIVES] unsignedIntegerValue]) )
if( (nil != self.binary.vtInfo) &&
(0 != [self.binary.vtInfo[VT_RESULTS_POSITIVES] unsignedIntegerValue]) )
{
//set color (light red)
color = [NSColor redColor];