mirror of
https://github.com/dsward2/macSVG.git
synced 2026-03-02 18:23:58 +01:00
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.
73 lines
2.2 KiB
Objective-C
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
|