From c509dbff99c105ff6eb3645d8d973a4671b126a3 Mon Sep 17 00:00:00 2001 From: michael starke Date: Wed, 17 Feb 2016 17:23:29 +0100 Subject: [PATCH] Removed bottom bar below enty tabel --- MacPass/Base.lproj/PluginSettings.xib | 4 +- MacPass/EntryView.xib | 63 ++++++--------------------- MacPass/MPEntryViewController.m | 11 ++--- 3 files changed, 18 insertions(+), 60 deletions(-) diff --git a/MacPass/Base.lproj/PluginSettings.xib b/MacPass/Base.lproj/PluginSettings.xib index a24cd65c..5c179b9e 100644 --- a/MacPass/Base.lproj/PluginSettings.xib +++ b/MacPass/Base.lproj/PluginSettings.xib @@ -1,8 +1,8 @@ - + - + diff --git a/MacPass/EntryView.xib b/MacPass/EntryView.xib index a7990dcf..260784b9 100644 --- a/MacPass/EntryView.xib +++ b/MacPass/EntryView.xib @@ -7,10 +7,7 @@ - - - @@ -21,13 +18,13 @@ - + - + - + @@ -50,8 +47,8 @@ - - + + @@ -136,8 +133,8 @@ - - + + @@ -193,7 +190,7 @@ - + @@ -207,10 +204,10 @@ - + - + @@ -235,7 +232,7 @@ - + @@ -244,55 +241,21 @@ - + - - - - - - - - - - - - - - - - - - + - diff --git a/MacPass/MPEntryViewController.m b/MacPass/MPEntryViewController.m index 295ef47c..4595b1cc 100644 --- a/MacPass/MPEntryViewController.m +++ b/MacPass/MPEntryViewController.m @@ -75,11 +75,6 @@ NSString *const _MPTableSecurCellView = @"PasswordCell"; @property (strong) IBOutlet NSLayoutConstraint *tableToTopConstraint; @property (strong) NSLayoutConstraint *contextBarTopConstraint; -@property (weak) IBOutlet HNHUIGradientView *bottomBar; -@property (weak) IBOutlet NSButton *addEntryButton; - -@property (weak) IBOutlet NSTextField *footerInfoText; - @property (nonatomic, strong) MPEntryTableDataSource *dataSource; @end @@ -110,10 +105,8 @@ NSString *const _MPTableSecurCellView = @"PasswordCell"; } - (void)didLoadView { - [[self view] setWantsLayer:YES]; - [_bottomBar setBorderType:HNHBorderTop|HNHBorderHighlight]; - [self.addEntryButton setAction:[MPActionHelper actionOfType:MPActionAddEntry]]; + [self.view setWantsLayer:YES]; self.entryTable.delegate = self; self.entryTable.doubleAction = @selector(_columnDoubleClick:); @@ -465,8 +458,10 @@ NSString *const _MPTableSecurCellView = @"PasswordCell"; MPDocument *document = [[self windowController] document]; /* If the document was locked and unlocked we do not need to recheck */ if(document.unlockCount != 1) { + /* TODO add another method to display this! [self.footerInfoText setHidden:![document hasMalformedAutotypeItems]]; [self.footerInfoText setStringValue:NSLocalizedString(@"DOCUMENT_AUTOTYPE_CORRUPTION_WARNING", "")]; + */ } }