1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
{% extends "cpp_header.h" %}
{% block includes %}
{{ block.super }}
{% if not base_classes %}
{% block qobject_default_include %}
{% endblock qobject_default_include %}
{% endif %}
{% endblock includes %}
{% block class_declaration_open %}
{% if base_classes %}
{{ block.super }}
{% else %}
{% include "class_declaration_apidox_cpp.txt" %}
class {{ name }} : public {% block qobject_baseclass %}QObject{% endblock qobject_baseclass %}
{
{% endif %}
{% endblock class_declaration_open %}
{% block class_body %}
{% block qobject_body_header %}
Q_OBJECT
{% for property in members %}
{% include "class_qproperty_declaration_cpp.txt" %}
{% endfor %}
{% endblock qobject_body_header %}
{% if public_functions or members %}
public:
{% endif %}
{% for method in public_functions %}
{% include "class_method_declaration_apidox_cpp.txt" %}
{% include "class_method_declaration_cpp.txt" %}
{% endfor %}
{% for property in members %}
{% include "class_property_getter_declaration_apidox_cpp.txt" %}
{% include "class_property_getter_declaration_cpp.txt" %}
{% endfor %}
{% if members %}
public Q_SLOTS:
{% for property in members %}
{% include "class_property_setter_declaration_apidox_cpp.txt" %}
{% include "class_property_setter_declaration_cpp.txt" %}
{% endfor %}
Q_SIGNALS:
{% for property in members %}
{% include "class_property_signal_declaration_cpp.txt" %}
{% endfor %}
{% endif %}
{% if protected_functions %}
protected:
{% for method in protected_functions %}
{% include "class_method_declaration_apidox_cpp.txt" %}
{% include "class_method_declaration_cpp.txt" %}
{% endfor %}
{% endif %}
{% if private_functions or members %}
private:
{% for method in private_functions %}
{% include "class_method_declaration_apidox_cpp.txt" %}
{% include "class_method_declaration_cpp.txt" %}
{% endfor %}
{% for property in members %}
{{property.type}} m_{{property.name}};
{% endfor %}
{% endif %}
{% endblock class_body %}
|