#include <Kolinewidthaction.h>
Graphe d'héritage de KoLineWidthAction:
Connecteurs publics | |
void | setCurrentWidth (double width) |
void | setUnit (KoUnit::Unit unit) |
Signaux | |
void | lineWidthChanged (double) |
Fonctions membres publiques | |
KoLineWidthAction (const QString &text, const QString &icon, QObject *parent=0, const char *name=0) | |
KoLineWidthAction (const QString &text, const QString &icon, const QObject *receiver, const char *slot, QObject *parent, const char *name=0) | |
~KoLineWidthAction () | |
double | currentWidth () const |
Connecteurs protégés | |
void | execute (int index) |
Fonctions membres protégées | |
void | createMenu () |
Attributs privés | |
KoLineWidthActionPrivate * | d |
Classes | |
class | KoLineWidthActionPrivate |
Définition à la ligne 30 du fichier Kolinewidthaction.h.
KoLineWidthAction::KoLineWidthAction | ( | const QString & | text, | |
const QString & | icon, | |||
QObject * | parent = 0 , |
|||
const char * | name = 0 | |||
) |
Constructs a KoLineWidthAction 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 60 du fichier Kolinewidthaction.cpp.
Références createMenu(), et d.
Voici le graphe d'appel pour cette fonction :
KoLineWidthAction::KoLineWidthAction | ( | 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 lineWidthChanged(double) signal is emitted. | |
parent | This action's parent. | |
name | An internal name for this action. |
Définition à la ligne 68 du fichier Kolinewidthaction.cpp.
Références createMenu(), d, et lineWidthChanged().
Voici le graphe d'appel pour cette fonction :
KoLineWidthAction::~KoLineWidthAction | ( | ) |
double KoLineWidthAction::currentWidth | ( | ) | const |
Returns the currently selected line width
Définition à la ligne 130 du fichier Kolinewidthaction.cpp.
Références d, et KoLineWidthAction::KoLineWidthActionPrivate::m_currentWidth.
void KoLineWidthAction::lineWidthChanged | ( | double | ) | [signal] |
Emitted when a new line width has been selected
Référencé par execute(), et KoLineWidthAction().
void KoLineWidthAction::setCurrentWidth | ( | double | width | ) | [slot] |
Set the current width.
width | The new width. |
Définition à la ligne 135 du fichier Kolinewidthaction.cpp.
Références d, KoLineWidthAction::KoLineWidthActionPrivate::m_currentWidth, KoSelectAction::setCurrentSelection(), et KoUnit::toPoint().
void KoLineWidthAction::setUnit | ( | KoUnit::Unit | unit | ) | [slot] |
Set which unit to use in the custom width dialog.
unit | The unit to use. |
Définition à la ligne 151 du fichier Kolinewidthaction.cpp.
Références d, et KoLineWidthAction::KoLineWidthActionPrivate::m_unit.
void KoLineWidthAction::execute | ( | int | index | ) | [protected, virtual, slot] |
Reimplemented from KoSelectAction. Emits lineWidthChanged(double) when a new width is selected.
index | Index of the selected item |
Réimplémentée à partir de KoSelectAction.
Définition à la ligne 106 du fichier Kolinewidthaction.cpp.
Références d, lineWidthChanged(), KoLineWidthAction::KoLineWidthActionPrivate::m_currentWidth, KoLineWidthAction::KoLineWidthActionPrivate::m_unit, et KoSelectAction::setCurrentSelection().
void KoLineWidthAction::createMenu | ( | ) | [protected] |
Draws and adds each item of the menu.
Définition à la ligne 83 du fichier Kolinewidthaction.cpp.
Références KoGlobal::dpiY(), POINT_TO_INCH, KoSelectAction::popup(), et KoSelectAction::popupMenu().
Référencé par KoLineWidthAction().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
KoLineWidthActionPrivate* KoLineWidthAction::d [private] |
Réimplémentée à partir de KoSelectAction.
Définition à la ligne 82 du fichier Kolinewidthaction.h.
Référencé par currentWidth(), execute(), KoLineWidthAction(), setCurrentWidth(), setUnit(), et ~KoLineWidthAction().