Removed Search form toolbar and added field to search bar. Searching is broken for now.

Added rudimentary add group/entry functionality
This commit is contained in:
michael starke
2013-03-10 03:12:34 +01:00
parent 816fb9f29e
commit ff7e8aaadd
15 changed files with 289 additions and 379 deletions

View File

@@ -129,4 +129,18 @@ NSString *const MPDidLoadDatabaseNotification = @"DidLoadDataBaseNotification";
return [[[KdbPassword alloc] initWithPassword:self.password passwordEncoding:NSUTF8StringEncoding keyFile:[self.key path]] autorelease];
}
- (KdbEntry *)createEntry:(KdbGroup *)parent {
KdbEntry *newEntry = [self.tree createEntry:parent];
newEntry.title = NSLocalizedString(@"DEFAULT_ENTRY_TITLE", @"Title for a newly created entry");
[parent addEntry:newEntry];
return newEntry;
}
- (KdbGroup *)createGroup:(KdbGroup *)parent {
KdbGroup *newGroup = [self.tree createGroup:parent];
newGroup.name = NSLocalizedString(@"DEFAULT_GROUP_NAME", @"Title for a newly created group");
[parent addGroup:newGroup];
return newGroup;
}
@end