- Combined MPExpression and MPMutableExpression - Abstracted children of MPExpression into MPExpressionElement protocol - Abstracted most of MPExpressionLayout and MPFunctionLayout into common superclass MPLayout
29 lines
646 B
Objective-C
29 lines
646 B
Objective-C
//
|
|
// MPExpressionView.h
|
|
// MathPad
|
|
//
|
|
// Created by Kim Wittenburg on 17.04.14.
|
|
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
|
|
//
|
|
|
|
// TODO: Undo/Redo + Delegate
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
@class MPExpressionView, MPExpressionStorage, MPExpressionLayout, MPRangePath;
|
|
|
|
@interface MPExpressionView : NSView <NSUserInterfaceValidations>
|
|
|
|
#pragma mark Creation Methods
|
|
|
|
- (id)initWithFrame:(NSRect)frameRect;
|
|
|
|
#pragma mark Properties
|
|
|
|
@property (readonly, nonatomic, strong) MPExpressionStorage *expressionStorage;
|
|
|
|
@property (nonatomic, getter = isEditable) BOOL editable;
|
|
@property (nonatomic, strong) MPRangePath *selection;
|
|
|
|
@end
|