• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kio

KURLBarItemDialog Class Reference

A dialog that allows editing entries of a KURLBar ( KURLBarItem). More...

#include <kurlbar.h>

Inheritance diagram for KURLBarItemDialog:

Inheritance graph
[legend]

List of all members.


Public Slots

void urlChanged (const QString &)

Public Member Functions

bool applicationLocal () const
QString description () const
QString icon () const
 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)
KURL url () const
 ~KURLBarItemDialog ()

Static Public Member Functions

static bool getInformation (bool allowGlobal, KURL &url, QString &description, QString &icon, bool &appLocal, int iconSize, QWidget *parent=0)

Protected Attributes

QCheckBox * m_appLocal
KLineEdit * m_edit
KIconButton * m_iconButton
KURLRequester * m_urlEdit

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 567 of file kurlbar.h.


Constructor & Destructor Documentation

KURLBarItemDialog::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 
)

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 be available globally 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()).

Definition at line 916 of file kurlbar.cpp.

KURLBarItemDialog::~KURLBarItemDialog (  ) 

Destroys the dialog.

Definition at line 987 of file kurlbar.cpp.


Member Function Documentation

bool KURLBarItemDialog::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.

Definition at line 1018 of file kurlbar.cpp.

QString KURLBarItemDialog::description (  )  const

Returns:
the configured description

Definition at line 1008 of file kurlbar.cpp.

bool KURLBarItemDialog::getInformation ( bool  allowGlobal,
KURL &  url,
QString &  description,
QString &  icon,
bool &  appLocal,
int  iconSize,
QWidget *  parent = 0 
) [static]

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 892 of file kurlbar.cpp.

QString KURLBarItemDialog::icon (  )  const

Returns:
the configured icon

Definition at line 1013 of file kurlbar.cpp.

KURL KURLBarItemDialog::url (  )  const

Returns:
the configured url

Definition at line 996 of file kurlbar.cpp.

void KURLBarItemDialog::urlChanged ( const QString &  text  )  [slot]

Definition at line 991 of file kurlbar.cpp.


Member Data Documentation

QCheckBox* KURLBarItemDialog::m_appLocal [protected]

The QCheckBox to modify the local/global setting.

Definition at line 649 of file kurlbar.h.

KLineEdit* KURLBarItemDialog::m_edit [protected]

The KLineEdit used for editing the description.

Definition at line 641 of file kurlbar.h.

KIconButton* KURLBarItemDialog::m_iconButton [protected]

The KIconButton to configure the icon.

Definition at line 645 of file kurlbar.h.

KURLRequester* KURLBarItemDialog::m_urlEdit [protected]

The KURLRequester used for editing the url.

Definition at line 637 of file kurlbar.h.


The documentation for this class was generated from the following files:
  • kurlbar.h
  • kurlbar.cpp

kio

Skip menu "kio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal