<?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.4.4 --> <h1>KURLComboBox Class Reference</h1><!-- doxytag: class="KURLComboBox" --><!-- doxytag: inherits="KComboBox" --><code>#include <<a class="el" href="kurlcombobox_8h-source.html">kurlcombobox.h</a>></code> <p> <a href="classKURLComboBox-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> This combobox shows a number of recent URLs/directories, as well as some default directories.A combo box showing a number of recent URLs/directories. <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#a4">setURLs()</a> and one additional entry to be set via <a class="el" href="classKURLComboBox.html#a3">setURL()</a>.<p> <dl compact><dt><b>Author:</b></dt><dd>Carsten Pfeiffer <<a href="mailto:pfeiffer@kde.org">pfeiffer@kde.org</a>></dd></dl> <p> <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>.<table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Types</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#w5">Mode</a> { <b>Files</b> = -1, <b>Directories</b> = 1, <b>Both</b> = 0 }</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#w6">OverLoadResolving</a> { <b>RemoveTop</b>, <b>RemoveBottom</b> }</td></tr> <tr><td colspan="2"><br><h2>Signals</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#l0">urlActivated</a> (const KURL &url)</td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a0">KURLComboBox</a> (<a class="el" href="classKURLComboBox.html#w5">Mode</a> mode, <a class="elRef" doxygen="qt.tag:" href="qwidget.html">QWidget</a> *parent=0, const char *name=0)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1"></a><!-- doxytag: member="KURLComboBox::KURLComboBox" ref="a1" args="(Mode mode, bool rw, QWidget *parent=0, const char *name=0)" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a1">KURLComboBox</a> (<a class="el" href="classKURLComboBox.html#w5">Mode</a> mode, bool rw, <a class="elRef" doxygen="qt.tag:" href="qwidget.html">QWidget</a> *parent=0, const char *name=0)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a2">~KURLComboBox</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a3">setURL</a> (const KURL &url)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a4">setURLs</a> (<a class="elRef" doxygen="qt.tag:" href="qstringlist.html">QStringList</a> urls)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a5">setURLs</a> (<a class="elRef" doxygen="qt.tag:" href="qstringlist.html">QStringList</a> urls, <a class="el" href="classKURLComboBox.html#w6">OverLoadResolving</a> remove)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstringlist.html">QStringList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a6">urls</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a7">setMaxItems</a> (int)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a8">maxItems</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a9">addDefaultURL</a> (const KURL &url, const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &text=QString::null)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a10">addDefaultURL</a> (const KURL &url, const <a class="elRef" doxygen="qt.tag:" href="qpixmap.html">QPixmap</a> &pix, const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &text=QString::null)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a11">setDefaults</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#a12">removeURL</a> (const KURL &url, bool checkDefaultURLs=true)</td></tr> <tr><td colspan="2"><br><h2>Protected Types</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="x0"></a><!-- doxytag: member="KURLComboBox::KURLComboItem" ref="x0" args="" --> typedef <a class="el" href="structKURLComboBox_1_1__KURLComboItem.html">_KURLComboItem</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#x0">KURLComboItem</a></td></tr> <tr><td colspan="2"><br><h2>Protected Slots</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="j0"></a><!-- doxytag: member="KURLComboBox::slotActivated" ref="j0" args="(int)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#j0">slotActivated</a> (int)</td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b0"></a><!-- doxytag: member="KURLComboBox::init" ref="b0" args="(Mode mode)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#b0">init</a> (<a class="el" href="classKURLComboBox.html#w5">Mode</a> mode)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b1"></a><!-- doxytag: member="KURLComboBox::insertURLItem" ref="b1" args="(const KURLComboItem *)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#b1">insertURLItem</a> (const <a class="el" href="structKURLComboBox_1_1__KURLComboItem.html">KURLComboItem</a> *)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qpixmap.html">QPixmap</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#b2">getPixmap</a> (const KURL &url) const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#b3">updateItem</a> (const <a class="el" href="structKURLComboBox_1_1__KURLComboItem.html">KURLComboItem</a> *item, int index, const <a class="elRef" doxygen="qt.tag:" href="qpixmap.html">QPixmap</a> &pix)</td></tr> <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p0"></a><!-- doxytag: member="KURLComboBox::itemList" ref="p0" args="" --> <a class="elRef" doxygen="qt.tag:" href="qptrlist.html">QPtrList</a>< <a class="el" href="structKURLComboBox_1_1__KURLComboItem.html">KURLComboItem</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#p0">itemList</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p1"></a><!-- doxytag: member="KURLComboBox::defaultList" ref="p1" args="" --> <a class="elRef" doxygen="qt.tag:" href="qptrlist.html">QPtrList</a>< <a class="el" href="structKURLComboBox_1_1__KURLComboItem.html">KURLComboItem</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#p1">defaultList</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p2"></a><!-- doxytag: member="KURLComboBox::itemMapper" ref="p2" args="" --> <a class="elRef" doxygen="qt.tag:" href="qmap.html">QMap</a>< int, const <a class="el" href="structKURLComboBox_1_1__KURLComboItem.html">KURLComboItem</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#p2">itemMapper</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p3"></a><!-- doxytag: member="KURLComboBox::opendirPix" ref="p3" args="" --> <a class="elRef" doxygen="qt.tag:" href="qpixmap.html">QPixmap</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#p3">opendirPix</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p4"></a><!-- doxytag: member="KURLComboBox::firstItemIndex" ref="p4" args="" --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#p4">firstItemIndex</a></td></tr> <tr><td colspan="2"><br><h2>Properties</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="00"></a><!-- doxytag: member="KURLComboBox::urls" ref="00" args="" --> <a class="elRef" doxygen="qt.tag:" href="qstringlist.html">QStringList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#00">urls</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="01"></a><!-- doxytag: member="KURLComboBox::maxItems" ref="01" args="" --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="classKURLComboBox.html#01">maxItems</a></td></tr> <tr><td colspan="2"><br><h2>Classes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structKURLComboBox_1_1__KURLComboItem.html">_KURLComboItem</a></td></tr> </table> <hr><h2>Member Enumeration Documentation</h2> <a class="anchor" name="w5"></a><!-- doxytag: member="KURLComboBox::Mode" ref="w5" args="" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">enum <a class="el" href="classKURLComboBox.html#w5">KURLComboBox::Mode</a> </td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <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>. </td> </tr> </table> <a class="anchor" name="w6"></a><!-- doxytag: member="KURLComboBox::OverLoadResolving" ref="w6" args="" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">enum <a class="el" href="classKURLComboBox.html#w6">KURLComboBox::OverLoadResolving</a> </td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> This Enumeration is used in <a class="el" href="classKURLComboBox.html#a3">setURL()</a> to determine which items will be removed when the given list is larger than <a class="el" href="classKURLComboBox.html#01">maxItems()</a>. <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>. </td> </tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="a0"></a><!-- doxytag: member="KURLComboBox::KURLComboBox" ref="a0" args="(Mode mode, QWidget *parent=0, const char *name=0)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">KURLComboBox::KURLComboBox </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classKURLComboBox.html#w5">Mode</a> </td> <td class="mdname" nowrap> <em>mode</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="elRef" doxygen="qt.tag:" href="qwidget.html">QWidget</a> * </td> <td class="mdname" nowrap> <em>parent</em> = <code>0</code>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>name</em> = <code>0</code></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Constructs a KURLComboBox. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>mode</em> </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 valign="top"></td><td valign="top"><em>parent</em> </td><td>The parent object of this widget. </td></tr> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of this widget.</td></tr> </table> </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>. </td> </tr> </table> <a class="anchor" name="a2"></a><!-- doxytag: member="KURLComboBox::~KURLComboBox" ref="a2" args="()" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">KURLComboBox::~KURLComboBox </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <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>. </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="a10"></a><!-- doxytag: member="KURLComboBox::addDefaultURL" ref="a10" args="(const KURL &url, const QPixmap &pix, const QString &text=QString::null)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void KURLComboBox::addDefaultURL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const KURL & </td> <td class="mdname" nowrap> <em>url</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const <a class="elRef" doxygen="qt.tag:" href="qpixmap.html">QPixmap</a> & </td> <td class="mdname" nowrap> <em>pix</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> & </td> <td class="mdname" nowrap> <em>text</em> = <code>QString::null</code></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Adds a url that will always be shown in the combobox, it can't be "rotated away". <p> Default urls won't be returned in <a class="el" href="classKURLComboBox.html#00">urls()</a> and don't have to be set via <a class="el" href="classKURLComboBox.html#a4">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#a11">setDefaults()</a> <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>. </td> </tr> </table> <a class="anchor" name="a9"></a><!-- doxytag: member="KURLComboBox::addDefaultURL" ref="a9" args="(const KURL &url, const QString &text=QString::null)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void KURLComboBox::addDefaultURL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const KURL & </td> <td class="mdname" nowrap> <em>url</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> & </td> <td class="mdname" nowrap> <em>text</em> = <code>QString::null</code></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Adds a url that will always be shown in the combobox, it can't be "rotated away". <p> Default urls won't be returned in <a class="el" href="classKURLComboBox.html#00">urls()</a> and don't have to be set via <a class="el" href="classKURLComboBox.html#a4">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#a11">setDefaults()</a> <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>. </td> </tr> </table> <a class="anchor" name="b2"></a><!-- doxytag: member="KURLComboBox::getPixmap" ref="b2" args="(const KURL &url) const " --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="elRef" doxygen="qt.tag:" href="qpixmap.html">QPixmap</a> KURLComboBox::getPixmap </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const KURL & </td> <td class="mdname1" valign="top" nowrap> <em>url</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [protected]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Uses KMimeType::pixmapForURL() to return a proper pixmap for <code>url</code>. <p> In directory mode, a folder icon is always returned. <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>. </td> </tr> </table> <a class="anchor" name="a8"></a><!-- doxytag: member="KURLComboBox::maxItems" ref="a8" args="() const " --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int KURLComboBox::maxItems </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> <dl compact><dt><b>Returns:</b></dt><dd>the maximum of items the combobox handles. </dd></dl> <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURLComboBox.html#a7">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>. </td> </tr> </table> <a class="anchor" name="a12"></a><!-- doxytag: member="KURLComboBox::removeURL" ref="a12" args="(const KURL &url, bool checkDefaultURLs=true)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void KURLComboBox::removeURL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const KURL & </td> <td class="mdname" nowrap> <em>url</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>checkDefaultURLs</em> = <code>true</code></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Removes any occurrence of <code>url</code>. <p> If <code>checkDefaultURLs</code> is false default-urls won't be removed. <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>. </td> </tr> </table> <a class="anchor" name="a11"></a><!-- doxytag: member="KURLComboBox::setDefaults" ref="a11" args="()" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void KURLComboBox::setDefaults </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Clears all items and inserts the default urls into the combo. <p> Will be called implicitly upon the first call to <a class="el" href="classKURLComboBox.html#a4">setURLs()</a> or <a class="el" href="classKURLComboBox.html#a3">setURL()</a> <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURLComboBox.html#a9">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>. </td> </tr> </table> <a class="anchor" name="a7"></a><!-- doxytag: member="KURLComboBox::setMaxItems" ref="a7" args="(int)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void KURLComboBox::setMaxItems </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Sets how many items should be handled and displayed by the combobox. <p> <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURLComboBox.html#01">maxItems</a></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>. </td> </tr> </table> <a class="anchor" name="a3"></a><!-- doxytag: member="KURLComboBox::setURL" ref="a3" args="(const KURL &url)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void KURLComboBox::setURL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const KURL & </td> <td class="mdname1" valign="top" nowrap> <em>url</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Sets the current url. <p> This combo handles exactly one url additionally to the default items and those set via <a class="el" href="classKURLComboBox.html#a4">setURLs()</a>. So you can call <a class="el" href="classKURLComboBox.html#a3">setURL()</a> as often as you want, it will always replace the previous one set via <a class="el" href="classKURLComboBox.html#a3">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> Note that you won't receive any signals, e.g. textChanged(), returnPressed() or activated() upon calling this method. <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>. </td> </tr> </table> <a class="anchor" name="a5"></a><!-- doxytag: member="KURLComboBox::setURLs" ref="a5" args="(QStringList urls, OverLoadResolving remove)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void KURLComboBox::setURLs </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="elRef" doxygen="qt.tag:" href="qstringlist.html">QStringList</a> </td> <td class="mdname" nowrap> <em>urls</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="classKURLComboBox.html#w6">OverLoadResolving</a> </td> <td class="mdname" nowrap> <em>remove</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Inserts <code>urls</code> into the combobox below the "default urls" (see addDefaultURL). <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> 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>. </td> </tr> </table> <a class="anchor" name="a4"></a><!-- doxytag: member="KURLComboBox::setURLs" ref="a4" args="(QStringList urls)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void KURLComboBox::setURLs </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="elRef" doxygen="qt.tag:" href="qstringlist.html">QStringList</a> </td> <td class="mdname1" valign="top" nowrap> <em>urls</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Inserts <code>urls</code> into the combobox below the "default urls" (see addDefaultURL). <p> If the list of urls contains more items than maxItems, the first items will be stripped. <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>. </td> </tr> </table> <a class="anchor" name="b3"></a><!-- doxytag: member="KURLComboBox::updateItem" ref="b3" args="(const KURLComboItem *item, int index, const QPixmap &pix)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void KURLComboBox::updateItem </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="structKURLComboBox_1_1__KURLComboItem.html">KURLComboItem</a> * </td> <td class="mdname" nowrap> <em>item</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>index</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const <a class="elRef" doxygen="qt.tag:" href="qpixmap.html">QPixmap</a> & </td> <td class="mdname" nowrap> <em>pix</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [protected]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Updates <code>item</code> with <code>pixmap</code> and sets the url instead of the text of the KURLComboItem. <p> Also works around a <a class="elRef" doxygen="qt.tag:" href="qt.html">Qt</a> bug. <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>. </td> </tr> </table> <a class="anchor" name="l0"></a><!-- doxytag: member="KURLComboBox::urlActivated" ref="l0" args="(const KURL &url)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void KURLComboBox::urlActivated </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const KURL & </td> <td class="mdname1" valign="top" nowrap> <em>url</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [signal]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Emitted when an item was clicked at. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>url</em> </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> </dl> </td> </tr> </table> <a class="anchor" name="a6"></a><!-- doxytag: member="KURLComboBox::urls" ref="a6" args="() const " --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="elRef" doxygen="qt.tag:" href="qstringlist.html">QStringList</a> KURLComboBox::urls </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> <dl compact><dt><b>Returns:</b></dt><dd>a list of all urls currently handled. The list contains at most <a class="el" href="classKURLComboBox.html#01">maxItems()</a> items. Use this to save the list of urls in a config-file and reinsert them via <a class="el" href="classKURLComboBox.html#a4">setURLs()</a> next time. Note that all default urls set via <a class="el" href="classKURLComboBox.html#a9">addDefaultURL()</a> are not returned, they will automatically be set via <a class="el" href="classKURLComboBox.html#a4">setURLs()</a> or <a class="el" href="classKURLComboBox.html#a3">setURL()</a>. You will always get fully qualified urls, i.e. with protocol like <a href="file:/">file:/</a></dd></dl> </td> </tr> </table> <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><a class="el" href="kurlcombobox_8cpp-source.html">kurlcombobox.cpp</a></ul> </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="namespaces.html">Namespace List</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="dirs.html">Directories</a></li><li><a href="namespacemembers.html">Namespace Members</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="classKCustomMenuEditor.html">kcustommenueditor</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="classKEncodingFileDialog_1_1Result.html">kencodingfiledialog::result</option>, <option value="classKExecPropsPlugin.html">kexecpropsplugin</option>, <option value="classKFile.html">kfile</option>, <option value="classKFileBookmarkHandler.html">kfilebookmarkhandler</option>, <option value="classKFileDetailView.html">kfiledetailview</option>, <option value="classKFileDialog.html">kfiledialog</option>, <option value="classKFileFilterCombo.html">kfilefiltercombo</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="classKFileMetaPreview.html">kfilemetapreview</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="classKFileSpeedBar.html">kfilespeedbar</option>, <option value="classKFileTreeBranch.html">kfiletreebranch</option>, <option value="classKFileTreeView.html">kfiletreeview</option>, <option value="classKFileTreeViewItem.html">kfiletreeviewitem</option>, <option value="classKFileTreeViewToolTip.html">kfiletreeviewtooltip</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="classKNotify_1_1Application.html">knotify::application</option>, <option value="classKNotify_1_1ApplicationList.html">knotify::applicationlist</option>, <option value="classKNotify_1_1Event.html">knotify::event</option>, <option value="classKNotify_1_1KNotifyWidget.html">knotify::knotifywidget</option>, <option value="classKNotify_1_1ListViewItem.html">knotify::listviewitem</option>, <option value="classKNotifyDialog.html">knotifydialog</option>, <option value="classKNotifyWidgetBase.html">knotifywidgetbase</option>, <option value="classKOpenWithDlg.html">kopenwithdlg</option>, <option value="classKPreviewPropsPlugin.html">kpreviewpropsplugin</option>, <option value="classKPreviewWidgetBase.html">kpreviewwidgetbase</option>, <option value="classKPropertiesDesktopAdvBase.html">kpropertiesdesktopadvbase</option>, <option value="classKPropertiesDesktopBase.html">kpropertiesdesktopbase</option>, <option value="classKPropertiesDialog.html">kpropertiesdialog</option>, <option value="classKPropertiesMimetypeBase.html">kpropertiesmimetypebase</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>