Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dtk
dtk
Commits
41f8f60a
Commit
41f8f60a
authored
Nov 10, 2017
by
NICLAUSSE Nicolas
Browse files
add method to activate dtkObjectManager in composer extensions
parent
ff5be790
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/dtkComposer/dtkComposer.cpp
View file @
41f8f60a
...
...
@@ -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
;
...
...
src/dtkComposer/dtkComposer.h
View file @
41f8f60a
...
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment