mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-25 14:49:30 +00:00
More work on Password creation
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#import "MPMainWindowController.h"
|
||||
#import "MPSettingsController.h"
|
||||
#import "MPDatabaseController.h"
|
||||
#import "MPPasswordCreatorViewController.h"
|
||||
#import "MPActionHelper.h"
|
||||
#import "MPSettingsHelper.h"
|
||||
#import "NSString+MPPasswordCreation.h"
|
||||
@@ -19,6 +20,7 @@
|
||||
|
||||
@property (retain, nonatomic) MPSettingsController *settingsController;
|
||||
@property (retain, nonatomic) MPMainWindowController *mainWindowController;
|
||||
@property (retain, nonatomic) MPPasswordCreatorViewController *passwordCreatorController;
|
||||
|
||||
- (IBAction)showPreferences:(id)sender;
|
||||
|
||||
@@ -39,6 +41,7 @@
|
||||
- (void)dealloc {
|
||||
[_settingsController release];
|
||||
[_mainWindowController release];
|
||||
[_passwordCreatorController release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
@@ -59,6 +62,17 @@
|
||||
[self.settingsController showSettings];
|
||||
}
|
||||
|
||||
- (void)showPasswordCreator:(id)sender {
|
||||
if(!self.passwordCreatorWindow) {
|
||||
[[NSBundle mainBundle] loadNibNamed:@"PasswordCreatorWindow"owner:self topLevelObjects:nil];
|
||||
}
|
||||
if(!self.passwordCreatorController) {
|
||||
self.passwordCreatorController = [[MPPasswordCreatorViewController alloc] init];
|
||||
}
|
||||
[self.passwordCreatorWindow setContentView:[self.passwordCreatorController view]];
|
||||
[self.passwordCreatorWindow makeKeyAndOrderFront:self.passwordCreatorWindow];
|
||||
}
|
||||
|
||||
- (NSArray *)contextMenuItemsWithItems:(MPContextMenuItemsFlags)flags {
|
||||
BOOL insertCreate = (0 != (flags & MPContextMenuCreate));
|
||||
BOOL insertDelete = (0 != (flags & MPContextMenuDelete));
|
||||
|
||||
Reference in New Issue
Block a user