From d22750fefcebe2b1d53baaf869485efd296c3784 Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Tue, 5 Jan 2021 14:35:44 +0100 Subject: [PATCH] Intoduced disclosure on QR Code input --- MacPass/MPTOTPSetupViewController.m | 9 + MacPass/MPTOTPSetupViewController.xib | 407 +++++++++++++------------- 2 files changed, 219 insertions(+), 197 deletions(-) diff --git a/MacPass/MPTOTPSetupViewController.m b/MacPass/MPTOTPSetupViewController.m index f04bb022..d1353b19 100644 --- a/MacPass/MPTOTPSetupViewController.m +++ b/MacPass/MPTOTPSetupViewController.m @@ -17,6 +17,7 @@ @property (strong) IBOutlet NSTextField *timeStepTextField; @property (strong) IBOutlet NSPopUpButton *digitCountPopUpButton; @property (strong) IBOutlet NSImageView *qrCodeImageView; +@property (strong) IBOutlet NSGridView *gridView; @end @@ -26,6 +27,14 @@ [super viewDidLoad]; // Do view setup here. } + +- (IBAction)toggleDisclosure:(id)sender { + for(NSInteger row = 1; row < self.gridView.numberOfRows; row++) { + NSGridRow *gridRow = [self.gridView rowAtIndex:row]; + gridRow.hidden = !gridRow.hidden; + } +} + - (IBAction)parseQRCode:(id)sender { if(sender != self.qrCodeImageView) { return; // wrong sender diff --git a/MacPass/MPTOTPSetupViewController.xib b/MacPass/MPTOTPSetupViewController.xib index cbe40b34..f5ca8e68 100644 --- a/MacPass/MPTOTPSetupViewController.xib +++ b/MacPass/MPTOTPSetupViewController.xib @@ -10,6 +10,7 @@ + @@ -20,208 +21,220 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + - +