//
//  GSInspectorViewController.h
//  GlyphsCore
//
//  Created by Georg Seifert on 09.02.09.
//  Copyright 2009 schriftgestaltung.de. All rights reserved.
//

NS_ASSUME_NONNULL_BEGIN

@class GSElement;
@class GSGlyphEditView;
@class GSEditViewController;
@class GSGlyphEditView;

@interface GSInspectorViewController : NSViewController

@property (weak, nonatomic, nullable) id delegate;
@property (weak, nonatomic, nullable) GSEditViewController *controller;

@property (weak, nullable) IBOutlet NSTextField *xField;
@property (weak, nullable) IBOutlet NSTextField *yField;
@property (weak, nullable) IBOutlet NSTextField *nameField;
@property (weak, nullable) GSGlyphEditView *glyphEditView;

@property (strong) id glassView;

- (IBAction)setXorigin:(nullable id)sender;
- (IBAction)setYorigin:(nullable id)sender;
- (IBAction)setName:(nullable id)sender;
- (void)update;

- (void)setupUIForObjects:(NSArray *)objects key:(NSString *)key target:(NSTextField *)textField format:(nullable NSString *)format;
- (void)setupUIForObjects:(NSArray *)objects key:(NSString *)key target:(NSTextField *)textField format:(nullable NSString *)format precision:(int)precision;
- (void)setPositionFromObjects:(NSArray *)objects;
- (void)setNameFromObjects:(NSArray *)objects;
- (IBAction)showUnicodeInfo:(nullable id)sender;
- (void)activateEditView;

- (nullable NSColor *)tintColor;

@end

NS_ASSUME_NONNULL_END
