Fixed height of image views in outline view and entry table

Added sub to display expired entries (uses the flag not the date for testing)
This commit is contained in:
michael starke
2014-03-18 00:33:37 +01:00
parent 1d823af4b9
commit c165d02c38
6 changed files with 34 additions and 17 deletions

View File

@@ -17,7 +17,8 @@
}
if([[icons allKeys] containsObject:@(type)]) {
NSString *imageName = icons[@(type)];
return [[NSBundle mainBundle] imageForResource:imageName];
NSImage *image = [NSImage imageNamed:imageName];
return image;
}
return [NSImage imageNamed:NSImageNameActionTemplate];
}
@@ -83,7 +84,10 @@
@(MPIconHardDisk): @"99_HarddiskTemplate",
@(MPIconCreated): @"99_CreatedTemplate",
@(MPIconAddEntry): @"addEntryTemplate",
@(MPIconContextTriangle): @"contextTriangleTemplate"
@(MPIconContextTriangle): @"contextTriangleTemplate",
@(MPIconExpiredEntry): NSImageNameCaution,
@(MPIconExpiredGroup): NSImageNameCaution
};
});
return imageNames;