diff options
author | ritsuka <[email protected]> | 2015-03-24 07:32:31 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-03-24 07:32:31 +0000 |
commit | 467cc4ed93771aae1d6dca546758dffe5312899b (patch) | |
tree | 7e095561b8f34da6df9ce7c922478adcea1a3f80 /macosx/HBExceptionAlertController.h | |
parent | 4a700442ef0cff37f4419faf5045caec59d8a126 (diff) |
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
Diffstat (limited to 'macosx/HBExceptionAlertController.h')
-rw-r--r-- | macosx/HBExceptionAlertController.h | 25 |
1 files changed, 25 insertions, 0 deletions
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: <http://handbrake.fr/>. + It may be used under the terms of the GNU General Public License. */ + +#import <Cocoa/Cocoa.h> + +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 |