KoUnitDoubleLineEdit Class Reference
#include <KoUnitWidgets.h>
Inheritance diagram for KoUnitDoubleLineEdit:
Public Member Functions | |
| KoUnitDoubleLineEdit (TQWidget *parent=0L, const char *name=0L) | |
| KoUnitDoubleLineEdit (TQWidget *parent, double lower, double upper, double value=0.0, KoUnit::Unit unit=KoUnit::U_PT, unsigned int precision=2, const char *name=0) | |
| virtual void | changeValue (double) |
| virtual void | setUnit (KoUnit::Unit=KoUnit::U_PT) |
| double | value (void) const |
| Public Member Functions inherited from KLineEdit | |
| KLineEdit (const TQString &string, TQWidget *parent, const char *name=0) | |
| KLineEdit (TQWidget *parent=0, const char *name=0) | |
| void | setURL (const KURL &url) |
| void | cursorAtEnd () |
| virtual void | setCompletionMode (TDEGlobalSettings::Completion mode) |
| virtual void | setContextMenuEnabled (bool showMenu) |
| bool | isContextMenuEnabled () const |
| void | setURLDropsEnabled (bool enable) |
| bool | isURLDropsEnabled () const |
| void | setTrapReturnKey (bool trap) |
| bool | trapReturnKey () const |
| TDECompletionBox * | completionBox (bool create=true) |
| virtual void | setCompletionObject (TDECompletion *, bool hsig=true) |
| virtual void | copy () const |
| void | setEnableSqueezedText (bool enable) |
| bool | isSqueezedTextEnabled () const |
| TQString | originalText () const |
| void | setCompletionBox (TDECompletionBox *box) |
| void | setClickMessage (const TQString &msg) |
| TQString | clickMessage () const |
| Public Member Functions inherited from KoUnitDoubleBase | |
| KoUnitDoubleBase (KoUnit::Unit unit, unsigned int precision) | |
| void | setValueInUnit (double value, KoUnit::Unit unit) |
| void | setPrecision (unsigned int precision) |
Protected Member Functions | |
| bool | eventFilter (TQObject *obj, TQEvent *ev) |
| Protected Member Functions inherited from KLineEdit | |
| virtual void | resizeEvent (TQResizeEvent *) |
| virtual void | keyPressEvent (TQKeyEvent *) |
| virtual void | mousePressEvent (TQMouseEvent *) |
| virtual void | mouseDoubleClickEvent (TQMouseEvent *) |
| virtual void | mouseReleaseEvent (TQMouseEvent *) |
| virtual void | contextMenuEvent (TQContextMenuEvent *) |
| virtual TQPopupMenu * | createPopupMenu () |
| virtual void | drawContents (TQPainter *p) |
| virtual void | dropEvent (TQDropEvent *) |
| void | setUserSelection (bool userSelection) |
| virtual void | create (WId=0, bool initializeWindow=true, bool destroyOldWindow=true) |
| virtual void | focusInEvent (TQFocusEvent *) |
| virtual void | focusOutEvent (TQFocusEvent *) |
| bool | autoSuggest () const |
| Protected Member Functions inherited from KoUnitDoubleBase | |
| TQString | getVisibleText (double value) const |
| double | toDouble (const TQString &str, bool *ok) const |
Additional Inherited Members | |
| Public Slots inherited from KLineEdit | |
| virtual void | setReadOnly (bool) |
| void | rotateText (TDECompletionBase::KeyBindingType type) |
| virtual void | setCompletedText (const TQString &) |
| void | setCompletedItems (const TQStringList &items) |
| void | setCompletedItems (const TQStringList &items, bool autoSuggest) |
| virtual void | clear () |
| void | setSqueezedText (const TQString &text) |
| virtual void | setText (const TQString &) |
| Signals inherited from KLineEdit | |
| void | completionBoxActivated (const TQString &) |
| void | returnPressed (const TQString &) |
| void | completion (const TQString &) |
| void | substringCompletion (const TQString &) |
| void | textRotation (TDECompletionBase::KeyBindingType) |
| void | completionModeChanged (TDEGlobalSettings::Completion) |
| void | aboutToShowContextMenu (TQPopupMenu *p) |
| Protected Slots inherited from KLineEdit | |
| virtual void | makeCompletion (const TQString &) |
| void | slotAboutToShow () |
| void | slotCancelled () |
| void | userCancelled (const TQString &cancelText) |
| Protected Attributes inherited from KoUnitDoubleBase | |
| KoUnitDoubleValidator * | m_validator |
| KoUnit::Unit | m_unit |
| unsigned int | m_precision |
Detailed Description
Line edit for double precision numbers with unit display.
- Since
- 1.4 (change of behavior)
Definition at line 158 of file KoUnitWidgets.h.
Constructor & Destructor Documentation
◆ KoUnitDoubleLineEdit() [1/2]
| KoUnitDoubleLineEdit::KoUnitDoubleLineEdit | ( | TQWidget * | parent = 0L, |
| const char * | name = 0L ) |
Definition at line 222 of file KoUnitWidgets.cpp.
◆ KoUnitDoubleLineEdit() [2/2]
| KoUnitDoubleLineEdit::KoUnitDoubleLineEdit | ( | TQWidget * | parent, |
| double | lower, | ||
| double | upper, | ||
| double | value = 0.0, | ||
| KoUnit::Unit | unit = KoUnit::U_PT, | ||
| unsigned int | precision = 2, | ||
| const char * | name = 0 ) |
Definition at line 233 of file KoUnitWidgets.cpp.
Member Function Documentation
◆ changeValue()
|
virtual |
Implements KoUnitDoubleBase.
Definition at line 246 of file KoUnitWidgets.cpp.
◆ eventFilter()
|
protectedvirtual |
Reimplemented from KLineEdit.
Definition at line 263 of file KoUnitWidgets.cpp.
◆ setUnit()
|
virtual |
Implements KoUnitDoubleBase.
Definition at line 253 of file KoUnitWidgets.cpp.
◆ value()
| double KoUnitDoubleLineEdit::value | ( | void | ) | const |
- Returns
- the current value, converted in points
Definition at line 278 of file KoUnitWidgets.cpp.
The documentation for this class was generated from the following files:
