-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBCAuthorDialogController.h
More file actions
71 lines (50 loc) · 2.28 KB
/
BCAuthorDialogController.h
File metadata and controls
71 lines (50 loc) · 2.28 KB
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
//
// BCAuthorDialogController.h
// Caravan
//
// Created by Tom Houpt on 15/3/16.
// Copyright (c) 2015 Tom Houpt. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
#define kAuthorOptionFieldsAreExpandedKey @"BCAuthorOptionFieldsAreExpanded"
#define kAuthorRecentAffiliationsKey @"BCAuthorRecentAffiliations"
#define kMaxNumberOfRecentAffiliations 10
@class BCAuthor;
@interface BCAuthorDialogController : NSObject
@property BCAuthor *theAuthor;
@property IBOutlet NSWindow *dialog;
@property IBOutlet NSView *optionsView;
@property BOOL returnFlag;
@property BOOL firstRun;
@property NSMutableArray *affilArray;
// required for citations
@property IBOutlet NSTextField *indexName;// last or family name in Europe
@property IBOutlet NSTextField *initials; // "J.C." or "JC" or "J C". note that a hypen, e.g. "J-LP", is not a separator, so "J-LP" would be parsed as "J.-L. P"
@property IBOutlet NSTextField * orcid; // 16 digit number with hyphen every 4 digits
// @property IBOutlet NSTextField *clusterID;
// @property IBOutlet NSTextField *authorType;
// requird for title page or contact info...
// probably overdetermined
// can be matched more directly to vcard?
@property IBOutlet NSTextField *contribution;
@property IBOutlet NSComboBox *position; /// e.g. "Research Associate, Professor, Chair" can be multiple can be multiple
@property IBOutlet NSComboBox *prefix; /// "Professor" or "Professor Dr.
@property IBOutlet NSTextField *fullName; /// as used on title page "James C. Smith"
@property IBOutlet NSComboBox *degrees; // e.g. "PhD, MD"
@property IBOutlet NSTextField *informal; // e.g. Jim
@property IBOutlet NSTextField *affiliation;// bind to fancy affliation structure...[define like an URL..., can be multiple
@property IBOutlet NSTextField *address;
@property IBOutlet NSTextField *phone;
@property IBOutlet NSTextField *fax;
@property IBOutlet NSTextField *email;
@property IBOutlet NSTextField *website;
@property IBOutlet NSButton *optionFieldsButton;
@property IBOutlet NSButton *optionFieldsLabelButton;
@property IBOutlet NSPopUpButton *recentAffiliations;
-(id)initWithAuthor:(BCAuthor *)a;
/** return YES if OK pressed and author edited
return NO if Cancel pressed and author not touched
*/
-(BOOL)dialogForWindow:(NSWindow *)ownerWindow;
@end