|
|
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.
bool getInformation ( bool allowGlobal, KURL& url,
QString& description, QString& icon,
bool& appLocal, int iconSize,
QWidget *parent = 0 )
| getInformation |
[static]
A convenience method to show up 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.
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 |
Constructs a KURLBarItemDialog.
allowGlobal
if you set this to true, the dialog will have a checkbox
for the user to decide if he wants the entry to be
available globally or just for the current application.
url
the url of the item
description
a short, translated description of the item
icon
an icon for the item
appLocal
tells whether the item should be local for this application
or available globalle
iconSize
determines the size of the icon that is shown/selectable
parent
the parent-widget for the dialog
If you leave the icon empty, the default icon for the given url will be used (KMimeType::pixmapForURL()).
~KURLBarItemDialog ()
| ~KURLBarItemDialog |
Destroys the dialog.
KURL url ()
| url |
[const]
Returns: the configured url
QString description ()
| description |
[const]
Returns: the configured description
QString icon ()
| icon |
[const]
Returns: the configured icon
bool applicationLocal ()
| applicationLocal |
[const]
Returns: whether the item should be local to the application or global. if allowGlobal was set to false in the constructor, this will always return true.
KURLRequester * m_urlEdit | m_urlEdit |
[protected]
KLineEdit * m_edit | m_edit |
[protected]
KIconButton * m_iconButton | m_iconButton |
[protected]
QCheckBox * m_appLocal | m_appLocal |
[protected]
void urlChanged (const QString & )
| urlChanged |
[slot]
The QCheckBox to modify the local/global setting