KURLBarItem Class Reference
An item to be used in KURLBar / KURLBarListBox. More...
#include <kurlbar.h>
Inheritance diagram for KURLBarItem:


| Public Member Functions | |
| KURLBarItem (KURLBar *parent, const KURL &url, bool persistent, const QString &description=QString::null, const QString &icon=QString::null, KIcon::Group group=KIcon::Panel) | |
| KURLBarItem (KURLBar *parent, const KURL &url, const QString &description=QString::null, const QString &icon=QString::null, KIcon::Group group=KIcon::Panel) | |
| ~KURLBarItem () | |
| void | setURL (const KURL &url) | 
| void | setIcon (const QString &icon, KIcon::Group group=KIcon::Panel) | 
| void | setDescription (const QString &desc) | 
| void | setToolTip (const QString &tip) | 
| QSize | sizeHint () const | 
| virtual int | width (const QListBox *) const | 
| virtual int | height (const QListBox *) const | 
| const KURL & | url () const | 
| const QString & | description () const | 
| const QString & | icon () const | 
| QString | toolTip () const | 
| KIcon::Group | iconGroup () const | 
| virtual const QPixmap * | pixmap () const | 
| void | setApplicationLocal (bool local) | 
| bool | applicationLocal () const | 
| bool | isPersistent () const | 
| Protected Member Functions | |
| virtual void | paint (QPainter *p) | 
| virtual void | virtual_hook (int id, void *data) | 
Detailed Description
An item to be used in KURLBar / KURLBarListBox.All the properties (url, icon, description, tooltip) can be changed dynamically.
- Author:
- Carsten Pfeiffer <pfeiffer@kde.org>
- See also:
- KURLBar
Definition at line 42 of file kurlbar.h.
Constructor & Destructor Documentation
| 
 | ||||||||||||||||||||||||||||
| 
Creates a KURLBarItem to be used in the  You need to insert the item into the listbox manually, if you don't use KURLBar::insertItem(). 
If description is empty, it will try to use the filename/directory of  
 Definition at line 85 of file kurlbar.cpp. | 
| 
 | ||||||||||||||||||||||||
| 
Creates a persistent KURLBarItem to be used in the  You need to insert the item into the listbox manually, if you don't use KURLBar::insertItem(). 
If description is empty, it will try to use the filename/directory of  Definition at line 97 of file kurlbar.cpp. | 
| 
 | 
| Destroys the item. 
 Definition at line 120 of file kurlbar.cpp. | 
Member Function Documentation
| 
 | 
| 
Sets  Also updates the visible text to the filename/directory of the url, if no description is set. 
 Definition at line 125 of file kurlbar.cpp. References QString::isEmpty(). Referenced by KURLBar::editItem(). | 
| 
 | ||||||||||||
| 
 See KIconLoader for a description of the icon groups. 
 Definition at line 132 of file kurlbar.cpp. References KGlobal::iconLoader(), KIconLoader::loadIcon(), and KMimeType::pixmapForURL(). Referenced by KURLBar::editItem(), and KURLBar::setIconSize(). | 
| 
 | 
| Sets the description of this item that will be shown as item-text. 
 
 Definition at line 144 of file kurlbar.cpp. References KURL::fileName(). Referenced by KURLBar::editItem(). | 
| 
 | 
| Sets a tooltip to be used for this item. 
 
 Definition at line 161 of file kurlbar.cpp. | 
| 
 | 
| returns the preferred size of this item 
 
 Definition at line 229 of file kurlbar.cpp. References QPixmap::height(), QListBoxPixmap::height(), KURLBar::iconSize(), KURLBarListBox::isVertical(), pixmap(), QPixmap::width(), and QListBoxPixmap::width(). Referenced by height(), KURLBar::sizeHint(), and width(). | 
| 
 | 
| returns the width of this item. 
 Reimplemented from QListBoxPixmap. Definition at line 252 of file kurlbar.cpp. References sizeHint(), and QSize::width(). | 
| 
 | 
| returns the height of this item. 
 Reimplemented from QListBoxPixmap. Definition at line 260 of file kurlbar.cpp. References QSize::height(), and sizeHint(). | 
| 
 | 
| returns the url of this item. 
 
 Definition at line 127 of file kurlbar.h. Referenced by KURLBar::currentURL(), KURLBarListBox::dragObject(), KURLBar::editItem(), KURLBar::setCurrentItem(), KURLBar::slotContextMenuRequested(), KURLBar::slotSelected(), KFileDialog::toggleSpeedbar(), and KURLBar::writeItem(). | 
| 
 | 
| returns the description of this item. 
 
 Definition at line 132 of file kurlbar.h. Referenced by KURLBar::editItem(), and KURLBar::writeItem(). | 
| 
 | 
| returns the icon of this item. 
 
 Definition at line 137 of file kurlbar.h. Referenced by KURLBar::editItem(), KURLBar::setIconSize(), and KURLBar::writeItem(). | 
| 
 | 
| returns the tooltip of this item. 
 
 Definition at line 166 of file kurlbar.cpp. References QString::isEmpty(), and KURL::prettyURL(). | 
| 
 | 
| returns the icon-group of this item (determines icon-effects). 
 
 Definition at line 147 of file kurlbar.h. Referenced by KURLBar::setIconSize(), and KURLBar::writeItem(). | 
| 
 | 
| returns the pixmap of this item. 
 Reimplemented from QListBoxPixmap. Definition at line 151 of file kurlbar.h. Referenced by sizeHint(). | 
| 
 | 
| Makes this item a local or global one. This has only an effect on persistent items of course. 
 Definition at line 150 of file kurlbar.cpp. References endl(), isPersistent(), and kdWarning(). Referenced by KURLBar::editItem(), and KURLBar::insertItem(). | 
| 
 | 
| returns whether this is a global item or a local one. KURLBar can differentiate between global and local items (only for the current application) for easy extensiblity. 
 Definition at line 167 of file kurlbar.h. Referenced by KURLBar::editItem(), and KURLBar::writeConfig(). | 
| 
 | 
| returns whether this item is persistent (via KURLBar::writeConfig() and KURLBar::readConfig()) or not. 
 
 Definition at line 268 of file kurlbar.cpp. Referenced by KURLBar::editItem(), setApplicationLocal(), KURLBar::slotContextMenuRequested(), KURLBar::writeConfig(), and KURLBar::writeItem(). | 
The documentation for this class was generated from the following files:

