<?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: KFilePreview 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="#signals">Signals</a> | <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-slots">Protected Slots</a> | <a href="#pro-methods">Protected Member Functions</a> </div> <div class="headertitle"> <div class="title">KFilePreview Class Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="KFilePreview" --><!-- doxytag: inherits="QSplitter,KFileView" --> <p><code>#include <<a class="el" href="kfilepreview_8h_source.html">kfilepreview.h</a>></code></p> <div class="dynheader"> Inheritance diagram for KFilePreview:</div> <div class="dyncontent"> <div class="center"> <img src="classKFilePreview.png" usemap="#KFilePreview_map" alt=""/> <map id="KFilePreview_map" name="KFilePreview_map"> <area href="qsplitter.html" alt="QSplitter" shape="rect" coords="0,0,87,24"/> <area href="classKFileView.html" title="This class defines an interface to all file views." alt="KFileView" shape="rect" coords="97,0,184,24"/> </map> </div></div> <p><a href="classKFilePreview-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="signals"></a> Signals</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab7da253d56e2133082de63bc8daaec32"></a><!-- doxytag: member="KFilePreview::showPreview" ref="ab7da253d56e2133082de63bc8daaec32" args="(const KURL &)" --> void </td><td class="memItemRight" valign="bottom"><b>showPreview</b> (const KURL &)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a506e0ec727d2357c9df5ca2ca8c85481"></a><!-- doxytag: member="KFilePreview::clearPreview" ref="a506e0ec727d2357c9df5ca2ca8c85481" args="()" --> void </td><td class="memItemRight" valign="bottom"><b>clearPreview</b> ()</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"><a class="anchor" id="a9b3fe6667176f5602d22e9d365a3f7c3"></a><!-- doxytag: member="KFilePreview::KFilePreview" ref="a9b3fe6667176f5602d22e9d365a3f7c3" args="(QWidget *parent, const char *name)" -->  </td><td class="memItemRight" valign="bottom"><b>KFilePreview</b> (<a class="elRef" href="qwidget.html">QWidget</a> *parent, const char *name)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abd9a8120eba9159eceebed48b96573cf"></a><!-- doxytag: member="KFilePreview::KFilePreview" ref="abd9a8120eba9159eceebed48b96573cf" args="(KFileView *view, QWidget *parent, const char *name)" -->  </td><td class="memItemRight" valign="bottom"><b>KFilePreview</b> (<a class="el" href="classKFileView.html">KFileView</a> *view, <a class="elRef" href="qwidget.html">QWidget</a> *parent, const char *name)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="elRef" href="qwidget.html">QWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFilePreview.html#aefccf50543b930496be5c80beef72251">widget</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFilePreview.html#a9932b3358377161e0400ba7b775a9dd8">clearView</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFilePreview.html#a0b6c80067bb6342b7ec4b01cbfcbabe1">setFileView</a> (<a class="el" href="classKFileView.html">KFileView</a> *view)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKFileView.html">KFileView</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFilePreview.html#a1c631fb5deeccaeb14880e42e6da9ffd">fileView</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFilePreview.html#adbde2734765c71e3f31ad3c9cc6e6f34">updateView</a> (bool)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acfd2265f699e496a29b033d2027227eb"></a><!-- doxytag: member="KFilePreview::updateView" ref="acfd2265f699e496a29b033d2027227eb" args="(const KFileItem *)" --> virtual void </td><td class="memItemRight" valign="bottom"><b>updateView</b> (const KFileItem *)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFilePreview.html#a462326ba87a553a348a3c1ad79609edf">removeItem</a> (const KFileItem *)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFilePreview.html#a232520e70549bd2bdc66b4ce3e9be1e1">listingCompleted</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0fb972c5c90738412f2d6d3b083d69af"></a><!-- doxytag: member="KFilePreview::setSelectionMode" ref="a0fb972c5c90738412f2d6d3b083d69af" args="(KFile::SelectionMode sm)" --> virtual void </td><td class="memItemRight" valign="bottom"><b>setSelectionMode</b> (KFile::SelectionMode sm)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFilePreview.html#a132454f2e6b20e2e13f044d42db9066d">setSelected</a> (const KFileItem *, bool)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFilePreview.html#ae67a21b367ba99d4fb64dbef156914fc">isSelected</a> (const KFileItem *) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFilePreview.html#a3c347c96d186214d2efb216c6100ebdf">clearSelection</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFilePreview.html#a08ebb638823c7ddd0f8b5e59e56ab1c9">selectAll</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFilePreview.html#a398fde4d53b9c07ddbc9704ad69b3ddf">invertSelection</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFilePreview.html#a5311a8ac88c059ccff62623a2a22ccdc">insertItem</a> (KFileItem *)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFilePreview.html#a6b780bda9a917b21bd52cecc6a8fc16d">clear</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFilePreview.html#a021f7616b99bcda6ab8efbec4e395dd2">setCurrentItem</a> (const KFileItem *)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual KFileItem * </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFilePreview.html#a07c4280ea54599df8d092cb838d48f7e">currentFileItem</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5f09bfe8bfb8eea8fbfafd33f856bde8"></a><!-- doxytag: member="KFilePreview::firstFileItem" ref="a5f09bfe8bfb8eea8fbfafd33f856bde8" args="() const " --> virtual KFileItem * </td><td class="memItemRight" valign="bottom"><b>firstFileItem</b> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1beb22cf607a672d168a831c9a705e19"></a><!-- doxytag: member="KFilePreview::nextItem" ref="a1beb22cf607a672d168a831c9a705e19" args="(const KFileItem *) const " --> virtual KFileItem * </td><td class="memItemRight" valign="bottom"><b>nextItem</b> (const KFileItem *) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a42ace2174a2e4acaf15c1851e9cc2beb"></a><!-- doxytag: member="KFilePreview::prevItem" ref="a42ace2174a2e4acaf15c1851e9cc2beb" args="(const KFileItem *) const " --> virtual KFileItem * </td><td class="memItemRight" valign="bottom"><b>prevItem</b> (const KFileItem *) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFilePreview.html#ae1f049d966ab199bb806bcbbc9a0ea12">setSorting</a> (QDir::SortSpec sort)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae19b50161a031ee6c5aae797ae450036"></a><!-- doxytag: member="KFilePreview::readConfig" ref="ae19b50161a031ee6c5aae797ae450036" args="(KConfig *, const QString &group=QString::null)" --> virtual void </td><td class="memItemRight" valign="bottom"><b>readConfig</b> (KConfig *, const <a class="elRef" href="qstring.html">QString</a> &group=QString::null)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adda44df01defdcb397a98553b79f4783"></a><!-- doxytag: member="KFilePreview::writeConfig" ref="adda44df01defdcb397a98553b79f4783" args="(KConfig *, const QString &group=QString::null)" --> virtual void </td><td class="memItemRight" valign="bottom"><b>writeConfig</b> (KConfig *, const <a class="elRef" href="qstring.html">QString</a> &group=QString::null)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual KActionCollection * </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFilePreview.html#a78e23b04a4015610518efa6a1dbc6850">actionCollection</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKFilePreview.html#ac551aba3c69579c39562f3f25d55be0a">ensureItemVisible</a> (const KFileItem *)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5a4431e2031101fce402c5df1b39ce84"></a><!-- doxytag: member="KFilePreview::setPreviewWidget" ref="a5a4431e2031101fce402c5df1b39ce84" args="(const QWidget *w, const KURL &u)" --> void </td><td class="memItemRight" valign="bottom"><b>setPreviewWidget</b> (const <a class="elRef" href="qwidget.html">QWidget</a> *w, const KURL &u)</td></tr> <tr><td colspan="2"><h2><a name="pro-slots"></a> Protected Slots</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a57e06f6f15aa04a6396871406a761eff"></a><!-- doxytag: member="KFilePreview::slotHighlighted" ref="a57e06f6f15aa04a6396871406a761eff" args="(const KFileItem *)" --> virtual void </td><td class="memItemRight" valign="bottom"><b>slotHighlighted</b> (const KFileItem *)</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"><a class="anchor" id="ab0fadf9cee3543af9fbeb522f2bba106"></a><!-- doxytag: member="KFilePreview::virtual_hook" ref="ab0fadf9cee3543af9fbeb522f2bba106" args="(int id, void *data)" --> virtual void </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 <a class="el" href="classKFileView.html" title="This class defines an interface to all file views.">KFileView</a> is an empbedded preview for some file types. </p> <p>Definition at line <a class="el" href="kfilepreview_8h_source.html#l00039">39</a> of file <a class="el" href="kfilepreview_8h_source.html">kfilepreview.h</a>.</p> </div><hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a78e23b04a4015610518efa6a1dbc6850"></a><!-- doxytag: member="KFilePreview::actionCollection" ref="a78e23b04a4015610518efa6a1dbc6850" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KActionCollection * KFilePreview::actionCollection </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>This overrides <a class="el" href="classKFileView.html#a99e6d60e13d5c7a7e55069bc78c9cdc4">KFileView::actionCollection()</a> by returning the <a class="el" href="classKFilePreview.html#a78e23b04a4015610518efa6a1dbc6850" title="This overrides KFileView::actionCollection() by returning the actionCollection() of the KFileView (me...">actionCollection()</a> of the <a class="el" href="classKFileView.html" title="This class defines an interface to all file views.">KFileView</a> (member left) it contains. </p> <p>This means that <a class="el" href="classKFilePreview.html">KFilePreview</a> will never create a KActionCollection object of its own. </p> <p>Reimplemented from <a class="el" href="classKFileView.html#a99e6d60e13d5c7a7e55069bc78c9cdc4">KFileView</a>.</p> <p>Definition at line <a class="el" href="kfilepreview_8cpp_source.html#l00257">257</a> of file <a class="el" href="kfilepreview_8cpp_source.html">kfilepreview.cpp</a>.</p> </div> </div> <a class="anchor" id="a6b780bda9a917b21bd52cecc6a8fc16d"></a><!-- doxytag: member="KFilePreview::clear" ref="a6b780bda9a917b21bd52cecc6a8fc16d" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KFilePreview::clear </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Clears the view and all item lists. </p> <p>Reimplemented from <a class="el" href="classKFileView.html#ad57bf04c086bb1836aa6cc520e633024">KFileView</a>.</p> <p>Definition at line <a class="el" href="kfilepreview_8cpp_source.html#l00174">174</a> of file <a class="el" href="kfilepreview_8cpp_source.html">kfilepreview.cpp</a>.</p> </div> </div> <a class="anchor" id="a3c347c96d186214d2efb216c6100ebdf"></a><!-- doxytag: member="KFilePreview::clearSelection" ref="a3c347c96d186214d2efb216c6100ebdf" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KFilePreview::clearSelection </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Clears any selection, unhighlights everything. </p> <p>Must be implemented by the view. </p> <p>Implements <a class="el" href="classKFileView.html#a0169239144438ec5e5f140f7a86671fc">KFileView</a>.</p> <p>Definition at line <a class="el" href="kfilepreview_8cpp_source.html#l00180">180</a> of file <a class="el" href="kfilepreview_8cpp_source.html">kfilepreview.cpp</a>.</p> </div> </div> <a class="anchor" id="a9932b3358377161e0400ba7b775a9dd8"></a><!-- doxytag: member="KFilePreview::clearView" ref="a9932b3358377161e0400ba7b775a9dd8" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KFilePreview::clearView </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>pure virtual function, that should be implemented to clear the view. </p> <p>At this moment the list is already empty </p> <p>Implements <a class="el" href="classKFileView.html#afaa57af6126429aa86cd85b9776ffb08">KFileView</a>.</p> <p>Definition at line <a class="el" href="kfilepreview_8cpp_source.html#l00142">142</a> of file <a class="el" href="kfilepreview_8cpp_source.html">kfilepreview.cpp</a>.</p> </div> </div> <a class="anchor" id="a07c4280ea54599df8d092cb838d48f7e"></a><!-- doxytag: member="KFilePreview::currentFileItem" ref="a07c4280ea54599df8d092cb838d48f7e" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KFileItem * KFilePreview::currentFileItem </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>the "current" KFileItem, e.g. where the cursor is. Returns 0L when there is no current item (e.g. in an empty view). Subclasses have to implement this. </dd></dl> <p>Implements <a class="el" href="classKFileView.html#a8cf89f905efe275df9a82d3a53bade58">KFileView</a>.</p> <p>Definition at line <a class="el" href="kfilepreview_8cpp_source.html#l00214">214</a> of file <a class="el" href="kfilepreview_8cpp_source.html">kfilepreview.cpp</a>.</p> </div> </div> <a class="anchor" id="ac551aba3c69579c39562f3f25d55be0a"></a><!-- doxytag: member="KFilePreview::ensureItemVisible" ref="ac551aba3c69579c39562f3f25d55be0a" args="(const KFileItem *)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KFilePreview::ensureItemVisible </td> <td>(</td> <td class="paramtype">const KFileItem * </td> <td class="paramname"><em>i</em></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>pure virtual function, that should be implemented to make item i visible, i.e. </p> <p>by scrolling the view appropriately. </p> <p>Implements <a class="el" href="classKFileView.html#aafdaef218ffec44f8b66df39452e7b82">KFileView</a>.</p> <p>Definition at line <a class="el" href="kfilepreview_8cpp_source.html#l00237">237</a> of file <a class="el" href="kfilepreview_8cpp_source.html">kfilepreview.cpp</a>.</p> </div> </div> <a class="anchor" id="a1c631fb5deeccaeb14880e42e6da9ffd"></a><!-- doxytag: member="KFilePreview::fileView" ref="a1c631fb5deeccaeb14880e42e6da9ffd" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classKFileView.html">KFileView</a>* KFilePreview::fileView </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 current fileview </dd></dl> <p>Definition at line <a class="el" href="kfilepreview_8h_source.html#l00060">60</a> of file <a class="el" href="kfilepreview_8h_source.html">kfilepreview.h</a>.</p> </div> </div> <a class="anchor" id="a5311a8ac88c059ccff62623a2a22ccdc"></a><!-- doxytag: member="KFilePreview::insertItem" ref="a5311a8ac88c059ccff62623a2a22ccdc" args="(KFileItem *)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KFilePreview::insertItem </td> <td>(</td> <td class="paramtype">KFileItem * </td> <td class="paramname"><em>i</em></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>The derived view must implement this function to add the file in the widget. </p> <p>Make sure to call this implementation, i.e. KFileView::insertItem( i ); </p> <p>Reimplemented from <a class="el" href="classKFileView.html#a10579affb6ac417e14d94fdf0b965851">KFileView</a>.</p> <p>Definition at line <a class="el" href="kfilepreview_8cpp_source.html#l00130">130</a> of file <a class="el" href="kfilepreview_8cpp_source.html">kfilepreview.cpp</a>.</p> </div> </div> <a class="anchor" id="a398fde4d53b9c07ddbc9704ad69b3ddf"></a><!-- doxytag: member="KFilePreview::invertSelection" ref="a398fde4d53b9c07ddbc9704ad69b3ddf" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KFilePreview::invertSelection </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Inverts the current selection, i.e. </p> <p>selects all items, that were up to now not selected and deselects the other. </p> <p>Reimplemented from <a class="el" href="classKFileView.html#afffdbef7c58468ceb2db74dc9e9da005">KFileView</a>.</p> <p>Definition at line <a class="el" href="kfilepreview_8cpp_source.html#l00191">191</a> of file <a class="el" href="kfilepreview_8cpp_source.html">kfilepreview.cpp</a>.</p> </div> </div> <a class="anchor" id="ae67a21b367ba99d4fb64dbef156914fc"></a><!-- doxytag: member="KFilePreview::isSelected" ref="ae67a21b367ba99d4fb64dbef156914fc" args="(const KFileItem *) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool KFilePreview::isSelected </td> <td>(</td> <td class="paramtype">const KFileItem * </td> <td class="paramname"></td><td>)</td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>whether the given item is currently selected. Must be implemented by the view. </dd></dl> <p>Implements <a class="el" href="classKFileView.html#afa23730f2a0f828b6ff4575510692cdc">KFileView</a>.</p> <p>Definition at line <a class="el" href="kfilepreview_8cpp_source.html#l00196">196</a> of file <a class="el" href="kfilepreview_8cpp_source.html">kfilepreview.cpp</a>.</p> </div> </div> <a class="anchor" id="a232520e70549bd2bdc66b4ce3e9be1e1"></a><!-- doxytag: member="KFilePreview::listingCompleted" ref="a232520e70549bd2bdc66b4ce3e9be1e1" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KFilePreview::listingCompleted </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>This hook is called when all items of the currently listed directory are listed and inserted into the view, i.e. </p> <p>there won't come any new items anymore. </p> <p>Reimplemented from <a class="el" href="classKFileView.html#a1b2881942e0f118a8c0dca545a1faa84">KFileView</a>.</p> <p>Definition at line <a class="el" href="kfilepreview_8cpp_source.html#l00169">169</a> of file <a class="el" href="kfilepreview_8cpp_source.html">kfilepreview.cpp</a>.</p> </div> </div> <a class="anchor" id="a462326ba87a553a348a3c1ad79609edf"></a><!-- doxytag: member="KFilePreview::removeItem" ref="a462326ba87a553a348a3c1ad79609edf" args="(const KFileItem *)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KFilePreview::removeItem </td> <td>(</td> <td class="paramtype">const KFileItem * </td> <td class="paramname"><em>item</em></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Removes an item from the list; has to be implemented by the view. </p> <p>Call KFileView::removeItem( item ) after removing it. </p> <p>Reimplemented from <a class="el" href="classKFileView.html#aaa3a6c9ee8645ba61028f3dd86cab7e0">KFileView</a>.</p> <p>Definition at line <a class="el" href="kfilepreview_8cpp_source.html#l00160">160</a> of file <a class="el" href="kfilepreview_8cpp_source.html">kfilepreview.cpp</a>.</p> </div> </div> <a class="anchor" id="a08ebb638823c7ddd0f8b5e59e56ab1c9"></a><!-- doxytag: member="KFilePreview::selectAll" ref="a08ebb638823c7ddd0f8b5e59e56ab1c9" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KFilePreview::selectAll </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Selects all items. </p> <p>You may want to override this, if you can implement it more efficiently than calling <a class="el" href="classKFilePreview.html#a132454f2e6b20e2e13f044d42db9066d" title="Tells the view that it should highlight the item.">setSelected()</a> with every item. This works only in Multiselection mode of course. </p> <p>Reimplemented from <a class="el" href="classKFileView.html#ade383ac9c74aea6cb01e6674f820fb6e">KFileView</a>.</p> <p>Definition at line <a class="el" href="kfilepreview_8cpp_source.html#l00186">186</a> of file <a class="el" href="kfilepreview_8cpp_source.html">kfilepreview.cpp</a>.</p> </div> </div> <a class="anchor" id="a021f7616b99bcda6ab8efbec4e395dd2"></a><!-- doxytag: member="KFilePreview::setCurrentItem" ref="a021f7616b99bcda6ab8efbec4e395dd2" args="(const KFileItem *)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KFilePreview::setCurrentItem </td> <td>(</td> <td class="paramtype">const KFileItem * </td> <td class="paramname"><em>item</em></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Reimplement this to set <code>item</code> the current item in the view, e.g. </p> <p>the item having focus. </p> <p>Implements <a class="el" href="classKFileView.html#a9f126f9b49a558a41861d2493d917aca">KFileView</a>.</p> <p>Definition at line <a class="el" href="kfilepreview_8cpp_source.html#l00209">209</a> of file <a class="el" href="kfilepreview_8cpp_source.html">kfilepreview.cpp</a>.</p> </div> </div> <a class="anchor" id="a0b6c80067bb6342b7ec4b01cbfcbabe1"></a><!-- doxytag: member="KFilePreview::setFileView" ref="a0b6c80067bb6342b7ec4b01cbfcbabe1" args="(KFileView *view)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KFilePreview::setFileView </td> <td>(</td> <td class="paramtype"><a class="el" href="classKFileView.html">KFileView</a> * </td> <td class="paramname"><em>view</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Delets the current view and sets the view to the given <code>view</code>. </p> <p>The view is reparented to have this as parent, if necessary. </p> <p>Definition at line <a class="el" href="kfilepreview_8cpp_source.html#l00081">81</a> of file <a class="el" href="kfilepreview_8cpp_source.html">kfilepreview.cpp</a>.</p> </div> </div> <a class="anchor" id="a132454f2e6b20e2e13f044d42db9066d"></a><!-- doxytag: member="KFilePreview::setSelected" ref="a132454f2e6b20e2e13f044d42db9066d" args="(const KFileItem *, bool)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KFilePreview::setSelected </td> <td>(</td> <td class="paramtype">const KFileItem * </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>enable</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Tells the view that it should highlight the item. </p> <p>This function must be implemented by the view. </p> <p>Implements <a class="el" href="classKFileView.html#af1cf6ffa28a579e81d53f4195aa605d9">KFileView</a>.</p> <p>Definition at line <a class="el" href="kfilepreview_8cpp_source.html#l00205">205</a> of file <a class="el" href="kfilepreview_8cpp_source.html">kfilepreview.cpp</a>.</p> </div> </div> <a class="anchor" id="ae1f049d966ab199bb806bcbbc9a0ea12"></a><!-- doxytag: member="KFilePreview::setSorting" ref="ae1f049d966ab199bb806bcbbc9a0ea12" args="(QDir::SortSpec sort)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KFilePreview::setSorting </td> <td>(</td> <td class="paramtype">QDir::SortSpec </td> <td class="paramname"><em>sort</em></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the sorting order of the view. </p> <p>Default is QDir::Name | QDir::IgnoreCase | QDir::DirsFirst Override this in your subclass and sort accordingly (usually by setting the sorting-key for every item and telling <a class="elRef" href="qiconview.html">QIconView</a> or <a class="elRef" href="qlistview.html">QListView</a> to sort.</p> <p>A view may choose to use a different sorting than QDir::Name, Time or Size. E.g. to sort by mimetype or any possible string. Set the sorting to QDir::Unsorted for that and do the rest internally.</p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKFileView.html#ab0c9a95b79786aa5c64a5f1ad9fdf89b" title="This method calculates a QString from the given parameters, that is suitable for sorting with e...">sortingKey</a> </dd></dl> <p>Reimplemented from <a class="el" href="classKFileView.html#a414aded653fc3c9ccad51fc8a49b6150">KFileView</a>.</p> <p>Definition at line <a class="el" href="kfilepreview_8cpp_source.html#l00136">136</a> of file <a class="el" href="kfilepreview_8cpp_source.html">kfilepreview.cpp</a>.</p> </div> </div> <a class="anchor" id="adbde2734765c71e3f31ad3c9cc6e6f34"></a><!-- doxytag: member="KFilePreview::updateView" ref="adbde2734765c71e3f31ad3c9cc6e6f34" args="(bool)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KFilePreview::updateView </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"><em>f</em></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>does a repaint of the view. </p> <p>The default implementation calls </p> <div class="fragment"><pre class="fragment"> <a class="code" href="classKFilePreview.html#aefccf50543b930496be5c80beef72251" title="a pure virtual function to get a QWidget, that can be added to other widgets.">widget</a>()-><a class="codeRef" href="qwidget.html#repaint">repaint</a>(f) </pre></div> <p>Reimplemented from <a class="el" href="classKFileView.html#a5f1dd7f78ce56195d567c000cd18ce8d">KFileView</a>.</p> <p>Definition at line <a class="el" href="kfilepreview_8cpp_source.html#l00148">148</a> of file <a class="el" href="kfilepreview_8cpp_source.html">kfilepreview.cpp</a>.</p> </div> </div> <a class="anchor" id="aefccf50543b930496be5c80beef72251"></a><!-- doxytag: member="KFilePreview::widget" ref="aefccf50543b930496be5c80beef72251" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="elRef" href="qwidget.html">QWidget</a>* KFilePreview::widget </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>a pure virtual function to get a <a class="elRef" href="qwidget.html">QWidget</a>, that can be added to other widgets. </p> <p>This function is needed to make it possible for derived classes to derive from other widgets. </p> <p>Implements <a class="el" href="classKFileView.html#a0b5324a7ee0ee51fbd5dd5fd66099a90">KFileView</a>.</p> <p>Definition at line <a class="el" href="kfilepreview_8h_source.html#l00048">48</a> of file <a class="el" href="kfilepreview_8h_source.html">kfilepreview.h</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="kfilepreview_8h_source.html">kfilepreview.h</a></li> <li><a class="el" href="kfilepreview_8cpp_source.html">kfilepreview.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> <a href="../../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li> <a href="../../../interfaces/kimproxy/library/html/index.html">library</a></li><li> <a href="../../../interfaces/kspeech/html/index.html">kspeech</a></li><li> <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> <a href="../../../kio/bookmarks/html/index.html">bookmarks</a></li><li> <a href="../../../kio/httpfilter/html/index.html">httpfilter</a></li><li> <a href="../../../kio/kfile/html/index.html">kfile</a></li><li> <a href="../../../kio/kio/html/index.html">kio</a></li><li> <a href="../../../kio/kioexec/html/index.html">kioexec</a></li><li> <a href="../../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li> <a href="../../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../../kioslave/html/index.html">kioslave</a></li><li> <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> <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="mailto:groot@kde.org">Adriaan de Groot</a> and <a href="mailto:winter@kde.org">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>