• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdefile
 

tdeio/tdefile

Public Slots | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
KURLBarItemDialog Class Reference

#include <kurlbar.h>

Inherits KDialogBase.

Public Slots

void urlChanged (const TQString &)
 

Public Member Functions

 KURLBarItemDialog (bool allowGlobal, const KURL &url, const TQString &description, TQString icon, bool appLocal=true, int iconSize=TDEIcon::SizeMedium, TQWidget *parent=0, const char *name=0)
 
 ~KURLBarItemDialog ()
 
KURL url () const
 
TQString description () const
 
TQString icon () const
 
bool applicationLocal () const
 

Static Public Member Functions

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

Protected Attributes

KURLRequester * m_urlEdit
 
KLineEdit * m_edit
 
TDEIconButton * m_iconButton
 
TQCheckBox * 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 pfeif.nosp@m.fer@.nosp@m.kde.o.nosp@m.rg

Definition at line 567 of file kurlbar.h.

Constructor & Destructor Documentation

◆ KURLBarItemDialog()

KURLBarItemDialog::KURLBarItemDialog ( bool  allowGlobal,
const KURL &  url,
const TQString &  description,
TQString  icon,
bool  appLocal = true,
int  iconSize = TDEIcon::SizeMedium,
TQWidget *  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 922 of file kurlbar.cpp.

◆ ~KURLBarItemDialog()

KURLBarItemDialog::~KURLBarItemDialog ( )

Destroys the dialog.

Definition at line 993 of file kurlbar.cpp.

Member Function Documentation

◆ applicationLocal()

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

◆ description()

TQString KURLBarItemDialog::description ( ) const
Returns
the configured description

Definition at line 1014 of file kurlbar.cpp.

◆ getInformation()

bool KURLBarItemDialog::getInformation ( bool  allowGlobal,
KURL &  url,
TQString &  description,
TQString &  icon,
bool &  appLocal,
int  iconSize,
TQWidget *  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 898 of file kurlbar.cpp.

◆ icon()

TQString KURLBarItemDialog::icon ( ) const
Returns
the configured icon

Definition at line 1019 of file kurlbar.cpp.

◆ url()

KURL KURLBarItemDialog::url ( ) const
Returns
the configured url

Definition at line 1002 of file kurlbar.cpp.

◆ urlChanged

void KURLBarItemDialog::urlChanged ( const TQString &  text)
slot

Definition at line 997 of file kurlbar.cpp.

Member Data Documentation

◆ m_appLocal

TQCheckBox* KURLBarItemDialog::m_appLocal
protected

The TQCheckBox to modify the local/global setting.

Definition at line 649 of file kurlbar.h.

◆ m_edit

KLineEdit* KURLBarItemDialog::m_edit
protected

The KLineEdit used for editing the description.

Definition at line 641 of file kurlbar.h.

◆ m_iconButton

TDEIconButton* KURLBarItemDialog::m_iconButton
protected

The TDEIconButton to configure the icon.

Definition at line 645 of file kurlbar.h.

◆ m_urlEdit

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

tdeio/tdefile

Skip menu "tdeio/tdefile"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeio/tdefile

Skip menu "tdeio/tdefile"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdefile by doxygen 1.9.4
This website is maintained by Timothy Pearson.