33 #ifndef GAMMARAY_TOOLFACTORY_H
34 #define GAMMARAY_TOOLFACTORY_H
37 #include <QStringList>
61 virtual QString
id()
const = 0;
67 virtual QString
name()
const = 0;
97 template <
typename Type,
typename Tool>
103 return QStringList(Type::staticMetaObject.className());
106 virtual inline QString
id()
const
108 return Tool::staticMetaObject.className();
117 return new Tool(probe, parentWidget);
124 Q_DECLARE_METATYPE(GammaRay::ToolFactory *)
126 #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
127 #define Q_PLUGIN_METADATA(x)