Removed old commented-out code.
[CleverRabbit.git] / RTKRevision.h
blobad7e8078a1271e41c7efe4cad29281add6977bb3
1 //
2 // RTKRevision.h
3 // (CleverRabbit.app)
4 //
5 // Copyright (c) 2005 A. Karl Keller (http://karlk.net)
6 //
7 // This code is open-source, free software, made available without warranty under
8 // the terms of the GNU General Public License, either version 2 or later (see
9 // http://www.gnu.org/licenses/gpl.html or included copy); as such, it may be
10 // redistributed and/or modified in accordance with that document.
15 #import <Cocoa/Cocoa.h>
18 @interface RTKRevision : NSObject
20 NSString * script;
21 NSString * roman;
22 NSString * backTranslation;
23 NSString * notes;
24 NSString * checking;
26 bool locked;
28 // Lossless forwards/backwards compatibility
29 NSDictionary * dictionary;
32 - (id)initWithDictionary:(NSDictionary *)dict;
33 + (RTKRevision *)revisionWithDictionary:(NSDictionary *)dict;
34 - (id)initWithString:(NSString *)string;
35 + (RTKRevision *)revisionWithString:string;
36 - (id)initWithSFMString:(NSString *)string;
37 + (RTKRevision *)revisionWithSFMString:(NSString*)string;
38 - (void)appendLine:(NSString *)line;
39 - (id)deepCopy;
41 - (NSString *)roman;
42 - (NSString *)script;
43 - (NSString *)backTranslation;
44 - (NSString *)notes;
45 - (NSString *)checking;
46 - (BOOL)locked;
49 - (void)setRoman:(NSString *)string;
50 - (void)setScript:(NSString *)string;
51 - (void)setBackTranslation:(NSString *)string;
52 - (void)setNotes:(NSString *)string;
53 - (void)setChecking:(NSString *)string;
54 - (void)setLocked:(bool)state;
56 - (void)setDictionary:(NSDictionary *)theDictionary;
57 - (NSDictionary *)dictionary;
59 - (NSMutableString *)textSafeStringForString:(NSString *)string;
60 - (NSMutableString *)stringFromTextSafeString:(NSString *)textSafeString;
62 - (BOOL)blank;
63 - (BOOL)matchesString:(NSString *)string;
65 - (NSMutableAttributedString *)mutableAttributedString:(BOOL)romanString;
66 - (NSString *)stringWithVerseNumber:(NSString *)verseNumber;
69 @end