|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<db:article xmlns:db="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.2" xml:lang="en"> |
| 3 | +<db:info> |
| 4 | +<db:title>TestAction Class</db:title> |
| 5 | +<db:productname>MultiSignalTest</db:productname> |
| 6 | +<db:titleabbrev>Test for improved multi-property signal documentation</db:titleabbrev> |
| 7 | +<db:abstract> |
| 8 | +<db:para>A test class to demonstrate improved multi-property signal documentation.</db:para> |
| 9 | +</db:abstract> |
| 10 | +</db:info> |
| 11 | +<db:variablelist> |
| 12 | +<db:varlistentry> |
| 13 | +<db:term>Header</db:term> |
| 14 | +<db:listitem> |
| 15 | +<db:para>TestAction</db:para> |
| 16 | +</db:listitem> |
| 17 | +</db:varlistentry> |
| 18 | +<db:varlistentry> |
| 19 | +<db:term>Inherits</db:term> |
| 20 | +<db:listitem> |
| 21 | +<db:para/> |
| 22 | +</db:listitem> |
| 23 | +</db:varlistentry> |
| 24 | +</db:variablelist> |
| 25 | +<db:section xml:id="details"> |
| 26 | +<db:title>Detailed Description</db:title> |
| 27 | +<db:para>This class has properties with different notification patterns.</db:para> |
| 28 | +</db:section> |
| 29 | +<db:section xml:id="property-documentation"> |
| 30 | +<db:title>Property Documentation</db:title> |
| 31 | +<db:section xml:id="checkable-prop"> |
| 32 | +<db:title>checkable : bool</db:title> |
| 33 | +<db:para>This property holds whether the action is checkable</db:para> |
| 34 | +<db:para>This property determines if the action can be toggled.</db:para> |
| 35 | +<db:para> |
| 36 | +<db:emphasis role="bold">Access functions: |
| 37 | +</db:emphasis> |
| 38 | +</db:para> |
| 39 | +<db:itemizedlist> |
| 40 | +<db:listitem> |
| 41 | +<db:para><db:type>bool</db:type> <db:emphasis role="bold"><db:link xlink:href="">isCheckable</db:link></db:emphasis>() const</db:para> |
| 42 | +</db:listitem> |
| 43 | +<db:listitem> |
| 44 | +<db:para><db:type>void</db:type> <db:emphasis role="bold"><db:link xlink:href="">setCheckable</db:link></db:emphasis>(<db:type>bool</db:type> <db:emphasis>checkable</db:emphasis>)</db:para> |
| 45 | +</db:listitem> |
| 46 | +</db:itemizedlist> |
| 47 | +<db:para> |
| 48 | +<db:emphasis role="bold">Notifier signal: |
| 49 | +</db:emphasis> |
| 50 | +</db:para> |
| 51 | +<db:itemizedlist> |
| 52 | +<db:listitem> |
| 53 | +<db:para><db:type>void</db:type> <db:emphasis role="bold"><db:link xlink:href="testaction.xml#singlePropertySignal">singlePropertySignal</db:link></db:emphasis>()</db:para> |
| 54 | +</db:listitem> |
| 55 | +</db:itemizedlist> |
| 56 | +</db:section> |
| 57 | +<db:section xml:id="enabled-prop"> |
| 58 | +<db:title>enabled : bool</db:title> |
| 59 | +<db:para>This property holds whether the action is enabled</db:para> |
| 60 | +<db:para>This property determines if the action can be triggered.</db:para> |
| 61 | +<db:para> |
| 62 | +<db:emphasis role="bold">Access functions: |
| 63 | +</db:emphasis> |
| 64 | +</db:para> |
| 65 | +<db:itemizedlist> |
| 66 | +<db:listitem> |
| 67 | +<db:para><db:type>bool</db:type> <db:emphasis role="bold"><db:link xlink:href="">isEnabled</db:link></db:emphasis>() const</db:para> |
| 68 | +</db:listitem> |
| 69 | +<db:listitem> |
| 70 | +<db:para><db:type>void</db:type> <db:emphasis role="bold"><db:link xlink:href="">setEnabled</db:link></db:emphasis>(<db:type>bool</db:type> <db:emphasis>enabled</db:emphasis>)</db:para> |
| 71 | +</db:listitem> |
| 72 | +</db:itemizedlist> |
| 73 | +<db:para> |
| 74 | +<db:emphasis role="bold">Notifier signal: |
| 75 | +</db:emphasis> |
| 76 | +</db:para> |
| 77 | +<db:itemizedlist> |
| 78 | +<db:listitem> |
| 79 | +<db:para><db:type>void</db:type> <db:emphasis role="bold"><db:link xlink:href="testaction.xml#changed">changed</db:link></db:emphasis>()</db:para> |
| 80 | +</db:listitem> |
| 81 | +</db:itemizedlist> |
| 82 | +</db:section> |
| 83 | +<db:section xml:id="text-prop"> |
| 84 | +<db:title>text : QString</db:title> |
| 85 | +<db:para>This property holds the action's display text</db:para> |
| 86 | +<db:para>This property holds the text that is displayed for the action.</db:para> |
| 87 | +<db:para> |
| 88 | +<db:emphasis role="bold">Access functions: |
| 89 | +</db:emphasis> |
| 90 | +</db:para> |
| 91 | +<db:itemizedlist> |
| 92 | +<db:listitem> |
| 93 | +<db:para><db:type>QString</db:type> <db:emphasis role="bold"><db:link xlink:href="">text</db:link></db:emphasis>() const</db:para> |
| 94 | +</db:listitem> |
| 95 | +<db:listitem> |
| 96 | +<db:para><db:type>void</db:type> <db:emphasis role="bold"><db:link xlink:href="">setText</db:link></db:emphasis>(const <db:type>QString</db:type> &<db:emphasis>text</db:emphasis>)</db:para> |
| 97 | +</db:listitem> |
| 98 | +</db:itemizedlist> |
| 99 | +<db:para> |
| 100 | +<db:emphasis role="bold">Notifier signal: |
| 101 | +</db:emphasis> |
| 102 | +</db:para> |
| 103 | +<db:itemizedlist> |
| 104 | +<db:listitem> |
| 105 | +<db:para><db:type>void</db:type> <db:emphasis role="bold"><db:link xlink:href="testaction.xml#changed">changed</db:link></db:emphasis>()</db:para> |
| 106 | +</db:listitem> |
| 107 | +</db:itemizedlist> |
| 108 | +</db:section> |
| 109 | +<db:section xml:id="visible-prop"> |
| 110 | +<db:title>visible : bool</db:title> |
| 111 | +<db:para>This property holds whether the action is visible</db:para> |
| 112 | +<db:para>This property determines if the action is shown in UI.</db:para> |
| 113 | +<db:para> |
| 114 | +<db:emphasis role="bold">Access functions: |
| 115 | +</db:emphasis> |
| 116 | +</db:para> |
| 117 | +<db:itemizedlist> |
| 118 | +<db:listitem> |
| 119 | +<db:para><db:type>bool</db:type> <db:emphasis role="bold"><db:link xlink:href="">isVisible</db:link></db:emphasis>() const</db:para> |
| 120 | +</db:listitem> |
| 121 | +<db:listitem> |
| 122 | +<db:para><db:type>void</db:type> <db:emphasis role="bold"><db:link xlink:href="">setVisible</db:link></db:emphasis>(<db:type>bool</db:type> <db:emphasis>visible</db:emphasis>)</db:para> |
| 123 | +</db:listitem> |
| 124 | +</db:itemizedlist> |
| 125 | +<db:para> |
| 126 | +<db:emphasis role="bold">Notifier signal: |
| 127 | +</db:emphasis> |
| 128 | +</db:para> |
| 129 | +<db:itemizedlist> |
| 130 | +<db:listitem> |
| 131 | +<db:para><db:type>void</db:type> <db:emphasis role="bold"><db:link xlink:href="testaction.xml#changed">changed</db:link></db:emphasis>()</db:para> |
| 132 | +</db:listitem> |
| 133 | +</db:itemizedlist> |
| 134 | +</db:section> |
| 135 | +</db:section> |
| 136 | +<db:section xml:id="member-function-documentation"> |
| 137 | +<db:title>Member Function Documentation</db:title> |
| 138 | +<db:section xml:id="TestAction"> |
| 139 | +<db:title>[explicit] TestAction::TestAction(QObject *<db:emphasis>parent</db:emphasis> = nullptr)</db:title> |
| 140 | +<db:para>Constructs a <db:link xlink:href="testaction.xml">TestAction</db:link> with the given <db:code role="parameter">parent</db:code>.</db:para> |
| 141 | +</db:section> |
| 142 | +<db:section xml:id="changed"> |
| 143 | +<db:title>[signal] void TestAction::changed()</db:title> |
| 144 | +<db:para>This signal is emitted when certain properties of the action change. The properties that trigger this signal are enabled, visible, and text.</db:para> |
| 145 | +<db:note> |
| 146 | +<db:para>Notifier signal for properties <db:link xlink:href="testaction.xml#enabled-prop">enabled</db:link>, <db:link xlink:href="testaction.xml#text-prop">text</db:link>, and <db:link xlink:href="testaction.xml#visible-prop">visible</db:link>. </db:para> |
| 147 | +</db:note> |
| 148 | +</db:section> |
| 149 | +<db:section xml:id="singlePropertySignal"> |
| 150 | +<db:title>[signal] void TestAction::singlePropertySignal()</db:title> |
| 151 | +<db:para>This signal is emitted when the checkable property changes.</db:para> |
| 152 | +<db:note> |
| 153 | +<db:para>Notifier signal for property <db:link xlink:href="testaction.xml#checkable-prop">checkable</db:link>. </db:para> |
| 154 | +</db:note> |
| 155 | +</db:section> |
| 156 | +</db:section> |
| 157 | +</db:article> |
0 commit comments