2010-01-06 18:11:16 -06:00
|
|
|
//
|
|
|
|
// MGMReportWindow.h
|
|
|
|
// GeckoReporter
|
|
|
|
//
|
|
|
|
// Created by Mr. Gecko on 12/27/09.
|
2010-08-12 12:00:31 -05:00
|
|
|
// Copyright (c) 2010 Mr. Gecko's Media (James Coleman). All rights reserved. http://mrgeckosmedia.com/
|
2010-01-06 18:11:16 -06:00
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
@class MGMSender;
|
|
|
|
|
|
|
|
extern NSString * const MGMSaveLastDate;
|
|
|
|
|
|
|
|
@interface MGMReportWindow : NSObject {
|
|
|
|
IBOutlet NSMenu *mainMenu;
|
|
|
|
IBOutlet NSMenuItem *hideMenu;
|
|
|
|
IBOutlet NSMenuItem *quitMenu;
|
|
|
|
IBOutlet NSWindow *mainWindow;
|
|
|
|
IBOutlet NSTextField *titleField;
|
|
|
|
IBOutlet NSTextField *dateField;
|
|
|
|
IBOutlet NSTextView *userReportView;
|
|
|
|
IBOutlet NSTextField *userEmailField;
|
|
|
|
IBOutlet NSButton *sendButton;
|
|
|
|
IBOutlet NSButton *sendAllButton;
|
|
|
|
IBOutlet NSButton *ignoreButton;
|
|
|
|
IBOutlet NSButton *ignoreAllButton;
|
|
|
|
NSString *reportFile;
|
|
|
|
NSDate *reportDate;
|
|
|
|
MGMSender *mailSender;
|
|
|
|
|
|
|
|
NSMenu *appMainMenu;
|
|
|
|
}
|
2010-01-12 08:05:09 -06:00
|
|
|
+ (id)sharedWindowWithReport:(NSString *)theReportFile reportDate:(NSDate *)theReportDate;
|
2010-01-06 18:11:16 -06:00
|
|
|
- (id)initWithReport:(NSString *)theReportFile reportDate:(NSDate *)theReportDate;
|
|
|
|
- (void)setButtonsEnabled:(BOOL)flag;
|
|
|
|
- (void)close;
|
|
|
|
- (IBAction)sendReport:(id)sender;
|
|
|
|
- (IBAction)sendAllReports:(id)sender;
|
|
|
|
- (IBAction)ignoreReport:(id)sender;
|
|
|
|
- (IBAction)ignoreAllReports:(id)sender;
|
|
|
|
@end
|