diff --git a/HNHUi b/HNHUi index 99a6785a..8dce44b4 160000 --- a/HNHUi +++ b/HNHUi @@ -1 +1 @@ -Subproject commit 99a6785a37570a8cb0749bad4522bf69899f4f9c +Subproject commit 8dce44b4ad3015f7534d8972f2352a0d39c5731e diff --git a/MacPass/Base.lproj/PasswordEditView.xib b/MacPass/Base.lproj/PasswordEditView.xib deleted file mode 100644 index cd23cdcc..00000000 --- a/MacPass/Base.lproj/PasswordEditView.xib +++ /dev/null @@ -1,947 +0,0 @@ - - - - 1080 - 12E55 - 3084 - 1187.39 - 626.00 - - com.apple.InterfaceBuilder.CocoaPlugin - 3084 - - - IBNSLayoutConstraint - NSButton - NSButtonCell - NSCustomObject - NSCustomView - NSPathCell - NSPathControl - NSSecureTextField - NSSecureTextFieldCell - NSTextField - NSTextFieldCell - - - com.apple.InterfaceBuilder.CocoaPlugin - - - PluginDependencyRecalculationVersion - - - - - MPPasswordEditViewController - - - FirstResponder - - - NSApplication - - - - 268 - - - - 268 - {{99, 157}, {164, 17}} - - - - _NS:1535 - YES - - 68157504 - 272630784 - Change Password/Keyfile - - LucidaGrande - 13 - 1044 - - _NS:1535 - - - 6 - System - controlColor - - 3 - MC42NjY2NjY2NjY3AA - - - - 6 - System - controlTextColor - - 3 - MAA - - - - NO - - - - 268 - {{113, 13}, {82, 32}} - - - - _NS:9 - YES - - 67108864 - 134217728 - Cancel - - _NS:9 - - -2038284288 - 129 - - Gw - 200 - 25 - - NO - - - - 268 - - Apple URL pasteboard type - NSFilenamesPboardType - - {{83, 57}, {197, 22}} - - - - _NS:9 - YES - - 337641473 - 131072 - - LucidaGrande - 11 - 3100 - - _NS:9 - - - 2 - - - NO - - - - 268 - {{86, 86}, {191, 22}} - - - - _NS:9 - YES - - 342884416 - 272630848 - - - _NS:9 - - YES - - 6 - System - textBackgroundColor - - 3 - MQA - - - - 6 - System - textColor - - - - NSAllRomanInputSourcesLocaleIdentifier - - - NO - - - - 268 - {{17, 89}, {64, 17}} - - - - _NS:1535 - YES - - 68157504 - 272630784 - Password - - _NS:1535 - - - - - NO - - - - 268 - {{35, 62}, {46, 17}} - - - - _NS:1535 - YES - - 68157504 - 272630784 - Keyfile - - _NS:1535 - - - - - NO - - - - 268 - {{195, 13}, {88, 32}} - - - _NS:9 - {250, 250} - YES - - 67108864 - 134217728 - Change - - _NS:9 - - -2038284288 - 129 - - DQ - 200 - 25 - - NO - - - {363, 194} - - - - {751, 750} - NSView - - - - - - - view - - - - 52 - - - - passwordTextField - - - - 53 - - - - keyfilePathControl - - - - 54 - - - - _change: - - - - 55 - - - - _cancel: - - - - 56 - - - - - - 0 - - - - - - -2 - - - File's Owner - - - -1 - - - First Responder - - - -3 - - - Application - - - 2 - - - - - - - - - - 10 - 0 - - 10 - 1 - - 0.0 - - 1000 - - 9 - 40 - 2 - - - - 5 - 0 - - 6 - 1 - - 12 - - 1000 - - 6 - 24 - 3 - - - - 3 - 0 - - 4 - 1 - - 20 - - 1000 - - 9 - 40 - 3 - - - - 6 - 0 - - 6 - 1 - - 0.0 - - 1000 - - 6 - 24 - 2 - - - - 4 - 1 - - 4 - 1 - - 20 - - 1000 - - 9 - 40 - 3 - - - - 5 - 0 - - 6 - 1 - - 8 - - 1000 - - 6 - 24 - 3 - - - - 6 - 0 - - 6 - 1 - - 0.0 - - 1000 - - 6 - 24 - 2 - - - - 5 - 0 - - 5 - 1 - - 0.0 - - 1000 - - 6 - 24 - 2 - - - - 3 - 0 - - 4 - 1 - - 8 - - 1000 - - 9 - 40 - 3 - - - - 10 - 0 - - 10 - 1 - - 0.0 - - 1000 - - 9 - 40 - 2 - - - - 5 - 0 - - 6 - 1 - - 8 - - 1000 - - 9 - 40 - 3 - - - - 9 - 0 - - 9 - 1 - - 0.0 - - 1000 - - 9 - 40 - 2 - - - - 10 - 0 - - 10 - 1 - - 0.0 - - 1000 - - 6 - 24 - 2 - - - - 11 - 0 - - 11 - 1 - - 0.0 - - 1000 - - 6 - 24 - 2 - - - - 3 - 0 - - 3 - 1 - - 20 - - 1000 - - 8 - 29 - 3 - - - - 9 - 0 - - 9 - 1 - - 0.0 - - 1000 - - 6 - 24 - 2 - - - - 5 - 1 - - 5 - 1 - - 20 - - 1000 - - 9 - 40 - 3 - - - - - - - - 5 - - - - - - - - 6 - - - - - - - - 7 - - - - - - - - 8 - - - - - 7 - 0 - - 0 - 1 - - 191 - - 1000 - - 9 - 40 - 1 - - - - - - - 9 - - - - - - - - 10 - - - - - - - - 14 - - - - - 17 - - - - - 18 - - - - - 19 - - - - - 20 - - - - - 22 - - - - - 23 - - - - - 24 - - - - - 25 - - - - - 26 - - - - - 28 - - - - - 29 - - - - - 30 - - - - - 31 - - - - - 32 - - - - - 33 - - - - - 34 - - - - - 35 - - - - - 36 - - - - - 37 - - - - - 38 - - - - - 45 - - - - - - - - 46 - - - - - 48 - - - - - 49 - - - - - 59 - - - - - - - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - - - - - - - - - - - - - - - - - - - - - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - - - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - - - - - 59 - - - - - MPPasswordEditViewController - MPViewController - - id - id - - - - _cancel: - id - - - _change: - id - - - - NSPathControl - NSSecureTextField - - - - keyfilePathControl - NSPathControl - - - passwordTextField - NSSecureTextField - - - - IBProjectSource - ./Classes/MPPasswordEditViewController.h - - - - MPViewController - NSViewController - - IBProjectSource - ./Classes/MPViewController.h - - - - NSLayoutConstraint - NSObject - - IBProjectSource - ./Classes/NSLayoutConstraint.h - - - - - 0 - IBCocoaFramework - YES - 3 - YES - - diff --git a/MacPass/DocumentSettingsWindow.xib b/MacPass/DatabaseSettingsWindow.xib similarity index 100% rename from MacPass/DocumentSettingsWindow.xib rename to MacPass/DatabaseSettingsWindow.xib diff --git a/MacPass/MPDocumentSettingsWindowController.h b/MacPass/MPDatabaseSettingsWindowController.h similarity index 100% rename from MacPass/MPDocumentSettingsWindowController.h rename to MacPass/MPDatabaseSettingsWindowController.h diff --git a/MacPass/MPDocumentSettingsWindowController.m b/MacPass/MPDatabaseSettingsWindowController.m similarity index 100% rename from MacPass/MPDocumentSettingsWindowController.m rename to MacPass/MPDatabaseSettingsWindowController.m diff --git a/MacPass/MPFirstResonderNotification.h b/MacPass/MPFirstResonderNotification.h deleted file mode 100644 index 6c93f1f7..00000000 --- a/MacPass/MPFirstResonderNotification.h +++ /dev/null @@ -1,16 +0,0 @@ -// -// MPFirstResonderNotification.h -// MacPass -// -// Created by Michael Starke on 20.06.13. -// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved. -// - -#import - -@protocol MPFirstResonderNotification - -@required -- (BOOL)becomeFirstResponder; - -@end diff --git a/MacPass/MPPasswordEditViewController.h b/MacPass/MPPasswordEditViewController.h deleted file mode 100644 index 3954a89d..00000000 --- a/MacPass/MPPasswordEditViewController.h +++ /dev/null @@ -1,13 +0,0 @@ -// -// MPPasswordEditViewController.h -// MacPass -// -// Created by Michael Starke on 29.04.13. -// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved. -// - -#import "MPViewController.h" - -@interface MPPasswordEditViewController : MPViewController - -@end diff --git a/MacPass/MPPasswordEditViewController.m b/MacPass/MPPasswordEditViewController.m deleted file mode 100644 index f3ccbba8..00000000 --- a/MacPass/MPPasswordEditViewController.m +++ /dev/null @@ -1,67 +0,0 @@ -// -// MPPasswordEditViewController.m -// MacPass -// -// Created by Michael Starke on 29.04.13. -// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved. -// - -#import "MPPasswordEditViewController.h" -#import "MPKeyfilePathControlDelegate.h" -#import "MPDocumentWindowController.h" -#import "MPDocument.h" - -@interface MPPasswordEditViewController () -@property (weak) IBOutlet NSSecureTextField *passwordTextField; -@property (weak) IBOutlet NSPathControl *keyfilePathControl; -@property (strong) MPKeyfilePathControlDelegate *pathControlDelegate; - -- (IBAction)_change:(id)sender; -- (IBAction)_cancel:(id)sender; - -@end - -@implementation MPPasswordEditViewController - -- (id)init { - return [self initWithNibName:@"PasswordEditView" bundle:nil]; -} - -- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { - self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; - if(self) { - _pathControlDelegate = [[MPKeyfilePathControlDelegate alloc] init]; - } - return self; -} - - -- (NSResponder *)reconmendedFirstResponder { - return self.passwordTextField; -} - -- (void)didLoadView { - [self.keyfilePathControl setDelegate:self.pathControlDelegate]; -} - -- (IBAction)_change:(id)sender { - MPDocument *document = [[self windowController] document]; - if(document) { - document.key = [self.keyfilePathControl URL]; - NSString *password = [self.passwordTextField stringValue]; - if([password length] > 0) { - document.password = password; - } - else { - document.password = nil; - } - } - id mainWindowController = [[[self view] window] windowController]; - [mainWindowController showEntries]; -} - -- (IBAction)_cancel:(id)sender { - id mainWindowController = [[[self view] window] windowController]; - [mainWindowController showEntries]; -} -@end diff --git a/MacPass/MPPasswordStringFormatter.h b/MacPass/MPPasswordStringFormatter.h new file mode 100644 index 00000000..5cb8425a --- /dev/null +++ b/MacPass/MPPasswordStringFormatter.h @@ -0,0 +1,13 @@ +// +// MPPasswordStringFormatter.h +// MacPass +// +// Created by Michael Starke on 06.07.13. +// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved. +// + +#import + +@interface MPPasswordStringFormatter : NSFormatter + +@end diff --git a/MacPass/MPPasswordStringFormatter.m b/MacPass/MPPasswordStringFormatter.m new file mode 100644 index 00000000..758958ac --- /dev/null +++ b/MacPass/MPPasswordStringFormatter.m @@ -0,0 +1,13 @@ +// +// MPPasswordStringFormatter.m +// MacPass +// +// Created by Michael Starke on 06.07.13. +// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved. +// + +#import "MPPasswordStringFormatter.h" + +@implementation MPPasswordStringFormatter + +@end diff --git a/MacPass/MPResponderQuery.h b/MacPass/MPResponderQuery.h deleted file mode 100644 index 3308e4c3..00000000 --- a/MacPass/MPResponderQuery.h +++ /dev/null @@ -1,15 +0,0 @@ -// -// MPResponderQuery.h -// MacPass -// -// Created by Michael Starke on 11.06.13. -// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved. -// - -#import - -@protocol MPResponderQuery -@required -- (BOOL)containsFirstResponder; - -@end diff --git a/MacPass/UnprotectedWarningView.xib b/MacPass/UnprotectedWarningView.xib new file mode 100644 index 00000000..2a86a6fe --- /dev/null +++ b/MacPass/UnprotectedWarningView.xib @@ -0,0 +1,434 @@ + + + + 1080 + 12E55 + 3084 + 1187.39 + 626.00 + + com.apple.InterfaceBuilder.CocoaPlugin + 3084 + + + IBNSLayoutConstraint + NSCustomObject + NSCustomView + NSImageCell + NSImageView + NSTextField + NSTextFieldCell + + + com.apple.InterfaceBuilder.CocoaPlugin + + + PluginDependencyRecalculationVersion + + + + + MPDocument + + + FirstResponder + + + NSApplication + + + + 268 + + + + 268 + + Apple PDF pasteboard type + Apple PICT pasteboard type + Apple PNG pasteboard type + NSFilenamesPboardType + NeXT Encapsulated PostScript v1.2 pasteboard type + NeXT TIFF v4.0 pasteboard type + + {{36, 19}, {32, 32}} + + + + _NS:9 + YES + + 134217728 + 33554432 + + NSImage + 02_MessageBoxWarningTemplate + + _NS:9 + 0 + 3 + 0 + NO + + NO + YES + + + + 268 + {{73, 27}, {162, 17}} + + + + _NS:1535 + YES + + 68157504 + 272630784 + Database is unprotected! + + LucidaGrande + 13 + 1044 + + _NS:1535 + + + 6 + System + controlColor + + 3 + MC42NjY2NjY2NjY3AA + + + + 6 + System + controlTextColor + + 3 + MAA + + + + NO + + + {307, 71} + + + + NSView + + + + + + + warningView + + + + 24 + + + + warningViewImage + + + + 36 + + + + + + 0 + + + + + + -2 + + + File's Owner + + + -1 + + + First Responder + + + -3 + + + Application + + + 1 + + + + + + 5 + 0 + + 6 + 1 + + 8 + + 1000 + + 6 + 24 + 3 + + + + 9 + 0 + + 9 + 1 + + 0.0 + + 1000 + + 9 + 40 + 2 + + + + 3 + 0 + + 3 + 1 + + 20 + + 1000 + + 8 + 29 + 3 + + + + 10 + 0 + + 10 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 5 + 1 + + 5 + 1 + + 20 + + 1000 + + 9 + 40 + 3 + + + + + + + 2 + + + + + + + + 4 + + + + + 3 + + + + + 25 + + + + + + 8 + 0 + + 0 + 1 + + 32 + + 1000 + + 3 + 9 + 1 + + + + 7 + 0 + + 0 + 1 + + 32 + + 1000 + + 3 + 9 + 1 + + + + + + 26 + + + + + 35 + + + + + 38 + + + + + 39 + + + + + 41 + + + + + 42 + + + + + 43 + + + + + + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + + + + + + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + + + + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + + + + + 43 + + + + + MPDocument + NSDocument + + NSView + NSImageView + + + + warningView + NSView + + + warningViewImage + NSImageView + + + + IBProjectSource + ./Classes/MPDocument.h + + + + NSLayoutConstraint + NSObject + + IBProjectSource + ./Classes/NSLayoutConstraint.h + + + + + 0 + IBCocoaFramework + YES + 3 + + 02_MessageBoxWarningTemplate + {128, 128} + + YES + + diff --git a/MacPass/de.lproj/MainMenu.strings b/MacPass/de.lproj/MainMenu.strings index 525891f7..f31b45c9 100644 --- a/MacPass/de.lproj/MainMenu.strings +++ b/MacPass/de.lproj/MainMenu.strings @@ -132,7 +132,10 @@ "1181.title" = "Toggle Inspector"; /* Class = "NSMenuItem"; title = "Show Password Creator"; ObjectID = "1200"; */ -"1200.title" = "Passwortgenerator anzeigen…"; +"1200.title" = "Show Password Creator"; -/* Class = "NSMenuItem"; title = "Change Password…"; ObjectID = "1203"; */ -"1203.title" = "Hautpassword ändern…"; +/* Class = "NSMenuItem"; title = "Change Master Password…"; ObjectID = "1203"; */ +"1203.title" = "Change Master Password…"; + +/* Class = "NSMenuItem"; title = "Database Settings…"; ObjectID = "1231"; */ +"1231.title" = "Database Settings…"; diff --git a/MacPass/de.lproj/PasswordEditView.strings b/MacPass/de.lproj/PasswordEditView.strings deleted file mode 100644 index 475d34ef..00000000 --- a/MacPass/de.lproj/PasswordEditView.strings +++ /dev/null @@ -1,15 +0,0 @@ - -/* Class = "NSButtonCell"; title = "Change"; ObjectID = "32"; */ -"32.title" = "Password ändern"; - -/* Class = "NSTextFieldCell"; title = "Password"; ObjectID = "33"; */ -"33.title" = "Passwort"; - -/* Class = "NSTextFieldCell"; title = "Keyfile"; ObjectID = "37"; */ -"37.title" = "Schlüsseldatei"; - -/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "38"; */ -"38.title" = "Abbrechen"; - -/* Class = "NSTextFieldCell"; title = "Change Password/Keyfile"; ObjectID = "46"; */ -"46.title" = "Password/Schlüssel ändern!"; diff --git a/MacPass/en.lproj/MainMenu.strings b/MacPass/en.lproj/MainMenu.strings index 9214c828..f31b45c9 100644 --- a/MacPass/en.lproj/MainMenu.strings +++ b/MacPass/en.lproj/MainMenu.strings @@ -134,5 +134,8 @@ /* Class = "NSMenuItem"; title = "Show Password Creator"; ObjectID = "1200"; */ "1200.title" = "Show Password Creator"; -/* Class = "NSMenuItem"; title = "Change Password…"; ObjectID = "1203"; */ -"1203.title" = "Change Password…"; +/* Class = "NSMenuItem"; title = "Change Master Password…"; ObjectID = "1203"; */ +"1203.title" = "Change Master Password…"; + +/* Class = "NSMenuItem"; title = "Database Settings…"; ObjectID = "1231"; */ +"1231.title" = "Database Settings…"; diff --git a/MacPass/en.lproj/PasswordEditView.strings b/MacPass/en.lproj/PasswordEditView.strings deleted file mode 100644 index 6f8b6d28..00000000 --- a/MacPass/en.lproj/PasswordEditView.strings +++ /dev/null @@ -1,15 +0,0 @@ - -/* Class = "NSButtonCell"; title = "Change"; ObjectID = "32"; */ -"32.title" = "Change"; - -/* Class = "NSTextFieldCell"; title = "Password"; ObjectID = "33"; */ -"33.title" = "Password"; - -/* Class = "NSTextFieldCell"; title = "Keyfile"; ObjectID = "37"; */ -"37.title" = "Keyfile"; - -/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "38"; */ -"38.title" = "Cancel"; - -/* Class = "NSTextFieldCell"; title = "Change Password/Keyfile"; ObjectID = "46"; */ -"46.title" = "Change Password/Keyfile";