#pragma once #if !defined(TOONZ_PLUGIN_LOADER_H__) #define TOONZ_PLUGIN_LOADER_H__ #include #include #include #undef DVAPI #undef DVVAR #ifdef TOONZQT_EXPORTS #define DVAPI DV_EXPORT_API #define DVVAR DV_EXPORT_VAR #else #define DVAPI DV_IMPORT_API #define DVVAR DV_IMPORT_VAR #endif /* Plugin Loader の inter-module interfaces: toonzqt 以下のモジュールからアクセスするのに必要 (see: toonz/insertfxpopup.cpp) implements in pluginhost.cpp */ class TFx; class DVAPI PluginLoader { public: static std::map create_menu_items( std::function &&, std::function &&); static TFx *create_host(const std::string &id); static bool load_entries(const std::string &basepath); }; #endif