KURLBarItemDialog Class Reference
A dialog that allows editing entries of a KURLBar ( KURLBarItem). More...
#include <kurlbar.h>
Inheritance diagram for KURLBarItemDialog:

Public Slots | |
void | urlChanged (const QString &) |
Public Member Functions | |
KURLBarItemDialog (bool allowGlobal, const KURL &url, const QString &description, QString icon, bool appLocal=true, int iconSize=KIcon::SizeMedium, QWidget *parent=0, const char *name=0) | |
~KURLBarItemDialog () | |
KURL | url () const |
QString | description () const |
QString | icon () const |
bool | applicationLocal () const |
Static Public Member Functions | |
static bool | getInformation (bool allowGlobal, KURL &url, QString &description, QString &icon, bool &appLocal, int iconSize, QWidget *parent=0) |
Protected Attributes | |
KURLRequester * | m_urlEdit |
KLineEdit * | m_edit |
KIconButton * | m_iconButton |
QCheckBox * | m_appLocal |
Detailed Description
A dialog that allows editing entries of a KURLBar ( KURLBarItem).The dialog offers to configure a given url, description and icon. See the class-method getInformation() for easy usage.
- Author:
- Carsten Pfeiffer <pfeiffer@kde.org>
Definition at line 564 of file kurlbar.h.
Constructor & Destructor Documentation
|
Constructs a KURLBarItemDialog.
If you leave the icon empty, the default icon for the given url will be used (KMimeType::pixmapForURL()). Definition at line 880 of file kurlbar.cpp. References KURL::fileName(), KMimeType::iconForURL(), KGlobal::instance(), m_appLocal, m_edit, m_iconButton, m_urlEdit, KURL::prettyURL(), KIconButton::setIcon(), KIconButton::setIconSize(), KDialogBase::setMainWidget(), KURLRequester::setMode(), KLineEdit::setText(), and KDialog::spacingHint(). Referenced by getInformation(). |
|
Destroys the dialog.
Definition at line 951 of file kurlbar.cpp. |
Member Function Documentation
|
A convenience method to show the dialog and retrieve all the properties via the given parameters. The parameters are used to initialize the dialog and then return the user-configured values. See the KURLBarItem constructor for the parameter description. Definition at line 856 of file kurlbar.cpp. References applicationLocal(), description(), icon(), KURLBarItemDialog(), and url(). Referenced by KURLBar::editItem(), and KURLBar::slotDropped(). |
|
Definition at line 960 of file kurlbar.cpp. References m_urlEdit, KURL::setPath(), and KURLRequester::url. Referenced by getInformation(). |
|
Definition at line 972 of file kurlbar.cpp. References m_edit. Referenced by getInformation(). |
|
Definition at line 977 of file kurlbar.cpp. References KIconButton::icon(), and m_iconButton. Referenced by getInformation(). |
|
Definition at line 982 of file kurlbar.cpp. References m_appLocal. Referenced by getInformation(). |
Member Data Documentation
|
The KURLRequester used for editing the url.
Definition at line 634 of file kurlbar.h. Referenced by KURLBarItemDialog(), and url(). |
|
The KLineEdit used for editing the description.
Definition at line 638 of file kurlbar.h. Referenced by description(), and KURLBarItemDialog(). |
|
The KIconButton to configure the icon.
Definition at line 642 of file kurlbar.h. Referenced by icon(), and KURLBarItemDialog(). |
|
The QCheckBox to modify the local/global setting.
Definition at line 646 of file kurlbar.h. Referenced by applicationLocal(), and KURLBarItemDialog(). |
The documentation for this class was generated from the following files: