32 lines
847 B
Plaintext
Executable File
32 lines
847 B
Plaintext
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Convert DSS enumerations to translatable strings
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
{% autoescape off %}
|
|
#pragma once
|
|
|
|
// filename: {{ namespace_abbr }}_translation.h
|
|
|
|
#include "{{ namespace_abbr }}_enums.hpp"
|
|
#include <{{ include_prefix }}/{{ namespace_abbr }}_export.h>
|
|
|
|
class QString;
|
|
|
|
namespace {{ namespace }}
|
|
{
|
|
// Translatable enumerations:
|
|
{% for idl_enum in idl_enums %}
|
|
{{ namespace_abbr_upper }}_COMMON_EXPORT QString toString({{ idl_enum.name }} state);{% endfor %}
|
|
|
|
// Translatable struct members:
|
|
{% for dt in dataTopics.member %}{% if dt.hasTrColumns %}{% for tr in dt.trColumns %}
|
|
{{ namespace_abbr_upper }}_COMMON_EXPORT QString tr{{ dt.nameCc }}{{ tr.nameCc }}(const std::string &text); // {{ dt.nameCc }}::{{ tr.name }} {% endfor %}{% endif %}{% endfor %}
|
|
|
|
} // namespace {{ namespace }}
|
|
|
|
{% endautoescape %}
|