//
//  GlyphsFilterOffsetCurve.h
//  GlyphsFilterOffsetCurve
//
//  Created by Georg Seifert on 13.1.08.
//  Copyright 2008 schriftgestaltung.de. All rights reserved.
//

#import <GlyphsApp/GSFilterPlugin.h>
#import <GlyphsCore/GSPath.h>

@class GSLayer;

NS_ASSUME_NONNULL_BEGIN

@interface GlyphsFilterOffsetCurve : GSFilterPlugin

#if !TARGET_OS_IOS
@property (nonatomic, weak) IBOutlet NSTextField *offsetXField;
@property (nonatomic, weak) IBOutlet NSTextField *offsetYField;
@property (nonatomic, weak) IBOutlet NSButton *proportionalButton;
@property (nonatomic, weak) IBOutlet NSButton *makeStrokeButton;
@property (nonatomic, weak) IBOutlet NSButton *autoStrokeButton;
@property (nonatomic, weak) IBOutlet NSTextField *positionTextField;
@property (nonatomic, weak) IBOutlet NSTextField *positionLabel;
@property (nonatomic, weak) IBOutlet NSSegmentedControl *capStyleButton;
@property (nonatomic, weak) IBOutlet NSButton *keepCompatibleCheckbox;

//@property float radius;
- (IBAction)setOffsetX:(id)sender;
- (IBAction)setOffsetY:(id)sender;
- (IBAction)setProportional:(id)sender;
- (IBAction)setMakeStroke:(id)sender;
- (IBAction)setAutoStroke:(id)sender;
- (IBAction)setPosition:(id)sender;
- (IBAction)setCapStyle:(id)sender;
- (IBAction)setKeepCompatible:(id)sender;
#else
@property (nonatomic, weak) IBOutlet UITextField *offsetXField;
@property (nonatomic, weak) IBOutlet UITextField *offsetYField;
@property (nonatomic, weak) IBOutlet UIButton *proportionalButton;
@property (nonatomic, weak) IBOutlet UISwitch *makeStrokeButton;
@property (nonatomic, weak) IBOutlet UISwitch *autoStrokeButton;
@property (nonatomic, weak) IBOutlet UITextField *positionTextField;
@property (nonatomic, weak) IBOutlet UITextField *positionLabel;
@property (nonatomic, weak) IBOutlet UISegmentedControl *capStyleButton;
@property (nonatomic, weak) IBOutlet UISwitch *keepCompatibleCheckbox;

- (IBAction)setOffsetX:(id)sender;
- (IBAction)setOffsetY:(id)sender;
- (IBAction)setProportional:(id)sender;
- (IBAction)setMakeStroke:(id)sender;
- (IBAction)setAutoStroke:(id)sender;
- (IBAction)setPosition:(id)sender;
- (IBAction)setCapStyle:(id)sender;
- (IBAction)setKeepCompatible:(id)sender;
#endif
- (nullable NSString *)input:(NSString *)prompt
				defaultValue:(NSString *)defaultValue;
@end

NS_ASSUME_NONNULL_END
