• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KFile

  • KDEPrivate
  • KUrlNavigatorButton
Signals | Public Member Functions | Protected Member Functions | List of all members
KDEPrivate::KUrlNavigatorButton Class Reference

#include <kurlnavigatorbutton_p.h>

Inheritance diagram for KDEPrivate::KUrlNavigatorButton:
Inheritance graph
[legend]

Signals

void clicked (const KUrl &url, Qt::MouseButton button)
 
void finishedTextResolving ()
 
void startedTextResolving ()
 
void urlsDropped (const KUrl &destination, QDropEvent *event)
 

Public Member Functions

 KUrlNavigatorButton (const KUrl &url, QWidget *parent)
 
virtual ~KUrlNavigatorButton ()
 
QString activeSubDirectory () const
 
void setActiveSubDirectory (const QString &subDir)
 
void setShowMnemonic (bool show)
 
void setText (const QString &text)
 
void setUrl (const KUrl &url)
 
bool showMnemonic () const
 
virtual QSize sizeHint () const
 
KUrl url () const
 
- Public Member Functions inherited from KDEPrivate::KUrlNavigatorButtonBase
 KUrlNavigatorButtonBase (QWidget *parent)
 
virtual ~KUrlNavigatorButtonBase ()
 
bool isActive () const
 
void setActive (bool active)
 

Protected Member Functions

virtual void dragEnterEvent (QDragEnterEvent *event)
 
virtual void dragLeaveEvent (QDragLeaveEvent *event)
 
virtual void dragMoveEvent (QDragMoveEvent *event)
 
virtual void dropEvent (QDropEvent *event)
 
virtual void enterEvent (QEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void leaveEvent (QEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void paintEvent (QPaintEvent *event)
 
virtual void wheelEvent (QWheelEvent *event)
 
- Protected Member Functions inherited from KDEPrivate::KUrlNavigatorButtonBase
void drawHoverBackground (QPainter *painter)
 
virtual void focusInEvent (QFocusEvent *event)
 
virtual void focusOutEvent (QFocusEvent *event)
 
QColor foregroundColor () const
 
bool isDisplayHintEnabled (DisplayHint hint) const
 
void setDisplayHintEnabled (DisplayHint hint, bool enable)
 

Additional Inherited Members

- Protected Types inherited from KDEPrivate::KUrlNavigatorButtonBase
enum  { BorderWidth = 2 }
 
enum  DisplayHint { EnteredHint = 1, DraggedHint = 2, PopupActiveHint = 4 }
 

Detailed Description

Button of the URL navigator which contains one part of an URL.

It is possible to drop a various number of items to an UrlNavigatorButton. In this case a context menu is opened where the user must select whether he wants to copy, move or link the dropped items to the URL part indicated by the button.

Definition at line 53 of file kurlnavigatorbutton_p.h.

Constructor & Destructor Documentation

KDEPrivate::KUrlNavigatorButton::KUrlNavigatorButton ( const KUrl &  url,
QWidget *  parent 
)
explicit

Definition at line 43 of file kurlnavigatorbutton.cpp.

KDEPrivate::KUrlNavigatorButton::~KUrlNavigatorButton ( )
virtual

Definition at line 67 of file kurlnavigatorbutton.cpp.

Member Function Documentation

QString KDEPrivate::KUrlNavigatorButton::activeSubDirectory ( ) const

Definition at line 130 of file kurlnavigatorbutton.cpp.

void KDEPrivate::KUrlNavigatorButton::clicked ( const KUrl &  url,
Qt::MouseButton  button 
)
signal
void KDEPrivate::KUrlNavigatorButton::dragEnterEvent ( QDragEnterEvent *  event)
protectedvirtual

Definition at line 305 of file kurlnavigatorbutton.cpp.

void KDEPrivate::KUrlNavigatorButton::dragLeaveEvent ( QDragLeaveEvent *  event)
protectedvirtual

Definition at line 342 of file kurlnavigatorbutton.cpp.

void KDEPrivate::KUrlNavigatorButton::dragMoveEvent ( QDragMoveEvent *  event)
protectedvirtual

Definition at line 315 of file kurlnavigatorbutton.cpp.

void KDEPrivate::KUrlNavigatorButton::dropEvent ( QDropEvent *  event)
protectedvirtual

Definition at line 292 of file kurlnavigatorbutton.cpp.

void KDEPrivate::KUrlNavigatorButton::enterEvent ( QEvent *  event)
protectedvirtual

Reimplemented from KDEPrivate::KUrlNavigatorButtonBase.

Definition at line 254 of file kurlnavigatorbutton.cpp.

void KDEPrivate::KUrlNavigatorButton::finishedTextResolving ( )
signal

Is emitted, if the asynchronous resolving of the text has been finished (see startTextResolving()).

KUrlNavigatorButton::text() contains the resolved text.

void KDEPrivate::KUrlNavigatorButton::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

Definition at line 276 of file kurlnavigatorbutton.cpp.

void KDEPrivate::KUrlNavigatorButton::leaveEvent ( QEvent *  event)
protectedvirtual

Reimplemented from KDEPrivate::KUrlNavigatorButtonBase.

Definition at line 265 of file kurlnavigatorbutton.cpp.

void KDEPrivate::KUrlNavigatorButton::mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 371 of file kurlnavigatorbutton.cpp.

void KDEPrivate::KUrlNavigatorButton::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 351 of file kurlnavigatorbutton.cpp.

void KDEPrivate::KUrlNavigatorButton::mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 360 of file kurlnavigatorbutton.cpp.

void KDEPrivate::KUrlNavigatorButton::paintEvent ( QPaintEvent *  event)
protectedvirtual

Definition at line 158 of file kurlnavigatorbutton.cpp.

void KDEPrivate::KUrlNavigatorButton::setActiveSubDirectory ( const QString &  subDir)

Sets the name of the sub directory that should be marked when opening the sub directories popup.

Definition at line 121 of file kurlnavigatorbutton.cpp.

void KDEPrivate::KUrlNavigatorButton::setShowMnemonic ( bool  show)

Definition at line 145 of file kurlnavigatorbutton.cpp.

void KDEPrivate::KUrlNavigatorButton::setText ( const QString &  text)

Definition at line 104 of file kurlnavigatorbutton.cpp.

void KDEPrivate::KUrlNavigatorButton::setUrl ( const KUrl &  url)

Definition at line 71 of file kurlnavigatorbutton.cpp.

bool KDEPrivate::KUrlNavigatorButton::showMnemonic ( ) const

Definition at line 153 of file kurlnavigatorbutton.cpp.

QSize KDEPrivate::KUrlNavigatorButton::sizeHint ( void  ) const
virtual
See also
QWidget::sizeHint()

Definition at line 135 of file kurlnavigatorbutton.cpp.

void KDEPrivate::KUrlNavigatorButton::startedTextResolving ( )
signal

Is emitted, if KUrlNavigatorButton::setUrl() cannot resolve the text synchronously and KUrlNavigator::text() will return an empty string in this case.

The signal finishedTextResolving() is emitted, as soon as the text has been resolved.

KUrl KDEPrivate::KUrlNavigatorButton::url ( ) const

Definition at line 99 of file kurlnavigatorbutton.cpp.

void KDEPrivate::KUrlNavigatorButton::urlsDropped ( const KUrl &  destination,
QDropEvent *  event 
)
signal

Is emitted if URLs have been dropped to the destination destination.

void KDEPrivate::KUrlNavigatorButton::wheelEvent ( QWheelEvent *  event)
protectedvirtual

Definition at line 382 of file kurlnavigatorbutton.cpp.


The documentation for this class was generated from the following files:
  • kurlnavigatorbutton_p.h
  • kurlnavigatorbutton.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:52:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KFile

Skip menu "KFile"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal