Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1f9eb832ba1e4b88d9a5c2b384813bb4 > files > 4884

kdelibs3-apidocs-3.5.10-31.fc15.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!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" lang="en_US" xml:lang="en_US">

<head>
  <title>kio/kfile: KFileTreeBranch Class Reference (kio/kfile)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <meta http-equiv="Content-Style-Type" content="text/css" />

  <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org"  r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org"  r (n 0 s 0 v 0 l 0))' />

  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />

  <link rel="shortcut icon" href="../../../favicon.ico" />

<link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" />



</head>

<body>

<div id="nav_header_top" align="right">
  <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a>

  <a href="../../.."><img id="nav_header_logo" alt="Home" align="left" src="../../../kde_gear_64.png" border="0" /></a>
  <span class="doNotDisplay">::</span>

  <div id="nav_header_title" align="left">KDE API Reference</div>


</div>

<div id="nav_header_bottom" align="right">
  <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span>
  <div id="nav_header_bottom_right" style="text-align: left;">
/ <a href="../../..">API Reference</a>
 / <a href="../../html/index.html">kio</a> / <a href=".">kfile</a>
  </div>
</div>


<table id="main" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
      <td valign="top" class="menuheader" height="0"></td>

  <td id="contentcolumn" valign="top" rowspan="2" >
    <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;">
    <a name="content"></a>


<!-- Generated by Doxygen 1.7.4 -->
</div>
<div class="header">
  <div class="summary">
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">KFileTreeBranch Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="KFileTreeBranch" --><!-- doxytag: inherits="KDirLister" -->
<p>This is the branch class of the <a class="el" href="classKFileTreeView.html" title="The filetreeview offers a treeview on the file system which behaves like a QTreeView showing files an...">KFileTreeView</a>, which represents one branch in the treeview.  
 <a href="classKFileTreeBranch.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="kfiletreebranch_8h_source.html">kfiletreebranch.h</a>&gt;</code></p>

<p>Inherits KDirLister.</p>

<p><a href="classKFileTreeBranch-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFileTreeBranch.html#a963d1d4802c352b44c91cadbc4128e89">populate</a> (const KURL &amp;url, <a class="el" href="classKFileTreeViewItem.html">KFileTreeViewItem</a> *currItem)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFileTreeBranch.html#a0074eb7e13a14a04e7626b6a5a698ba4">setShowExtensions</a> (bool visible=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a25ed645383ca93d3d5a400107f89e388"></a><!-- doxytag: member="KFileTreeBranch::setOpenPixmap" ref="a25ed645383ca93d3d5a400107f89e388" args="(const QPixmap &amp;pix)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>setOpenPixmap</b> (const <a class="elRef" href="qpixmap.html">QPixmap</a> &amp;pix)</td></tr>
<tr><td colspan="2"><h2><a name="signals"></a>
Signals</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFileTreeBranch.html#a99478feaa007e310ee489308910000ba">populateFinished</a> (<a class="el" href="classKFileTreeViewItem.html">KFileTreeViewItem</a> *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFileTreeBranch.html#a36c7df9e21d910b85fc0f7e85380555f">newTreeViewItems</a> (<a class="el" href="classKFileTreeBranch.html">KFileTreeBranch</a> *, const <a class="elRef" href="qptrlist.html">KFileTreeViewItemList</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFileTreeBranch.html#abe1cb852890f7300f6a3adae5bf34bb1">directoryChildCount</a> (<a class="el" href="classKFileTreeViewItem.html">KFileTreeViewItem</a> *item, int count)</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFileTreeBranch.html#ac1625a2a1a67cfb45a437e0ba390ee8a">KFileTreeBranch</a> (<a class="el" href="classKFileTreeView.html">KFileTreeView</a> *, const KURL &amp;url, const <a class="elRef" href="qstring.html">QString</a> &amp;name, const <a class="elRef" href="qpixmap.html">QPixmap</a> &amp;pix, bool showHidden=false, <a class="el" href="classKFileTreeViewItem.html">KFileTreeViewItem</a> *branchRoot=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">KURL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFileTreeBranch.html#a778051ff8198abcfa12083a55d647c11">rootUrl</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFileTreeBranch.html#a4f549cd112b8a10e2b940c884ccb6763">setRoot</a> (<a class="el" href="classKFileTreeViewItem.html">KFileTreeViewItem</a> *r)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKFileTreeViewItem.html">KFileTreeViewItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFileTreeBranch.html#a73759bb9ece97dc0da37dde17995b035">root</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFileTreeBranch.html#ade1c25646bf6753a4fba68f017051c1c">name</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFileTreeBranch.html#a11b255398a48562f8c6c9d60017b31c8">setName</a> (const <a class="elRef" href="qstring.html">QString</a> n)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4dba34de8bc8f8157dae4b8a97cce5cc"></a><!-- doxytag: member="KFileTreeBranch::pixmap" ref="a4dba34de8bc8f8157dae4b8a97cce5cc" args="()" -->
const <a class="elRef" href="qpixmap.html">QPixmap</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>pixmap</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab149723c56805915805fd9a61d73af34"></a><!-- doxytag: member="KFileTreeBranch::openPixmap" ref="ab149723c56805915805fd9a61d73af34" args="()" -->
const <a class="elRef" href="qpixmap.html">QPixmap</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>openPixmap</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFileTreeBranch.html#a44a685762356b482bdc242860ee76353">showExtensions</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFileTreeBranch.html#a585f587322df17aa8ca9bbf05462ab6d">setOpen</a> (bool setopen=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFileTreeBranch.html#ac6d19fc8f33a8a981496a12cf7c60843">setChildRecurse</a> (bool t=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFileTreeBranch.html#a8bebe35c2ab568b07960317c76dd7681">childRecurse</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classKFileTreeViewItem.html">KFileTreeViewItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFileTreeBranch.html#a877ea9e20eb533025c2cce3328ebf5bf">findTVIByURL</a> (const KURL &amp;)</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classKFileTreeViewItem.html">KFileTreeViewItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKFileTreeBranch.html#aa66da36f2e49cecf726330cad064dc1f">createTreeViewItem</a> (<a class="el" href="classKFileTreeViewItem.html">KFileTreeViewItem</a> *parent, KFileItem *fileItem)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae7d9b148f75c05501a7ca5f924d73b1c"></a><!-- doxytag: member="KFileTreeBranch::virtual_hook" ref="ae7d9b148f75c05501a7ca5f924d73b1c" args="(int id, void *data)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>virtual_hook</b> (int id, void *data)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This is the branch class of the <a class="el" href="classKFileTreeView.html" title="The filetreeview offers a treeview on the file system which behaves like a QTreeView showing files an...">KFileTreeView</a>, which represents one branch in the treeview. </p>
<p>Every branch has a root which is an url. The branch lists the files under the root. Every branch uses its own dirlister and can have its own filter etc.</p>
<p>Branch object for <a class="el" href="classKFileTreeView.html" title="The filetreeview offers a treeview on the file system which behaves like a QTreeView showing files an...">KFileTreeView</a> object. </p>

<p>Definition at line <a class="el" href="kfiletreebranch_8h_source.html#l00048">48</a> of file <a class="el" href="kfiletreebranch_8h_source.html">kfiletreebranch.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ac1625a2a1a67cfb45a437e0ba390ee8a"></a><!-- doxytag: member="KFileTreeBranch::KFileTreeBranch" ref="ac1625a2a1a67cfb45a437e0ba390ee8a" args="(KFileTreeView *, const KURL &amp;url, const QString &amp;name, const QPixmap &amp;pix, bool showHidden=false, KFileTreeViewItem *branchRoot=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KFileTreeBranch::KFileTreeBranch </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKFileTreeView.html">KFileTreeView</a> *&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const KURL &amp;&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qpixmap.html">QPixmap</a> &amp;&#160;</td>
          <td class="paramname"><em>pix</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>showHidden</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classKFileTreeViewItem.html">KFileTreeViewItem</a> *&#160;</td>
          <td class="paramname"><em>branchRoot</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>constructs a branch for <a class="el" href="classKFileTreeView.html" title="The filetreeview offers a treeview on the file system which behaves like a QTreeView showing files an...">KFileTreeView</a>. </p>
<p>Does not yet start to list it. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">url</td><td>start url of the branch. </td></tr>
    <tr><td class="paramname">name</td><td>the name of the branch, which is displayed in the first column of the treeview. </td></tr>
    <tr><td class="paramname">pix</td><td>is a pixmap to display as an icon of the branch. </td></tr>
    <tr><td class="paramname">showHidden</td><td>flag to make hidden files visible or not. </td></tr>
    <tr><td class="paramname">branchRoot</td><td>is the <a class="el" href="classKFileTreeViewItem.html" title="An item for a KFileTreeView that knows about its own KFileItem.">KFileTreeViewItem</a> to use as the root of the branch, with the default 0 meaning to let <a class="el" href="classKFileTreeBranch.html" title="This is the branch class of the KFileTreeView, which represents one branch in the treeview...">KFileTreeBranch</a> create it for you. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kfiletreebranch_8cpp_source.html#l00036">36</a> of file <a class="el" href="kfiletreebranch_8cpp_source.html">kfiletreebranch.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a8bebe35c2ab568b07960317c76dd7681"></a><!-- doxytag: member="KFileTreeBranch::childRecurse" ref="a8bebe35c2ab568b07960317c76dd7681" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KFileTreeBranch::childRecurse </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>if child recursion is on or off. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKFileTreeBranch.html#ac6d19fc8f33a8a981496a12cf7c60843" title="sets if children recursion is wanted or not.">setChildRecurse</a> </dd></dl>

<p>Definition at line <a class="el" href="kfiletreebranch_8h_source.html#l00137">137</a> of file <a class="el" href="kfiletreebranch_8h_source.html">kfiletreebranch.h</a>.</p>

</div>
</div>
<a class="anchor" id="aa66da36f2e49cecf726330cad064dc1f"></a><!-- doxytag: member="KFileTreeBranch::createTreeViewItem" ref="aa66da36f2e49cecf726330cad064dc1f" args="(KFileTreeViewItem *parent, KFileItem *fileItem)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKFileTreeViewItem.html">KFileTreeViewItem</a> * KFileTreeBranch::createTreeViewItem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKFileTreeViewItem.html">KFileTreeViewItem</a> *&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">KFileItem *&#160;</td>
          <td class="paramname"><em>fileItem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>allocates a <a class="el" href="classKFileTreeViewItem.html" title="An item for a KFileTreeView that knows about its own KFileItem.">KFileTreeViewItem</a> for the branch for new items. </p>

<p>Definition at line <a class="el" href="kfiletreebranch_8cpp_source.html#l00239">239</a> of file <a class="el" href="kfiletreebranch_8cpp_source.html">kfiletreebranch.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="abe1cb852890f7300f6a3adae5bf34bb1"></a><!-- doxytag: member="KFileTreeBranch::directoryChildCount" ref="abe1cb852890f7300f6a3adae5bf34bb1" args="(KFileTreeViewItem *item, int count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KFileTreeBranch::directoryChildCount </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKFileTreeViewItem.html">KFileTreeViewItem</a> *&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>emitted with the exact count of children for a directory. </p>

</div>
</div>
<a class="anchor" id="a877ea9e20eb533025c2cce3328ebf5bf"></a><!-- doxytag: member="KFileTreeBranch::findTVIByURL" ref="a877ea9e20eb533025c2cce3328ebf5bf" args="(const KURL &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKFileTreeViewItem.html">KFileTreeViewItem</a> * KFileTreeBranch::findTVIByURL </td>
          <td>(</td>
          <td class="paramtype">const KURL &amp;&#160;</td>
          <td class="paramname"><em>url</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>find the according <a class="el" href="classKFileTreeViewItem.html" title="An item for a KFileTreeView that knows about its own KFileItem.">KFileTreeViewItem</a> by an url </p>

<p>Definition at line <a class="el" href="kfiletreebranch_8cpp_source.html#l00368">368</a> of file <a class="el" href="kfiletreebranch_8cpp_source.html">kfiletreebranch.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ade1c25646bf6753a4fba68f017051c1c"></a><!-- doxytag: member="KFileTreeBranch::name" ref="ade1c25646bf6753a4fba68f017051c1c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KFileTreeBranch::name </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the name of the branch. </dd></dl>

<p>Definition at line <a class="el" href="kfiletreebranch_8h_source.html#l00087">87</a> of file <a class="el" href="kfiletreebranch_8h_source.html">kfiletreebranch.h</a>.</p>

</div>
</div>
<a class="anchor" id="a36c7df9e21d910b85fc0f7e85380555f"></a><!-- doxytag: member="KFileTreeBranch::newTreeViewItems" ref="a36c7df9e21d910b85fc0f7e85380555f" args="(KFileTreeBranch *, const KFileTreeViewItemList &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KFileTreeBranch::newTreeViewItems </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKFileTreeBranch.html">KFileTreeBranch</a> *&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qptrlist.html">KFileTreeViewItemList</a> &amp;&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>emitted with a list of new or updated <a class="el" href="classKFileTreeViewItem.html" title="An item for a KFileTreeView that knows about its own KFileItem.">KFileTreeViewItem</a> which were found in a branch. </p>
<p>Note that this signal is emitted very often and may slow down the performance of the treeview ! </p>

</div>
</div>
<a class="anchor" id="a963d1d4802c352b44c91cadbc4128e89"></a><!-- doxytag: member="KFileTreeBranch::populate" ref="a963d1d4802c352b44c91cadbc4128e89" args="(const KURL &amp;url, KFileTreeViewItem *currItem)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KFileTreeBranch::populate </td>
          <td>(</td>
          <td class="paramtype">const KURL &amp;&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classKFileTreeViewItem.html">KFileTreeViewItem</a> *&#160;</td>
          <td class="paramname"><em>currItem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>populates a branch. </p>
<p>This method must be called after a branch was added to a <a class="el" href="classKFileTreeView.html" title="The filetreeview offers a treeview on the file system which behaves like a QTreeView showing files an...">KFileTreeView</a> using method addBranch. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">url</td><td>is the url of the root item where the branch starts. </td></tr>
    <tr><td class="paramname">currItem</td><td>is the current parent. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kfiletreebranch_8cpp_source.html#l00495">495</a> of file <a class="el" href="kfiletreebranch_8cpp_source.html">kfiletreebranch.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a99478feaa007e310ee489308910000ba"></a><!-- doxytag: member="KFileTreeBranch::populateFinished" ref="a99478feaa007e310ee489308910000ba" args="(KFileTreeViewItem *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KFileTreeBranch::populateFinished </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKFileTreeViewItem.html">KFileTreeViewItem</a> *&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>emitted with the item of a directory which was finished to populate </p>

</div>
</div>
<a class="anchor" id="a73759bb9ece97dc0da37dde17995b035"></a><!-- doxytag: member="KFileTreeBranch::root" ref="a73759bb9ece97dc0da37dde17995b035" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKFileTreeViewItem.html">KFileTreeViewItem</a>* KFileTreeBranch::root </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the root item. </dd></dl>

<p>Definition at line <a class="el" href="kfiletreebranch_8h_source.html#l00082">82</a> of file <a class="el" href="kfiletreebranch_8h_source.html">kfiletreebranch.h</a>.</p>

</div>
</div>
<a class="anchor" id="a778051ff8198abcfa12083a55d647c11"></a><!-- doxytag: member="KFileTreeBranch::rootUrl" ref="a778051ff8198abcfa12083a55d647c11" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KURL KFileTreeBranch::rootUrl </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the root url of the branch. </dd></dl>

<p>Definition at line <a class="el" href="kfiletreebranch_8h_source.html#l00069">69</a> of file <a class="el" href="kfiletreebranch_8h_source.html">kfiletreebranch.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac6d19fc8f33a8a981496a12cf7c60843"></a><!-- doxytag: member="KFileTreeBranch::setChildRecurse" ref="ac6d19fc8f33a8a981496a12cf7c60843" args="(bool t=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KFileTreeBranch::setChildRecurse </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>t</em> = <code>true</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>sets if children recursion is wanted or not. </p>
<p>If this is switched off, the child directories of a just opened directory are not listed internally. That means that it can not be determined if the sub directories are expandable or not. If this is switched off there will be no call to setExpandable. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">t</td><td>set to true to switch on child recursion </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kfiletreebranch_8cpp_source.html#l00256">256</a> of file <a class="el" href="kfiletreebranch_8cpp_source.html">kfiletreebranch.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a11b255398a48562f8c6c9d60017b31c8"></a><!-- doxytag: member="KFileTreeBranch::setName" ref="a11b255398a48562f8c6c9d60017b31c8" args="(const QString n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void KFileTreeBranch::setName </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a>&#160;</td>
          <td class="paramname"><em>n</em></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>sets the name of the branch. </p>

<p>Definition at line <a class="el" href="kfiletreebranch_8h_source.html#l00092">92</a> of file <a class="el" href="kfiletreebranch_8h_source.html">kfiletreebranch.h</a>.</p>

</div>
</div>
<a class="anchor" id="a585f587322df17aa8ca9bbf05462ab6d"></a><!-- doxytag: member="KFileTreeBranch::setOpen" ref="a585f587322df17aa8ca9bbf05462ab6d" args="(bool setopen=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KFileTreeBranch::setOpen </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>setopen</em> = <code>true</code></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>sets the root of the branch open or closed. </p>

<p>Definition at line <a class="el" href="kfiletreebranch_8h_source.html#l00120">120</a> of file <a class="el" href="kfiletreebranch_8h_source.html">kfiletreebranch.h</a>.</p>

</div>
</div>
<a class="anchor" id="a4f549cd112b8a10e2b940c884ccb6763"></a><!-- doxytag: member="KFileTreeBranch::setRoot" ref="a4f549cd112b8a10e2b940c884ccb6763" args="(KFileTreeViewItem *r)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void KFileTreeBranch::setRoot </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKFileTreeViewItem.html">KFileTreeViewItem</a> *&#160;</td>
          <td class="paramname"><em>r</em></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>sets a <a class="el" href="classKFileTreeViewItem.html" title="An item for a KFileTreeView that knows about its own KFileItem.">KFileTreeViewItem</a> as root widget for the branch. </p>
<p>That must be created outside of the branch. All KFileTreeViewItems the branch is allocating will become children of that object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">r</td><td>the <a class="el" href="classKFileTreeViewItem.html" title="An item for a KFileTreeView that knows about its own KFileItem.">KFileTreeViewItem</a> to become the root item. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kfiletreebranch_8h_source.html#l00077">77</a> of file <a class="el" href="kfiletreebranch_8h_source.html">kfiletreebranch.h</a>.</p>

</div>
</div>
<a class="anchor" id="a0074eb7e13a14a04e7626b6a5a698ba4"></a><!-- doxytag: member="KFileTreeBranch::setShowExtensions" ref="a0074eb7e13a14a04e7626b6a5a698ba4" args="(bool visible=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KFileTreeBranch::setShowExtensions </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>visible</em> = <code>true</code></td><td>)</td>
          <td><code> [virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>sets printing of the file extensions on or off. </p>
<p>If you pass false to this slot, all items of this branch will not show their file extensions in the tree. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">visible</td><td>flags if the extensions should be visible or not. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kfiletreebranch_8cpp_source.html#l00264">264</a> of file <a class="el" href="kfiletreebranch_8cpp_source.html">kfiletreebranch.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a44a685762356b482bdc242860ee76353"></a><!-- doxytag: member="KFileTreeBranch::showExtensions" ref="a44a685762356b482bdc242860ee76353" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KFileTreeBranch::showExtensions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>whether the items in the branch show their file extensions in the tree or not. See setShowExtensions for more information. </dd></dl>

<p>Definition at line <a class="el" href="kfiletreebranch_8cpp_source.html#l00269">269</a> of file <a class="el" href="kfiletreebranch_8cpp_source.html">kfiletreebranch.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="kfiletreebranch_8h_source.html">kfiletreebranch.h</a></li>
<li><a class="el" href="kfiletreebranch_8cpp_source.html">kfiletreebranch.cpp</a></li>
</ul>
</div>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>kio/kfile</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classKApplicationPropsPlugin.html">kapplicationpropsplugin</option>,  <option value="classKBindingPropsPlugin.html">kbindingpropsplugin</option>,  <option value="classKCombiView.html">kcombiview</option>,  <option value="classKDesktopPropsPlugin.html">kdesktoppropsplugin</option>,  <option value="classKDevicePropsPlugin.html">kdevicepropsplugin</option>,  <option value="classKDirOperator.html">kdiroperator</option>,  <option value="classKDirSelectDialog.html">kdirselectdialog</option>,  <option value="classKDirSize.html">kdirsize</option>,  <option value="classKDiskFreeSp.html">kdiskfreesp</option>,  <option value="classKEncodingFileDialog.html">kencodingfiledialog</option>,  <option value="classKExecPropsPlugin.html">kexecpropsplugin</option>,  <option value="classKFile.html">kfile</option>,  <option value="classKFileDetailView.html">kfiledetailview</option>,  <option value="classKFileDialog.html">kfiledialog</option>,  <option value="classKFileIconView.html">kfileiconview</option>,  <option value="classKFileIconViewItem.html">kfileiconviewitem</option>,  <option value="classKFileListViewItem.html">kfilelistviewitem</option>,  <option value="classKFileMetaInfoWidget.html">kfilemetainfowidget</option>,  <option value="classKFileMetaPropsPlugin.html">kfilemetapropsplugin</option>,  <option value="classKFileOpenWithHandler.html">kfileopenwithhandler</option>,  <option value="classKFilePermissionsPropsPlugin.html">kfilepermissionspropsplugin</option>,  <option value="classKFilePreview.html">kfilepreview</option>,  <option value="classKFilePropsPlugin.html">kfilepropsplugin</option>,  <option value="classKFileSharePropsPlugin.html">kfilesharepropsplugin</option>,  <option value="classKFileTreeBranch.html">kfiletreebranch</option>,  <option value="classKFileTreeView.html">kfiletreeview</option>,  <option value="classKFileTreeViewItem.html">kfiletreeviewitem</option>,  <option value="classKFileView.html">kfileview</option>,  <option value="classKFileViewSignaler.html">kfileviewsignaler</option>,  <option value="classKIconButton.html">kiconbutton</option>,  <option value="classKIconCanvas.html">kiconcanvas</option>,  <option value="classKIconDialog.html">kicondialog</option>,  <option value="classKImageFilePreview.html">kimagefilepreview</option>,  <option value="classKNotifyDialog.html">knotifydialog</option>,  <option value="classKOpenWithDlg.html">kopenwithdlg</option>,  <option value="classKPreviewPropsPlugin.html">kpreviewpropsplugin</option>,  <option value="classKPreviewWidgetBase.html">kpreviewwidgetbase</option>,  <option value="classKPropertiesDialog.html">kpropertiesdialog</option>,  <option value="classKPropsDlgPlugin.html">kpropsdlgplugin</option>,  <option value="classKRecentDirs.html">krecentdirs</option>,  <option value="classKRecentDocument.html">krecentdocument</option>,  <option value="classKURLBar.html">kurlbar</option>,  <option value="classKURLBarItem.html">kurlbaritem</option>,  <option value="classKURLBarItemDialog.html">kurlbaritemdialog</option>,  <option value="classKURLBarListBox.html">kurlbarlistbox</option>,  <option value="classKURLComboBox.html">kurlcombobox</option>,  <option value="classKURLComboRequester.html">kurlcomborequester</option>,  <option value="classKURLPropsPlugin.html">kurlpropsplugin</option>,  <option value="classKURLRequester.html">kurlrequester</option>,  <option value="classKURLRequesterDlg.html">kurlrequesterdlg</option>,
</select>
</form>
</div>
-->
</div></div>
<div class="menu_box"><h2>API Dox</h2>
<div class="nav_list">
<ul>
<li><a href="../../../arts/html/index.html">arts</a></li><li><a href="../../../dcop/html/index.html">dcop</a></li><li><a href="../../../dnssd/html/index.html">dnssd</a></li><li><a href="../../../interfaces/html/index.html">interfaces</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../../interfaces/kimproxy/library/html/index.html">library</a></li><li>&nbsp;&nbsp;<a href="../../../interfaces/kspeech/html/index.html">kspeech</a></li><li>&nbsp;&nbsp;<a href="../../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../../kabc/html/index.html">kabc</a></li><li><a href="../../../kate/html/index.html">kate</a></li><li><a href="../../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../../kdecore/html/index.html">kdecore</a></li><li><a href="../../../kded/html/index.html">kded</a></li><li><a href="../../../kdefx/html/index.html">kdefx</a></li><li><a href="../../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../../kdesu/html/index.html">kdesu</a></li><li><a href="../../../kdeui/html/index.html">kdeui</a></li><li><a href="../../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../../khtml/html/index.html">khtml</a></li><li><a href="../../../kimgio/html/index.html">kimgio</a></li><li><a href="../../../kinit/html/index.html">kinit</a></li><li><a href="../../../kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../../kio/bookmarks/html/index.html">bookmarks</a></li><li>&nbsp;&nbsp;<a href="../../../kio/httpfilter/html/index.html">httpfilter</a></li><li>&nbsp;&nbsp;<a href="../../../kio/kfile/html/index.html">kfile</a></li><li>&nbsp;&nbsp;<a href="../../../kio/kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../../kio/kioexec/html/index.html">kioexec</a></li><li>&nbsp;&nbsp;<a href="../../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li>&nbsp;&nbsp;<a href="../../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../../kioslave/html/index.html">kioslave</a></li><li>&nbsp;&nbsp;<a href="../../../kioslave/http/html/index.html">http</a></li><li><a href="../../../kjs/html/index.html">kjs</a></li><li><a href="../../../kmdi/html/index.html">kmdi</a></li><li>&nbsp;&nbsp;<a href="../../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../../kparts/html/index.html">kparts</a></li><li><a href="../../../kresources/html/index.html">kresources</a></li><li><a href="../../../kspell2/html/index.html">kspell2</a></li><li><a href="../../../kunittest/html/index.html">kunittest</a></li><li><a href="../../../kutils/html/index.html">kutils</a></li><li><a href="../../../kwallet/html/index.html">kwallet</a></li><li><a href="../../../libkmid/html/index.html">libkmid</a></li><li><a href="../../../libkscreensaver/html/index.html">libkscreensaver</a></li>
</ul></div></div>


        </td>
</tr>
</table>

<span class="doNotDisplay">
  <a href="http://www.kde.org/" accesskey="8">KDE Home</a> |
  <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> |
  <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a>
</span>


<div style="height: 8px"></div>

<div id="footer">
  <div id="footer_left">
    Maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#64;kde&#46;or&#x67">Allen Winter</a>.
<br/>
    KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
    <a href="http://www.kde.org/contact/impressum.php">Legal</a>
  </div>
  <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div>
</div>

<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a>
WARNING END
-->

</body>
</html>