• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • interfaces
 

interfaces

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

#include <clipboardinterface.h>

Public Member Functions

virtual void copy ()=0
 
virtual void cut ()=0
 
virtual void paste ()=0
 
virtual void copyAvailable (bool Really)=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 TQObject. 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 TQObject, indeed hacky...
� connect( BytesEditWidget, TQ_SIGNAL(copyAvailable(bool)), this, TQ_SLOT(offerCopy(bool)) );
}
KHE::ClipboardInterface
A simple interface for interaction with the clipboard.
Definition: khexedit/clipboardinterface.h:47
KHE::ClipboardInterface::copyAvailable
virtual void copyAvailable(bool Really)=0
signal: tells whether copy is possible or not.
KHE::clipboardInterface
ClipboardInterface * clipboardInterface(T *t)
tries to get the clipboard interface of t
Definition: khexedit/clipboardinterface.h:76
Author
Friedrich W. H. Kossebau Fried.nosp@m.rich.nosp@m..W.H@.nosp@m.Koss.nosp@m.ebau..nosp@m.de
See also
createBytesEditWidget(), clipboardInterface()
Since
3.2

Definition at line 46 of file khexedit/clipboardinterface.h.

Member Function Documentation

◆ copy()

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

tries to copy.

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

◆ copyAvailable()

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.

◆ cut()

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

tries to cut.

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

◆ paste()

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:
  • khexedit/clipboardinterface.h

interfaces

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

interfaces

Skip menu "interfaces"
  • 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 interfaces by doxygen 1.9.4
This website is maintained by Timothy Pearson.