mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
13746a5a6b
Introduce a new showMessageSheet/showErrorSheet-method for PBGitWindowController which uses the beginSheetModalForWindow method of NSAlert whereever possible. This has the advantage over runModal as it doesn't block the other instances of GitX and is generally more unobstrusive for simple status-messages. Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
38 lines
1.0 KiB
Objective-C
38 lines
1.0 KiB
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;
|
|
- (void)showMessageSheet:(NSString *)messageText infoText:(NSString *)infoText;
|
|
- (void)showErrorSheet:(NSError *)error;
|
|
|
|
- (IBAction) showCommitView:(id)sender;
|
|
- (IBAction) showHistoryView:(id)sender;
|
|
@end
|