Added Template editing.

Creating with templates not supported yet.

Templates are listed in Context-Menu under the AddEntry Toolbar
Toolbar Button is missing an Arrow for now. Control-Size is not working correctly for now
Nested Template or Trash groups aren't considered, this is a bug!
Minor changes to the UI (Settings tabs now use common icons)
Added Workflow-Settings tab to extract all the custom action possible on entries. The copy or open on URL dbl-click setting will move over to this tab.
This commit is contained in:
michael starke
2013-07-30 20:37:59 +02:00
parent 80d9dfb1cb
commit 31f456929c
32 changed files with 1256 additions and 462 deletions

View File

@@ -21,7 +21,7 @@
#import "MPConstants.h"
#import "MPEntryTableDataSource.h"
#import "MPStringLengthValueTransformer.h"
#import "MPEntryMenuDelegate.h"
#import "MPEntryContextMenuDelegate.h"
#import "HNHTableHeaderCell.h"
#import "HNHGradientView.h"
@@ -64,7 +64,7 @@ NSString *const _toggleFilterTitleButton = @"SearchTitle";
NSString *const _toggleFilterUsernameButton = @"SearchUsername";
@interface MPEntryViewController () {
MPEntryMenuDelegate *_menuDelegate;
MPEntryContextMenuDelegate *_menuDelegate;
}
@property (strong) NSArrayController *entryArrayController;
@@ -113,7 +113,7 @@ NSString *const _toggleFilterUsernameButton = @"SearchUsername";
_entryArrayController = [[NSArrayController alloc] init];
_dataSource = [[MPEntryTableDataSource alloc] init];
_dataSource.viewController = self;
_menuDelegate = [[MPEntryMenuDelegate alloc] init];
_menuDelegate = [[MPEntryContextMenuDelegate alloc] init];
_menuDelegate.viewController = self;
_selectedEntry = nil;
@@ -625,6 +625,10 @@ NSString *const _toggleFilterUsernameButton = @"SearchUsername";
if(0 == [[self.entryArrayController arrangedObjects] count]) {
return; // No data available
}
NSInteger columnIndex = [self.entryTable clickedColumn];
if(columnIndex < 0 || columnIndex >= [[self.entryTable tableColumns] count]) {
return; // No Colum to use
}
NSTableColumn *column = [self.entryTable tableColumns][[self.entryTable clickedColumn]];
NSString *identifier = [column identifier];
if([identifier isEqualToString:MPEntryTablePasswordColumnIdentifier]) {