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

54 lines
1.6 KiB
C
Raw Normal View History

2012-12-15 10:24:25 +03:00
#import <Cocoa/Cocoa.h>
@interface AppDelegate : NSObject <NSApplicationDelegate, NSURLDownloadDelegate>
{
NSString* outputDir;
NSString* tempDir;
NSString* dataDir;
2012-12-27 12:21:30 +03:00
NSString* currentArchiveName;
NSString* currentArchiveFilename;
2012-12-15 10:24:25 +03:00
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;
2013-02-21 20:32:50 +03:00
- (void)showNotification:(NSString*)text;
2012-12-15 10:24:25 +03:00
- (void)nextAction;
- (int)runTask:(NSString*)executable withArgs:(NSArray*)args withWorkingDir:(NSString*)workingDir withPipe:(NSPipe*)pipe;
- (void)downloadWogArchive;
- (void)unzipWogArchive;
2012-12-27 12:21:30 +03:00
- (void)downloadVcmiArchive;
- (void)unzipVcmiArchive;
2012-12-15 10:24:25 +03:00
- (void)extractGameData;
- (void)innoexctract;
- (NSString*)attachDiskImage:(NSString*)path;
- (void)unshield;
- (void)detachDiskImage:(NSString*)mountedPath;
- (void)extractionCompleted;
@end