|
@@ -22,15 +22,18 @@ class KMNotesPreferences: NSViewController {
|
|
|
NSArray *lineWells1;
|
|
|
NSArray *lineWells2;
|
|
|
}
|
|
|
-
|
|
|
- // fontWells
|
|
|
- @property (nonatomic, retain) IBOutlet NSArray *labels1, *colorLabels2, *colorLabels3, *lineLabels2, *colorWells1, *colorWells2, *colorWells3, *lineWells1, *lineWells2;
|
|
|
-
|
|
|
*/
|
|
|
|
|
|
@IBOutlet var fontWell1: KMFontWell!
|
|
|
@IBOutlet var fontWell2: KMFontWell!
|
|
|
|
|
|
+ @IBOutlet weak var lineWells1_1: KMLineWell!
|
|
|
+ @IBOutlet weak var lineWells1_2: KMLineWell!
|
|
|
+ @IBOutlet weak var lineWells1_3: KMLineWell!
|
|
|
+
|
|
|
+ @IBOutlet weak var lineWells2_1: KMLineWell!
|
|
|
+ @IBOutlet weak var lineWells2_2: KMLineWell!
|
|
|
+
|
|
|
override var nibName: NSNib.Name? {
|
|
|
return "NotesPreferences"
|
|
|
}
|
|
@@ -89,18 +92,23 @@ class KMNotesPreferences: NSViewController {
|
|
|
// [lineWell bind:SKLineWellStyleKey toObject:sudc withKeyPath:VALUES_KEY_PATH(SKStringConstants.freeTextNoteLineStyleKey) options:nil];
|
|
|
// [lineWell bind:SKLineWellDashPatternKey toObject:sudc withKeyPath:VALUES_KEY_PATH(SKStringConstants.freeTextNoteDashPatternKey) options:nil];
|
|
|
// [lineWell setDisplayStyle:SKLineWellDisplayStyleRectangle];
|
|
|
+ self.lineWells1_1.lineWidth = 0
|
|
|
//
|
|
|
// lineWell = [lineWells2 objectAtIndex:0];
|
|
|
// [lineWell bind:SKLineWellLineWidthKey toObject:sudc withKeyPath:VALUES_KEY_PATH(SKStringConstants.circleNoteLineWidthKey) options:nil];
|
|
|
// [lineWell bind:SKLineWellStyleKey toObject:sudc withKeyPath:VALUES_KEY_PATH(SKStringConstants.circleNoteLineStyleKey) options:nil];
|
|
|
// [lineWell bind:SKLineWellDashPatternKey toObject:sudc withKeyPath:VALUES_KEY_PATH(SKStringConstants.circleNoteDashPatternKey) options:nil];
|
|
|
// [lineWell setDisplayStyle:SKLineWellDisplayStyleOval];
|
|
|
+ self.lineWells2_1.displayStyle = .oval
|
|
|
+ self.lineWells2_1.lineWidth = 2
|
|
|
//
|
|
|
// lineWell = [lineWells2 objectAtIndex:1];
|
|
|
// [lineWell bind:SKLineWellLineWidthKey toObject:sudc withKeyPath:VALUES_KEY_PATH(SKStringConstants.squareNoteLineWidthKey) options:nil];
|
|
|
// [lineWell bind:SKLineWellStyleKey toObject:sudc withKeyPath:VALUES_KEY_PATH(SKStringConstants.squareNoteLineStyleKey) options:nil];
|
|
|
// [lineWell bind:SKLineWellDashPatternKey toObject:sudc withKeyPath:VALUES_KEY_PATH(SKStringConstants.squareNoteDashPatternKey) options:nil];
|
|
|
// [lineWell setDisplayStyle:SKLineWellDisplayStyleRectangle];
|
|
|
+ self.lineWells2_2.displayStyle = .rectangle
|
|
|
+ self.lineWells2_2.lineWidth = 2
|
|
|
//
|
|
|
// lineWell = [lineWells1 objectAtIndex:1];
|
|
|
// [lineWell bind:SKLineWellLineWidthKey toObject:sudc withKeyPath:VALUES_KEY_PATH(SKStringConstants.lineNoteLineWidthKey) options:nil];
|
|
@@ -108,46 +116,23 @@ class KMNotesPreferences: NSViewController {
|
|
|
// [lineWell bind:SKLineWellDashPatternKey toObject:sudc withKeyPath:VALUES_KEY_PATH(SKStringConstants.lineNoteDashPatternKey) options:nil];
|
|
|
// [lineWell bind:SKLineWellStartLineStyleKey toObject:sudc withKeyPath:VALUES_KEY_PATH(SKStringConstants.lineNoteStartLineStyleKey) options:nil];
|
|
|
// [lineWell bind:SKLineWellEndLineStyleKey toObject:sudc withKeyPath:VALUES_KEY_PATH(SKStringConstants.lineNoteEndLineStyleKey) options:nil];
|
|
|
+ self.lineWells1_2.displayStyle = .line
|
|
|
+ self.lineWells1_2.lineWidth = 2
|
|
|
+ self.lineWells1_2.endLineStyle = .openArrow
|
|
|
//
|
|
|
// lineWell = [lineWells1 objectAtIndex:2];
|
|
|
// [lineWell bind:SKLineWellLineWidthKey toObject:sudc withKeyPath:VALUES_KEY_PATH(SKStringConstants.inkNoteLineWidthKey) options:nil];
|
|
|
// [lineWell bind:SKLineWellStyleKey toObject:sudc withKeyPath:VALUES_KEY_PATH(SKStringConstants.inkNoteLineStyleKey) options:nil];
|
|
|
// [lineWell bind:SKLineWellDashPatternKey toObject:sudc withKeyPath:VALUES_KEY_PATH(SKStringConstants.inkNoteDashPatternKey) options:nil];
|
|
|
// [lineWell setDisplayStyle:SKLineWellDisplayStyleSimpleLine];
|
|
|
+ self.lineWells1_3.displayStyle = .simpleLine
|
|
|
+ self.lineWells1_3.lineWidth = 2
|
|
|
|
|
|
// let fontWell = self.fontWell1
|
|
|
// NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:NSUnarchiveFromDataTransformerName, NSValueTransformerNameBindingOption, nil];
|
|
|
// [fontWell setHasTextColor:YES];
|
|
|
// [fontWell bind:@"textColor" toObject:sudc withKeyPath:VALUES_KEY_PATH(SKStringConstants.freeTextNoteFontColorKey) options:options];
|
|
|
}
|
|
|
-
|
|
|
- /*
|
|
|
- @implementation SKNotesPreferences
|
|
|
-
|
|
|
- @synthesize labels1, colorLabels2, colorLabels3, lineLabels2, colorWells1, colorWells2, colorWells3, lineWells1, lineWells2;
|
|
|
-
|
|
|
- - (void)dealloc {
|
|
|
- // SKDESTROY(labels1);
|
|
|
- // SKDESTROY(colorLabels2);
|
|
|
- // SKDESTROY(colorLabels3);
|
|
|
- // SKDESTROY(lineLabels2);
|
|
|
- // SKDESTROY(colorWells1);
|
|
|
- // SKDESTROY(colorWells2);
|
|
|
- // SKDESTROY(colorWells3);
|
|
|
- // SKDESTROY(fontWells);
|
|
|
- // SKDESTROY(lineWells1);
|
|
|
- // SKDESTROY(lineWells2);
|
|
|
- // [super dealloc];
|
|
|
- }
|
|
|
-
|
|
|
- - (NSString *)nibName {
|
|
|
- return @"";
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- */
|
|
|
-
|
|
|
}
|
|
|
|
|
|
extension KMNotesPreferences: KMPreferencePane {
|