#include <KoSelectAction.h>
Graphe d'héritage de KoSelectAction:
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 | |
KoSelectActionPrivate * | d |
Classes | |
class | KoSelectActionPrivate |
Définition à la ligne 31 du fichier KoSelectAction.h.
KoSelectAction::KoSelectAction | ( | const QString & | text, | |
const QString & | icon, | |||
QObject * | parent = 0 , |
|||
const char * | name = 0 | |||
) |
Constructs a KoSelectAction with a text and an icon.
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.
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 | ( | ) |
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.
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.
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.
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().
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().