• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdeui
 

kdeui

Public Slots | Public Member Functions | Protected Member Functions
KListAction Class Reference

#include <kactionclasses.h>

Inheritance diagram for KListAction:
KSelectAction KAction KRecentFilesAction

List of all members.

Public Slots

virtual void setCurrentItem (int index)

Public Member Functions

 KListAction (const TQString &text, const KShortcut &cut=KShortcut(), TQObject *parent=0, const char *name=0)
 KListAction (const TQString &text, const KShortcut &cut, const TQObject *receiver, const char *slot, TQObject *parent, const char *name=0)
 KListAction (const TQString &text, const TQIconSet &pix, const KShortcut &cut=KShortcut(), TQObject *parent=0, const char *name=0)
 KListAction (const TQString &text, const TQString &pix, const KShortcut &cut=KShortcut(), TQObject *parent=0, const char *name=0)
 KListAction (const TQString &text, const TQIconSet &pix, const KShortcut &cut, const TQObject *receiver, const char *slot, TQObject *parent, const char *name=0)
 KListAction (const TQString &text, const TQString &pix, const KShortcut &cut, const TQObject *receiver, const char *slot, TQObject *parent, const char *name=0)
 KListAction (TQObject *parent=0, const char *name=0)
virtual ~KListAction ()
virtual TQString currentText () const
virtual int currentItem () const

Protected Member Functions

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 584 of file kactionclasses.h.


Constructor & Destructor Documentation

KListAction::KListAction ( const TQString &  text,
const KShortcut &  cut = KShortcut(),
TQObject *  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:
textThe text that will be displayed.
cutThe corresponding keyboard accelerator (shortcut).
parentThis action's parent.
nameAn internal name for this action.

Definition at line 847 of file kactionclasses.cpp.

KListAction::KListAction ( const TQString &  text,
const KShortcut &  cut,
const TQObject *  receiver,
const char *  slot,
TQObject *  parent,
const char *  name = 0 
)
Parameters:
textThe text that will be displayed.
cutThe corresponding keyboard accelerator (shortcut).
receiverThe SLOT's parent.
slotThe TQT_SLOT to invoke to execute this action.
parentThis action's parent.
nameAn internal name for this action.

Definition at line 854 of file kactionclasses.cpp.

KListAction::KListAction ( const TQString &  text,
const TQIconSet &  pix,
const KShortcut &  cut = KShortcut(),
TQObject *  parent = 0,
const char *  name = 0 
)
Parameters:
textThe text that will be displayed.
pixThe icons that go with this action.
cutThe corresponding keyboard accelerator (shortcut).
parentThis action's parent.
nameAn internal name for this action.

Definition at line 864 of file kactionclasses.cpp.

KListAction::KListAction ( const TQString &  text,
const TQString &  pix,
const KShortcut &  cut = KShortcut(),
TQObject *  parent = 0,
const char *  name = 0 
)
Parameters:
textThe text that will be displayed.
pixThe dynamically loaded icon that goes with this action.
cutThe corresponding keyboard accelerator (shortcut).
parentThis action's parent.
nameAn internal name for this action.

Definition at line 872 of file kactionclasses.cpp.

KListAction::KListAction ( const TQString &  text,
const TQIconSet &  pix,
const KShortcut &  cut,
const TQObject *  receiver,
const char *  slot,
TQObject *  parent,
const char *  name = 0 
)
Parameters:
textThe text that will be displayed.
pixThe icons that go with this action.
cutThe corresponding keyboard accelerator (shortcut).
receiverThe SLOT's parent.
slotThe TQT_SLOT to invoke to execute this action.
parentThis action's parent.
nameAn internal name for this action.

Definition at line 880 of file kactionclasses.cpp.

KListAction::KListAction ( const TQString &  text,
const TQString &  pix,
const KShortcut &  cut,
const TQObject *  receiver,
const char *  slot,
TQObject *  parent,
const char *  name = 0 
)
Parameters:
textThe text that will be displayed.
pixThe dynamically loaded icon that goes with this action.
cutThe corresponding keyboard accelerator (shortcut).
receiverThe SLOT's parent.
slotThe TQT_SLOT to invoke to execute this action.
parentThis action's parent.
nameAn internal name for this action.

Definition at line 891 of file kactionclasses.cpp.

KListAction::KListAction ( TQObject *  parent = 0,
const char *  name = 0 
)
Parameters:
parentThis action's parent.
nameAn internal name for this action.

Definition at line 902 of file kactionclasses.cpp.

KListAction::~KListAction ( ) [virtual]

Destructor.

Definition at line 908 of file kactionclasses.cpp.


Member Function Documentation

int KListAction::currentItem ( ) const [virtual]

Returns the index of the current item.

See also:
setCurrentItem

Reimplemented from KSelectAction.

Definition at line 928 of file kactionclasses.cpp.

TQString KListAction::currentText ( ) const [virtual]

Returns the text of the currently selected item.

Reimplemented from KSelectAction.

Definition at line 923 of file kactionclasses.cpp.

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

Sets the currently checked item.

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

Reimplemented from KSelectAction.

Definition at line 913 of file kactionclasses.cpp.


The documentation for this class was generated from the following files:
  • kactionclasses.h
  • kactionclasses.cpp

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |