mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 15:30:18 +00:00
07651211fd
The class method and the instance method had different types for the window controller. The instance method should be using the NSWindowController since the sheet can be shown in a non PBGitWindowController window (the PBCloneRepositoryPanel).
46 lines
1.3 KiB
Objective-C
46 lines
1.3 KiB
Objective-C
//
|
|
// PBRemoteProgressSheetController.h
|
|
// GitX
|
|
//
|
|
// Created by Nathan Kinsinger on 12/6/09.
|
|
// Copyright 2009 Nathan Kinsinger. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
extern NSString * const kGitXProgressDescription;
|
|
extern NSString * const kGitXProgressSuccessDescription;
|
|
extern NSString * const kGitXProgressSuccessInfo;
|
|
extern NSString * const kGitXProgressErrorDescription;
|
|
extern NSString * const kGitXProgressErrorInfo;
|
|
|
|
|
|
@class PBGitRepository;
|
|
|
|
@interface PBRemoteProgressSheet : NSWindowController {
|
|
NSWindowController *controller;
|
|
|
|
NSArray *arguments;
|
|
NSString *title;
|
|
NSString *description;
|
|
|
|
NSTask *gitTask;
|
|
NSInteger returnCode;
|
|
|
|
NSTextField *progressDescription;
|
|
NSProgressIndicator *progressIndicator;
|
|
|
|
NSTimer *taskTimer;
|
|
}
|
|
|
|
+ (void) beginRemoteProgressSheetForArguments:(NSArray *)args title:(NSString *)theTitle description:(NSString *)theDescription inDir:(NSString *)dir windowController:(NSWindowController *)windowController;
|
|
|
|
+ (void) beginRemoteProgressSheetForArguments:(NSArray *)args title:(NSString *)theTitle description:(NSString *)theDescription inRepository:(PBGitRepository *)repo;
|
|
|
|
|
|
@property (assign) IBOutlet NSTextField *progressDescription;
|
|
@property (assign) IBOutlet NSProgressIndicator *progressIndicator;
|
|
|
|
|
|
@end |