Fixed layout issues in Group inspector

Added key-file generator fixes #25 #76
Improvements on the context menu toolbar button to add templates entries
This commit is contained in:
michael starke
2013-08-13 20:50:42 +02:00
parent 5254ce0fe4
commit e0f2351c80
19 changed files with 806 additions and 372 deletions

View File

@@ -0,0 +1,45 @@
//
// MPSegmentedContextCell.m
// MacPass
//
// Created by Michael Starke on 13.08.13.
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
//
#import "MPSegmentedContextCell.h"
@implementation MPSegmentedContextCell
- (id)initWithCoder:(NSCoder *)aDecoder {
self = [super initWithCoder:aDecoder];
if(self) {
_contextMenuAction = NULL;
_contextMenuTarget = nil;
}
return self;
}
- (id)init {
self = [super init];
if(self) {
_contextMenuAction = NULL;
_contextMenuTarget = nil;
}
return self;
}
- (SEL)action {
if([self selectedSegment] == 1) {
return self.contextMenuAction;
}
return [super action];
}
- (id)target {
if([self selectedSegment] == 1) {
return self.contextMenuTarget;
}
return [super target];
}
@end