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

KHexEdit

  • KHE
  • ClipboardInterface
Public Member Functions | List of all members
KHE::ClipboardInterface Class Referenceabstract

#include <clipboardinterface.h>

Public Member Functions

virtual ~ClipboardInterface ()
 
virtual void copy ()=0
 
virtual void copyAvailable (bool Really)=0
 
virtual void cut ()=0
 
virtual void paste ()=0
 

Detailed Description

A simple interface for interaction with the clipboard.

This interface enables the interaction with the clipboard. It relies on the possibilities of signal/slot so a class B that implements this interface should be derived from QObject. When connecting to a signal or a slot the class B has to be used, not the interface.

Example:

KHE::ClipboardInterface *Clipboard = KHE::clipboardInterface( BytesEditWidget );
if( Clipboard )
{
// Yes, use BytesEditWidget, not Clipboard, because that's the QObject, indeed hacky...
connect( BytesEditWidget, SIGNAL(copyAvailable(bool)), this, SLOT(offerCopy(bool)) );
}
Author
Friedrich W. H. Kossebau kosse.nosp@m.bau@.nosp@m.kde.o.nosp@m.rg
See also
createBytesEditWidget(), clipboardInterface()

Definition at line 47 of file clipboardinterface.h.

Constructor & Destructor Documentation

virtual KHE::ClipboardInterface::~ClipboardInterface ( )
inlinevirtual

Definition at line 50 of file clipboardinterface.h.

Member Function Documentation

virtual void KHE::ClipboardInterface::copy ( )
pure virtual

tries to copy.

If there is nothing to copy this call is a noop.

virtual void KHE::ClipboardInterface::copyAvailable ( bool  Really)
pure virtual

signal: tells whether copy is possible or not.

Remember to use the created object, not the interface for connecting Use BytesEditInterface::isReadOnly() to find out if you can also cut As this function symbol serves as a signal, this is a noop. Don't use it for anything else.

virtual void KHE::ClipboardInterface::cut ( )
pure virtual

tries to cut.

If there is nothing to cut this call is a noop.

virtual void KHE::ClipboardInterface::paste ( )
pure virtual

tries to paste.

If there is nothing to paste or paste is not possible this call is a noop. Use BytesEditInterface::isReadOnly() to find out if you can paste at all.


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

KDE's Doxygen guidelines are available online.

KHexEdit

Skip menu "KHexEdit"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Members
  • File List
  • 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