Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 66 lines (54 sloc) 2.609 kb
dc5be1c Initial check-in.
uli authored
1 //
2 // UKFeedbackProvider.h
3 // NiftyFeatures
4 //
5 // Created by Uli Kusterer on Mon Nov 24 2003.
720b0e7 @uliwitness Added licensing information to the source files.
authored
6 // Copyright (c) 2003 Uli Kusterer.
7 //
8 // This software is provided 'as-is', without any express or implied
9 // warranty. In no event will the authors be held liable for any damages
10 // arising from the use of this software.
11 //
12 // Permission is granted to anyone to use this software for any purpose,
13 // including commercial applications, and to alter it and redistribute it
14 // freely, subject to the following restrictions:
15 //
16 // 1. The origin of this software must not be misrepresented; you must not
17 // claim that you wrote the original software. If you use this software
18 // in a product, an acknowledgment in the product documentation would be
19 // appreciated but is not required.
20 //
21 // 2. Altered source versions must be plainly marked as such, and must not be
22 // misrepresented as being the original software.
23 //
24 // 3. This notice may not be removed or altered from any source
25 // distribution.
dc5be1c Initial check-in.
uli authored
26 //
27
28 // -----------------------------------------------------------------------------
29 // Headers:
30 // -----------------------------------------------------------------------------
31
32 #import <Foundation/Foundation.h>
33
34
35 // -----------------------------------------------------------------------------
36 // Class Declarations:
37 // -----------------------------------------------------------------------------
38
39 @interface UKFeedbackProvider : NSObject
40 {
41 IBOutlet NSWindow* feedbackWindow; // Will automatically be hooked up. Don't do this yourself.
42 IBOutlet NSComboBox* subjectField; // Will automatically be hooked up. Don't do this yourself.
43 IBOutlet NSTextView* messageText; // Will automatically be hooked up. Don't do this yourself.
44 IBOutlet NSTextField* myEmailField; // Will automatically be hooked up. Don't do this yourself.
45 }
46
47 // Action for the "send feedback" menu item:
48 -(IBAction) orderFrontFeedbackWindow: (id)sender; // "Send Feedback..." menu item action method.
49 -(IBAction) orderFrontBugReportWindow: (id)sender; // "Report bug..." menu item action method.
50 -(IBAction) sendFeedback: (id)sender; // Old name, just for compatibility.
51
52 // Actions for the three buttons in the window:
53 -(IBAction) sendFeedbackButtonAction: (id)sender;
54 -(IBAction) closeFeedbackWindow: (id)sender;
55 -(IBAction) openURL: (id)sender;
56
57
58 // Override these if you need to send along additional info:
59 -(NSAttributedString*) emailMessageFromUserText: (NSAttributedString*)userText;
60 -(NSString*) windowNibName;
61
62 // Private:
63 -(void) orderFrontEMailWindowWithPreselectedSubject: (int)num;
64
65 @end
Something went wrong with that request. Please try again.