forked from jerrykrinock/ClassesObjC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSSYAboutPanelController.h
executable file
·62 lines (44 loc) · 1.58 KB
/
SSYAboutPanelController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#import <AppKit/AppKit.h>
extern NSString* const SSYAboutPanelHelpAnchorAcknowledgements ;
@class ScrollingTextView;
@interface SSYAboutPanelController : NSObject
#if (MAC_OS_X_VERSION_MAX_ALLOWED >= 1060)
<NSWindowDelegate>
#endif
{
// This panel exists in the nib file, but the user never sees it, because
// we rip out its contents and place them in “panelToDisplay”.
IBOutlet NSPanel *panelInNib;
// This panel is not in the nib file; we create it programmatically.
NSPanel *panelToDisplay;
// Scrolling text: the scroll-view and the text-view itself
IBOutlet NSScrollView *textScrollView;
IBOutlet NSTextView *textView;
// Outlet we fill in using information from the application’s bundle
IBOutlet NSTextField *versionField;
IBOutlet NSTextField *shortInfoField;
// Buttons
IBOutlet NSButton *buttonClose ;
IBOutlet NSButton *buttonInfo ;
IBOutlet NSButton *buttonHelp ;
// Timer to fire scrolling animation
NSTimer *scrollingTimer;
/*
In -awakeFromNib, we look in main bundle resources for an image
with same name as CFBundleExecutable (name) and setImage of
iconView to it.
*/
IBOutlet NSImageView *iconView ;
}
#pragma mark * PUBLIC CLASS METHODS
+ (SSYAboutPanelController *) sharedInstance;
#pragma mark * PUBLIC INSTANCE METHODS
// Show the panel, starting the text at the top with the animation going
- (void) showPanel;
// Stop scrolling and hide the panel.
- (void) hidePanel;
// Buttons
- (IBAction)close:(id)sender ;
- (IBAction)info:(id)sender ;
- (IBAction)help:(id)sender ;
@end