Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
70 lines (56 sloc) 1.74 KB
//
// OFController.h
// OpenFeedback
//
// Created by Tyler Hall on 12/26/09.
// Copyright 2009 Click On Tyler, LLC. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <AddressBook/AddressBook.h>
#import "OFUtilities.h"
@protocol OpenFeedbackDelegate;
@interface OFController : NSWindowController {
// Fake Tab Control
IBOutlet NSSegmentedControl *tabs;
IBOutlet NSBox *tabView;
IBOutlet NSView *viewSupport;
IBOutlet NSView *viewFeature;
IBOutlet NSView *viewBug;
IBOutlet NSView *viewCrash;
// Support Tab
IBOutlet NSTextView *txtQuestion;
// Feature Request Tab
IBOutlet NSTextView *txtFeature;
IBOutlet NSPopUpButton *btnImportance;
// Bug Report Tab
IBOutlet NSTextView *txtWhatHappened;
IBOutlet NSTextView *txtStepsToReproduce;
IBOutlet NSButton *btnIsCritical;
// Crash Report Tab
IBOutlet NSTextField *txtCrashTitle;
IBOutlet NSTextView *txtCrashDescription;
IBOutlet NSTextView *txtCrashStepsToReproduce;
// All Tabs
IBOutlet NSButton *btnIncludeMyEmail;
IBOutlet NSComboBox *cboEmailAddress;
IBOutlet NSProgressIndicator *piStatus;
IBOutlet NSButton *btnSend;
BOOL _crashReportMode;
// Miscellaneous
id openFeedback;
id<OpenFeedbackDelegate> delegate;
}
- (IBAction)presentFeedbackPanelForSupport:(id)sender;
- (IBAction)presentFeedbackPanelForFeature:(id)sender;
- (IBAction)presentFeedbackPanelForBug:(id)sender;
- (void)presentFeedbackPanelForCrash:(NSString *)report;
- (void)showFeedbackWindow;
- (void) populateEmailAddresses;
- (IBAction)selectedTabDidChange:(id)sender;
- (IBAction)chkIncludeEmail:(id)sender;
- (BOOL)sendButtonIsEnabled;
- (IBAction)sendFeedback:(id)sender;
NSString *urlEscape(NSString *str);
@property (assign) id openFeedback;
@property (assign) id<OpenFeedbackDelegate> delegate;
@end