<?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: KURLComboBox 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-types">Public Types</a> | <a href="#signals">Signals</a> | <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-types">Protected Types</a> | <a href="#pro-slots">Protected Slots</a> | <a href="#pro-methods">Protected Member Functions</a> | <a href="#pro-attribs">Protected Attributes</a> | <a href="#properties">Properties</a> </div> <div class="headertitle"> <div class="title">KURLComboBox Class Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="KURLComboBox" --><!-- doxytag: inherits="KComboBox" --> <p>This combobox shows a number of recent URLs/directories, as well as some default directories. <a href="classKURLComboBox.html#details">More...</a></p> <p><code>#include <<a class="el" href="kurlcombobox_8h_source.html">kurlcombobox.h</a>></code></p> <p>Inherits KComboBox.</p> <p><a href="classKURLComboBox-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-types"></a> Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#ad3aafc4464c201e5003e72ee94e759b0">Mode</a> { <b>Files</b> = -1, <b>Directories</b> = 1, <b>Both</b> = 0 }</td></tr> <tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a30f5dd6d6736d44de6efb30a6be29e68">OverLoadResolving</a> { <b>RemoveTop</b>, <b>RemoveBottom</b> }</td></tr> <tr><td colspan="2"><h2><a name="signals"></a> Signals</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a9b6c0fe6244c0918de3e19b5f60c8efd">urlActivated</a> (const KURL &url)</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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#aa38c0cb1139d8079708e9bc0b76144bb">KURLComboBox</a> (<a class="el" href="classKURLComboBox.html#ad3aafc4464c201e5003e72ee94e759b0">Mode</a> mode, <a class="elRef" href="qwidget.html">QWidget</a> *parent=0, const char *name=0)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a99a1e48afa49637f53ca69de7a00b205"></a><!-- doxytag: member="KURLComboBox::KURLComboBox" ref="a99a1e48afa49637f53ca69de7a00b205" args="(Mode mode, bool rw, QWidget *parent=0, const char *name=0)" -->  </td><td class="memItemRight" valign="bottom"><b>KURLComboBox</b> (<a class="el" href="classKURLComboBox.html#ad3aafc4464c201e5003e72ee94e759b0">Mode</a> mode, bool rw, <a class="elRef" href="qwidget.html">QWidget</a> *parent=0, const char *name=0)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a69c8c0afa7301d1c1d2bc0a7bc613e6e">~KURLComboBox</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#aa7b52809849c1cf0e0dafa568164cc1b">setURL</a> (const KURL &url)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a0e59273cd22cb5affa89b1f508414674">setURLs</a> (<a class="elRef" href="qstringlist.html">QStringList</a> urls)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a3ce41341c40593a1c0d51d247776ea2c">setURLs</a> (<a class="elRef" href="qstringlist.html">QStringList</a> urls, <a class="el" href="classKURLComboBox.html#a30f5dd6d6736d44de6efb30a6be29e68">OverLoadResolving</a> remove)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstringlist.html">QStringList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a69eaeb2e38daa45d028b11023ba1c732">urls</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#ad755db898adb7f08be1fa24957048462">setMaxItems</a> (int)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#abcd09d6c4a13b3ac8e77842356ba4601">maxItems</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a5f8450e2552d31c3aa860b4190a14fcb">addDefaultURL</a> (const KURL &url, const <a class="elRef" href="qstring.html">QString</a> &text=QString::null)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a973c5e1a18d3a47f6988e831d441b235">addDefaultURL</a> (const KURL &url, const <a class="elRef" href="qpixmap.html">QPixmap</a> &pix, const <a class="elRef" href="qstring.html">QString</a> &text=QString::null)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a8383a3004b1944a1bb4fbfbc34c6b0df">setDefaults</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#aeb6f2bc9c2135d832c5bcf6660991dbb">removeURL</a> (const KURL &url, bool checkDefaultURLs=true)</td></tr> <tr><td colspan="2"><h2><a name="pro-types"></a> Protected Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0c6028e59a34eab0924da35886fd57a7"></a><!-- doxytag: member="KURLComboBox::KURLComboItem" ref="a0c6028e59a34eab0924da35886fd57a7" args="" --> typedef _KURLComboItem </td><td class="memItemRight" valign="bottom"><b>KURLComboItem</b></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="a37a94e7decf0fdef13ea26f66fb85068"></a><!-- doxytag: member="KURLComboBox::slotActivated" ref="a37a94e7decf0fdef13ea26f66fb85068" args="(int)" --> void </td><td class="memItemRight" valign="bottom"><b>slotActivated</b> (int)</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="a66ad77bccc038121ede950ecb8c1d977"></a><!-- doxytag: member="KURLComboBox::init" ref="a66ad77bccc038121ede950ecb8c1d977" args="(Mode mode)" --> void </td><td class="memItemRight" valign="bottom"><b>init</b> (<a class="el" href="classKURLComboBox.html#ad3aafc4464c201e5003e72ee94e759b0">Mode</a> mode)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a591d7a2caf9f0e01f2bcba84deb807d8"></a><!-- doxytag: member="KURLComboBox::insertURLItem" ref="a591d7a2caf9f0e01f2bcba84deb807d8" args="(const KURLComboItem *)" --> void </td><td class="memItemRight" valign="bottom"><b>insertURLItem</b> (const KURLComboItem *)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qpixmap.html">QPixmap</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#aabfd99ad0599a6811296d3b8c1a33dc1">getPixmap</a> (const KURL &url) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a6126af8e42b46751823c87c6fcc25779">updateItem</a> (const KURLComboItem *item, int index, const <a class="elRef" href="qpixmap.html">QPixmap</a> &pix)</td></tr> <tr><td colspan="2"><h2><a name="pro-attribs"></a> Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa854f0680cac0e9c5a9a5e0ffb8b107c"></a><!-- doxytag: member="KURLComboBox::itemList" ref="aa854f0680cac0e9c5a9a5e0ffb8b107c" args="" --> <a class="elRef" href="qptrlist.html">QPtrList</a>< KURLComboItem > </td><td class="memItemRight" valign="bottom"><b>itemList</b></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5e25bcc52c31cde5d3b1faaf306d6a8d"></a><!-- doxytag: member="KURLComboBox::defaultList" ref="a5e25bcc52c31cde5d3b1faaf306d6a8d" args="" --> <a class="elRef" href="qptrlist.html">QPtrList</a>< KURLComboItem > </td><td class="memItemRight" valign="bottom"><b>defaultList</b></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af9c85604985a4795786105f4b159b629"></a><!-- doxytag: member="KURLComboBox::itemMapper" ref="af9c85604985a4795786105f4b159b629" args="" --> <a class="elRef" href="qmap.html">QMap</a>< int, const KURLComboItem * > </td><td class="memItemRight" valign="bottom"><b>itemMapper</b></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6c043a471b7f271de3fcd1dea3ed14a0"></a><!-- doxytag: member="KURLComboBox::opendirPix" ref="a6c043a471b7f271de3fcd1dea3ed14a0" args="" --> <a class="elRef" href="qpixmap.html">QPixmap</a> </td><td class="memItemRight" valign="bottom"><b>opendirPix</b></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a96b326523e00c8fb4dd1e6fc87637207"></a><!-- doxytag: member="KURLComboBox::firstItemIndex" ref="a96b326523e00c8fb4dd1e6fc87637207" args="" --> int </td><td class="memItemRight" valign="bottom"><b>firstItemIndex</b></td></tr> <tr><td colspan="2"><h2><a name="properties"></a> Properties</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a454d391b45f9604cb99698e0e4aac029"></a><!-- doxytag: member="KURLComboBox::urls" ref="a454d391b45f9604cb99698e0e4aac029" args="" --> <a class="elRef" href="qstringlist.html">QStringList</a> </td><td class="memItemRight" valign="bottom"><b>urls</b></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6c8eaea34b9720a99693b9b424ee687d"></a><!-- doxytag: member="KURLComboBox::maxItems" ref="a6c8eaea34b9720a99693b9b424ee687d" args="" --> int </td><td class="memItemRight" valign="bottom"><b>maxItems</b></td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>This combobox shows a number of recent URLs/directories, as well as some default directories. </p> <p>It will manage the default dirs root-directory, home-directory and Desktop-directory, as well as a number of URLs set via <a class="el" href="classKURLComboBox.html#a0e59273cd22cb5affa89b1f508414674" title="Inserts urls into the combobox below the "default urls" (see addDefaultURL).">setURLs()</a> and one additional entry to be set via <a class="el" href="classKURLComboBox.html#aa7b52809849c1cf0e0dafa568164cc1b" title="Sets the current url.">setURL()</a>.</p> <p>A combo box showing a number of recent URLs/directories </p> <dl class="author"><dt><b>Author:</b></dt><dd>Carsten Pfeiffer <<a href="mailto:pfeiffer@kde.org">pfeiffer@kde.org</a>> </dd></dl> <p>Definition at line <a class="el" href="kurlcombobox_8h_source.html#l00041">41</a> of file <a class="el" href="kurlcombobox_8h_source.html">kurlcombobox.h</a>.</p> </div><hr/><h2>Member Enumeration Documentation</h2> <a class="anchor" id="ad3aafc4464c201e5003e72ee94e759b0"></a><!-- doxytag: member="KURLComboBox::Mode" ref="ad3aafc4464c201e5003e72ee94e759b0" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="classKURLComboBox.html#ad3aafc4464c201e5003e72ee94e759b0">KURLComboBox::Mode</a></td> </tr> </table> </div> <div class="memdoc"> <p>This enum describes which kind of items is shown in the combo box. </p> <p>Definition at line <a class="el" href="kurlcombobox_8h_source.html#l00051">51</a> of file <a class="el" href="kurlcombobox_8h_source.html">kurlcombobox.h</a>.</p> </div> </div> <a class="anchor" id="a30f5dd6d6736d44de6efb30a6be29e68"></a><!-- doxytag: member="KURLComboBox::OverLoadResolving" ref="a30f5dd6d6736d44de6efb30a6be29e68" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="classKURLComboBox.html#a30f5dd6d6736d44de6efb30a6be29e68">KURLComboBox::OverLoadResolving</a></td> </tr> </table> </div> <div class="memdoc"> <p>This Enumeration is used in <a class="el" href="classKURLComboBox.html#aa7b52809849c1cf0e0dafa568164cc1b" title="Sets the current url.">setURL()</a> to determine which items will be removed when the given list is larger than maxItems(). </p> <ul> <li>RemoveTop means that items will be removed from top </li> <li>RemoveBottom means, that items will be removed from the bottom </li> </ul> <p>Definition at line <a class="el" href="kurlcombobox_8h_source.html#l00059">59</a> of file <a class="el" href="kurlcombobox_8h_source.html">kurlcombobox.h</a>.</p> </div> </div> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="aa38c0cb1139d8079708e9bc0b76144bb"></a><!-- doxytag: member="KURLComboBox::KURLComboBox" ref="aa38c0cb1139d8079708e9bc0b76144bb" args="(Mode mode, QWidget *parent=0, const char *name=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KURLComboBox::KURLComboBox </td> <td>(</td> <td class="paramtype"><a class="el" href="classKURLComboBox.html#ad3aafc4464c201e5003e72ee94e759b0">Mode</a> </td> <td class="paramname"><em>mode</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="elRef" href="qwidget.html">QWidget</a> * </td> <td class="paramname"><em>parent</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"><em>name</em> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Constructs a <a class="el" href="classKURLComboBox.html" title="This combobox shows a number of recent URLs/directories, as well as some default directories.">KURLComboBox</a>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">mode</td><td>is either Files, Directories or Both and controls the following behavior: <ul> <li>Files all inserted URLs will be treated as files, therefore the url shown in the combo will never show a trailing / the icon will be the one associated with the file's mimetype. </li> <li>Directories all inserted URLs will be treated as directories, will have a trailing slash in the combobox. The current directory will show the "open folder" icon, other directories the "folder" icon. </li> <li>Both Don't mess with anything, just show the url as given. </li> </ul> </td></tr> <tr><td class="paramname">parent</td><td>The parent object of this widget. </td></tr> <tr><td class="paramname">name</td><td>The name of this widget. </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="kurlcombobox_8cpp_source.html#l00041">41</a> of file <a class="el" href="kurlcombobox_8cpp_source.html">kurlcombobox.cpp</a>.</p> </div> </div> <a class="anchor" id="a69c8c0afa7301d1c1d2bc0a7bc613e6e"></a><!-- doxytag: member="KURLComboBox::~KURLComboBox" ref="a69c8c0afa7301d1c1d2bc0a7bc613e6e" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KURLComboBox::~KURLComboBox </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Destructs the combo box. </p> <p>Definition at line <a class="el" href="kurlcombobox_8cpp_source.html#l00056">56</a> of file <a class="el" href="kurlcombobox_8cpp_source.html">kurlcombobox.cpp</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a5f8450e2552d31c3aa860b4190a14fcb"></a><!-- doxytag: member="KURLComboBox::addDefaultURL" ref="a5f8450e2552d31c3aa860b4190a14fcb" args="(const KURL &url, const QString &text=QString::null)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KURLComboBox::addDefaultURL </td> <td>(</td> <td class="paramtype">const KURL & </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> & </td> <td class="paramname"><em>text</em> = <code>QString::null</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Adds a url that will always be shown in the combobox, it can't be "rotated away". </p> <p>Default urls won't be returned in urls() and don't have to be set via <a class="el" href="classKURLComboBox.html#a0e59273cd22cb5affa89b1f508414674" title="Inserts urls into the combobox below the "default urls" (see addDefaultURL).">setURLs()</a>. If you want to specify a special pixmap, use the overloaded method with the pixmap parameter. Default URLs will be inserted into the combobox by <a class="el" href="classKURLComboBox.html#a8383a3004b1944a1bb4fbfbc34c6b0df" title="Clears all items and inserts the default urls into the combo.">setDefaults()</a> </p> <p>Definition at line <a class="el" href="kurlcombobox_8cpp_source.html#l00101">101</a> of file <a class="el" href="kurlcombobox_8cpp_source.html">kurlcombobox.cpp</a>.</p> </div> </div> <a class="anchor" id="a973c5e1a18d3a47f6988e831d441b235"></a><!-- doxytag: member="KURLComboBox::addDefaultURL" ref="a973c5e1a18d3a47f6988e831d441b235" args="(const KURL &url, const QPixmap &pix, const QString &text=QString::null)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KURLComboBox::addDefaultURL </td> <td>(</td> <td class="paramtype">const KURL & </td> <td class="paramname"><em>url</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qpixmap.html">QPixmap</a> & </td> <td class="paramname"><em>pix</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> & </td> <td class="paramname"><em>text</em> = <code>QString::null</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Adds a url that will always be shown in the combobox, it can't be "rotated away". </p> <p>Default urls won't be returned in urls() and don't have to be set via <a class="el" href="classKURLComboBox.html#a0e59273cd22cb5affa89b1f508414674" title="Inserts urls into the combobox below the "default urls" (see addDefaultURL).">setURLs()</a>. If you don't need to specify a pixmap, use the overloaded method without the pixmap parameter. Default URLs will be inserted into the combobox by <a class="el" href="classKURLComboBox.html#a8383a3004b1944a1bb4fbfbc34c6b0df" title="Clears all items and inserts the default urls into the combo.">setDefaults()</a> </p> <p>Definition at line <a class="el" href="kurlcombobox_8cpp_source.html#l00107">107</a> of file <a class="el" href="kurlcombobox_8cpp_source.html">kurlcombobox.cpp</a>.</p> </div> </div> <a class="anchor" id="aabfd99ad0599a6811296d3b8c1a33dc1"></a><!-- doxytag: member="KURLComboBox::getPixmap" ref="aabfd99ad0599a6811296d3b8c1a33dc1" args="(const KURL &url) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="qpixmap.html">QPixmap</a> KURLComboBox::getPixmap </td> <td>(</td> <td class="paramtype">const KURL & </td> <td class="paramname"><em>url</em></td><td>)</td> <td> const<code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Uses KMimeType::pixmapForURL() to return a proper pixmap for <code>url</code>. </p> <p>In directory mode, a folder icon is always returned. </p> <p>Definition at line <a class="el" href="kurlcombobox_8cpp_source.html#l00335">335</a> of file <a class="el" href="kurlcombobox_8cpp_source.html">kurlcombobox.cpp</a>.</p> </div> </div> <a class="anchor" id="abcd09d6c4a13b3ac8e77842356ba4601"></a><!-- doxytag: member="KURLComboBox::maxItems" ref="abcd09d6c4a13b3ac8e77842356ba4601" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int KURLComboBox::maxItems </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 maximum of items the combobox handles. </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURLComboBox.html#ad755db898adb7f08be1fa24957048462" title="Sets how many items should be handled and displayed by the combobox.">setMaxItems</a> </dd></dl> <p>Definition at line <a class="el" href="kurlcombobox_8h_source.html#l00137">137</a> of file <a class="el" href="kurlcombobox_8h_source.html">kurlcombobox.h</a>.</p> </div> </div> <a class="anchor" id="aeb6f2bc9c2135d832c5bcf6660991dbb"></a><!-- doxytag: member="KURLComboBox::removeURL" ref="aeb6f2bc9c2135d832c5bcf6660991dbb" args="(const KURL &url, bool checkDefaultURLs=true)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KURLComboBox::removeURL </td> <td>(</td> <td class="paramtype">const KURL & </td> <td class="paramname"><em>url</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>checkDefaultURLs</em> = <code>true</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Removes any occurrence of <code>url</code>. </p> <p>If <code>checkDefaultURLs</code> is false default-urls won't be removed. </p> <p>Definition at line <a class="el" href="kurlcombobox_8cpp_source.html#l00313">313</a> of file <a class="el" href="kurlcombobox_8cpp_source.html">kurlcombobox.cpp</a>.</p> </div> </div> <a class="anchor" id="a8383a3004b1944a1bb4fbfbc34c6b0df"></a><!-- doxytag: member="KURLComboBox::setDefaults" ref="a8383a3004b1944a1bb4fbfbc34c6b0df" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KURLComboBox::setDefaults </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Clears all items and inserts the default urls into the combo. </p> <p>Will be called implicitly upon the first call to <a class="el" href="classKURLComboBox.html#a0e59273cd22cb5affa89b1f508414674" title="Inserts urls into the combobox below the "default urls" (see addDefaultURL).">setURLs()</a> or <a class="el" href="classKURLComboBox.html#aa7b52809849c1cf0e0dafa568164cc1b" title="Sets the current url.">setURL()</a> </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURLComboBox.html#a5f8450e2552d31c3aa860b4190a14fcb" title="Adds a url that will always be shown in the combobox, it can't be "rotated away".">addDefaultURL</a> </dd></dl> <p>Definition at line <a class="el" href="kurlcombobox_8cpp_source.html#l00125">125</a> of file <a class="el" href="kurlcombobox_8cpp_source.html">kurlcombobox.cpp</a>.</p> </div> </div> <a class="anchor" id="ad755db898adb7f08be1fa24957048462"></a><!-- doxytag: member="KURLComboBox::setMaxItems" ref="ad755db898adb7f08be1fa24957048462" args="(int)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KURLComboBox::setMaxItems </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>max</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets how many items should be handled and displayed by the combobox. </p> <dl class="see"><dt><b>See also:</b></dt><dd>maxItems </dd></dl> <p>Definition at line <a class="el" href="kurlcombobox_8cpp_source.html#l00287">287</a> of file <a class="el" href="kurlcombobox_8cpp_source.html">kurlcombobox.cpp</a>.</p> </div> </div> <a class="anchor" id="aa7b52809849c1cf0e0dafa568164cc1b"></a><!-- doxytag: member="KURLComboBox::setURL" ref="aa7b52809849c1cf0e0dafa568164cc1b" args="(const KURL &url)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KURLComboBox::setURL </td> <td>(</td> <td class="paramtype">const KURL & </td> <td class="paramname"><em>url</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the current url. </p> <p>This combo handles exactly one url additionally to the default items and those set via <a class="el" href="classKURLComboBox.html#a0e59273cd22cb5affa89b1f508414674" title="Inserts urls into the combobox below the "default urls" (see addDefaultURL).">setURLs()</a>. So you can call <a class="el" href="classKURLComboBox.html#aa7b52809849c1cf0e0dafa568164cc1b" title="Sets the current url.">setURL()</a> as often as you want, it will always replace the previous one set via <a class="el" href="classKURLComboBox.html#aa7b52809849c1cf0e0dafa568164cc1b" title="Sets the current url.">setURL()</a>. If <code>url</code> is already in the combo, the last item will stay there and the existing item becomes the current item. The current item will always have the open-directory-pixmap as icon.</p> <p>Note that you won't receive any signals, e.g. textChanged(), returnPressed() or activated() upon calling this method. </p> <p>Definition at line <a class="el" href="kurlcombobox_8cpp_source.html#l00205">205</a> of file <a class="el" href="kurlcombobox_8cpp_source.html">kurlcombobox.cpp</a>.</p> </div> </div> <a class="anchor" id="a0e59273cd22cb5affa89b1f508414674"></a><!-- doxytag: member="KURLComboBox::setURLs" ref="a0e59273cd22cb5affa89b1f508414674" args="(QStringList urls)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KURLComboBox::setURLs </td> <td>(</td> <td class="paramtype"><a class="elRef" href="qstringlist.html">QStringList</a> </td> <td class="paramname"><em>urls</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Inserts <code>urls</code> into the combobox below the "default urls" (see addDefaultURL). </p> <p>If the list of urls contains more items than maxItems, the first items will be stripped. </p> <p>Definition at line <a class="el" href="kurlcombobox_8cpp_source.html#l00137">137</a> of file <a class="el" href="kurlcombobox_8cpp_source.html">kurlcombobox.cpp</a>.</p> </div> </div> <a class="anchor" id="a3ce41341c40593a1c0d51d247776ea2c"></a><!-- doxytag: member="KURLComboBox::setURLs" ref="a3ce41341c40593a1c0d51d247776ea2c" args="(QStringList urls, OverLoadResolving remove)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KURLComboBox::setURLs </td> <td>(</td> <td class="paramtype"><a class="elRef" href="qstringlist.html">QStringList</a> </td> <td class="paramname"><em>urls</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classKURLComboBox.html#a30f5dd6d6736d44de6efb30a6be29e68">OverLoadResolving</a> </td> <td class="paramname"><em>remove</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Inserts <code>urls</code> into the combobox below the "default urls" (see addDefaultURL). </p> <p>If the list of urls contains more items than maxItems, the <code>remove</code> parameter determines whether the first or last items will be stripped. </p> <p>Definition at line <a class="el" href="kurlcombobox_8cpp_source.html#l00142">142</a> of file <a class="el" href="kurlcombobox_8cpp_source.html">kurlcombobox.cpp</a>.</p> </div> </div> <a class="anchor" id="a6126af8e42b46751823c87c6fcc25779"></a><!-- doxytag: member="KURLComboBox::updateItem" ref="a6126af8e42b46751823c87c6fcc25779" args="(const KURLComboItem *item, int index, const QPixmap &pix)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KURLComboBox::updateItem </td> <td>(</td> <td class="paramtype">const KURLComboItem * </td> <td class="paramname"><em>item</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>index</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qpixmap.html">QPixmap</a> & </td> <td class="paramname"><em>pix</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Updates <code>item</code> with <code>pixmap</code> and sets the url instead of the text of the KURLComboItem. </p> <p>Also works around a <a class="elRef" href="qt.html">Qt</a> bug. </p> <p>Definition at line <a class="el" href="kurlcombobox_8cpp_source.html#l00346">346</a> of file <a class="el" href="kurlcombobox_8cpp_source.html">kurlcombobox.cpp</a>.</p> </div> </div> <a class="anchor" id="a9b6c0fe6244c0918de3e19b5f60c8efd"></a><!-- doxytag: member="KURLComboBox::urlActivated" ref="a9b6c0fe6244c0918de3e19b5f60c8efd" args="(const KURL &url)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KURLComboBox::urlActivated </td> <td>(</td> <td class="paramtype">const KURL & </td> <td class="paramname"><em>url</em></td><td>)</td> <td><code> [signal]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Emitted when an item was clicked at. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">url</td><td>is the url of the now current item. If it is a local url, it won't have a protocol (<a href="file:/">file:/</a>), otherwise it will. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a69eaeb2e38daa45d028b11023ba1c732"></a><!-- doxytag: member="KURLComboBox::urls" ref="a69eaeb2e38daa45d028b11023ba1c732" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="qstringlist.html">QStringList</a> KURLComboBox::urls </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>a list of all urls currently handled. The list contains at most maxItems() items. Use this to save the list of urls in a config-file and reinsert them via <a class="el" href="classKURLComboBox.html#a0e59273cd22cb5affa89b1f508414674" title="Inserts urls into the combobox below the "default urls" (see addDefaultURL).">setURLs()</a> next time. Note that all default urls set via <a class="el" href="classKURLComboBox.html#a5f8450e2552d31c3aa860b4190a14fcb" title="Adds a url that will always be shown in the combobox, it can't be "rotated away".">addDefaultURL()</a> are not returned, they will automatically be set via <a class="el" href="classKURLComboBox.html#a0e59273cd22cb5affa89b1f508414674" title="Inserts urls into the combobox below the "default urls" (see addDefaultURL).">setURLs()</a> or <a class="el" href="classKURLComboBox.html#aa7b52809849c1cf0e0dafa568164cc1b" title="Sets the current url.">setURL()</a>. You will always get fully qualified urls, i.e. with protocol like <a href="file:/">file:/</a> </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="kurlcombobox_8h_source.html">kurlcombobox.h</a></li> <li><a class="el" href="kurlcombobox_8cpp_source.html">kurlcombobox.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>