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

@@ -22,16 +22,25 @@
#import <Cocoa/Cocoa.h>
extern NSString *const MPDidChangeStoredKeyFilesSettings;
@interface MPAppDelegate : NSObject <NSApplicationDelegate, NSMenuDelegate>
@property (strong) IBOutlet NSWindow *passwordCreatorWindow;
@property (strong) IBOutlet NSWindow *welcomeWindow;
@property (weak) IBOutlet NSMenuItem *saveMenuItem;
@property (nonatomic, assign) BOOL isAllowedToStoreKeyFile;
- (IBAction)showPreferences:(id)sender;
- (IBAction)showPasswordCreator:(id)sender;
- (IBAction)createNewDatabase:(id)sender;
- (IBAction)openDatabase:(id)sender;
/**
* Clears the stored key files for any documents.
* @param sender sender of this action
*/
- (IBAction)clearRememberdKeyFiles:(id)sender;
- (NSString *)applicationName;
- (void)lockAllDocuments;