#include <Kolinewidthaction.h>
Public Slots | |
| void | setCurrentWidth (double width) |
| void | setUnit (KoUnit::Unit unit) |
| Public Slots inherited from KoSelectAction | |
| virtual void | setCurrentSelection (int index) |
| Public Slots inherited from TDEAction | |
| virtual void | setText (const TQString &text) |
| virtual bool | setShortcut (const TDEShortcut &) |
| virtual void | setWhatsThis (const TQString &text) |
| virtual void | setToolTip (const TQString &) |
| virtual void | setIconSet (const TQIconSet &iconSet) |
| virtual void | setEnabled (bool enable) |
| void | setDisabled (bool disable) |
| virtual void | setShortcutConfigurable (bool) |
| virtual void | activate () |
Signals | |
| void | lineWidthChanged (double) |
| Signals inherited from KoSelectAction | |
| void | selectionChanged (int) |
| Signals inherited from TDEAction | |
| void | activated () |
| void | activated (TDEAction::ActivationReason reason, TQt::ButtonState state) |
Public Member Functions | |
| KoLineWidthAction (const TQString &text, const TQString &icon, TQObject *parent=0, const char *name=0) | |
| KoLineWidthAction (const TQString &text, const TQString &icon, const TQObject *receiver, const char *slot, TQObject *parent, const char *name=0) | |
| double | currentWidth () const |
| Public Member Functions inherited from KoSelectAction | |
| KoSelectAction (const TQString &text, const TQString &icon, TQObject *parent=0, const char *name=0) | |
| KoSelectAction (const TQString &text, const TQString &icon, const TQObject *receiver, const char *slot, TQObject *parent, const char *name=0) | |
| TDEPopupMenu * | popupMenu () const |
| void | popup (const TQPoint &global) |
| virtual int | plug (TQWidget *widget, int index=-1) |
| virtual int | currentSelection () |
| void | setShowCurrentSelection (bool show) |
| Public Member Functions inherited from TDEAction | |
| TDEAction (const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name) | |
| TDEAction (const TQString &text, const TQIconSet &pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name) | |
| TDEAction (const TQString &text, const TQString &pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name) | |
| TDEAction (const KGuiItem &item, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name) | |
| TDEAction (const TQString &text, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0) | |
| TDEAction (const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TQObject *parent, const char *name=0) | |
| TDEAction (const TQString &text, const TQIconSet &pix, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0) | |
| TDEAction (const TQString &text, const TQString &pix, const TDEShortcut &cut=TDEShortcut(), TQObject *parent=0, const char *name=0) | |
| TDEAction (const TQString &text, const TQIconSet &pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TQObject *parent, const char *name=0) | |
| TDEAction (const TQString &text, const TQString &pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TQObject *parent, const char *name=0) | |
| TDEAction (TQObject *parent=0, const char *name=0) | |
| virtual void | plugAccel (TDEAccel *accel, bool configurable=true) TDE_DEPRECATED |
| virtual void | unplug (TQWidget *w) |
| virtual void | unplugAccel () TDE_DEPRECATED |
| virtual bool | isPlugged () const |
| bool | isPlugged (const TQWidget *container) const |
| virtual bool | isPlugged (const TQWidget *container, int id) const |
| virtual bool | isPlugged (const TQWidget *container, const TQWidget *_representative) const |
| uint | tdeaccelCount () const |
| virtual TQString | text () const |
| virtual const TDEShortcut & | shortcut () const |
| virtual const TDEShortcut & | shortcutDefault () const |
| virtual bool | isEnabled () const |
| virtual bool | isShortcutConfigurable () const |
| virtual TQString | whatsThis () const |
| virtual TQString | toolTip () const |
| virtual TQIconSet | iconSet (TDEIcon::Group group, int size=0) const |
| TQIconSet | iconSet () const |
| int | accel () const TDE_DEPRECATED |
| void | setAccel (int key) TDE_DEPRECATED |
| void | setStatusText (const TQString &text) |
| int | menuId (int i) |
Protected Slots | |
| void | execute (int index) |
| Protected Slots inherited from KoSelectAction | |
| virtual void | execute (int index) |
| Protected Slots inherited from TDEAction | |
| void | slotPopupActivated () |
| void | slotButtonClicked (int, TQt::ButtonState state) |
Protected Member Functions | |
| void | createMenu () |
| Protected Member Functions inherited from TDEAction | |
| const KGuiItem & | guiItem () const |
Additional Inherited Members | |
| Public Types inherited from TDEAction | |
| enum | ActivationReason |
| Static Public Member Functions inherited from TDEAction | |
| static int | getToolButtonID () |
Detailed Description
A line width selection action.
Definition at line 30 of file Kolinewidthaction.h.
Constructor & Destructor Documentation
◆ KoLineWidthAction() [1/2]
| KoLineWidthAction::KoLineWidthAction | ( | const TQString & | text, |
| const TQString & | icon, | ||
| TQObject * | parent = 0, | ||
| const char * | name = 0 ) |
Constructs a KoLineWidthAction with a text and an icon.
- Parameters
-
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.
Definition at line 58 of file Kolinewidthaction.cpp.
◆ KoLineWidthAction() [2/2]
| KoLineWidthAction::KoLineWidthAction | ( | const TQString & | text, |
| const TQString & | icon, | ||
| const TQObject * | receiver, | ||
| const char * | slot, | ||
| TQObject * | parent, | ||
| const char * | name = 0 ) |
Same as above, but it also connects a slot to the selectionChanged(int) signal.
- Parameters
-
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 emited. parent This action's parent. name An internal name for this action.
Definition at line 66 of file Kolinewidthaction.cpp.
◆ ~KoLineWidthAction()
| KoLineWidthAction::~KoLineWidthAction | ( | ) |
Definition at line 76 of file Kolinewidthaction.cpp.
Member Function Documentation
◆ createMenu()
|
protected |
Draws and adds each item of the menu.
Definition at line 81 of file Kolinewidthaction.cpp.
◆ currentWidth()
| double KoLineWidthAction::currentWidth | ( | ) | const |
Returns the currently selected line width.
Definition at line 128 of file Kolinewidthaction.cpp.
◆ execute
|
protectedslot |
Reimplemented from KoSelectAction.
Emits lineWidthChanged(double) when a new width is selected.
- Parameters
-
index Index of the selected item
Definition at line 104 of file Kolinewidthaction.cpp.
◆ lineWidthChanged
|
signal |
Emited when a new line width have been selected.
◆ setCurrentWidth
|
slot |
Set the current width.
- Parameters
-
width The new width.
Definition at line 133 of file Kolinewidthaction.cpp.
◆ setUnit
|
slot |
Set which unit to use in the custom width dialog.
- Parameters
-
unit The unit to use.
Definition at line 149 of file Kolinewidthaction.cpp.
The documentation for this class was generated from the following files:
