Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KListAction Class Reference

Remove this class in KDE-4.0. It doesn't add _anything_ to KSelectAction. More...

#include <kaction.h>

Inheritance diagram for KListAction:

KSelectAction KAction KRecentFilesAction List of all members.

Public Slots

virtual void setCurrentItem (int index)

Public Methods

 KListAction (const QString &text, const KShortcut &cut=KShortcut(), QObject *parent=0, const char *name=0)
 KListAction (const QString &text, const KShortcut &cut, const QObject *receiver, const char *slot, QObject *parent, const char *name=0)
 KListAction (const QString &text, const QIconSet &pix, const KShortcut &cut=KShortcut(), QObject *parent=0, const char *name=0)
 KListAction (const QString &text, const QString &pix, const KShortcut &cut=KShortcut(), QObject *parent=0, const char *name=0)
 KListAction (const QString &text, const QIconSet &pix, const KShortcut &cut, const QObject *receiver, const char *slot, QObject *parent, const char *name=0)
 KListAction (const QString &text, const QString &pix, const KShortcut &cut, const QObject *receiver, const char *slot, QObject *parent, const char *name=0)
 KListAction (QObject *parent=0, const char *name=0)
virtual ~KListAction ()
virtual QString currentText () const
virtual int currentItem () const

Protected Methods

virtual void virtual_hook (int id, void *data)

Detailed Description

Remove this class in KDE-4.0. It doesn't add _anything_ to KSelectAction.

Deprecated:
Use KSelectAction instead.

Definition at line 1074 of file kaction.h.


Constructor & Destructor Documentation

KListAction::KListAction const QString &    text,
const KShortcut &    cut = KShortcut(),
QObject *    parent = 0,
const char *    name = 0
 

Constructs a list action with text and potential keyboard accelerator but nothing else. Use this only if you really know what you are doing.

Parameters:
text  The text that will be displayed.
cut  The corresponding keyboard accelerator (shortcut).
parent  This action's parent.
name  An internal name for this action.

KListAction::KListAction const QString &    text,
const KShortcut &    cut,
const QObject *    receiver,
const char *    slot,
QObject *    parent,
const char *    name = 0
 

Parameters:
text  The text that will be displayed.
cut  The corresponding keyboard accelerator (shortcut).
receiver  The SLOT's parent.
slot  The SLOT to invoke to execute this action.
parent  This action's parent.
name  An internal name for this action.

KListAction::KListAction const QString &    text,
const QIconSet &    pix,
const KShortcut &    cut = KShortcut(),
QObject *    parent = 0,
const char *    name = 0
 

Parameters:
text  The text that will be displayed.
pix  The icons that go with this action.
cut  The corresponding keyboard accelerator (shortcut).
parent  This action's parent.
name  An internal name for this action.

KListAction::KListAction const QString &    text,
const QString &    pix,
const KShortcut &    cut = KShortcut(),
QObject *    parent = 0,
const char *    name = 0
 

Parameters:
text  The text that will be displayed.
pix  The dynamically loaded icon that goes with this action.
cut  The corresponding keyboard accelerator (shortcut).
parent  This action's parent.
name  An internal name for this action.

KListAction::KListAction const QString &    text,
const QIconSet &    pix,
const KShortcut &    cut,
const QObject *    receiver,
const char *    slot,
QObject *    parent,
const char *    name = 0
 

Parameters:
text  The text that will be displayed.
pix  The icons that go with this action.
cut  The corresponding keyboard accelerator (shortcut).
receiver  The SLOT's parent.
slot  The SLOT to invoke to execute this action.
parent  This action's parent.
name  An internal name for this action.

KListAction::KListAction const QString &    text,
const QString &    pix,
const KShortcut &    cut,
const QObject *    receiver,
const char *    slot,
QObject *    parent,
const char *    name = 0
 

Parameters:
text  The text that will be displayed.
pix  The dynamically loaded icon that goes with this action.
cut  The corresponding keyboard accelerator (shortcut).
receiver  The SLOT's parent.
slot  The SLOT to invoke to execute this action.
parent  This action's parent.
name  An internal name for this action.

KListAction::KListAction QObject *    parent = 0,
const char *    name = 0
 

Parameters:
parent  This action's parent.
name  An internal name for this action.

virtual KListAction::~KListAction   [virtual]
 

Destructor


Member Function Documentation

virtual void KListAction::setCurrentItem int    index [virtual, slot]
 

Sets the currently checked item.

Parameters:
index  Index of the item (remember the first item is zero).

Reimplemented from KSelectAction.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:17 2003 for kdelibs by doxygen1.2.18