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