lib
KoLineWidthAction Class Reference
#include <Kolinewidthaction.h>
Inheritance diagram for KoLineWidthAction:

Detailed Description
A line width selection action.
Definition at line 30 of file Kolinewidthaction.h.
Public Slots | |
void | setCurrentWidth (double width) |
void | setUnit (KoUnit::Unit unit) |
Signals | |
void | lineWidthChanged (double) |
Public Member Functions | |
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 |
Protected Slots | |
void | execute (int index) |
Protected Member Functions | |
void | createMenu () |
Constructor & Destructor Documentation
|
Constructs a KoLineWidthAction with a text and an icon.
Definition at line 58 of file Kolinewidthaction.cpp. |
|
Same as above, but it also connects a slot to the selectionChanged(int) signal.
Definition at line 66 of file Kolinewidthaction.cpp. |
Member Function Documentation
|
Draws and adds each item of the menu.
Definition at line 81 of file Kolinewidthaction.cpp. |
|
Returns the currently selected line width.
Definition at line 128 of file Kolinewidthaction.cpp. |
|
Reimplemented from KoSelectAction. Emits lineWidthChanged(double) when a new width is selected.
Reimplemented from KoSelectAction. Definition at line 104 of file Kolinewidthaction.cpp. |
|
Emited when a new line width have been selected.
|
|
Set the current width.
Definition at line 133 of file Kolinewidthaction.cpp. |
|
Set which unit to use in the custom width dialog.
Definition at line 149 of file Kolinewidthaction.cpp. |
The documentation for this class was generated from the following files: