File indexing completed on 2024-05-05 04:37:27
0001 {% extends "cpp_header.h" %} 0002 0003 {% block includes %} 0004 {{ block.super }} 0005 {% if not base_classes %} 0006 {% block qobject_default_include %} 0007 {% endblock qobject_default_include %} 0008 {% endif %} 0009 {% endblock includes %} 0010 0011 0012 {% block class_declaration_open %} 0013 {% if base_classes %} 0014 {{ block.super }} 0015 {% else %} 0016 {% include "class_declaration_apidox_cpp.txt" %} 0017 class {{ name }} : public {% block qobject_baseclass %}QObject{% endblock qobject_baseclass %} 0018 { 0019 {% endif %} 0020 {% endblock class_declaration_open %} 0021 0022 {% block class_body %} 0023 {% block qobject_body_header %} 0024 Q_OBJECT 0025 {% for property in members %} 0026 {% include "class_qproperty_declaration_cpp.txt" %} 0027 {% endfor %} 0028 {% endblock qobject_body_header %} 0029 0030 0031 {% if public_functions or members %} 0032 public: 0033 {% endif %} 0034 {% for method in public_functions %} 0035 0036 {% include "class_method_declaration_apidox_cpp.txt" %} 0037 {% include "class_method_declaration_cpp.txt" %} 0038 0039 {% endfor %} 0040 0041 {% for property in members %} 0042 0043 {% include "class_property_getter_declaration_apidox_cpp.txt" %} 0044 {% include "class_property_getter_declaration_cpp.txt" %} 0045 0046 {% endfor %} 0047 0048 0049 {% if members %} 0050 public Q_SLOTS: 0051 {% for property in members %} 0052 0053 {% include "class_property_setter_declaration_apidox_cpp.txt" %} 0054 {% include "class_property_setter_declaration_cpp.txt" %} 0055 0056 {% endfor %} 0057 0058 Q_SIGNALS: 0059 {% for property in members %} 0060 0061 {% include "class_property_signal_declaration_cpp.txt" %} 0062 0063 {% endfor %} 0064 {% endif %} 0065 0066 0067 {% if protected_functions %} 0068 protected: 0069 {% for method in protected_functions %} 0070 0071 {% include "class_method_declaration_apidox_cpp.txt" %} 0072 {% include "class_method_declaration_cpp.txt" %} 0073 0074 {% endfor %} 0075 {% endif %} 0076 0077 0078 {% if private_functions or members %} 0079 private: 0080 {% for method in private_functions %} 0081 0082 {% include "class_method_declaration_apidox_cpp.txt" %} 0083 {% include "class_method_declaration_cpp.txt" %} 0084 0085 {% endfor %} 0086 {% for property in members %} 0087 0088 {{property.type}} m_{{property.name}}; 0089 {% endfor %} 0090 {% endif %} 0091 {% endblock class_body %}