diff --git a/MacPass.xcodeproj/project.pbxproj b/MacPass.xcodeproj/project.pbxproj index 1af3fe4b..4683dbcd 100644 --- a/MacPass.xcodeproj/project.pbxproj +++ b/MacPass.xcodeproj/project.pbxproj @@ -7,6 +7,8 @@ objects = { /* Begin PBXBuildFile section */ + 4C25D58516CF0F8800F6806C /* WelcomeView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4C25D58416CF0F8800F6806C /* WelcomeView.xib */; }; + 4C25D58716CF0FAA00F6806C /* EntryView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4C25D58616CF0FAA00F6806C /* EntryView.xib */; }; 4C37A84015B8B474005EF8EE /* MPOutlineDataSource.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C37A83F15B8B474005EF8EE /* MPOutlineDataSource.m */; }; 4C669B7F16760ED100DD0774 /* AesInputStream.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C669B3116760ED100DD0774 /* AesInputStream.m */; }; 4C669B8016760ED100DD0774 /* AesOutputStream.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C669B3316760ED100DD0774 /* AesOutputStream.m */; }; @@ -70,6 +72,8 @@ /* End PBXBuildFile section */ /* Begin PBXFileReference section */ + 4C25D58416CF0F8800F6806C /* WelcomeView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = WelcomeView.xib; sourceTree = ""; }; + 4C25D58616CF0FAA00F6806C /* EntryView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = EntryView.xib; sourceTree = ""; }; 4C37A83E15B8B474005EF8EE /* MPOutlineDataSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPOutlineDataSource.h; sourceTree = ""; }; 4C37A83F15B8B474005EF8EE /* MPOutlineDataSource.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPOutlineDataSource.m; sourceTree = ""; }; 4C669B3016760ED100DD0774 /* AesInputStream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AesInputStream.h; sourceTree = ""; }; @@ -215,6 +219,8 @@ 4CA0B2EF15BCADC800654E32 /* GeneralSettings.xib */, 4CD884B615BD47080042BBF8 /* MainWindow.xib */, 4C6B0E8B16C9B99B00A9ED23 /* PasswordView.xib */, + 4C25D58416CF0F8800F6806C /* WelcomeView.xib */, + 4C25D58616CF0FAA00F6806C /* EntryView.xib */, ); name = Views; sourceTree = ""; @@ -547,6 +553,8 @@ 4CA0B2F015BCADC800654E32 /* GeneralSettings.xib in Resources */, 4CD884B715BD47080042BBF8 /* MainWindow.xib in Resources */, 4C6B0E8C16C9B99B00A9ED23 /* PasswordView.xib in Resources */, + 4C25D58516CF0F8800F6806C /* WelcomeView.xib in Resources */, + 4C25D58716CF0FAA00F6806C /* EntryView.xib in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/MacPass/EntryView.xib b/MacPass/EntryView.xib new file mode 100644 index 00000000..aa0beb44 --- /dev/null +++ b/MacPass/EntryView.xib @@ -0,0 +1,848 @@ + + + + 1080 + 12C60 + 3084 + 1187.34 + 625.00 + + com.apple.InterfaceBuilder.CocoaPlugin + 3084 + + + IBNSLayoutConstraint + NSCustomObject + NSCustomView + NSScrollView + NSScroller + NSSplitView + NSTabView + NSTabViewItem + NSTableColumn + NSTableHeaderView + NSTableView + NSTextFieldCell + NSView + + + com.apple.InterfaceBuilder.CocoaPlugin + + + PluginDependencyRecalculationVersion + + + + + NSObject + + + FirstResponder + + + NSApplication + + + + 268 + + + + 268 + + + + 256 + + + + 268 + + + + 2304 + + + + 256 + {351, 544} + + + + _NS:13 + YES + NO + YES + + + 256 + {351, 17} + + + + _NS:16 + + + + + -2147483392 + {{224, 0}, {16, 17}} + + _NS:19 + + + + 116 + 40 + 1000 + + 75497536 + 2048 + + + LucidaGrande + 11 + 3100 + + + 3 + MC4zMzMzMzI5ODU2AA + + + 6 + System + headerTextColor + + 3 + MAA + + + + + 337641536 + 2048 + Text Cell + + LucidaGrande + 13 + 1044 + + + + 6 + System + controlBackgroundColor + + 3 + MC42NjY2NjY2NjY3AA + + + + 6 + System + controlTextColor + + + + 3 + YES + YES + + + + 229 + 40 + 1000 + + 75497536 + 2048 + + + + + + + 337641536 + 2048 + Text Cell + + + + + + 3 + YES + YES + + + + 3 + 2 + + 3 + MQA + + + 6 + System + gridColor + + 3 + MC41AA + + + 17 + -700448768 + + + 4 + 15 + 0 + YES + 0 + 1 + + + {{1, 17}, {351, 544}} + + + + _NS:11 + + + 4 + + + + -2147483392 + {{224, 17}, {15, 102}} + + + + _NS:58 + NO + + _doScroller: + 37 + 0.1947367936372757 + + + + -2147483392 + {{1, 119}, {223, 15}} + + + _NS:60 + NO + 1 + + _doScroller: + 0.57142859697341919 + + + + 2304 + + + + {{1, 0}, {351, 17}} + + + + _NS:15 + + + 4 + + + {353, 562} + + + + _NS:9 + 133682 + + + + + QSAAAEEgAABBmAAAQZgAAA + 0.25 + 4 + 1 + + + {353, 563} + + + _NS:11 + NSView + + + + 256 + + + + 12 + {{13, 10}, {323, 539}} + + + _NS:9 + + + 1 + + + 256 + {{10, 33}, {303, 493}} + + + + _NS:11 + + Tab + + 6 + System + controlColor + + + + + + 2 + + + 256 + {{10, 33}, {303, 493}} + _NS:28 + + View + + + + + + + 0 + YES + YES + + + + + + {{354, 0}, {349, 563}} + + + _NS:13 + NSView + + + {703, 563} + + + _NS:9 + YES + 2 + + + {703, 563} + + + + NSView + + + + + + + + 0 + + + + + + -2 + + + File's Owner + + + -1 + + + First Responder + + + -3 + + + Application + + + 1 + + + + + + 6 + 0 + + 6 + 1 + + 0.0 + + 1000 + + 8 + 29 + 3 + + + + 4 + 0 + + 4 + 1 + + 0.0 + + 1000 + + 8 + 29 + 3 + + + + 3 + 0 + + 3 + 1 + + 0.0 + + 1000 + + 8 + 29 + 3 + + + + 5 + 0 + + 5 + 1 + + 0.0 + + 1000 + + 8 + 29 + 3 + + + + + + 2 + + + + + + + + + 3 + + + + + + 4 + 0 + + 4 + 1 + + 0.0 + + 1000 + + 8 + 29 + 3 + + + + 6 + 0 + + 6 + 1 + + 0.0 + + 1000 + + 8 + 29 + 3 + + + + 10 + 0 + + 10 + 1 + + 0.0 + + 1000 + + 5 + 22 + 2 + + + + 5 + 0 + + 5 + 1 + + 0.0 + + 1000 + + 8 + 29 + 3 + + + + + + 4 + + + + + + 6 + 0 + + 6 + 1 + + 20 + + 1000 + + 8 + 29 + 3 + + + + 4 + 0 + + 4 + 1 + + 20 + + 1000 + + 8 + 29 + 3 + + + + 3 + 0 + + 3 + 1 + + 20 + + 1000 + + 8 + 29 + 3 + + + + 5 + 0 + + 5 + 1 + + 20 + + 1000 + + 8 + 29 + 3 + + + + + + 9 + + + + + 10 + + + + + 11 + + + + + 12 + + + + + 13 + + + + + + + + + + + 14 + + + + + + + + + 15 + + + + + 16 + + + + + 17 + + + + + 18 + + + + + + + + 19 + + + + + + + + 20 + + + + + 21 + + + + + 26 + + + + + 28 + + + + + 29 + + + + + 30 + + + + + 31 + + + + + + + + + 32 + + + + + + + + 33 + + + + + + + + 34 + + + + + 35 + + + + + 36 + + + + + 38 + + + + + 40 + + + + + 41 + + + + + + + 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 + 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 + + + + + + 41 + + + + + NSLayoutConstraint + NSObject + + IBProjectSource + ./Classes/NSLayoutConstraint.h + + + + + 0 + IBCocoaFramework + YES + 3 + YES + + diff --git a/MacPass/MPMainWindowController.m b/MacPass/MPMainWindowController.m index 670b7b13..72fe3297 100644 --- a/MacPass/MPMainWindowController.m +++ b/MacPass/MPMainWindowController.m @@ -11,6 +11,7 @@ #import "MPOutlineViewDelegate.h" #import "MPMainWindowDelegate.h" #import "MPDatabaseController.h" +#import "MPDatabaseDocument.h" NSString *const MPMainWindowControllerPasswordKey = @"MPMainWindowControllerPasswordKey"; NSString *const MPMainWindowControllerKeyfileKey = @"MPMainWindowControllerKeyfileKey"; @@ -27,6 +28,7 @@ NSString *const kOutlineViewIdentifier = @"OutlineView"; @property (assign) IBOutlet NSTextField *passwordTextField; @property (assign) IBOutlet NSPathControl *keyPathControl; @property (assign) IBOutlet NSView *contentView; +@property (retain) IBOutlet NSView *welcomeView; @property (retain) NSURL *openFile; @property (retain) MPOutlineDataSource *datasource; @@ -40,13 +42,15 @@ NSString *const kOutlineViewIdentifier = @"OutlineView"; @implementation MPMainWindowController - -(id)init { self = [super initWithWindowNibName:@"MainWindow" owner:self]; if( self ) { + NSArray *topLevelObjects; self.windowDelegate = [[[MPMainWindowDelegate alloc] init] autorelease]; self.outlineDelegate = [[[MPOutlineViewDelegate alloc] init] autorelease]; self.datasource = [[[MPOutlineDataSource alloc] init] autorelease]; + [[NSBundle mainBundle] loadNibNamed:@"WelcomeView" owner:self topLevelObjects:&topLevelObjects]; + [self.welcomeView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable]; } return self; } @@ -57,22 +61,38 @@ NSString *const kOutlineViewIdentifier = @"OutlineView"; /* Setup Connections for Outline View */ - + [self.window setDelegate:self.windowDelegate]; [[self.outlineView outlineTableColumn] setIdentifier:kColumnIdentifier]; [self.outlineView setDelegate:self.outlineDelegate]; [self.outlineView setDataSource:self.datasource]; + + + /* + Add Welcome Screen + */ + NSSize frameSize = [self.contentView frame].size; + [self.contentView setFrame:NSMakeRect(0,0, frameSize.width, frameSize.height)]; + [self.contentView addSubview:self.welcomeView]; + } - (void)updateData { [self.outlineView reloadData]; + MPDatabaseController *dbContoller = [MPDatabaseController defaultController]; + [self.outlineView expandItem:dbContoller.database.root expandChildren:NO]; } - (void)presentPasswordInput:(NSURL *)file { NSArray *topLevelObjects; self.openFile = file; [[NSBundle mainBundle] loadNibNamed:@"PasswordView" owner:self topLevelObjects:&topLevelObjects]; + [self.passwordView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable]; + NSSize frameSize = [self.contentView frame].size; + [self.passwordView setFrame:NSMakeRect(0,0, frameSize.width, frameSize.height)]; + [self.contentView setAutoresizesSubviews:YES]; [self.contentView addSubview:self.passwordView]; + } - (void)usePassword:(id)sender { diff --git a/MacPass/MPOutlineDataSource.m b/MacPass/MPOutlineDataSource.m index e68c7034..c192d4b2 100644 --- a/MacPass/MPOutlineDataSource.m +++ b/MacPass/MPOutlineDataSource.m @@ -15,8 +15,7 @@ - (NSInteger)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item { if(!item) { - MPDatabaseController *dbController = [MPDatabaseController defaultController]; - return [[dbController.database.root groups] count]; + return 1; } if( [item isKindOfClass:[KdbGroup class]]) { KdbGroup *group = item; @@ -39,9 +38,15 @@ } - (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item { if(!item) { - return true; + MPDatabaseController *dbController = [MPDatabaseController defaultController]; + return ([[dbController.database.root groups] count] > 0); } - return [item isKindOfClass:[KdbGroup class]]; + if([item isKindOfClass:[KdbGroup class]]) + { + KdbGroup *group = item; + return ([[group groups] count] > 0); + } + return NO; } @end diff --git a/MacPass/MPOutlineViewDelegate.m b/MacPass/MPOutlineViewDelegate.m index f7d7746f..255cd0d7 100644 --- a/MacPass/MPOutlineViewDelegate.m +++ b/MacPass/MPOutlineViewDelegate.m @@ -12,12 +12,18 @@ @implementation MPOutlineViewDelegate - (NSView *)outlineView:(NSOutlineView *)outlineView viewForTableColumn:(NSTableColumn *)tableColumn item:(id)item { - NSTableCellView *view = [outlineView makeViewWithIdentifier:@"DataCell" owner:self]; - [view.imageView setImage:[NSImage imageNamed:NSImageNameFolder]]; - if([item isKindOfClass:[KdbGroup class]]) { - KdbGroup *group = item; + KdbGroup *group = item; + NSTableCellView *view; + if(![group parent]) { + view = [outlineView makeViewWithIdentifier:@"HeaderCell" owner:self]; [view.textField setStringValue:[group name]]; } + else { + view = [outlineView makeViewWithIdentifier:@"DataCell" owner:self]; + [view.imageView setImage:[NSImage imageNamed:NSImageNameFolder]]; + [view.textField setStringValue:[group name]]; + } + return view; } @@ -28,4 +34,9 @@ return NO; } +- (BOOL)outlineView:(NSOutlineView *)outlineView shouldSelectItem:(id)item { + KdbGroup *group = item; + return (nil != [group parent]); +} + @end diff --git a/MacPass/MainWindow.xib b/MacPass/MainWindow.xib index 3cdaf245..c56b35de 100644 --- a/MacPass/MainWindow.xib +++ b/MacPass/MainWindow.xib @@ -48,7 +48,7 @@ 15 2 - {{196, 240}, {825, 599}} + {{196, 240}, {738, 428}} 544735232 Window NSWindow @@ -135,7 +135,7 @@ 4352 - {191, 567} + {171, 396} @@ -152,7 +152,7 @@ AutomaticTableColumnIdentifier.0 - 188 + 168 16 1000 @@ -231,11 +231,11 @@ MC41AA - 24 - -767557632 + 20 + -767524864 - 4 + 1 15 0 YES @@ -244,9 +244,10 @@ 1 -1 NO + 14 - {191, 567} + {171, 396} @@ -266,12 +267,12 @@ NO _doScroller: - 0.99749373433583954 + 0.99823943661971826 -2147483392 - {{1, 119}, {238, 15}} + {{0, 551}, {191, 16}} @@ -280,10 +281,10 @@ 1 _doScroller: - 0.99328859060402686 + 0.99479166666666663 - {191, 567} + {171, 396} @@ -301,14 +302,14 @@ 274 - {{192, 0}, {633, 567}} + {{172, 0}, {566, 396}} - + _NS:13 - {{0, 32}, {825, 567}} + {{0, 32}, {738, 396}} @@ -317,7 +318,7 @@ 2 - {825, 599} + {738, 428} @@ -365,7 +366,7 @@ 266 - {{0, 1}, {188, 14}} + {{0, 1}, {168, 14}} _NS:101 @@ -395,7 +396,7 @@ NO - {{1, 0}, {188, 17}} + {{1, 0}, {168, 17}} HeaderCell @@ -421,7 +422,7 @@ NeXT Encapsulated PostScript v1.2 pasteboard type NeXT TIFF v4.0 pasteboard type - {{3, 0}, {17, 17}} + {{3, 3}, {17, 17}} _NS:71 @@ -445,7 +446,7 @@ 266 - {{25, 0}, {163, 17}} + {{25, 3}, {143, 17}} _NS:80 @@ -463,7 +464,7 @@ NO - {{1, 17}, {188, 17}} + {{1, 17}, {168, 23}} DataCell @@ -811,76 +812,12 @@ 433 - - - 4 - 0 - - 4 - 1 - - 0.0 - - 1000 - - 6 - 24 - 2 - - - - 5 - 0 - - 5 - 1 - - 3 - - 1000 - - 8 - 29 - 3 - - - + + 3 0 - - 3 - 1 - - 0.0 - - 1000 - - 6 - 24 - 2 - - - - 10 - 0 - 10 - 1 - - 0.0 - - 1000 - - 5 - 22 - 2 - - - - 6 - 0 - - 6 + 3 1 3 @@ -907,6 +844,70 @@ 24 3 + + + 6 + 0 + + 6 + 1 + + 3 + + 1000 + + 8 + 29 + 3 + + + + 4 + 0 + + 4 + 1 + + 3 + + 1000 + + 8 + 29 + 3 + + + + 3 + 0 + + 3 + 1 + + 3 + + 1000 + + 8 + 29 + 3 + + + + 5 + 0 + + 5 + 1 + + 3 + + 1000 + + 8 + 29 + 3 + @@ -1001,26 +1002,11 @@ - - 448 - - - 450 - - 451 - - - - - 452 - - - 449 @@ -1084,6 +1070,21 @@ + + 522 + + + + + 523 + + + + + 524 + + + @@ -1152,13 +1153,13 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - - + - - + + + com.apple.InterfaceBuilder.CocoaPlugin DataCell @@ -1174,20 +1175,20 @@ 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 - 502 + 590 @@ -1210,6 +1211,7 @@ NSPathControl NSOutlineView NSTextField + NSView @@ -1228,6 +1230,10 @@ passwordTextField NSTextField + + passwordView + NSView + IBProjectSource diff --git a/MacPass/PasswordView.xib b/MacPass/PasswordView.xib index 02a30dd5..a46a944b 100644 --- a/MacPass/PasswordView.xib +++ b/MacPass/PasswordView.xib @@ -16,8 +16,6 @@ NSButtonCell NSCustomObject NSCustomView - NSPathCell - NSPathControl NSSecureTextField NSSecureTextFieldCell NSTextField @@ -44,97 +42,39 @@ 268 - + 268 - - Apple URL pasteboard type - NSFilenamesPboardType - - {{175, 105}, {197, 22}} + {{186, 69}, {97, 32}} _NS:9 YES - - 337641473 - 131072 - - - file://localhost/Users/ - - + + 67108864 + 134217728 + Browse... + LucidaGrande - 11 - 3100 + 13 + 1044 - _NS:9 - - - - 67108928 - 1024 - Basecamp - - - 6 - System - textBackgroundColor - - 3 - MQA - - - - 6 - System - controlTextColor - - 3 - MAA - - - - - file://localhost/ - - - - 67108928 - 1024 - Hometown - - - - - - file://localhost/ - - - - 67108928 - 1024 - Users - - - - - - file://localhost/Users - - - - 2 - + + -2038284288 + 129 + + + 200 + 25 NO 268 - {{109, 142}, {64, 17}} + {{17, 108}, {64, 17}} @@ -144,11 +84,7 @@ 68157504 272630784 Password - - LucidaGrande - 13 - 1044 - + _NS:1535 @@ -160,17 +96,25 @@ MC42NjY2NjY2NjY3AA - + + 6 + System + controlTextColor + + 3 + MAA + + NO 268 - {{127, 109}, {46, 17}} + {{35, 78}, {46, 17}} - + _NS:1535 YES @@ -188,7 +132,7 @@ 268 - {{178, 142}, {191, 22}} + {{86, 105}, {191, 22}} @@ -202,7 +146,15 @@ _NS:9 YES - + + 6 + System + textBackgroundColor + + 3 + MQA + + 6 System @@ -218,10 +170,9 @@ 268 - {{315, 60}, {74, 32}} + {{209, 13}, {74, 32}} - _NS:9 YES @@ -241,7 +192,7 @@ NO - {480, 272} + {363, 232} @@ -258,14 +209,6 @@ 99 - - - keyPathControl - - - - 100 - passwordView @@ -313,107 +256,75 @@ 1 - - - 6 + + + 3 0 - - 6 - 1 - - 97 - - 1000 - - 3 - 9 - 3 - - - - 4 - 0 - + 4 1 - 67 + 35 1000 - 3 - 9 + 9 + 40 3 - - - 5 + + + 4 + 1 + + 4 + 1 + + 20 + + 1000 + + 9 + 40 + 3 + + + + 6 0 - + 6 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 3 + 0 + + 4 + 1 8 1000 - 6 - 24 + 9 + 40 3 - - - 11 - 0 - - 11 - 1 - - 0.0 - - 1000 - - 6 - 24 - 2 - - - - 5 - 0 - - 5 - 1 - - 0.0 - - 1000 - - 6 - 24 - 2 - - - - 3 - 0 - - 3 - 1 - - 108 - - 1000 - - 3 - 9 - 3 - - - + + 6 0 - + 6 1 @@ -425,6 +336,86 @@ 24 2 + + + 10 + 0 + + 10 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 6 + 0 + + 6 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 10 + 0 + + 10 + 1 + + 0.0 + + 1000 + + 9 + 40 + 2 + + + + 6 + 1 + + 6 + 1 + + 20 + + 1000 + + 9 + 40 + 3 + + + + 9 + 0 + + 9 + 1 + + 0.0 + + 1000 + + 9 + 40 + 2 + 5 @@ -437,48 +428,16 @@ 1000 - 6 - 24 + 9 + 40 3 - - - 4 - 0 - - 4 - 1 - - 109 - - 1000 - - 3 - 9 - 3 - - + - 5 - 0 - - 5 - 1 - - 112 - - 1000 - - 3 - 9 - 3 - - - - 4 + 10 0 - 4 + 10 1 0.0 @@ -489,11 +448,27 @@ 24 2 - + + + 5 + 1 + + 5 + 1 + + 20 + + 1000 + + 9 + 40 + 3 + + + - @@ -527,8 +502,8 @@ 1000 - 3 - 9 + 9 + 40 1 @@ -565,79 +540,89 @@ - - 37 - - - 45 - 72 - + 104 + - + - 73 - - + 105 + + - 81 - - - - - 83 - - - - - 84 - - - - - 88 + 114 - - 92 - - - - - 93 - - - - - 94 - - - - - 95 - - - - - 90 - - - 89 + + 122 + + + + + 123 + + + + + 124 + + + + + 119 + + + + + 131 + + + + + 134 + + + + + 112 + + + + + 133 + + + + + 132 + + + + + 107 + + + + + 142 + + + @@ -645,19 +630,36 @@ 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 com.apple.InterfaceBuilder.CocoaPlugin @@ -667,7 +669,6 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -675,26 +676,13 @@ 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 - 102 + 142 diff --git a/MacPass/WelcomeView.xib b/MacPass/WelcomeView.xib new file mode 100644 index 00000000..7acbe263 --- /dev/null +++ b/MacPass/WelcomeView.xib @@ -0,0 +1,294 @@ + + + + 1080 + 12C60 + 3084 + 1187.34 + 625.00 + + com.apple.InterfaceBuilder.CocoaPlugin + 3084 + + + IBNSLayoutConstraint + NSCustomObject + NSCustomView + NSTextField + NSTextFieldCell + + + com.apple.InterfaceBuilder.CocoaPlugin + + + PluginDependencyRecalculationVersion + + + + + MPMainWindowController + + + FirstResponder + + + NSApplication + + + + 268 + + + + 268 + {{210, 211}, {177, 34}} + + + + + 1 + + 1 + MSAxIDEAA + + + _NS:1535 + YES + + 68157504 + 272630784 + No Database + + LucidaGrande + 28 + 16 + + _NS:1535 + + + 6 + System + controlColor + + 3 + MC42NjY2NjY2NjY3AA + + + + 6 + System + disabledControlTextColor + + 3 + MC4zMzMzMzMzMzMzAA + + + + NO + + + {597, 456} + + + + YES + NSView + + + + + + + welcomeView + + + + 12 + + + + + + 0 + + + + + + -2 + + + File's Owner + + + -1 + + + First Responder + + + -3 + + + Application + + + 1 + + + + + 10 + 0 + + 10 + 1 + + 0.0 + + 1000 + + 9 + 40 + 2 + + + + 9 + 0 + + 9 + 1 + + 0.0 + + 1000 + + 9 + 40 + 2 + + + + + + + 2 + + + + + + + + 3 + + + + + 10 + + + + + 11 + + + + + + + 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 + + + + + + 12 + + + + + MPMainWindowController + NSWindowController + + usePassword: + id + + + usePassword: + + usePassword: + id + + + + NSView + NSPathControl + NSOutlineView + NSTextField + NSView + NSView + + + + contentView + NSView + + + keyPathControl + NSPathControl + + + outlineView + NSOutlineView + + + passwordTextField + NSTextField + + + passwordView + NSView + + + welcomeView + NSView + + + + IBProjectSource + ./Classes/MPMainWindowController.h + + + + NSLayoutConstraint + NSObject + + IBProjectSource + ./Classes/NSLayoutConstraint.h + + + + + 0 + IBCocoaFramework + YES + 3 + YES + +