| 1 |
$licenseComment$ |
| 2 |
|
| 3 |
#ifndef __$upperSnakeCase(name)$_ACTIONEXTENSION__ |
| 4 |
#define __$upperSnakeCase(name)$_ACTIONEXTENSION__ |
| 5 |
|
| 6 |
#include <ActionExtension.h> |
| 7 |
|
| 8 |
class $upperCamelCase(name)$ActionExtension : public camitk::ActionExtension { |
| 9 |
Q_OBJECT |
| 10 |
Q_INTERFACES(camitk::ActionExtension); |
| 11 |
Q_PLUGIN_METADATA(IID "fr.imag.camitk.$upperCamelCase(name)$.action.$upperCamelCase(name)$ActionExtension") |
| 12 |
|
| 13 |
public: |
| 14 |
/// Constructor |
| 15 |
$upperCamelCase(name)$ActionExtension() : ActionExtension() {}; |
| 16 |
|
| 17 |
/// Destructor |
| 18 |
virtual ~$upperCamelCase(name)$ActionExtension() = default; |
| 19 |
|
| 20 |
/// Method returning the action extension name |
| 21 |
virtual QString getName() const override { |
| 22 |
return "$title(name)$"; |
| 23 |
}; |
| 24 |
|
| 25 |
/// Method returning the action extension description |
| 26 |
virtual QString getDescription() const override { |
| 27 |
return R"($description$)"; |
| 28 |
}; |
| 29 |
|
| 30 |
/// initialize all the actions |
| 31 |
virtual void init() override; |
| 32 |
}; |
| 33 |
|
| 34 |
#endif // __$upperSnakeCase(name)$_ACTIONEXTENSION__ |
| 35 |
|