diff options
Diffstat (limited to 'src/tools/ivigenerator')
5 files changed, 20 insertions, 0 deletions
diff --git a/src/tools/ivigenerator/templates_frontend/backendinterface.h.tpl b/src/tools/ivigenerator/templates_frontend/backendinterface.h.tpl index 55874ee..d06162f 100644 --- a/src/tools/ivigenerator/templates_frontend/backendinterface.h.tpl +++ b/src/tools/ivigenerator/templates_frontend/backendinterface.h.tpl @@ -44,7 +44,11 @@ #ifndef {{oncedefine}} #define {{oncedefine}} +{% if interface.module.tags.config.module %} +#include <{{interface.module.tags.config.module}}/{{module.module_name|lower}}module.h> +{% else %} #include "{{module.module_name|lower}}module.h" +{% endif %} {% for inc in interface|struct_includes %} {{inc}} diff --git a/src/tools/ivigenerator/templates_frontend/interface.h.tpl b/src/tools/ivigenerator/templates_frontend/interface.h.tpl index 9786210..0c33c65 100644 --- a/src/tools/ivigenerator/templates_frontend/interface.h.tpl +++ b/src/tools/ivigenerator/templates_frontend/interface.h.tpl @@ -44,7 +44,11 @@ #ifndef {{oncedefine}} #define {{oncedefine}} +{% if interface.module.tags.config.module %} +#include <{{interface.module.tags.config.module}}/{{module.module_name|lower}}module.h> +{% else %} #include "{{module.module_name|lower}}module.h" +{% endif %} {% for inc in interface|struct_includes %} {{inc}} diff --git a/src/tools/ivigenerator/templates_frontend/module.h.tpl b/src/tools/ivigenerator/templates_frontend/module.h.tpl index 01f7f51..aa10866 100644 --- a/src/tools/ivigenerator/templates_frontend/module.h.tpl +++ b/src/tools/ivigenerator/templates_frontend/module.h.tpl @@ -45,7 +45,11 @@ #ifndef {{oncedefine}} #define {{oncedefine}} +{% if module.tags.config.module %} +#include <{{module.tags.config.module}}/{{module.module_name|lower}}global.h> +{% else %} #include "{{module.module_name|lower}}global.h" +{% endif %} #include <QObject> QT_BEGIN_NAMESPACE diff --git a/src/tools/ivigenerator/templates_frontend/modulefactory.h.tpl b/src/tools/ivigenerator/templates_frontend/modulefactory.h.tpl index bbc6974..c805956 100644 --- a/src/tools/ivigenerator/templates_frontend/modulefactory.h.tpl +++ b/src/tools/ivigenerator/templates_frontend/modulefactory.h.tpl @@ -45,7 +45,11 @@ #ifndef {{oncedefine}} #define {{oncedefine}} +{% if module.tags.config.module %} +#include <{{module.tags.config.module}}/{{module.module_name|lower}}module.h> +{% else %} #include "{{module.module_name|lower}}module.h" +{% endif %} #include <QObject> {% for struct in module.structs %} diff --git a/src/tools/ivigenerator/templates_frontend/struct.h.tpl b/src/tools/ivigenerator/templates_frontend/struct.h.tpl index 7a6b3d7..ed97d4f 100644 --- a/src/tools/ivigenerator/templates_frontend/struct.h.tpl +++ b/src/tools/ivigenerator/templates_frontend/struct.h.tpl @@ -45,7 +45,11 @@ #ifndef {{oncedefine}} #define {{oncedefine}} +{% if interface.module.tags.config.module %} +#include <{{interface.module.tags.config.module}}/{{module.module_name|lower}}module.h> +{% else %} #include "{{module.module_name|lower}}module.h" +{% endif %} {% for inc in struct|struct_includes %} {{inc}} {% endfor %} |