diff --git a/GLFileView.h b/GLFileView.h index 2e752da..cd92804 100644 --- a/GLFileView.h +++ b/GLFileView.h @@ -20,6 +20,7 @@ IBOutlet MGScopeBar *typeBar; NSMutableArray *groups; NSString *logFormat; + IBOutlet NSView *accessoryView; } - (void)showFile; diff --git a/GLFileView.m b/GLFileView.m index 76f0547..aee67b9 100644 --- a/GLFileView.m +++ b/GLFileView.m @@ -131,11 +131,15 @@ startFile=identifier; NSString *path = [NSString stringWithFormat:@"html/views/%@", identifier]; NSString *html = [[NSBundle mainBundle] pathForResource:@"index" ofType:@"html" inDirectory:path]; - NSLog(@"[FileViewerController scopeBar:selectedStateChanged] -> file: '%@' (%@)",html,identifier); NSURLRequest * request = [NSURLRequest requestWithURL:[NSURL fileURLWithPath:html]]; [[view mainFrame] loadRequest:request]; } +- (NSView *)accessoryViewForScopeBar:(MGScopeBar *)scopeBar +{ + return accessoryView; +} + - (void) didLoad { [self showFile]; diff --git a/PBGitHistoryView.xib b/PBGitHistoryView.xib index 2f7c9dc..350a02f 100644 --- a/PBGitHistoryView.xib +++ b/PBGitHistoryView.xib @@ -21,7 +21,7 @@ YES - + YES @@ -113,34 +113,6 @@ 266 YES - - - 289 - {{908, 3}, {37, 25}} - - YES - - -2080244224 - 134217728 - QuickLook - - LucidaGrande - 13 - 1044 - - - -2033958657 - 163 - - NSImage - NSQuickLookTemplate - - - IA - 400 - 75 - - 292 @@ -150,7 +122,11 @@ -2080244224 0 - + + LucidaGrande + 13 + 1044 + YES @@ -1109,6 +1085,47 @@ 266 + + YES + + + 268 + + YES + + + 289 + {{41, 1.5}, {29, 19}} + + YES + + -2080244224 + 134217728 + QuickLook + + LucidaGrande-Bold + 12 + 16 + + + 147079423 + 173 + + NSImage + NSQuickLookTemplate + + + IA + 400 + 75 + + + + {{639, 0}, {84, 24}} + + NSView + + {{0, 211}, {723, 24}} MGScopeBar @@ -1957,6 +1974,14 @@ 485 + + + accessoryView + + + + 487 + @@ -2303,7 +2328,6 @@ - @@ -2445,20 +2469,6 @@ - - 49 - - - YES - - - - - - 50 - - - 407 @@ -2562,10 +2572,34 @@ YES + TypeBar + + 486 + + + YES + + + + + + 49 + + + YES + + + + + + 50 + + + @@ -2676,6 +2710,7 @@ 46.IBPluginDependency 475.IBPluginDependency 48.IBPluginDependency + 486.IBPluginDependency 49.IBAttributePlaceholdersKey 49.IBPluginDependency 50.IBPluginDependency @@ -2859,6 +2894,7 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin ToolTip @@ -2892,7 +2928,7 @@ - 485 + 487 @@ -2904,31 +2940,38 @@ YES YES + accessoryView historyController typeBar YES + NSView PBGitHistoryController - PBGitGradientBarView + MGScopeBar YES YES + accessoryView historyController typeBar YES + + accessoryView + NSView + historyController PBGitHistoryController typeBar - PBGitGradientBarView + MGScopeBar