Moved defaults cleanup for key file from document to app delegate.

Added clear button to settings to remove any keys stored
This commit is contained in:
michael starke
2014-02-12 20:51:36 +01:00
parent b82bc8c9e9
commit 422d74ee5c
6 changed files with 115 additions and 63 deletions

View File

@@ -23,8 +23,6 @@
#import <Cocoa/Cocoa.h>
#import "KPKVersion.h"
APPKIT_EXTERN NSString *const MPDocumentDidChangeStoredKeyFilesSettings;
APPKIT_EXTERN NSString *const MPDocumentDidAddGroupNotification;
APPKIT_EXTERN NSString *const MPDocumentDidRevertNotifiation;
@@ -135,8 +133,19 @@ APPKIT_EXTERN NSString *const MPDocumentGroupKey;
- (void)deleteGroup:(KPKGroup *)group;
- (void)deleteEntry:(KPKEntry *)entry;
#pragma mark Actions
/**
* Empties the Trash group. Removing all Groups and Entries inside. This aciton is not undoable
* @param sender sender
*/
- (IBAction)emptyTrash:(id)sender;
/**
* Creates an Entry for a template. We assume the sender is an item, that contains a UUID as representedObject.
*
* @param sender sender, that should respond to representedObject and return an NSUUID for the template to use
*/
- (IBAction)createEntryFromTemplate:(id)sender;
@end
@interface MPDocument (Attachments)