1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-20 20:23:03 +02:00
vcmi/osx-vcmibuilder/vcmibuilder/AppDelegate.h
2012-12-15 07:24:25 +00:00

49 lines
1.4 KiB
Objective-C

#import <Cocoa/Cocoa.h>
@interface AppDelegate : NSObject <NSApplicationDelegate, NSURLDownloadDelegate>
{
NSString* outputDir;
NSString* tempDir;
NSString* dataDir;
NSMutableArray* actions;
int64_t bytesRecieved;
int64_t bytesExpected;
BOOL installationCompleted;
}
@property (strong) IBOutlet NSWindow *window;
@property (weak) IBOutlet NSButton *cd1Button;
@property (weak) IBOutlet NSTextField *cd1TextField;
@property (weak) IBOutlet NSButton *cd2Button;
@property (weak) IBOutlet NSTextField *cd2TextField;
@property (weak) IBOutlet NSProgressIndicator *progressIndicator;
@property (weak) IBOutlet NSTextField *progressLabel;
@property (weak) IBOutlet NSButton *installButton;
@property (weak) IBOutlet NSTextField *errorLabel;
@property (strong) NSURLDownload* download;
- (IBAction)selectCD1:(id)sender;
- (IBAction)selectCD2:(id)sender;
- (IBAction)install:(id)sender;
- (void)selectFile:(NSArray*)fileTypes withTextField:(NSTextField*)textField;
- (void)showProgressText:(NSString*)text;
- (void)showErrorText:(NSString*)text;
- (void)nextAction;
- (int)runTask:(NSString*)executable withArgs:(NSArray*)args withWorkingDir:(NSString*)workingDir withPipe:(NSPipe*)pipe;
- (void)downloadWogArchive;
- (void)unzipWogArchive;
- (void)extractGameData;
- (void)innoexctract;
- (NSString*)attachDiskImage:(NSString*)path;
- (void)unshield;
- (void)detachDiskImage:(NSString*)mountedPath;
- (void)extractionCompleted;
@end