mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-26 20:03:10 +00:00
68 lines
1.3 KiB
C++
68 lines
1.3 KiB
C++
{% extends "cpp_implementation.cpp" %}
|
|
{% load kdev_filters %}
|
|
|
|
{% block extra_definitons %}
|
|
|
|
{% for method in private_functions %}
|
|
{% with method.arguments as arguments %}
|
|
|
|
{% include "method_definition_cpp.txt" %}
|
|
{
|
|
{% if method.type %}
|
|
return {{ method.default_return_value }};
|
|
{% endif %}
|
|
|
|
|
|
}
|
|
|
|
{% endwith %}
|
|
{% endfor %}
|
|
|
|
{% endblock extra_definitons %}
|
|
|
|
{% block function_definitions %}
|
|
|
|
{% for method in public_functions %}
|
|
{% with method.arguments as arguments %}
|
|
|
|
{% include "method_definition_cpp.txt" %}
|
|
{
|
|
{% if method.type %}return {{ method.default_return_value }};
|
|
{% endif %}
|
|
}
|
|
|
|
{% endwith %}
|
|
{% endfor %}
|
|
|
|
{% for method in protected_functions %}
|
|
{% with method.arguments as arguments %}
|
|
|
|
{% include "method_definition_cpp.txt" %}
|
|
{
|
|
{% if method.type %}return {{ method.default_return_value }};
|
|
{% endif %}
|
|
}
|
|
|
|
{% endwith %}
|
|
{% endfor %}
|
|
|
|
{% for property in members %}
|
|
|
|
{{ property.type }} {{ name }}::{{ property.name }}() const
|
|
{
|
|
return m_{{ property.name }};
|
|
}
|
|
|
|
|
|
void {{ name }}::set{{ property.name|upper_first }}({{ property.type|arg_type }} {{ property.name }})
|
|
{
|
|
m_{{ property.name }} = {{ property.name }};
|
|
}
|
|
|
|
{% endfor %}
|
|
|
|
{% endblock function_definitions %}
|
|
|
|
{% block bottom %}
|
|
#include "moc_{{ output_file_header|cut:".h"|cut:".hpp" }}.cpp"
|
|
{% endblock bottom %}
|