Files
gitx/PBRemoteProgressSheet.h
Nathan Kinsinger 07651211fd Fix "Duplicate declaration of method" error when using LLVM
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).
2010-08-22 07:46:12 -06:00

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