khexedit/clipboardinterface.h
/***************************************************************************
clipboardinterface.h - description
-------------------
begin : Sat Sep 13 2003
copyright : (C) 2003 by Friedrich W. H. Kossebau
email : Friedrich.W.H@Kossebau.de
***************************************************************************/
/***************************************************************************
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License version 2 as published by the Free Software Foundation. *
* *
***************************************************************************/
#ifndef CLIPBOARDINTERFACE_H
#define CLIPBOARDINTERFACE_H
namespace KHE
{
class ClipboardInterface
{
public: // slots
virtual void copy() = 0;
virtual void cut() = 0;
virtual void paste() = 0;
public: // signals
virtual void copyAvailable( bool Really ) = 0;
};
template<class T>
ClipboardInterface *clipboardInterface( T *t )
{
if( !t )
return 0;
return static_cast<ClipboardInterface*>( t->qt_cast("KHE::ClipboardInterface") );
}
}
#endif
KHE::ClipboardInterface::copy
virtual void copy()=0
tries to copy.
KHE::ClipboardInterface
A simple interface for interaction with the clipboard.
Definition: khexedit/clipboardinterface.h:46
KHE::ClipboardInterface::cut
virtual void cut()=0
tries to cut.
KHE::ClipboardInterface::paste
virtual void paste()=0
tries to paste.
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

KDE Home | KDE Accessibility Home | Description of Access Keys