mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
28e8bacb89
This adds a QuickLook button that will allow you to directly view any file in the tree view in QuickLook. This is really nice for PDF's and images. You can select multiple files and even play a slideshow if you want. Currently it does not remove temporary files it created. This means that they will probably stay around until you reboot.
39 lines
903 B
Objective-C
39 lines
903 B
Objective-C
//
|
|
// PBDetailController.h
|
|
// GitX
|
|
//
|
|
// Created by Pieter de Bie on 16-06-08.
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "PBGitCommit.h"
|
|
#import "PBGitTree.h"
|
|
|
|
@interface PBDetailController : NSObject {
|
|
IBOutlet NSNumber* selectedTab;
|
|
IBOutlet NSArrayController* commitController;
|
|
IBOutlet NSTreeController* treeController;
|
|
IBOutlet NSOutlineView* fileBrowser;
|
|
|
|
PBGitTree* gitTree;
|
|
PBGitCommit* webCommit;
|
|
PBGitCommit* rawCommit;
|
|
PBGitCommit* realCommit;
|
|
}
|
|
|
|
@property (copy) NSNumber* selectedTab;
|
|
@property (retain) PBGitCommit* webCommit;
|
|
@property (retain) PBGitCommit* rawCommit;
|
|
@property (retain) PBGitTree* gitTree;
|
|
|
|
- (IBAction) setDetailedView: sender;
|
|
- (IBAction) setRawView: sender;
|
|
- (IBAction) setTreeView: sender;
|
|
|
|
- (IBAction) toggleQuickView: sender;
|
|
- (IBAction) openSelectedFile: sender;
|
|
- (void) updateQuicklook;
|
|
|
|
@end
|