26 #ifndef ACTION_EXTENSION_H 27 #define ACTION_EXTENSION_H 33 #include <QPluginLoader> 35 #include <QTranslator> 42 #define registerNewAction(X) registerAction(new X(this)) 70 virtual QString getName() = 0;
73 virtual QString getDescription() = 0;
76 virtual void init() = 0;
83 dynamicLibraryFileName = loc;
88 return dynamicLibraryFileName;
96 void registerAction(
Action*);
106 QTranslator* translator{
nullptr};
114 #endif //ACTION_EXTENSION_H Action class is an abstract class that enables you to build a action (generally on a component)...
Definition: Action.h:207
QString dynamicLibraryFileName
the shared lib (.so, .dll or .dylib) used to instanciate the ComponentExtension subclass instance ...
Definition: ActionExtension.h:103
ActionList actions
the list of actions
Definition: ActionExtension.h:99
QString getLocation() const
get the file path (location of the .dll/.so/.dylib) of this plugin
Definition: ActionExtension.h:87
Definition: Action.cpp:36
void setLocation(const QString loc)
set the file path (once loaded as a dynamic library)
Definition: ActionExtension.h:82
#define CAMITK_API
Definition: CamiTKAPI.h:49
This class describes what is a generic Action extension.
Definition: ActionExtension.h:59
QList< Action * > ActionList
A list of Action.
Definition: CamiTKAPI.h:95
ActionExtension()
constructor
Definition: ActionExtension.h:63