kdeui Library API Documentation

KListAction Class Reference

#include <kaction.h>

Inheritance diagram for KListAction:

KSelectAction KAction QObject KRecentFilesAction List of all members.

Public Slots

virtual void setCurrentItem (int index)
 Sets the currently checked item.


Public Methods

 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.

 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 ()
 Destructor.

virtual QString currentText () const
virtual int currentItem () const

Protected Methods

virtual void virtual_hook (int id, void *data)

Detailed Description

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.

Definition at line 1918 of file kaction.cpp.

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.

Definition at line 1925 of file kaction.cpp.

References QObject::connect().

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.

Definition at line 1935 of file kaction.cpp.

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.

Definition at line 1943 of file kaction.cpp.

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.

Definition at line 1951 of file kaction.cpp.

References QObject::connect().

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.

Definition at line 1962 of file kaction.cpp.

References QObject::connect().

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

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

Definition at line 1973 of file kaction.cpp.

KListAction::~KListAction   [virtual]
 

Destructor.

Definition at line 1979 of file kaction.cpp.


Member Function Documentation

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.

Definition at line 1984 of file kaction.cpp.

References KSelectAction::setCurrentItem().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:21:05 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001