\section{KPaste\-Text\-Action Class Reference}
\label{classKPasteTextAction}\index{KPasteTextAction@{KPasteTextAction}}
An action for pasting text from the clipboard.  


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

Inheritance diagram for KPaste\-Text\-Action:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=65pt]{classKPasteTextAction__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KPaste\-Text\-Action:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=135pt]{classKPasteTextAction__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KPaste\-Text\-Action} (const {\bf QString} \&text, const {\bf QString} \&icon, const {\bf KShortcut} \&cut, const {\bf QObject} $\ast$receiver, const char $\ast$slot, {\bf QObject} $\ast${\bf parent}=0, const char $\ast${\bf name}=0)
\item 
void {\bf set\-Mixed\-Mode} (bool mode)
\item 
virtual int {\bf plug} ({\bf QWidget} $\ast$widget, int index=-1)
\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf menu\-About\-To\-Show} ()\label{classKPasteTextAction_j0}

\item 
void {\bf menu\-Item\-Activated} (int id)\label{classKPasteTextAction_j1}

\item 
virtual void {\bf slot\-Activated} ()\label{classKPasteTextAction_j2}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKPasteTextAction_b0}

\end{CompactItemize}


\subsection{Detailed Description}
An action for pasting text from the clipboard. 

It's useful for text handling applications as when plugged into a toolbar it provides a menu with the clipboard history if klipper is running. If clipper is not running, the menu has only one item: the current clipboard content.

\begin{Desc}
\item[Since:]3.2 \end{Desc}




Definition at line 1332 of file kactionclasses.h.

\subsection{Constructor \& Destructor Documentation}
\index{KPasteTextAction@{KPaste\-Text\-Action}!KPasteTextAction@{KPasteTextAction}}
\index{KPasteTextAction@{KPasteTextAction}!KPasteTextAction@{KPaste\-Text\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPaste\-Text\-Action::KPaste\-Text\-Action (const {\bf QString} \& {\em text}, const {\bf QString} \& {\em icon}, const {\bf KShortcut} \& {\em cut}, const {\bf QObject} $\ast$ {\em receiver}, const char $\ast$ {\em slot}, {\bf QObject} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKPasteTextAction_a0}


Create a KPaste\-Text\-Action, with a text, an icon, an accelerator, a slot connected to the action, parent and name. 

If you do not want or have a keyboard accelerator, set the {\tt cut} param to 0.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]The text that will be displayed. \item[{\em icon}]The icon to display. \item[{\em cut}]The corresponding keyboard accelerator (shortcut). \item[{\em receiver}]The SLOT's owner. \item[{\em slot}]The SLOT to invoke to execute this action. \item[{\em parent}]This action's parent. \item[{\em name}]An internal name for this action. \end{description}
\end{Desc}


Definition at line 2146 of file kactionclasses.cpp.

References KAction::activated(), and QObject::connect().

\subsection{Member Function Documentation}
\index{KPasteTextAction@{KPaste\-Text\-Action}!setMixedMode@{setMixedMode}}
\index{setMixedMode@{setMixedMode}!KPasteTextAction@{KPaste\-Text\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPaste\-Text\-Action::set\-Mixed\-Mode (bool {\em mode})}\label{classKPasteTextAction_a2}


Controls the behavior of the clipboard history menu popup. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em mode}]If false and the clipboard contains a non-text object the popup menu with the clipboard history will appear immediately as the user clicks the toolbar action; if true, the action works like the standard paste action even if the current clipboard object is not text. Default value is true. \end{description}
\end{Desc}


Definition at line 2166 of file kactionclasses.cpp.\index{KPasteTextAction@{KPaste\-Text\-Action}!plug@{plug}}
\index{plug@{plug}!KPasteTextAction@{KPaste\-Text\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KPaste\-Text\-Action::plug ({\bf QWidget} $\ast$ {\em widget}, int {\em index} = {\tt -1})\hspace{0.3cm}{\tt  [virtual]}}\label{classKPasteTextAction_a3}


\char`\"{}Plug\char`\"{} or insert this action into a given widget. 

This will typically be a menu or a toolbar. From this point on, you will never need to directly manipulate the item in the menu or toolbar. You do all enabling/disabling/manipulation directly with your {\bf KAction}{\rm (p.\,\pageref{classKAction})} object.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em widget}]The GUI element to display this action \item[{\em index}]The position into which the action is plugged. If this is negative, the action is inserted at the end. \end{description}
\end{Desc}


Reimplemented from {\bf KAction} {\rm (p.\,\pageref{classKAction_a12})}.

Definition at line 2171 of file kactionclasses.cpp.

References QWhats\-This::add(), QObject::connect(), QObject::destroyed(), KTool\-Bar::get\-Button(), KAction::get\-Tool\-Button\-ID(), KTool\-Bar::insert\-Button(), KGlobal::instance(), KAction\-Collection::instance(), KAction::is\-Enabled(), KAction::plug(), KTool\-Bar::set\-Delayed\-Popup(), and KAction::whats\-This().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kactionclasses.h\item 
kactionclasses.cpp\end{CompactItemize}
