From 467cc4ed93771aae1d6dca546758dffe5312899b Mon Sep 17 00:00:00 2001 From: ritsuka Date: Tue, 24 Mar 2015 07:32:31 +0000 Subject: MacGui: add an alert window to show the exceptions not handled. Hopefully it will make it easier for users to report this kind of issue. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7010 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/HBExceptionAlertController.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 macosx/HBExceptionAlertController.h (limited to 'macosx/HBExceptionAlertController.h') diff --git a/macosx/HBExceptionAlertController.h b/macosx/HBExceptionAlertController.h new file mode 100644 index 000000000..aaf49647c --- /dev/null +++ b/macosx/HBExceptionAlertController.h @@ -0,0 +1,25 @@ +/* HBExceptionAlertController.h $ + + This file is part of the HandBrake source code. + Homepage: . + It may be used under the terms of the GNU General Public License. */ + +#import + +typedef NS_ENUM(NSUInteger, HBExceptionAlertControllerResult) { + HBExceptionAlertControllerResultCrash, + HBExceptionAlertControllerResultContinue, +}; + +@interface HBExceptionAlertController : NSWindowController + +// Properties are used by bindings +@property (copy) NSString *exceptionMessage; +@property (copy) NSAttributedString *exceptionBacktrace; + +- (IBAction)btnCrashClicked:(id)sender; +- (IBAction)btnContinueClicked:(id)sender; + +- (NSInteger)runModal; + +@end -- cgit v1.2.3