1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-05 00:49:09 +02:00
Files
vcmi/osx/osx-vcmibuilder/vcmibuilder/AppDelegate.h

54 lines
1.6 KiB
C
Raw Permalink Normal View History

2012-12-15 07:24:25 +00:00
#import <Cocoa/Cocoa.h>
@interface AppDelegate : NSObject<NSApplicationDelegate, NSURLDownloadDelegate>
2012-12-15 07:24:25 +00:00
{
NSString * outputDir;
NSString * tempDir;
NSString * dataDir;
NSString * currentArchiveName;
NSString * currentArchiveFilename;
NSMutableArray * actions;
int64_t bytesRecieved;
int64_t bytesExpected;
BOOL installationCompleted;
2012-12-15 07:24:25 +00:00
}
@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;
2012-12-15 07:24:25 +00:00
@property (strong) NSURLDownload * download;
2012-12-15 07:24:25 +00:00
- (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)showNotification:(NSString *)text;
2012-12-15 07:24:25 +00:00
- (void)nextAction;
- (int)runTask:(NSString *)executable withArgs:(NSArray *)args withWorkingDir:(NSString *)workingDir withPipe:(NSPipe *)pipe;
2012-12-15 07:24:25 +00:00
- (void)downloadWogArchive;
- (void)unzipWogArchive;
2012-12-27 09:21:30 +00:00
- (void)downloadVcmiArchive;
- (void)unzipVcmiArchive;
2012-12-15 07:24:25 +00:00
- (void)extractGameData;
- (void)innoexctract;
- (NSString *)attachDiskImage:(NSString *)path;
2012-12-15 07:24:25 +00:00
- (void)unshield;
- (void)detachDiskImage:(NSString *)mountedPath;
2012-12-15 07:24:25 +00:00
- (void)extractionCompleted;
@end