\section{KSelect\-Action Class Reference}
\label{classKSelectAction}\index{KSelectAction@{KSelectAction}}
Action for selecting one of several items.  


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

Inheritance diagram for KSelect\-Action:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=69pt]{classKSelectAction__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KSelect\-Action:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=99pt]{classKSelectAction__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
virtual void {\bf set\-Current\-Item} (int index)
\item 
virtual void {\bf set\-Items} (const {\bf QString\-List} \&lst)
\item 
virtual void {\bf clear} ()
\item 
virtual void {\bf set\-Editable} (bool)
\item 
virtual void {\bf set\-Combo\-Width} (int width)
\end{CompactItemize}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf activated} (int index)
\item 
void {\bf activated} (const {\bf QString} \&text)
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KSelect\-Action} (const {\bf QString} \&text, const {\bf KShortcut} \&cut={\bf KShortcut}(), {\bf QObject} $\ast${\bf parent}=0, const char $\ast${\bf name}=0)
\item 
{\bf KSelect\-Action} (const {\bf QString} \&text, const {\bf KShortcut} \&cut, const {\bf QObject} $\ast$receiver, const char $\ast$slot, {\bf QObject} $\ast${\bf parent}, const char $\ast${\bf name}=0)
\item 
{\bf KSelect\-Action} (const {\bf QString} \&text, const {\bf QIcon\-Set} \&pix, const {\bf KShortcut} \&cut={\bf KShortcut}(), {\bf QObject} $\ast${\bf parent}=0, const char $\ast${\bf name}=0)
\item 
{\bf KSelect\-Action} (const {\bf QString} \&text, const {\bf QString} \&pix, const {\bf KShortcut} \&cut={\bf KShortcut}(), {\bf QObject} $\ast${\bf parent}=0, const char $\ast${\bf name}=0)
\item 
{\bf KSelect\-Action} (const {\bf QString} \&text, const {\bf QIcon\-Set} \&pix, const {\bf KShortcut} \&cut, const {\bf QObject} $\ast$receiver, const char $\ast$slot, {\bf QObject} $\ast${\bf parent}, const char $\ast${\bf name}=0)
\item 
{\bf KSelect\-Action} (const {\bf QString} \&text, const {\bf QString} \&pix, const {\bf KShortcut} \&cut, const {\bf QObject} $\ast$receiver, const char $\ast$slot, {\bf QObject} $\ast${\bf parent}, const char $\ast${\bf name}=0)
\item 
{\bf KSelect\-Action} ({\bf QObject} $\ast${\bf parent}=0, const char $\ast${\bf name}=0)
\item 
virtual {\bf $\sim$KSelect\-Action} ()
\item 
virtual int {\bf plug} ({\bf QWidget} $\ast$widget, int index=-1)
\item 
virtual bool {\bf is\-Editable} () const 
\item 
virtual {\bf QString\-List} {\bf items} () const 
\item 
virtual void {\bf change\-Item} (int index, const {\bf QString} \&text)
\item 
virtual {\bf QString} {\bf current\-Text} () const 
\item 
virtual int {\bf current\-Item} () const 
\item 
virtual int {\bf combo\-Width} () const 
\item 
{\bf QPopup\-Menu} $\ast$ {\bf popup\-Menu} () const 
\item 
void {\bf set\-Remove\-Ampersands\-In\-Combo} (bool b) KDE\_\-DEPRECATED
\item 
bool {\bf remove\-Ampersands\-In\-Combo} () const 
\item 
void {\bf set\-Menu\-Accels\-Enabled} (bool b)
\item 
bool {\bf menu\-Accels\-Enabled} () const 
\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
virtual void {\bf slot\-Activated} (int id)\label{classKSelectAction_j0}

\item 
virtual void {\bf slot\-Activated} (const {\bf QString} \&text)\label{classKSelectAction_j1}

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

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf change\-Item} (int id, int index, const {\bf QString} \&text)\label{classKSelectAction_b0}

\item 
{\bf QString\-List} {\bf combo\-Items} () const 
\item 
virtual void {\bf update\-Current\-Item} (int id)\label{classKSelectAction_b2}

\item 
virtual void {\bf update\-Combo\-Width} (int id)\label{classKSelectAction_b3}

\item 
virtual void {\bf update\-Items} (int id)\label{classKSelectAction_b4}

\item 
virtual void {\bf update\-Clear} (int id)\label{classKSelectAction_b5}

\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKSelectAction_b6}

\end{CompactItemize}
\subsection*{Properties}
\begin{CompactItemize}
\item 
int {\bf current\-Item}\label{classKSelectAction_00}

\item 
{\bf QString\-List} {\bf items}\label{classKSelectAction_01}

\item 
bool {\bf editable}\label{classKSelectAction_02}

\item 
int {\bf combo\-Width}\label{classKSelectAction_03}

\item 
{\bf QString} {\bf current\-Text}\label{classKSelectAction_04}

\item 
bool {\bf menu\-Accels\-Enabled}\label{classKSelectAction_05}

\end{CompactItemize}


\subsection{Detailed Description}
Action for selecting one of several items. 

Action for selecting one of several items.

This action shows up a submenu with a list of items. One of them can be checked. If the user clicks on an item this item will automatically be checked, the formerly checked item becomes unchecked. There can be only one item checked at a time. 



Definition at line 329 of file kactionclasses.h.

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


Constructs a select action with text and potential keyboard accelerator but nothing else. 

Use this only if you really know what you are doing.

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


Definition at line 364 of file kactionclasses.cpp.\index{KSelectAction@{KSelect\-Action}!KSelectAction@{KSelectAction}}
\index{KSelectAction@{KSelectAction}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KSelect\-Action::KSelect\-Action (const {\bf QString} \& {\em text}, const {\bf KShortcut} \& {\em cut}, const {\bf QObject} $\ast$ {\em receiver}, const char $\ast$ {\em slot}, {\bf QObject} $\ast$ {\em parent}, const char $\ast$ {\em name} = {\tt 0})}\label{classKSelectAction_a1}


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]The text that will be displayed. \item[{\em cut}]The corresponding keyboard accelerator (shortcut). \item[{\em receiver}]The SLOT's parent. \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 371 of file kactionclasses.cpp.\index{KSelectAction@{KSelect\-Action}!KSelectAction@{KSelectAction}}
\index{KSelectAction@{KSelectAction}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KSelect\-Action::KSelect\-Action (const {\bf QString} \& {\em text}, const {\bf QIcon\-Set} \& {\em pix}, const {\bf KShortcut} \& {\em cut} = {\tt {\bf KShortcut}()}, {\bf QObject} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKSelectAction_a2}


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]The text that will be displayed. \item[{\em pix}]The icons that go with this action. \item[{\em cut}]The corresponding keyboard accelerator (shortcut). \item[{\em parent}]This action's parent. \item[{\em name}]An internal name for this action. \end{description}
\end{Desc}


Definition at line 379 of file kactionclasses.cpp.\index{KSelectAction@{KSelect\-Action}!KSelectAction@{KSelectAction}}
\index{KSelectAction@{KSelectAction}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KSelect\-Action::KSelect\-Action (const {\bf QString} \& {\em text}, const {\bf QString} \& {\em pix}, const {\bf KShortcut} \& {\em cut} = {\tt {\bf KShortcut}()}, {\bf QObject} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKSelectAction_a3}


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]The text that will be displayed. \item[{\em pix}]The dynamically loaded icon that goes with this action. \item[{\em cut}]The corresponding keyboard accelerator (shortcut). \item[{\em parent}]This action's parent. \item[{\em name}]An internal name for this action. \end{description}
\end{Desc}


Definition at line 387 of file kactionclasses.cpp.\index{KSelectAction@{KSelect\-Action}!KSelectAction@{KSelectAction}}
\index{KSelectAction@{KSelectAction}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KSelect\-Action::KSelect\-Action (const {\bf QString} \& {\em text}, const {\bf QIcon\-Set} \& {\em pix}, const {\bf KShortcut} \& {\em cut}, const {\bf QObject} $\ast$ {\em receiver}, const char $\ast$ {\em slot}, {\bf QObject} $\ast$ {\em parent}, const char $\ast$ {\em name} = {\tt 0})}\label{classKSelectAction_a4}


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]The text that will be displayed. \item[{\em pix}]The icons that go with this action. \item[{\em cut}]The corresponding keyboard accelerator (shortcut). \item[{\em receiver}]The SLOT's parent. \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 395 of file kactionclasses.cpp.\index{KSelectAction@{KSelect\-Action}!KSelectAction@{KSelectAction}}
\index{KSelectAction@{KSelectAction}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KSelect\-Action::KSelect\-Action (const {\bf QString} \& {\em text}, const {\bf QString} \& {\em pix}, const {\bf KShortcut} \& {\em cut}, const {\bf QObject} $\ast$ {\em receiver}, const char $\ast$ {\em slot}, {\bf QObject} $\ast$ {\em parent}, const char $\ast$ {\em name} = {\tt 0})}\label{classKSelectAction_a5}


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]The text that will be displayed. \item[{\em pix}]The dynamically loaded icon that goes with this action. \item[{\em cut}]The corresponding keyboard accelerator (shortcut). \item[{\em receiver}]The SLOT's parent. \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 405 of file kactionclasses.cpp.\index{KSelectAction@{KSelect\-Action}!KSelectAction@{KSelectAction}}
\index{KSelectAction@{KSelectAction}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KSelect\-Action::KSelect\-Action ({\bf QObject} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKSelectAction_a6}


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em parent}]This action's parent. \item[{\em name}]An internal name for this action. \end{description}
\end{Desc}


Definition at line 415 of file kactionclasses.cpp.\index{KSelectAction@{KSelect\-Action}!~KSelectAction@{$\sim$KSelectAction}}
\index{~KSelectAction@{$\sim$KSelectAction}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KSelect\-Action::$\sim${\bf KSelect\-Action} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKSelectAction_a7}


Destructor. 



Definition at line 421 of file kactionclasses.cpp.

\subsection{Member Function Documentation}
\index{KSelectAction@{KSelect\-Action}!plug@{plug}}
\index{plug@{plug}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KSelect\-Action::plug ({\bf QWidget} $\ast$ {\em widget}, int {\em index} = {\tt -1})\hspace{0.3cm}{\tt  [virtual]}}\label{classKSelectAction_a8}


\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 KSelect\-Action object.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em widget}]The GUI element to display this action. \item[{\em index}]The index of the item. \end{description}
\end{Desc}


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

Reimplemented in {\bf KRecent\-Files\-Action} {\rm (p.\,\pageref{classKRecentFilesAction_a8})}.

Definition at line 621 of file kactionclasses.cpp.

References KAction::activated(), QWhats\-This::add(), combo\-Items(), QObject::connect(), QObject::destroyed(), endl(), KTool\-Bar::get\-Combo(), KAction::get\-Tool\-Button\-ID(), KAction::icon\-Set(), KTool\-Bar::insert\-Combo(), QMenu\-Bar::insert\-Item(), QPopup\-Menu::insert\-Item(), is\-Editable(), QString::is\-Empty(), KAction::is\-Enabled(), kd\-Debug(), kd\-Warning(), popup\-Menu(), QCombo\-Box::set\-Insertion\-Policy(), QMenu\-Bar::set\-Item\-Enabled(), QPopup\-Menu::set\-Item\-Enabled(), QPopup\-Menu::set\-Whats\-This(), KAction::text(), KAction::tool\-Tip(), and KAction::whats\-This().

Referenced by KRecent\-Files\-Action::plug().\index{KSelectAction@{KSelect\-Action}!isEditable@{isEditable}}
\index{isEditable@{isEditable}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KSelect\-Action::is\-Editable () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKSelectAction_a9}


When this action is plugged into a toolbar, it creates a combobox. 

\begin{Desc}
\item[Returns:]true if the combo editable. \end{Desc}


Definition at line 793 of file kactionclasses.cpp.

Referenced by plug().\index{KSelectAction@{KSelect\-Action}!items@{items}}
\index{items@{items}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QString\-List} KSelect\-Action::items () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKSelectAction_a10}


\begin{Desc}
\item[Returns:]the items that can be selected with this action. Use set\-Items to set them. \end{Desc}


Referenced by KRecent\-Files\-Action::add\-URL(), KList\-Action::current\-Text(), KRecent\-Files\-Action::remove\-URL(), KRecent\-Files\-Action::save\-Entries(), and KRecent\-Files\-Action::set\-Max\-Items().\index{KSelectAction@{KSelect\-Action}!changeItem@{changeItem}}
\index{changeItem@{changeItem}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KSelect\-Action::change\-Item (int {\em index}, const {\bf QString} \& {\em text})\hspace{0.3cm}{\tt  [virtual]}}\label{classKSelectAction_a11}


Changes the text of item. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]to \item[{\em text}]. \end{description}
\end{Desc}


Definition at line 498 of file kactionclasses.cpp.

References endl(), and kd\-Warning().\index{KSelectAction@{KSelect\-Action}!currentText@{currentText}}
\index{currentText@{currentText}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QString} KSelect\-Action::current\-Text () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKSelectAction_a12}


Returns the text of the currently selected item. 



Reimplemented in {\bf KList\-Action} {\rm (p.\,\pageref{classKListAction_a8})}.\index{KSelectAction@{KSelect\-Action}!currentItem@{currentItem}}
\index{currentItem@{currentItem}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual int KSelect\-Action::current\-Item () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKSelectAction_a13}


Returns the index of the current item. 

\begin{Desc}
\item[See also:]{\bf set\-Current\-Item}{\rm (p.\,\pageref{classKSelectAction_i0})} \end{Desc}


Reimplemented in {\bf KList\-Action} {\rm (p.\,\pageref{classKListAction_a9})}.\index{KSelectAction@{KSelect\-Action}!comboWidth@{comboWidth}}
\index{comboWidth@{comboWidth}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual int KSelect\-Action::combo\-Width () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKSelectAction_a14}


When this action is plugged into a toolbar, it creates a combobox. 

This returns the maximum width set by set\-Combo\-Width \index{KSelectAction@{KSelect\-Action}!popupMenu@{popupMenu}}
\index{popupMenu@{popupMenu}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QPopup\-Menu} $\ast$ KSelect\-Action::popup\-Menu () const}\label{classKSelectAction_a15}


Returns a pointer to the popup menu used by this action. 



Definition at line 468 of file kactionclasses.cpp.

References endl(), and kd\-Debug().

Referenced by plug().\index{KSelectAction@{KSelect\-Action}!setRemoveAmpersandsInCombo@{setRemoveAmpersandsInCombo}}
\index{setRemoveAmpersandsInCombo@{setRemoveAmpersandsInCombo}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KSelect\-Action::set\-Remove\-Ampersands\-In\-Combo (bool {\em b})}\label{classKSelectAction_a16}


\begin{Desc}
\item[{\bf Deprecated}]See set\-Menu\-Accels\-Enabled . \begin{Desc}
\item[Since:]3.1 \end{Desc}
\end{Desc}


Definition at line 798 of file kactionclasses.cpp.

References set\-Menu\-Accels\-Enabled().\index{KSelectAction@{KSelect\-Action}!removeAmpersandsInCombo@{removeAmpersandsInCombo}}
\index{removeAmpersandsInCombo@{removeAmpersandsInCombo}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KSelect\-Action::remove\-Ampersands\-In\-Combo () const}\label{classKSelectAction_a17}


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




Definition at line 803 of file kactionclasses.cpp.

References menu\-Accels\-Enabled().\index{KSelectAction@{KSelect\-Action}!setMenuAccelsEnabled@{setMenuAccelsEnabled}}
\index{setMenuAccelsEnabled@{setMenuAccelsEnabled}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KSelect\-Action::set\-Menu\-Accels\-Enabled (bool {\em b})}\label{classKSelectAction_a18}


Sets whether any occurrence of the ampersand character ( \& ) in items should be interpreted as keyboard accelerator for items displayed in a menu or not. 

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


Definition at line 808 of file kactionclasses.cpp.

Referenced by set\-Remove\-Ampersands\-In\-Combo().\index{KSelectAction@{KSelect\-Action}!menuAccelsEnabled@{menuAccelsEnabled}}
\index{menuAccelsEnabled@{menuAccelsEnabled}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KSelect\-Action::menu\-Accels\-Enabled () const}\label{classKSelectAction_a19}


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




Referenced by remove\-Ampersands\-In\-Combo().\index{KSelectAction@{KSelect\-Action}!setCurrentItem@{setCurrentItem}}
\index{setCurrentItem@{setCurrentItem}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KSelect\-Action::set\-Current\-Item (int {\em index})\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKSelectAction_i0}


Sets the currently checked item. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]Index of the item (remember the first item is zero). \end{description}
\end{Desc}


Reimplemented in {\bf KList\-Action} {\rm (p.\,\pageref{classKListAction_i0})}.

Definition at line 428 of file kactionclasses.cpp.

Referenced by KList\-Action::set\-Current\-Item().\index{KSelectAction@{KSelect\-Action}!setItems@{setItems}}
\index{setItems@{setItems}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KSelect\-Action::set\-Items (const {\bf QString\-List} \& {\em lst})\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKSelectAction_i1}


Sets the items to be displayed in this action You need to call this. 



Definition at line 533 of file kactionclasses.cpp.

References KAction::set\-Enabled().

Referenced by KRecent\-Files\-Action::add\-URL(), KRecent\-Files\-Action::load\-Entries(), KRecent\-Files\-Action::remove\-URL(), and KRecent\-Files\-Action::set\-Max\-Items().\index{KSelectAction@{KSelect\-Action}!clear@{clear}}
\index{clear@{clear}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KSelect\-Action::clear ()\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKSelectAction_i2}


Clears up all the items in this action. 



Definition at line 725 of file kactionclasses.cpp.

Referenced by KRecent\-Files\-Action::clear\-URLList().\index{KSelectAction@{KSelect\-Action}!setEditable@{setEditable}}
\index{setEditable@{setEditable}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KSelect\-Action::set\-Editable (bool)\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKSelectAction_i3}


When this action is plugged into a toolbar, it creates a combobox. 

This makes the combo editable or read-only. 

Definition at line 788 of file kactionclasses.cpp.\index{KSelectAction@{KSelect\-Action}!setComboWidth@{setComboWidth}}
\index{setComboWidth@{setComboWidth}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KSelect\-Action::set\-Combo\-Width (int {\em width})\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKSelectAction_i4}


When this action is plugged into a toolbar, it creates a combobox. 

This gives a \_\-maximum\_\- size to the combobox. The minimum size is automatically given by the contents (the items). 

Definition at line 455 of file kactionclasses.cpp.\index{KSelectAction@{KSelect\-Action}!comboItems@{comboItems}}
\index{comboItems@{comboItems}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString\-List} KSelect\-Action::combo\-Items () const\hspace{0.3cm}{\tt  [protected]}}\label{classKSelectAction_b1}


Depending on the menu\-Accels\-Enabled property this method will return the actions items in a way for inclusion in a combobox with the ampersand character removed from all items or not. 

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


Definition at line 706 of file kactionclasses.cpp.

References QString::find(), and QString::remove().

Referenced by plug().\index{KSelectAction@{KSelect\-Action}!activated@{activated}}
\index{activated@{activated}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KSelect\-Action::activated (int {\em index})\hspace{0.3cm}{\tt  [signal]}}\label{classKSelectAction_l0}


This signal is emitted when an item is selected;. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]indicated the item selected. \end{description}
\end{Desc}
\index{KSelectAction@{KSelect\-Action}!activated@{activated}}
\index{activated@{activated}!KSelectAction@{KSelect\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KSelect\-Action::activated (const {\bf QString} \& {\em text})\hspace{0.3cm}{\tt  [signal]}}\label{classKSelectAction_l1}


This signal is emitted when an item is selected;. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]indicates the item selected. \end{description}
\end{Desc}


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