//
//  GSSteppingTextField.h
//  GlyphsCore
//
//  Created by Georg Seifert on 04.09.10.
//  Copyright 2010 schriftgestaltung.de. All rights reserved.
//

#import <GlyphsApp/GSNoBackgroundTextField.h>

@class GSSteppingTextField;

@protocol GSSteppingTextFieldDelegate

@optional

- (BOOL)textFieldDoMath:(GSSteppingTextField *)textField;

- (BOOL)textFieldCanStep:(GSSteppingTextField *)textField;

@end

@interface GSSteppingTextField : GSNoBackgroundTextField

@property (nonatomic, strong) NSString *plainValue;

@property (nonatomic) BOOL compactWidth;

@property (strong) NSNumber *stepFactor;

+ (CGFloat)applyCalculations:(NSString *)stringValue;

#pragma mark - Deprecated (Glyphs 3 compatibility)

/// Internal helper. Exposed for Glyphs 3 source compatibility; still implemented but not intended as public API.
- (BOOL)endEditing GSDeprecated("");

@end
