Référence de la classe KoSelectAction

#include <KoSelectAction.h>

Graphe d'héritage de KoSelectAction:

[légende]
Graphe de collaboration de KoSelectAction:
[légende]
Liste de tous les membres

Connecteurs publics

virtual void setCurrentSelection (int index)

Signaux

void selectionChanged (int)

Fonctions membres publiques

 KoSelectAction (const QString &text, const QString &icon, QObject *parent=0, const char *name=0)
 KoSelectAction (const QString &text, const QString &icon, const QObject *receiver, const char *slot, QObject *parent, const char *name=0)
 ~KoSelectAction ()
KMenu * popupMenu () const
void popup (const QPoint &global)
virtual int plug (QWidget *widget, int index=-1)
virtual int currentSelection ()
void setShowCurrentSelection (bool show)

Connecteurs protégés

virtual void execute (int index)

Attributs privés

KoSelectActionPrivated

Classes

class  KoSelectActionPrivate

Description détaillée

An action that provides a menu with items that can be selected. The main difference between this action and a KSelectAction is that it is plugged into a toolbar as a dropdown menu and not as a combobox.

Définition à la ligne 31 du fichier KoSelectAction.h.


Documentation des contructeurs et destructeur

KoSelectAction::KoSelectAction ( const QString &  text,
const QString &  icon,
QObject *  parent = 0,
const char *  name = 0 
)

Constructs a KoSelectAction with a text and an icon.

Paramètres:
text The text that will be displayed.
icon The dynamically loaded icon that goes with this action.
parent This action's parent.
name An internal name for this action.

Définition à la ligne 58 du fichier KoSelectAction.cpp.

Références d, execute(), popupMenu(), et setShowCurrentSelection().

Voici le graphe d'appel pour cette fonction :

KoSelectAction::KoSelectAction ( const QString &  text,
const QString &  icon,
const QObject *  receiver,
const char *  slot,
QObject *  parent,
const char *  name = 0 
)

Same as above, but it also connects a slot to the selectionChanged(int) signal.

Paramètres:
text The text that will be displayed.
icon The dynamically loaded icon that goes with this action.
receiver The SLOT's parent.
slot The SLOT to invoke when a selectionChanged(int) signal is emitted.
parent This action's parent.
name An internal name for this action.

Définition à la ligne 67 du fichier KoSelectAction.cpp.

Références d, execute(), popupMenu(), et selectionChanged().

Voici le graphe d'appel pour cette fonction :

KoSelectAction::~KoSelectAction (  ) 

Définition à la ligne 76 du fichier KoSelectAction.cpp.

Références d.


Documentation des fonctions membres

KMenu * KoSelectAction::popupMenu (  )  const

Returns a pointer to the popup menu.

Définition à la ligne 81 du fichier KoSelectAction.cpp.

Références d, et KoSelectAction::KoSelectActionPrivate::m_popup.

Référencé par KoLineWidthAction::createMenu(), KoLineStyleAction::createMenu(), KoSelectAction(), plug(), popup(), setCurrentSelection(), et setShowCurrentSelection().

Voici le graphe d'appel pour cette fonction :

void KoSelectAction::popup ( const QPoint &  global  ) 

Shows the popup menu.

Paramètres:
global Position at which the popup menu is shown.

Définition à la ligne 86 du fichier KoSelectAction.cpp.

Références popupMenu().

Référencé par KoLineWidthAction::createMenu(), et KoLineStyleAction::createMenu().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

int KoSelectAction::plug ( QWidget *  widget,
int  index = -1 
) [virtual]

Définition à la ligne 91 du fichier KoSelectAction.cpp.

Références KoPageFormat::name(), et popupMenu().

Voici le graphe d'appel pour cette fonction :

int KoSelectAction::currentSelection (  )  [virtual]

Returns the index of the currently selected item.

Définition à la ligne 177 du fichier KoSelectAction.cpp.

Références d, et KoSelectAction::KoSelectActionPrivate::m_currentSelection.

void KoSelectAction::setShowCurrentSelection ( bool  show  ) 

If the current selection selection should be shown or not in the menu

Définition à la ligne 192 du fichier KoSelectAction.cpp.

Références popupMenu().

Référencé par KoSelectAction().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoSelectAction::selectionChanged ( int   )  [signal]

Emitted when the selection changed

Référencé par execute(), et KoSelectAction().

void KoSelectAction::setCurrentSelection ( int  index  )  [virtual, slot]

Set which item that should be selected.

Paramètres:
index Index of item that should be selected

Définition à la ligne 182 du fichier KoSelectAction.cpp.

Références d, KoSelectAction::KoSelectActionPrivate::m_currentSelection, et popupMenu().

Référencé par execute(), KoLineWidthAction::execute(), et KoLineWidthAction::setCurrentWidth().

void KoSelectAction::execute ( int  index  )  [protected, virtual, slot]

Execute an item. By default it sets the item as selected and emits the selectionChanged signal.

Paramètres:
index Index of the item that should be executed.

Réimplémentée dans KoLineWidthAction.

Définition à la ligne 171 du fichier KoSelectAction.cpp.

Références d, KoSelectAction::KoSelectActionPrivate::m_currentSelection, selectionChanged(), et setCurrentSelection().

Référencé par KoSelectAction().


Documentation des données membres

KoSelectActionPrivate* KoSelectAction::d [private]

Réimplémentée dans KoLineStyleAction, et KoLineWidthAction.

Définition à la ligne 86 du fichier KoSelectAction.h.

Référencé par currentSelection(), execute(), KoSelectAction(), popupMenu(), setCurrentSelection(), et ~KoSelectAction().


La documentation de cette classe a été générée à partir des fichiers suivants :
Généré le Wed Nov 22 23:48:54 2006 pour KPlato par  doxygen 1.5.1-p1