Commit 41f8f60a authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas
Browse files

add method to activate dtkObjectManager in composer extensions

parent ff5be790
......@@ -80,6 +80,7 @@ namespace dtkComposer
namespace _private {
dtkComposerExtensionPluginFactory factory;
dtkComposerExtensionPluginManager manager;
bool activate_obj_mgr = false;
}
dtkComposerExtensionPluginFactory& pluginFactory(void)
......@@ -92,6 +93,18 @@ namespace dtkComposer
return _private::manager;
}
void activateObjectManager(bool val)
{
qDebug() << "set activate object manager to:" << val;
_private::activate_obj_mgr = val;
}
bool isObjectManagerActive(void)
{
qDebug() << "is active object manager ?" << _private::activate_obj_mgr ;
return _private::activate_obj_mgr ;
}
void initialize(const QString& path)
{
QString realpath = path;
......
......@@ -34,6 +34,8 @@ namespace dtkComposer {
DTKCOMPOSER_EXPORT dtkComposerExtensionPluginFactory& pluginFactory(void);
DTKCOMPOSER_EXPORT dtkComposerExtensionPluginManager& pluginManager(void);
DTKCOMPOSER_EXPORT void initialize(const QString& path = "");
DTKCOMPOSER_EXPORT void activateObjectManager(bool val = true);
DTKCOMPOSER_EXPORT bool isObjectManagerActive(void);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment