From ccd9c9cfa979a7a74c749e84ee7e22f2acd9dd84 Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Sun, 30 Jun 2013 13:40:18 +0200 Subject: [PATCH] Fixed issue that did not set the correct document version in MPDocument Reverted undoable settings for Database Updated to latest HNHUi --- HNHUi | 2 +- MacPass.xcodeproj/project.pbxproj | 18 +- MacPass/DocumentSettingsWindow.xib | 904 +++++++++++++------ MacPass/DocumentWindow.xib | 25 +- MacPass/EntryView.xib | 125 +-- MacPass/MPDocument.m | 3 +- MacPass/MPDocumentSettingsWindowController.h | 17 +- MacPass/MPDocumentSettingsWindowController.m | 18 +- MacPass/MPDocumentWindowController.h | 1 + MacPass/MPDocumentWindowController.m | 1 + MacPass/MPKeyfilePathControlDelegate.m | 1 - MacPass/MacPass-Info.plist | 2 +- 12 files changed, 681 insertions(+), 436 deletions(-) diff --git a/HNHUi b/HNHUi index 573b1d94..1db4cfaa 160000 --- a/HNHUi +++ b/HNHUi @@ -1 +1 @@ -Subproject commit 573b1d94098457dd01a78bf03e2a2d6489bf570a +Subproject commit 1db4cfaa5a2b72257ad23697ec33b18ebc0d8440 diff --git a/MacPass.xcodeproj/project.pbxproj b/MacPass.xcodeproj/project.pbxproj index a85a7da9..0af2ba15 100644 --- a/MacPass.xcodeproj/project.pbxproj +++ b/MacPass.xcodeproj/project.pbxproj @@ -10,6 +10,8 @@ 4C01C23F1764D2980016D5D0 /* KdbEntry+Undo.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C01C23E1764D2980016D5D0 /* KdbEntry+Undo.m */; }; 4C01C2421764D8980016D5D0 /* MPContextMenuHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C01C2411764D8980016D5D0 /* MPContextMenuHelper.m */; }; 4C01C245176500C40016D5D0 /* HNHLevelIndicatorCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C01C244176500C40016D5D0 /* HNHLevelIndicatorCell.m */; }; + 4C0D9B37177F84D700D0857C /* HNHSecureTextView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C0D9B36177F84D700D0857C /* HNHSecureTextView.m */; }; + 4C0D9B3A177F867100D0857C /* HNHSecureLayoutManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C0D9B39177F867100D0857C /* HNHSecureLayoutManager.m */; }; 4C1DDCDD1711ECEB00C98DA3 /* PasswordCreatorWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4C1DDCDC1711ECEB00C98DA3 /* PasswordCreatorWindow.xib */; }; 4C22040D1746ED160054C916 /* KdbGroup+Undo.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C22040C1746ED160054C916 /* KdbGroup+Undo.m */; }; 4C245B76176E1E3D0086100E /* DDData.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C245A6A176E1E3C0086100E /* DDData.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; @@ -50,7 +52,6 @@ 4C2E381F16D11FF900037A9D /* 05_LanguagesTemplate.pdf in Resources */ = {isa = PBXBuildFile; fileRef = 4C2E381C16D11FF900037A9D /* 05_LanguagesTemplate.pdf */; }; 4C2E382316D1421B00037A9D /* MPIconHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C2E382216D1421B00037A9D /* MPIconHelper.m */; }; 4C2E382616D1470200037A9D /* MPViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C2E382516D1470200037A9D /* MPViewController.m */; }; - 4C36E5B1177CD38C00152132 /* Kdb4Tree+Undo.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C36E5B0177CD38C00152132 /* Kdb4Tree+Undo.m */; }; 4C36E5B4177CD4FB00152132 /* Kdb4Tree+KVOAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C36E5B3177CD4FB00152132 /* Kdb4Tree+KVOAdditions.m */; }; 4C37A6731769393300AD0A40 /* HNHTableHeaderCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C37A6721769393300AD0A40 /* HNHTableHeaderCell.m */; }; 4C37A84015B8B474005EF8EE /* MPOutlineDataSource.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C37A83F15B8B474005EF8EE /* MPOutlineDataSource.m */; }; @@ -193,6 +194,10 @@ 4C01C2411764D8980016D5D0 /* MPContextMenuHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPContextMenuHelper.m; sourceTree = ""; }; 4C01C243176500C40016D5D0 /* HNHLevelIndicatorCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HNHLevelIndicatorCell.h; sourceTree = ""; }; 4C01C244176500C40016D5D0 /* HNHLevelIndicatorCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HNHLevelIndicatorCell.m; sourceTree = ""; }; + 4C0D9B35177F84D700D0857C /* HNHSecureTextView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HNHSecureTextView.h; sourceTree = ""; }; + 4C0D9B36177F84D700D0857C /* HNHSecureTextView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HNHSecureTextView.m; sourceTree = ""; }; + 4C0D9B38177F867100D0857C /* HNHSecureLayoutManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HNHSecureLayoutManager.h; sourceTree = ""; }; + 4C0D9B39177F867100D0857C /* HNHSecureLayoutManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HNHSecureLayoutManager.m; sourceTree = ""; }; 4C1DDCDC1711ECEB00C98DA3 /* PasswordCreatorWindow.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = PasswordCreatorWindow.xib; sourceTree = ""; }; 4C22040B1746ED160054C916 /* KdbGroup+Undo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "KdbGroup+Undo.h"; sourceTree = ""; }; 4C22040C1746ED160054C916 /* KdbGroup+Undo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "KdbGroup+Undo.m"; sourceTree = ""; }; @@ -270,8 +275,6 @@ 4C2E382216D1421B00037A9D /* MPIconHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPIconHelper.m; sourceTree = ""; }; 4C2E382416D1470200037A9D /* MPViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPViewController.h; sourceTree = ""; }; 4C2E382516D1470200037A9D /* MPViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPViewController.m; sourceTree = ""; }; - 4C36E5AF177CD38C00152132 /* Kdb4Tree+Undo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Kdb4Tree+Undo.h"; sourceTree = ""; }; - 4C36E5B0177CD38C00152132 /* Kdb4Tree+Undo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "Kdb4Tree+Undo.m"; sourceTree = ""; }; 4C36E5B2177CD4FB00152132 /* Kdb4Tree+KVOAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Kdb4Tree+KVOAdditions.h"; sourceTree = ""; }; 4C36E5B3177CD4FB00152132 /* Kdb4Tree+KVOAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "Kdb4Tree+KVOAdditions.m"; sourceTree = ""; }; 4C37A6711769393300AD0A40 /* HNHTableHeaderCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HNHTableHeaderCell.h; sourceTree = ""; }; @@ -753,8 +756,6 @@ 4C01C23E1764D2980016D5D0 /* KdbEntry+Undo.m */, 4C22040B1746ED160054C916 /* KdbGroup+Undo.h */, 4C22040C1746ED160054C916 /* KdbGroup+Undo.m */, - 4C36E5AF177CD38C00152132 /* Kdb4Tree+Undo.h */, - 4C36E5B0177CD38C00152132 /* Kdb4Tree+Undo.m */, 4C3E1CBE177DEFB3003BD9BD /* StringField+Undo.h */, 4C3E1CBF177DEFB3003BD9BD /* StringField+Undo.m */, 4C4A101017629DA900BBF2CA /* KdbGroup+KVOAdditions.h */, @@ -1143,6 +1144,10 @@ 4CF78059176E6D5F0032EE71 /* HNHTableRowView.m */, 4C52A242177D7B9F0000D88F /* HNHScrollView.h */, 4C52A243177D7B9F0000D88F /* HNHScrollView.m */, + 4C0D9B35177F84D700D0857C /* HNHSecureTextView.h */, + 4C0D9B36177F84D700D0857C /* HNHSecureTextView.m */, + 4C0D9B38177F867100D0857C /* HNHSecureLayoutManager.h */, + 4C0D9B39177F867100D0857C /* HNHSecureLayoutManager.m */, ); path = HNHUi; sourceTree = ""; @@ -1462,12 +1467,13 @@ 4CD5D705177A5F3300100649 /* MPDocumentSettingsWindowController.m in Sources */, 4C5EC302177B700D00DA955B /* MPRootAdapter.m in Sources */, 4C74DD07177BD1640034A9DB /* MPCustomFieldView.m in Sources */, - 4C36E5B1177CD38C00152132 /* Kdb4Tree+Undo.m in Sources */, 4C36E5B4177CD4FB00152132 /* Kdb4Tree+KVOAdditions.m in Sources */, 4C4FCE15177CFE6B00BBF7AE /* MPCustomFieldTableCellView.m in Sources */, 4C4FCE18177D03D700BBF7AE /* Kdb4Entry+KVOAdditions.m in Sources */, 4C52A244177D7B9F0000D88F /* HNHScrollView.m in Sources */, 4C3E1CC0177DEFB3003BD9BD /* StringField+Undo.m in Sources */, + 4C0D9B37177F84D700D0857C /* HNHSecureTextView.m in Sources */, + 4C0D9B3A177F867100D0857C /* HNHSecureLayoutManager.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/MacPass/DocumentSettingsWindow.xib b/MacPass/DocumentSettingsWindow.xib index ba46db5a..c6469739 100644 --- a/MacPass/DocumentSettingsWindow.xib +++ b/MacPass/DocumentSettingsWindow.xib @@ -69,6 +69,7 @@ {{378, 13}, {75, 32}} + _NS:9 YES @@ -97,7 +98,7 @@ {{13, 41}, {441, 246}} - + _NS:9 @@ -148,7 +149,7 @@ 268 {{50, 121}, {81, 17}} - + _NS:1535 YES @@ -209,7 +210,7 @@ 2322 {208, 121} - + _NS:13 @@ -324,7 +325,7 @@ {{136, 17}, {210, 123}} - + _NS:9 133138 @@ -345,14 +346,15 @@ - + 256 268 - {{69, 119}, {68, 17}} + {{69, 130}, {68, 17}} + _NS:1535 YES @@ -371,9 +373,10 @@ 268 - {{142, 117}, {164, 22}} + {{142, 128}, {164, 22}} - + + _NS:9 YES @@ -396,63 +399,38 @@ Apple URL pasteboard type NSFilenamesPboardType - {{139, 88}, {170, 22}} + {{139, 67}, {170, 22}} - + + _NS:9 YES 337641473 131072 - - - file://localhost/Applications/ - - + LucidaGrande 11 3100 _NS:9 - - - 67108928 - 132096 - Leopard - - - - - - - file://localhost// - - - - 67108928 - 132096 - Applications - - - - - - - file://localhost/Applications - - - + 2 + + xml + key + NO 268 - {{86, 92}, {51, 17}} + {{86, 71}, {51, 17}} + _NS:1535 YES @@ -468,8 +446,82 @@ NO + + + 268 + {{142, 44}, {164, 19}} + + + + _NS:9 + YES + + -2080374784 + 134217728 + Generate Key + + LucidaGrande + 12 + 16 + + _NS:9 + + -2038153216 + 164 + + + 400 + 75 + + NO + + + + 268 + {{142, 96}, {164, 22}} + + + + _NS:9 + YES + + -1804599231 + 272630784 + + + _NS:9 + + YES + + + + NO + + + + 268 + {{22, 98}, {115, 17}} + + + + _NS:1535 + YES + + 68157504 + 272630784 + Repeat Password: + + _NS:1535 + + + + + NO + {{10, 33}, {421, 200}} + + Protection @@ -595,7 +647,7 @@ 268 {{138, 38}, {107, 18}} - + _NS:9 YES @@ -626,7 +678,7 @@ - + 256 @@ -634,7 +686,6 @@ 268 {{15, 154}, {149, 18}} - _NS:9 YES @@ -661,8 +712,7 @@ 268 {{15, 55}, {138, 18}} - - + _NS:9 YES @@ -688,8 +738,7 @@ 268 {{43, 35}, {187, 18}} - - + _NS:9 YES @@ -715,7 +764,6 @@ 268 {{42, 131}, {94, 17}} - _NS:1535 YES @@ -736,7 +784,6 @@ 268 {{42, 106}, {142, 17}} - _NS:1535 YES @@ -757,7 +804,6 @@ 268 {{187, 101}, {122, 26}} - _NS:9 YES @@ -833,7 +879,6 @@ 268 {{189, 129}, {96, 22}} - _NS:9 YES @@ -855,7 +900,6 @@ 268 {{290, 126}, {19, 27}} - _NS:1099 YES @@ -875,7 +919,7 @@ 268 {{187, 54}, {122, 26}} - + _NS:9 YES @@ -941,8 +985,6 @@ {{10, 33}, {421, 200}} - - Advanced @@ -950,13 +992,13 @@ - + 0 YES YES - + @@ -965,7 +1007,7 @@ - {{0, 0}, {2560, 1418}} + {{0, 0}, {1920, 1058}} {10000000000000, 10000000000000} YES @@ -980,14 +1022,6 @@ 265 - - - saveChanges: - - - - 296 - databaseNameTextField @@ -1060,6 +1094,46 @@ 677 + + + useRecycleBinCheckButton + + + + 688 + + + + emptyRecycleBinOnQuitCheckButton + + + + 689 + + + + selectRecycleBinGroupPopUpButton + + + + 690 + + + + sectionTabView + + + + 699 + + + + close: + + + + 707 + @@ -1195,8 +1269,8 @@ 29 3 - + @@ -1321,6 +1395,22 @@ 24 3 + + + 3 + 0 + + 3 + 1 + + 30 + + 1000 + + 3 + 9 + 3 + 5 @@ -1337,22 +1427,6 @@ 24 3 - - - 3 - 0 - - 3 - 1 - - 30 - - 1000 - - 9 - 40 - 3 - 3 @@ -2007,11 +2081,6 @@ - - 434 - - - 457 @@ -2288,11 +2357,6 @@ - - 591 - - - 593 @@ -2397,6 +2461,54 @@ 620 + + + 3 + 0 + + 4 + 1 + + 8 + + 1000 + + 6 + 24 + 3 + + + + 5 + 0 + + 5 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 6 + 0 + + 6 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + 5 @@ -2413,8 +2525,72 @@ 24 3 - + + 3 + 0 + + 4 + 1 + + 8 + + 1000 + + 6 + 24 + 3 + + + + 5 + 0 + + 6 + 1 + + 8 + + 1000 + + 6 + 24 + 3 + + + + 10 + 0 + + 10 + 1 + + -7 + + 1000 + + 5 + 22 + 2 + + + + 3 + 0 + + 4 + 1 + + 10 + + 1000 + + 6 + 24 + 3 + + + 6 0 @@ -2429,27 +2605,27 @@ 24 2 - - - 3 + + + 6 0 - - 4 + + 6 1 - - 8 + + 0.0 1000 6 24 - 3 + 2 - - + + 5 0 - + 5 1 @@ -2461,23 +2637,7 @@ 24 2 - - - 3 - 0 - - 3 - 1 - - 61 - - 1000 - - 3 - 9 - 3 - - + 5 0 @@ -2493,11 +2653,59 @@ 24 3 - + + + 5 + 0 + + 5 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + - 11 + 3 0 + 3 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 5 + 0 + + 5 + 1 + + 25 + + 1000 + + 3 + 9 + 3 + + + + 11 + 0 + 11 1 @@ -2509,7 +2717,7 @@ 24 2 - + 11 0 @@ -2525,26 +2733,13 @@ 24 2 - - - 5 - 0 - - 5 - 1 - - 72 - - 1000 - - 3 - 9 - 3 - - + + + + @@ -2590,26 +2785,6 @@ - - 634 - - - - - 635 - - - - - 636 - - - - - 637 - - - 638 @@ -2623,26 +2798,11 @@ - - 646 - - - - - 647 - - - 648 - - 649 - - - 650 @@ -2656,76 +2816,6 @@ - - 652 - - - - - 653 - - - - - 556 - - - - - 657 - - - - - 665 - - - - - - - - - - 666 - - - - - 667 - - - - - 668 - - - - - 671 - - - - - 672 - - - - - 673 - - - - - 674 - - - - - 675 - - - 678 @@ -2782,6 +2872,200 @@ + + 708 + + + + + 556 + + + + + 710 + + + + + 657 + + + + + 665 + + + + + + + + + + 675 + + + + + 674 + + + + + 673 + + + + + 672 + + + + + 671 + + + + + 668 + + + + + 667 + + + + + 666 + + + + + 742 + + + + + + + + 744 + + + + + 748 + + + + + 749 + + + + + 751 + + + + + 752 + + + + + 754 + + + + + 761 + + + + + 762 + + + + + 764 + + + + + 765 + + + + + + + + 766 + + + + + 769 + + + + + 770 + + + + + 771 + + + + + 774 + + + + + 775 + + + + + 776 + + + + + 731 + + + + + + + + 732 + + + + + 777 + + + + + 733 + + + + + 735 + + + @@ -2820,12 +3104,12 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - + - + @@ -2875,7 +3159,6 @@ 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 @@ -2938,7 +3221,6 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin @@ -2955,16 +3237,24 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - - - + + - - + + + + + + + + + + + + + - - com.apple.InterfaceBuilder.CocoaPlugin @@ -2975,23 +3265,17 @@ com.apple.InterfaceBuilder.CocoaPlugin + HNHRoundedSecureTextFieldCell 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 + HNHRoundedSecureTextFieldCell com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -3013,32 +3297,67 @@ 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 + HNHRoundedSecureTextFieldCell + 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 - 687 + 784 + + HNHRoundedSecureTextFieldCell + HNHRoundedTextFieldCell + + IBProjectSource + ./Classes/HNHRoundedSecureTextFieldCell.h + + + + HNHRoundedTextFieldCell + NSTextFieldCell + + IBProjectSource + ./Classes/HNHRoundedTextFieldCell.h + + MPDocumentSettingsWindowController NSWindowController - - saveChanges: - id - - - saveChanges: - - saveChanges: - id - - NSTextView NSTextField + NSButton NSPathControl NSTextField NSButton @@ -3046,6 +3365,9 @@ NSButton NSButton NSButton + NSTabView + NSPopUpButton + NSButton @@ -3056,6 +3378,10 @@ databaseNameTextField NSTextField + + emptyRecycleBinOnQuitCheckButton + NSButton + keyfilePathControl NSPathControl @@ -3084,6 +3410,18 @@ protectUserNameCheckButton NSButton + + sectionTabView + NSTabView + + + selectRecycleBinGroupPopUpButton + NSPopUpButton + + + useRecycleBinCheckButton + NSButton + IBProjectSource diff --git a/MacPass/DocumentWindow.xib b/MacPass/DocumentWindow.xib index c32b65b2..416480f5 100644 --- a/MacPass/DocumentWindow.xib +++ b/MacPass/DocumentWindow.xib @@ -56,12 +56,10 @@ YES - + 268 {560, 194} - - _NS:9 YES 2 @@ -151,24 +149,27 @@ - 732 + 743 MPDocumentWindowController NSWindowController - - editPassword: - id - - - editPassword: - + + id + id + + + editPassword: id - + + showDocumentSettings: + id + + splitView NSSplitView diff --git a/MacPass/EntryView.xib b/MacPass/EntryView.xib index 40085bd9..704075aa 100644 --- a/MacPass/EntryView.xib +++ b/MacPass/EntryView.xib @@ -57,7 +57,7 @@ 268 {{7, 5}, {32, 19}} - + _NS:9 YES @@ -87,7 +87,6 @@ {684, 30} - _NS:9 HNHGradientView @@ -106,8 +105,7 @@ {684, 548} - - + _NS:13 YES NO @@ -117,7 +115,6 @@ 256 {684, 17} - @@ -330,7 +327,6 @@ {{0, 17}, {684, 548}} - _NS:11 @@ -342,7 +338,6 @@ -2147483392 {{224, 17}, {15, 102}} - _NS:58 NO @@ -355,7 +350,6 @@ -2147483392 {{0, 310}, {480, 16}} - _NS:60 NO @@ -372,7 +366,6 @@ {684, 17} - @@ -381,8 +374,7 @@ {{0, 30}, {684, 565}} - - + _NS:9 133680 @@ -397,7 +389,6 @@ {684, 594} - _NS:9 NSView @@ -1574,7 +1565,7 @@ - 774 + 790 @@ -1734,117 +1725,15 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin - 778 - - - - - HNHGradientView - NSView - - IBProjectSource - ./Classes/HNHGradientView.h - - - - MPEntryViewController - MPViewController - - NSButton - HNHGradientView - NSTableView - NSView - NSButton - NSTextField - NSSearchField - NSButton - NSButton - NSButton - NSLayoutConstraint - - - - addEntryButton - NSButton - - - bottomBar - HNHGradientView - - - entryTable - NSTableView - - - filterBar - NSView - - - filterDoneButton - NSButton - - - filterLabelTextField - NSTextField - - - filterSearchField - NSSearchField - - - filterTitleButton - NSButton - - - filterURLButton - NSButton - - - filterUsernameButton - NSButton - - - tableToTop - NSLayoutConstraint - - - - IBProjectSource - ./Classes/MPEntryViewController.h - - - - MPTableView - NSTableView - - IBProjectSource - ./Classes/MPTableView.h - - - - MPViewController - NSViewController - - IBProjectSource - ./Classes/MPViewController.h - - - - NSLayoutConstraint - NSObject - - IBProjectSource - ./Classes/NSLayoutConstraint.h - - - + 801 + 0 IBCocoaFramework YES diff --git a/MacPass/MPDocument.m b/MacPass/MPDocument.m index 79678129..586e1bf0 100644 --- a/MacPass/MPDocument.m +++ b/MacPass/MPDocument.m @@ -72,7 +72,8 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey"; _locked = NO; _readOnly = NO; _rootAdapter = [[MPRootAdapter alloc] init]; - switch(version) { + _version = version; + switch(_version) { case MPDatabaseVersion3: self.tree = [Kdb3Tree templateTree]; break; diff --git a/MacPass/MPDocumentSettingsWindowController.h b/MacPass/MPDocumentSettingsWindowController.h index d6d6c269..fe44a50a 100644 --- a/MacPass/MPDocumentSettingsWindowController.h +++ b/MacPass/MPDocumentSettingsWindowController.h @@ -12,22 +12,31 @@ @interface MPDocumentSettingsWindowController : NSWindowController -/* General */ + +@property (assign) IBOutlet NSTabView *sectionTabView; + +/* General Tab */ @property (assign) IBOutlet NSTextField *databaseNameTextField; @property (assign) IBOutlet NSTextView *databaseDescriptionTextView; /* Protection */ @property (assign) IBOutlet NSTextField *passwordTextField; @property (assign) IBOutlet NSPathControl *keyfilePathControl; -/* Display */ +/* Display Tab */ @property (assign) IBOutlet NSButton *protectTitleCheckButton; @property (assign) IBOutlet NSButton *protectUserNameCheckButton; @property (assign) IBOutlet NSButton *protectPasswortCheckButton; @property (assign) IBOutlet NSButton *protectURLCheckButton; @property (assign) IBOutlet NSButton *protectNotesCheckButton; + +/* Advanced Tab*/ +@property (assign) IBOutlet NSButton *useRecycleBinCheckButton; +@property (assign) IBOutlet NSButton *emptyRecycleBinOnQuitCheckButton; +@property (assign) IBOutlet NSPopUpButton *selectRecycleBinGroupPopUpButton; + + + - (id)initWithDocument:(MPDocument *)document; -- (IBAction)saveChanges:(id)sender; - @end diff --git a/MacPass/MPDocumentSettingsWindowController.m b/MacPass/MPDocumentSettingsWindowController.m index abce5e6d..11c4bb93 100644 --- a/MacPass/MPDocumentSettingsWindowController.m +++ b/MacPass/MPDocumentSettingsWindowController.m @@ -8,9 +8,9 @@ #import "MPDocumentSettingsWindowController.h" #import "MPDocument.h" +#import "MPDocumentWindowController.h" #import "MPDatabaseVersion.h" #import "Kdb4Node.h" -#import "Kdb4Tree+Undo.h" @interface MPDocumentSettingsWindowController () { MPDocument *_document; @@ -47,22 +47,22 @@ } } -- (void)saveChanges:(id)sender { +- (IBAction)close:(id)sender { [NSApp endSheet:[self window]]; [[self window] orderOut:nil]; } - (void)_setupDatabase:(Kdb4Tree *)tree { - [self.databaseNameTextField bind:NSValueBinding toObject:tree withKeyPath:MPTree4DatabaseNameUndoableKey options:nil]; - [self.databaseDescriptionTextView bind:NSValueBinding toObject:tree withKeyPath:MPTree4DatabaseDescriptionUndoableKey options:nil]; + [self.databaseNameTextField bind:NSValueBinding toObject:tree withKeyPath:@"databaseName" options:nil]; + [self.databaseDescriptionTextView bind:NSValueBinding toObject:tree withKeyPath:@"databaseDescription" options:nil]; } - (void)_setupProtectionTab:(Kdb4Tree *)tree { - [self.protectNotesCheckButton bind:NSValueBinding toObject:tree withKeyPath:MPTree4ProtectNotesUndoableKey options:nil]; - [self.protectPasswortCheckButton bind:NSValueBinding toObject:tree withKeyPath:MPTree4ProtectPasswordUndoableKey options:nil]; - [self.protectTitleCheckButton bind:NSValueBinding toObject:tree withKeyPath:MPTree4ProtectTitleUndoableKey options:nil]; - [self.protectURLCheckButton bind:NSValueBinding toObject:tree withKeyPath:MPTree4ProtectUrlUndoableKey options:nil]; - [self.protectUserNameCheckButton bind:NSValueBinding toObject:tree withKeyPath:MPTree4ProtectUsernameUndoableKey options:nil]; + [self.protectNotesCheckButton bind:NSValueBinding toObject:tree withKeyPath:@"protectNotes" options:nil]; + [self.protectPasswortCheckButton bind:NSValueBinding toObject:tree withKeyPath:@"protectPassword" options:nil]; + [self.protectTitleCheckButton bind:NSValueBinding toObject:tree withKeyPath:@"protectTitle" options:nil]; + [self.protectURLCheckButton bind:NSValueBinding toObject:tree withKeyPath:@"protectUrl" options:nil]; + [self.protectUserNameCheckButton bind:NSValueBinding toObject:tree withKeyPath:@"protectUserName" options:nil]; } - (void)_setupHistoryTab:(Kdb4Tree *)tree { diff --git a/MacPass/MPDocumentWindowController.h b/MacPass/MPDocumentWindowController.h index 78e8622f..65d8f1e5 100644 --- a/MacPass/MPDocumentWindowController.h +++ b/MacPass/MPDocumentWindowController.h @@ -40,6 +40,7 @@ APPKIT_EXTERN NSString *const MPCurrentItemChangedNotification; - (void)performFindPanelAction:(id)sender; - (IBAction)editPassword:(id)sender; - (IBAction)showDocumentSettings:(id)sender; + - (void)lock:(id)sender; - (void)createGroup:(id)sender; diff --git a/MacPass/MPDocumentWindowController.m b/MacPass/MPDocumentWindowController.m index 5c67b0a9..7bfe739d 100644 --- a/MacPass/MPDocumentWindowController.m +++ b/MacPass/MPDocumentWindowController.m @@ -286,6 +286,7 @@ NSString *const MPCurrentItemChangedNotification = @"com.hicknhack.macpass.MPCur [_splitView addSubview:inspectorView]; removeInspector = YES; } + /* Maybe we should consider not double adding constraints */ NSDictionary *views = NSDictionaryOfVariableBindings(outlineView, inspectorView, entryView, _splitView); [self.splitView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[outlineView(>=150,<=250)]-1-[entryView(>=350)]-1-[inspectorView(>=200)]|" options:0 diff --git a/MacPass/MPKeyfilePathControlDelegate.m b/MacPass/MPKeyfilePathControlDelegate.m index 28f8de2b..a60ea68f 100644 --- a/MacPass/MPKeyfilePathControlDelegate.m +++ b/MacPass/MPKeyfilePathControlDelegate.m @@ -11,7 +11,6 @@ @implementation MPKeyfilePathControlDelegate - (NSDragOperation)pathControl:(NSPathControl *)pathControl validateDrop:(id)info { - NSLog(@"%@", [info draggingPasteboard]); return NSDragOperationNone; } diff --git a/MacPass/MacPass-Info.plist b/MacPass/MacPass-Info.plist index ddabc9f1..cff1a21f 100644 --- a/MacPass/MacPass-Info.plist +++ b/MacPass/MacPass-Info.plist @@ -48,7 +48,7 @@ CFBundleSignature ???? CFBundleVersion - 1560 + 1645 LSMinimumSystemVersion ${MACOSX_DEPLOYMENT_TARGET} NSHumanReadableCopyright