tahoma2d/toonz/sources/include/toonzqt/pluginloader.h

36 lines
844 B
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#if !defined(TOONZ_PLUGIN_LOADER_H__)
#define TOONZ_PLUGIN_LOADER_H__
#include <functional>
#include <string>
#include <QTreeWidget>
#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:
2016-06-15 18:43:10 +12:00
toonzqt (see:
toonz/insertfxpopup.cpp)
2016-03-19 06:57:51 +13:00
implements in pluginhost.cpp */
class TFx;
2016-06-15 18:43:10 +12:00
class DVAPI PluginLoader {
2016-03-19 06:57:51 +13:00
public:
2016-06-15 18:43:10 +12:00
static std::map<std::string, QTreeWidgetItem *> create_menu_items(
std::function<void(QTreeWidgetItem *)> &&,
std::function<void(QTreeWidgetItem *)> &&);
static TFx *create_host(const std::string &id);
static bool load_entries(const std::string &basepath);
2016-03-19 06:57:51 +13:00
};
#endif