Files
macSVG-mirror/macSVG/SVGDocument Classes/DOMSelectionControlsManager.h
dsward2 14b07a4276 This commit adds a new PathSegment object to replace the use of a NSDictionary for path editing functions.
Also, some support for editing paths with relative coordinates was added, but several bugs remain to be fixed.

In several files, CGFloat data types were replaced with float types, to match WebKit's data types.
2020-04-19 03:00:26 -05:00

73 lines
2.2 KiB
Objective-C

//
// DOMSelectionControlsManager.h
// macSVG
//
// Created by Douglas Ward on 9/9/13.
//
//
#import <Foundation/Foundation.h>
#import <WebKit/WebKit.h>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
// Supports selection rects for multiple elements, but note: only one element should have handles
@class DOMElement;
@class SVGWebView;
@class SVGXMLDOMSelectionManager;
@class SVGWebKitController;
@class ToolSettingsPopoverViewController;
@class MacSVGDocumentWindowController;
@interface DOMSelectionControlsManager : NSObject
{
IBOutlet MacSVGDocumentWindowController * macSVGDocumentWindowController;
IBOutlet SVGWebView * svgWebView;
IBOutlet SVGWebKitController * svgWebKitController;
IBOutlet SVGXMLDOMSelectionManager * svgXMLDOMSelectionManager;
IBOutlet ToolSettingsPopoverViewController * toolSettingsPopoverViewController;
}
@property (strong) NSDictionary * validElementsForTransformDictionary;
@property (strong) DOMElement * domElementForHandles;
@property (assign) time_t domElementForHandlesCreationTime;
@property(assign) float segmentStrokeWidth;
@property(strong) NSString * segmentStrokeHexColor;
- (void) makeDOMSelectionRects;
- (void) makeDOMSelectionHandles:(DOMElement *)aDomElement;
- (void) updateDOMSelectionRectsAndHandles;
- (void) removeDOMSelectionRectsAndHandles;
@property (readonly, copy) NSXMLElement *keyXMLElement;
-(void) removeDOMPathSegmentHighlight;
-(void) removeDOMPolylinePointHighlight;
-(void) removeDOMLinePointHighlight;
- (IBAction)highlightPathSegment;
- (IBAction)highlightPolylinePoint;
- (IBAction)highlightLinePoint;
@property (readonly, copy) DOMElement *macsvgTopGroupElement;
- (DOMElement *)getMacsvgTopGroupChildByID:(NSString *)idString createIfNew:(BOOL)createIfNew;
- (void)setMacsvgTopGroupChild:(DOMElement *)childElement;
- (void)removeMacsvgTopGroupChildByID:(NSString *)idString;
- (void)removeMacsvgTopGroupChildByClass:(NSString *)classString;
- (void)addPluginSelectionHandleWithDOMElement:(DOMElement *)aDomElement
handlesGroup:(DOMElement *)newSelectionHandlesGroup
x:(float)x y:(float)y handleName:(NSString *)handleName
pluginName:(NSString *)pluginName;
@end
#pragma clang diagnostic pop