Renamed Categories better

Introduced Drag'n'Drop of Entries to outline view. Unfinished and fragile!
This commit is contained in:
michael starke
2013-06-10 01:12:32 +02:00
parent d4d53f5ef5
commit ae0fae13c1
28 changed files with 545 additions and 511 deletions

View File

@@ -34,8 +34,6 @@
@property (retain) MPToolbarDelegate *toolbarDelegate;
- (void)_setContentViewController:(MPViewController *)viewController;
@end
@implementation MPDocumentWindowController
@@ -69,7 +67,6 @@
}
#pragma mark View Handling
- (void)windowDidLoad
{
[super windowDidLoad];
@@ -90,7 +87,8 @@
[_splitView setHoldingPriority:NSLayoutPriorityDefaultLow+2 forSubviewAtIndex:0];
[_splitView setHoldingPriority:NSLayoutPriorityDefaultLow+1 forSubviewAtIndex:2];
//TODO: Fix setup on start
[_splitView setDelegate:self];
MPDocument *document = [self document];
if(!document.isDecrypted) {
[self showPasswordInput];
@@ -100,6 +98,10 @@
}
}
- (BOOL)splitView:(NSSplitView *)splitView shouldHideDividerAtIndex:(NSInteger)dividerIndex {
return NO;
}
- (void)_setContentViewController:(MPViewController *)viewController {
NSView *newContentView = nil;
@@ -172,6 +174,10 @@
[self showPasswordInput];
}
- (void)toggleInspector:(id)sender {
}
- (void)showEntries {
NSView *contentView = [[self window] contentView];
if(_splitView == contentView) {