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
0f025edd
Commit
0f025edd
authored
Aug 27, 2014
by
NICLAUSSE Nicolas
Browse files
must add export name as second argument to DTK_DECLARE_XXX macros for plugins
parent
701b4508
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/dtkCore/dtkCorePlugin.h
View file @
0f025edd
...
...
@@ -39,8 +39,8 @@
#define DTK_DECLARE_PLUGIN_INTERFACE(type) \
DTK_DECLARE_PLUGIN_INTERFACE_NAME_STRINGIFIED(DTK_DECLARE_PLUGIN_INTERFACE_NAME(type))
#define DTK_DECLARE_PLUGIN(type)
\
class
DTKCORE_EXPORT
type##Plugin : public QObject \
#define DTK_DECLARE_PLUGIN(type
, Export
) \
class
Export
type##Plugin : public QObject \
{ \
Q_OBJECT \
\
...
...
@@ -59,16 +59,16 @@
// DTK_DECLARE_PLUGIN_FACTORY
// ///////////////////////////////////////////////////////////////////
#define DTK_DECLARE_PLUGIN_FACTORY(type
)
\
class
DTKCORE_EXPORT
type##PluginFactory : public dtkCorePluginFactory<type> {}; \
#define DTK_DECLARE_PLUGIN_FACTORY(type
,Export)
\
class
Export
type##PluginFactory : public dtkCorePluginFactory<type> {}; \
template <typename T> type *type##Creator() { return new T; };
// ///////////////////////////////////////////////////////////////////
// DTK_DECLARE_PLUGIN_MANAGER
// ///////////////////////////////////////////////////////////////////
#define DTK_DECLARE_PLUGIN_MANAGER(type
)
\
class
DTKCORE_EXPORT
type##PluginManager : public dtkCorePluginManager<type##Plugin> {};
#define DTK_DECLARE_PLUGIN_MANAGER(type
,Export)
\
class
Export
type##PluginManager : public dtkCorePluginManager<type##Plugin> {};
// ///////////////////////////////////////////////////////////////////
// DTK_DEFINE_PLUGIN
...
...
src/dtkDistributed/dtkDistributedCommunicator.h
View file @
0f025edd
...
...
@@ -148,9 +148,9 @@ public:
};
DTK_DECLARE_OBJECT
(
dtkDistributedCommunicator
*
)
DTK_DECLARE_PLUGIN
(
dtkDistributedCommunicator
)
DTK_DECLARE_PLUGIN_FACTORY
(
dtkDistributedCommunicator
)
DTK_DECLARE_PLUGIN_MANAGER
(
dtkDistributedCommunicator
)
DTK_DECLARE_PLUGIN
(
dtkDistributedCommunicator
,
DTKDISTRIBUTED_EXPORT
)
DTK_DECLARE_PLUGIN_FACTORY
(
dtkDistributedCommunicator
,
DTKDISTRIBUTED_EXPORT
)
DTK_DECLARE_PLUGIN_MANAGER
(
dtkDistributedCommunicator
,
DTKDISTRIBUTED_EXPORT
)
//
// dtkDistributedCommunicator.h ends here
src/dtkMath/dtkMatrix.h
View file @
0f025edd
...
...
@@ -76,9 +76,9 @@ DTKMATH_EXPORT QDebug operator<<(QDebug debug, const dtkMatrix *matrix);
DTKMATH_EXPORT
QDebug
operator
<<
(
QDebug
debug
,
const
dtkMatrix
&
matrix
);
DTK_DECLARE_OBJECT
(
dtkMatrix
*
)
DTK_DECLARE_PLUGIN
(
dtkMatrix
)
DTK_DECLARE_PLUGIN_FACTORY
(
dtkMatrix
)
DTK_DECLARE_PLUGIN_MANAGER
(
dtkMatrix
)
DTK_DECLARE_PLUGIN
(
dtkMatrix
,
DTKMATH_EXPORT
)
DTK_DECLARE_PLUGIN_FACTORY
(
dtkMatrix
,
DTKMATH_EXPORT
)
DTK_DECLARE_PLUGIN_MANAGER
(
dtkMatrix
,
DTKMATH_EXPORT
)
//
// dtkMatrix.h ends here
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