-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBCCitationDialogController.h
75 lines (51 loc) · 1.96 KB
/
BCCitationDialogController.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
//
// BCCitationDialogController.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>
@class BCCitation;
@interface BCCitationDialogController : NSObject
@property BCCitation *theCitation;
@property IBOutlet NSWindow *dialog;
@property BOOL returnFlag;
@property IBOutlet NSTabView *tabView;
@property IBOutlet NSTokenField *authors; /// array of BCCitationAuthors...
@property IBOutlet NSTextField *title;
@property IBOutlet NSTokenField *databaseIDs;
@property IBOutlet NSTextField *citeKey;
// journal article fields
@property IBOutlet NSTextField *journal;
@property IBOutlet NSTextField *journalAbbreviation;
@property IBOutlet NSTextField *volume;
@property IBOutlet NSTextField *number;
@property IBOutlet NSTextField *pages;
@property IBOutlet NSTextField *year;
// book chapter fields
@property IBOutlet NSTextField *bookTitleChapter;
@property IBOutlet NSTextField *bookLengthChapter;
@property IBOutlet NSTokenField *editorsChapter; // array of BCCitationAuthors
@property IBOutlet NSTextField *publisherChapter;
@property IBOutlet NSTextField *publicationPlaceChapter;
@property IBOutlet NSTextField *volumeChapter;
@property IBOutlet NSTextField *numberChapter;
@property IBOutlet NSTextField *pagesChapter;
@property IBOutlet NSTextField *yearChapter;
// book fields
@property IBOutlet NSTextField *bookTitle;
@property IBOutlet NSTextField *bookLength;
@property IBOutlet NSTokenField *editors; // array of BCCitationAuthors
@property IBOutlet NSTextField *publisher;
@property IBOutlet NSTextField *publicationPlace;
@property IBOutlet NSTextField *volumeBook;
@property IBOutlet NSTextField *numberBook;
@property IBOutlet NSTextField *yearBook;
-(id)initWithCitation:(BCCitation *)c;
/** return YES if OK pressed and citation edited
return NO if Cancel pressed and citation not touched
*/
-(BOOL)dialogForWindow:(NSWindow *)ownerWindow;
@end