27 #ifndef ACTION_EXTENSION_H 28 #define ACTION_EXTENSION_H 35 #include <QPluginLoader> 37 #include <QTranslator> 44 #define registerNewAction(X) registerAction(new X(this)) 72 virtual QString getName() = 0;
75 virtual QString getDescription() = 0;
78 virtual void init() = 0;
85 dynamicLibraryFileName = loc;
90 return dynamicLibraryFileName;
98 void registerAction(
Action *);
116 #endif //ACTION_EXTENSION_H Action class is an abstract class that enables you to build a action (generally on a component)...
Definition: Action.h:208
QString dynamicLibraryFileName
the shared lib (.so, .dll or .dylib) used to instanciate the ComponentExtension subclass instance ...
Definition: ActionExtension.h:105
ActionList actions
the list of actions
Definition: ActionExtension.h:101
QString getLocation() const
get the file path (location of the .dll/.so/.dylib) of this plugin
Definition: ActionExtension.h:89
Definition: Action.cpp:40
CAMITK_API QList< Action * > ActionList
A list of Action.
Definition: CamiTKAPI.h:95
void setLocation(const QString loc)
set the file path (once loaded as a dynamic library)
Definition: ActionExtension.h:84
#define CAMITK_API
Definition: CamiTKAPI.h:49
This class describes what is a generic Action extension.
Definition: ActionExtension.h:61
QTranslator * translator
Provide internationalization support for text output.
Definition: ActionExtension.h:108
ActionExtension()
constructor
Definition: ActionExtension.h:65