Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > bbf8b69a7c5792df8049c96b78d19811 > files > 784

doxygen-1.7.4-2.fc14.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Doxygen manual: Lists</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Doxygen manual</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">Lists </div>  </div>
</div>
<div class="contents">
<div class="textblock"><p>Doxygen provides a number of ways to create lists of items.</p>
<p><b>Using dashes</b></p>
<p>By putting a number of column-aligned minus signs at the start of a line, a bullet list will automatically be generated. Numbered lists can also be generated by using a minus followed by a hash. Nesting of lists is allowed and is based on indentation of the items.</p>
<p>Here is an example: </p>
<div class="fragment"><pre class="fragment">
  /*! 
   *  A list of events:
   *    - mouse events
   *         -# mouse move event
   *         -# mouse click event\n
   *            More info about the click event.
   *         -# mouse double click event
   *    - keyboard events
   *         -# key down event
   *         -# key up event
   *
   *  More text here.
   */
</pre></div><p> The result will be:</p>
<p>A list of events:</p>
<ul>
<li>mouse events<ol type="a">
<li>mouse move event</li>
<li>mouse click event<br/>
 More info about the click event.</li>
<li>mouse double click event</li>
</ol>
</li>
<li>keyboard events<ol type="a">
<li>key down event</li>
<li>key up event</li>
</ol>
</li>
</ul>
<p>More text here.</p>
<p>If you use tabs for indentation within lists, please make sure that <a class="el" href="config.html#cfg_tab_size">TAB_SIZE</a> in the configuration file is set to the correct tab size.</p>
<p>You can end a list by starting a new paragraph or by putting a dot (.) on an empty line at the same indent level as the list you would like to end.</p>
<p>Here is an example that speaks for itself:</p>
<div class="fragment"><pre class="fragment">
/**
 * Text before the list
 * - list item 1
 *   - sub item 1
 *     - sub sub item 1
 *     - sub sub item 2
 *     . 
 *     The dot above ends the sub sub item list.
 *     More text for the first sub item
 *   .
 *   The dot above ends the first sub item.
 *   More text for the first list item
 *   - sub item 2
 *   - sub item 3
 * - list item 2
 * .
 * More text in the same paragraph.
 *
 * More text in a new paragraph.
 */
</pre></div><p><b>Using HTML commands</b></p>
<p>If you like you can also use HTML commands inside the documentation blocks. Using these commands has the advantage that it is more natural for list items that consist of multiple paragraphs.</p>
<p>Here is the above example with HTML commands: </p>
<div class="fragment"><pre class="fragment">
  /*! 
   *  A list of events:
   *  &lt;ul&gt;
   *  &lt;li&gt; mouse events
   *     &lt;ol&gt;
   *     &lt;li&gt;mouse move event
   *     &lt;li&gt;mouse click event\n
   *         More info about the click event.
   *     &lt;li&gt;mouse double click event
   *     &lt;/ol&gt;
   *  &lt;li&gt; keyboard events
   *     &lt;ol&gt;     
   *     &lt;li&gt;key down event
   *     &lt;li&gt;key up event
   *     &lt;/ol&gt;
   *  &lt;/ul&gt;
   *  More text here.
   */
</pre></div><dl class="note"><dt><b>Note:</b></dt><dd>In this case the indentation is not important.</dd></dl>
<p><b>Using \arg or \li</b></p>
<p>For compatibility with the Qt Software's internal documentation tool qdoc and with KDoc, doxygen has two commands that can be used to create simple unnested lists.</p>
<p>See <a class="el" href="commands.html#cmdarg">\arg</a> and <a class="el" href="commands.html#cmdli">\li</a> for more info.</p>
 
Go to the <a href="grouping.html">next</a> section or return to the
 <a href="index.html">index</a>.
 </div></div>
<hr class="footer"/><address class="footer"><small>Generated on Mon Jun 27 2011 for Doxygen manual by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>