forked from kevinmbeaulieu/CleanMenuBar
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPFAboutWindowController.h
executable file
·104 lines (86 loc) · 2.12 KB
/
PFAboutWindowController.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
//
// PFAboutWindowController.m
//
// Copyright (c) 2015 Perceval FARAMAZ (@perfaram). All rights reserved.
//
#import <Cocoa/Cocoa.h>
/**
* The about window.
*/
@interface PFAboutWindowController : NSWindowController
/**
* The application name.
* Default: CFBundleName
*/
@property (copy) NSString *appName;
/**
* The application version.
* Default: "Version %@ (Build %@)", CFBundleVersion, CFBundleShortVersionString
*/
@property (copy) NSString *appVersion;
/**
* The copyright line.
* Default: NSHumanReadableCopyright
*/
@property (copy) NSAttributedString *appCopyright;
/**
* The credits.
* Default: contents of file at [[NSBundle mainBundle] pathForResource:@"Credits" ofType:@"rtf"];
*/
@property (copy) NSAttributedString *appCredits;
/**
* The EULA.
* Default: contents of file at [[NSBundle mainBundle] pathForResource:@"EULA" ofType:@"rtf"];
*/
@property (copy) NSAttributedString *appEULA;
/**
* The URL pointing to the app's website.
* Default: none
*/
@property (strong) NSURL *appURL;
/**
* The current text shown.
*/
@property (copy) NSAttributedString *textShown;
@property int windowState;
/**
* Visit the website.
*
* @param sender The object making the call.
*/
- (IBAction)visitWebsite:(id)sender;
/**
* Show credits for libraries used etc.
*
* @param sender The object making the call.
*/
- (IBAction)showCredits:(id)sender;
/**
* Show the End User License Agreement for your app.
*
* @param sender The object making the call.
*/
- (IBAction)showEULA:(id)sender;
/**
* Show the Copyrights for your app.
*
* @param sender The object making the call.
*/
- (IBAction)showCopyright:(id)sender;
/**
* Called when window is about to close.
*
* @param sender The object making the call.
*/
- (BOOL)windowShouldClose:(id)sender;
/**
* Specify whether or not the window should use a shadow.
* Default: YES
*/
@property (assign) BOOL windowShouldHaveShadow;
/**
* Select the text (Acknowledgments & EULA) color.
* Default : light grey
*/
- (instancetype) initWithBackgroundColor:(NSColor*)background titleColor:(NSColor*)title textColor:(NSColor*)text;
@end