\section{KHE::Clipboard\-Interface Class Reference}
\label{classKHE_1_1ClipboardInterface}\index{KHE::ClipboardInterface@{KHE::ClipboardInterface}}
A simple interface for interaction with the clipboard.  


{\tt \#include $<$clipboardinterface.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf copy} ()=0
\item 
virtual void {\bf cut} ()=0
\item 
virtual void {\bf paste} ()=0
\item 
virtual void {\bf copy\-Available} (bool Really)=0
\end{CompactItemize}


\subsection{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 {\bf QObject}. When connecting to a signal or a slot the class B has to be used, not the interface. 

Example: 

\footnotesize\begin{verbatim} 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)) );
 }
\end{verbatim}
\normalsize


\begin{Desc}
\item[Author:]Friedrich W. H. Kossebau $<${\tt Friedrich.W.H@Kossebau.de}$>$ \end{Desc}
\begin{Desc}
\item[See also:]{\bf create\-Bytes\-Edit\-Widget()}{\rm (p.\,\pageref{namespaceKHE_a1})}, {\bf clipboard\-Interface()}{\rm (p.\,\pageref{namespaceKHE_a3})} \end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}




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

\subsection{Member Function Documentation}
\index{KHE::ClipboardInterface@{KHE::Clipboard\-Interface}!copy@{copy}}
\index{copy@{copy}!KHE::ClipboardInterface@{KHE::Clipboard\-Interface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void KHE::Clipboard\-Interface::copy ()\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKHE_1_1ClipboardInterface_a0}


tries to copy. 

If there is nothing to copy this call is a noop. \index{KHE::ClipboardInterface@{KHE::Clipboard\-Interface}!cut@{cut}}
\index{cut@{cut}!KHE::ClipboardInterface@{KHE::Clipboard\-Interface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void KHE::Clipboard\-Interface::cut ()\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKHE_1_1ClipboardInterface_a1}


tries to cut. 

If there is nothing to cut this call is a noop. \index{KHE::ClipboardInterface@{KHE::Clipboard\-Interface}!paste@{paste}}
\index{paste@{paste}!KHE::ClipboardInterface@{KHE::Clipboard\-Interface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void KHE::Clipboard\-Interface::paste ()\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKHE_1_1ClipboardInterface_a2}


tries to paste. 

If there is nothing to paste or paste is not possible this call is a noop. Use {\bf Bytes\-Edit\-Interface::is\-Read\-Only()}{\rm (p.\,\pageref{classKHE_1_1BytesEditInterface_a15})} to find out if you can paste at all. \index{KHE::ClipboardInterface@{KHE::Clipboard\-Interface}!copyAvailable@{copyAvailable}}
\index{copyAvailable@{copyAvailable}!KHE::ClipboardInterface@{KHE::Clipboard\-Interface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void KHE::Clipboard\-Interface::copy\-Available (bool {\em Really})\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKHE_1_1ClipboardInterface_a3}


signal: tells whether copy is possible or not. 

Remember to use the created object, not the interface for connecting Use {\bf Bytes\-Edit\-Interface::is\-Read\-Only()}{\rm (p.\,\pageref{classKHE_1_1BytesEditInterface_a15})} 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. 

The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
khexedit/clipboardinterface.h\end{CompactItemize}
