KoLineWidthAction Class Reference
A line width selection action. More...
#include <kolinewidthaction.h>
Inheritance diagram for KoLineWidthAction:


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