mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-23 16:19:29 +00:00
Added rudimentary export plugin support
This commit is contained in:
@@ -141,9 +141,20 @@ FOUNDATION_EXPORT NSString *const MPPluginDescriptionInfoDictionaryKey;
|
||||
@param panel The open panel used for selecting what file(s) to import
|
||||
@return The KPKTree constructed from the selected input file(s)
|
||||
*/
|
||||
- (KPKTree *)treeForRunningOpenPanel:(NSOpenPanel *)panel;
|
||||
- (nullable KPKTree *)treeForRunningOpenPanel:(NSOpenPanel *)panel;
|
||||
@end
|
||||
|
||||
@protocol MPExportPlugin <NSObject>
|
||||
|
||||
@required
|
||||
|
||||
- (void)prepareExportMenuItem:(NSMenuItem *)item;
|
||||
- (void)prepareSavePanel:(NSSavePanel *)panel;
|
||||
- (void)exportTree:(KPKTree *)tree forRunningSavePanel:(NSSavePanel *)panel;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
#pragma mark Deprecated
|
||||
|
||||
@interface MPPlugin (Deprecated)
|
||||
|
||||
Reference in New Issue
Block a user