Files
macSVG-mirror/macSVG/SVGDocument Classes/AttributeEditorPlugInController.h
dsward2 2f547e6a37 macOS 10.15 Catalina will be released soon, and apparently will include the WebKit Legacy framework, so this commit will make some initial changes to macSVG for Catalina.
The Generate HTML5 Video command should be working again for Macs that don't use Xeon processors.

The biggest set of changes is to suppress the warning messages for deprecated WebKit APIs.  This is done by wrapping some conditional code around the deprecated code, e.g.,

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
// deprecated APIs used here
#pragma clang diagnostic pop

More work needs to be done on this.

Several other deprecated macOS APIs were identified, and several were updated.

A subsequent commit is planned to update some third-party code, like CocoaAsyncSocket, CocoaHTTPServer, etc.
2019-10-04 02:49:42 -05:00

42 lines
1.1 KiB
Objective-C

//
// AttributeEditorPlugInController.h
// macSVG
//
// Created by Douglas Ward on 1/1/12.
// Copyright © 2016 ArkPhone LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
@class EditorUIFrameController;
@class DOMEvent;
@class SVGXMLDOMSelectionManager;
@interface AttributeEditorPlugInController : NSObject
{
IBOutlet EditorUIFrameController * editorUIFrameController;
IBOutlet NSView * attributeEditorPlugInView;
//IBOutlet NSPopUpButton * attributeEditorPlugInPopUpButton;
IBOutlet SVGXMLDOMSelectionManager * svgXMLDOMSelectionManager;
}
@property(weak) IBOutlet NSScrollView * pluginHostScrollView;
@property(strong) NSXMLElement * currentXMLElementForAttribute;
@property(strong) NSString * currentAttributeName;
@property(strong) id currentPlugin;
-(void)setEnabled:(BOOL)enabled;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
- (void) handlePluginEvent:(DOMEvent *)event;
#pragma clang diagnostic pop
- (void)loadAttributeEditorPlugIn:(NSString *)selectedAttributeEditorPlugIn;
- (NSMutableArray *) contextMenuItemsForPlugin;
@end