|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
26 #ifndef ACTION_EXTENSION_H
27 #define ACTION_EXTENSION_H
33 #include <QTranslator>
40 #define registerNewAction(X) registerAction(new X(this))
57 class CAMITK_API ActionExtension :
public QObject {
65 ~ActionExtension()
override;
68 virtual QString getName() = 0;
71 virtual QString getDescription() = 0;
74 virtual void init() = 0;
80 void setLocation(
const QString loc);
83 QString getLocation()
const;
90 void registerAction(
Action*);
97 QString dynamicLibraryFileName;
100 QTranslator* translator;
108 #endif //ACTION_EXTENSION_H
static QString getSelectedLanguage()
Returns for the current CamiTK application, the selected language (stored in its ....
Definition: Application.cpp:1437
#define CAMITK_INFO(MSG)
Log for info verbosity (the second most verbose one) The msg will appear only if the user asked for I...
Definition: Log.h:261
QList< Action * > ActionList
A list of Action.
Definition: CamiTKAPI.h:136
QTranslator * translator
Provide internationalization support for text output.
Definition: ActionExtension.h:123
Action class is an abstract class that enables you to build a action (generally on a component)....
Definition: Action.h:231
void registerAction(Action *)
register an action instance
Definition: ActionExtension.cpp:116
void initResources()
Load, for the selected langage (asked to the Application), the associated .qm file.
Definition: ActionExtension.cpp:94
This class describes what is a generic Action extension. To add a ActionExtension to CamiTK core,...
Definition: ActionExtension.h:80
const ActionList & getActions()
get the list of actions registered y this extension
Definition: ActionExtension.cpp:122
ActionExtension()
constructor
Definition: ActionExtension.cpp:62
ActionList actions
the list of actions
Definition: ActionExtension.h:116
void setLocation(const QString loc)
set the file path (once loaded as a dynamic library)
Definition: ActionExtension.cpp:84
QString getLocation() const
get the file path (location of the .dll/.so/.dylib) of this plugin
Definition: ActionExtension.cpp:89
QString dynamicLibraryFileName
the shared lib (.so, .dll or .dylib) used to instantiate the ComponentExtension subclass instance
Definition: ActionExtension.h:120
~ActionExtension() override
destructor
Definition: ActionExtension.cpp:67
#define CAMITK_API
Definition: CamiTKAPI.h:49
Definition: Action.cpp:35