#include <kurlcombobox.h>
Inheritance diagram for KURLComboBox:

Public Types | |
| enum | Mode |
| enum | OverLoadResolving |
Signals | |
| void | urlActivated (const KURL &url) |
Public Methods | |
| KURLComboBox (Mode mode, QWidget *parent=0, const char *name=0) | |
| ~KURLComboBox () | |
| void | setURL (const KURL &url) |
| void | setURLs (QStringList urls) |
| void | setURLs (QStringList urls, OverLoadResolving remove) |
| QStringList | urls () const |
| void | setMaxItems (int) |
| int | maxItems () const |
| void | addDefaultURL (const KURL &url, const QString &text=QString::null) |
| void | addDefaultURL (const KURL &url, const QPixmap &pix, const QString &text=QString::null) |
| void | setDefaults () |
| void | removeURL (const KURL &url, bool checkDefaultURLs=true) |
Protected Methods | |
| QPixmap | getPixmap (const KURL &url) const |
| void | updateItem (const KURLComboItem *item, int index, const QPixmap &pix) |
This combobox shows a number of recent URLs/directories, as well as some default directories. It will manage the default dirs root-directory, home-directory and Desktop-directory, as well as a number of URLs set via setURLs() and one additional entry to be set via setURL().
Definition at line 41 of file kurlcombobox.h.
|
|
This enum describes which kind of items is shown in the combo box. Definition at line 51 of file kurlcombobox.h. |
|
|
This Enumeration is used in setURL() to determine which items will be removed when the given list is larger than maxItems().
Definition at line 59 of file kurlcombobox.h. |
|
||||||||||||||||
|
Constructs a KURLComboBox.
|
|
|
Destructs the combo box. |
|
||||||||||||||||
|
Adds a url that will always be shown in the combobox, it can't be "rotated away". Default urls won't be returned in urls() and don't have to be set via setURLs(). 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 setDefaults() |
|
||||||||||||
|
Adds a url that will always be shown in the combobox, it can't be "rotated away". Default urls won't be returned in urls() and don't have to be set via setURLs(). 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 setDefaults() |
|
|
Uses KMimeType::pixmapForURL() to return a proper pixmap for |
|
|
Definition at line 135 of file kurlcombobox.h. |
|
||||||||||||
|
Removes any occurence of |
|
|
Clears all items and inserts the default urls into the combo. Will be called implicitly upon the first call to setURLs() or setURL()
|
|
|
Sets how many items should be handled and displayed by the combobox.
|
|
|
Sets the current url. This combo handles exactly one url additionally to the default items and those set via setURLs(). So you can call setURL() as often as you want, it will always replace the previous one set via setURL(). If Note that you won't receive any signals, e.g. textChanged(), returnPressed() or activated() upon calling this method. |
|
||||||||||||
|
Inserts
If the list of urls contains more items than maxItems, the |
|
|
Inserts If the list of urls contains more items than maxItems, the first items will be stripped. |
|
||||||||||||||||
|
Updates |
|
|
Emitted when an item was clicked at.
|
|
|
|
1.2.18