Files
gitx/PBGitWindowController.h
T
Pieter de Bie 0a2ddc36f7 GitWindowController: Store multiple views
This keeps the subviews in memory, which means that switching views will
be faster if a view has already been opened. This also allows you to type
a commit message, switch to the history view, and then switch back to
continue typing.
2008-11-26 17:44:25 +01:00

36 lines
917 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 "PBGitRepository.h"
@class PBViewController;
@interface PBGitWindowController : NSWindowController {
__weak PBGitRepository* repository;
int selectedViewIndex;
IBOutlet NSView* contentView;
PBViewController *historyViewController;
PBViewController *commitViewController;
PBViewController* viewController;
}
@property (assign) __weak PBGitRepository *repository;
@property (readonly) NSViewController *viewController;
@property (assign) int selectedViewIndex;
- (id)initWithRepository:(PBGitRepository*)theRepository displayDefault:(BOOL)display;
- (void)changeViewController:(NSInteger)whichViewTag;
- (void)useToolbar:(NSToolbar *)toolbar;
- (IBAction) showCommitView:(id)sender;
- (IBAction) showHistoryView:(id)sender;
@end