diff --git a/MacPass/EntryInspectorView.xib b/MacPass/EntryInspectorView.xib index efd0a6bf..0c2fc2f7 100644 --- a/MacPass/EntryInspectorView.xib +++ b/MacPass/EntryInspectorView.xib @@ -102,7 +102,6 @@ {293, 503} - _NS:9 @@ -114,7 +113,6 @@ {293, 503} - _NS:11 General @@ -589,7 +587,6 @@ {{20, 20}, {212, 77}} - _NS:9 YES @@ -724,7 +721,7 @@ {210, 258} - + _NS:13 @@ -844,7 +841,7 @@ {{20, 151}, {212, 260}} - + _NS:9 133138 @@ -1231,6 +1228,22 @@ 282 + + + expiresCheckButton + + + + 286 + + + + tagsTokenField + + + + 287 + imageView @@ -5066,7 +5079,7 @@ - 285 + 287 @@ -5151,11 +5164,41 @@ MPEntryInspectorViewController MPViewController + + id + id + id + id + id + + + + _popUpPasswordGenerator: + id + + + addAttachment: + id + + + addCustomField: + id + + + removeAttachment: + id + + + removeCustomField: + id + + NSTextField NSTableView NSTextField NSTableView + NSButton NSView NSButton NSSegmentedControl @@ -5184,6 +5227,10 @@ customFieldsTableView NSTableView + + expiresCheckButton + NSButton + generalView NSView diff --git a/MacPass/GroupInspectorView.xib b/MacPass/GroupInspectorView.xib index 2514bfc3..bab2884f 100644 --- a/MacPass/GroupInspectorView.xib +++ b/MacPass/GroupInspectorView.xib @@ -116,6 +116,7 @@ {{18, 61}, {222, 26}} + _NS:9 {249, 750} YES @@ -151,6 +152,7 @@ NSMenuMixedState _popUpItemAction: + -1 YES @@ -178,6 +180,7 @@ _popUpItemAction: + 1 @@ -222,6 +225,7 @@ _popUpItemAction: + -1 YES @@ -249,6 +253,7 @@ _popUpItemAction: + 1 @@ -377,7 +382,7 @@ {215, 257} - + _NS:13 @@ -503,7 +508,7 @@ {{20, 190}, {217, 259}} - + _NS:9 {750, 750} 133138 @@ -591,7 +596,7 @@ {255, 421} - + _NS:13 @@ -624,6 +629,7 @@ {{0, 405}, {255, 16}} + _NS:26 NO 1 @@ -635,7 +641,7 @@ {255, 421} - + _NS:9 133152 @@ -680,6 +686,30 @@ 46 + + + expiresCheckButton + + + + 283 + + + + searchPopupButton + + + + 284 + + + + autotypePopupButton + + + + 285 + @@ -1612,7 +1642,7 @@ - 282 + 285 @@ -1644,19 +1674,34 @@ MPGroupInspectorViewController MPViewController + NSPopUpButton NSView + NSButton NSTextView + NSPopUpButton HNHRoundedTextField + + autotypePopupButton + NSPopUpButton + contentView NSView + + expiresCheckButton + NSButton + notesTextView NSTextView + + searchPopupButton + NSPopUpButton + titleTextField HNHRoundedTextField diff --git a/MacPass/MPEntryInspectorViewController.h b/MacPass/MPEntryInspectorViewController.h index 041f5f83..03a3249b 100644 --- a/MacPass/MPEntryInspectorViewController.h +++ b/MacPass/MPEntryInspectorViewController.h @@ -31,6 +31,9 @@ @property (weak) IBOutlet NSTabView *tabView; @property (strong) IBOutlet NSView *generalView; +@property (weak) IBOutlet NSButton *expiresCheckButton; +@property (weak) IBOutlet NSTokenField *tagsTokenField; + - (void)setupBindings:(MPDocument *)document; @end diff --git a/MacPass/MPEntryViewController.m b/MacPass/MPEntryViewController.m index 2f2bc6ce..a37ad6f6 100644 --- a/MacPass/MPEntryViewController.m +++ b/MacPass/MPEntryViewController.m @@ -209,6 +209,12 @@ NSString *const _toggleFilterUsernameButton = @"SearchUsername"; #pragma mark NSTableViewDelgate +- (void)tableView:(NSTableView *)tableView didAddRowView:(NSTableRowView *)rowView forRow:(NSInteger)row { + /* + bind bakground color to entry color + */ +} + - (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row { KPKEntry *entry = [self.entryArrayController arrangedObjects][row]; BOOL isTitleColumn = [[tableColumn identifier] isEqualToString:MPEntryTableTitleColumnIdentifier]; diff --git a/MacPass/MPGroupInspectorViewController.h b/MacPass/MPGroupInspectorViewController.h index c6bb356d..b520f7fe 100644 --- a/MacPass/MPGroupInspectorViewController.h +++ b/MacPass/MPGroupInspectorViewController.h @@ -16,6 +16,11 @@ @property (weak) IBOutlet HNHRoundedTextField *titleTextField; @property (unsafe_unretained) IBOutlet NSTextView *notesTextView; +@property (weak) IBOutlet NSButton *expiresCheckButton; + +@property (weak) IBOutlet NSPopUpButton *searchPopupButton; +@property (weak) IBOutlet NSPopUpButton *autotypePopupButton; + - (void)setupBindings:(MPDocument *)document; @end diff --git a/MacPass/MPGroupInspectorViewController.m b/MacPass/MPGroupInspectorViewController.m index bb001cf6..bf9aa1d4 100644 --- a/MacPass/MPGroupInspectorViewController.m +++ b/MacPass/MPGroupInspectorViewController.m @@ -75,10 +75,17 @@ if(self.group) { [self.titleTextField bind:NSValueBinding toObject:self.group withKeyPath:@"name" options:nil]; [self.notesTextView bind:NSValueBinding toObject:self.group withKeyPath:@"notes" options:nil]; + [self.expiresCheckButton bind:NSValueBinding toObject:self.group.timeInfo withKeyPath:@"expires" options:nil]; + [self.autotypePopupButton bind:NSSelectedTagBinding toObject:self.group withKeyPath:@"isAutoTypeEnabled" options:nil]; + [self.searchPopupButton bind:NSSelectedTagBinding toObject:self.group withKeyPath:@"isSearchEnabled" options:nil]; } else { [self.titleTextField unbind:NSValueBinding]; [self.notesTextView unbind:NSValueBinding]; + + [self.expiresCheckButton unbind:NSValueBinding]; + [self.autotypePopupButton unbind:NSSelectedTagBinding]; + [self.searchPopupButton unbind:NSSelectedTagBinding]; } }