--- hatari/src/gui-osx/Shared.h 2019/04/09 08:54:09 1.1.1.7 +++ hatari/src/gui-osx/Shared.h 2019/04/09 08:56:37 1.1.1.9 @@ -12,9 +12,9 @@ #define localize(laklef) [[NSBundle mainBundle] localizedStringForKey:laklef value:(laklef != nil ? laklef : @"???") table:@"Localizable"] -// disk extensions alowed in open box +// disk extensions allowed in open box #define allF @"st",@"msa",@"dim",@"gz",@"zip",@"stx",@"ipf",@"raw",@"ctr" -// cartdridge extensions +// cartridge extensions #define allC @"img",@"rom",@"bin",@"cart" // TOS extensions #define allT @"img",@"rom",@"bin" @@ -36,7 +36,7 @@ void GuiOsx_ExportPathString(NSString* path, char* szTarget, size_t cchTarget); // Pauses emulation and gets ready to use Cocoa UI -void GuiOsx_Pause(void); +void GuiOsx_Pause(bool); // Switches back to emulation mode and resume emulation void GuiOsx_Resume(void); @@ -46,7 +46,7 @@ void GuiOsx_Resume(void); // @interface NSApplication (service) -// Some usefull tools +// Some useful tools // choose file to open - (NSString *)hopenfile:(BOOL)chooseDir defoDir:(NSString *)defoDir defoFile:(NSString *)defoFile types:(NSArray *)types ; - (NSString *)hopenfile:(BOOL)chooseDir defoDir:(NSString *)defoDir defoFile:(NSString *)defoFile types:(NSArray *)types titre:(NSString *)titre ; @@ -59,4 +59,9 @@ void GuiOsx_Resume(void); - (NSString *)localpath:(NSString *)thepath ; // Full - (NSString *)pathUser:(NSString *)thepath ; // Partial if possible. +// Alert available 10.4 to 10.9 (styles: NSWarningAlertStyle, NSInformationalAlertStyle, NSCriticalAlertStyle) +// return: NSAlertDefaultReturn, NSAlertAlternateReturn, and NSAlertOtherReturn. +- (NSInteger)myAlerte:(NSUInteger)style Txt:(NSString *)Txt firstB:(NSString *)firstB alternateB:(NSString *)alternateB + otherB:(NSString *)otherB informativeTxt:(NSString *)informativeT ; + @end