#include <kformulawidget.h>
Inherits TQWidget.
Public Slots | |
| void | slotSelectAll () |
Signals | |
| void | cursorChanged (bool visible, bool selecting) |
Public Member Functions | |
| KFormulaWidget (KFormula::Container *, TQWidget *parent=0, const char *name=0, WFlags f=0) | |
| TQPoint | getCursorPoint () const |
| void | setReadOnly (bool ro) |
| const KFormula::View * | view () const |
| KFormula::View * | view () |
Protected Slots | |
| void | slotFormulaChanged (int width, int height) |
| void | slotCursorChanged (bool visible, bool selecting) |
Protected Member Functions | |
| virtual void | mousePressEvent (TQMouseEvent *event) |
| virtual void | mouseReleaseEvent (TQMouseEvent *event) |
| virtual void | mouseDoubleClickEvent (TQMouseEvent *event) |
| virtual void | mouseMoveEvent (TQMouseEvent *event) |
| virtual void | paintEvent (TQPaintEvent *event) |
| virtual void | keyPressEvent (TQKeyEvent *event) |
| virtual void | focusInEvent (TQFocusEvent *event) |
| virtual void | focusOutEvent (TQFocusEvent *event) |
| KFormula::Container * | getDocument () |
| KFormula::FormulaCursor * | getCursor () |
Detailed Description
The view.
A widget that shows the formula. There are methods to move the cursor around. To edit the formula use the document.
Definition at line 44 of file kformulawidget.h.
Constructor & Destructor Documentation
◆ KFormulaWidget()
| KFormulaWidget::KFormulaWidget | ( | KFormula::Container * | doc, |
| TQWidget * | parent = 0, |
||
| const char * | name = 0, |
||
| WFlags | f = 0 |
||
| ) |
Definition at line 36 of file kformulawidget.cpp.
◆ ~KFormulaWidget()
| KFormulaWidget::~KFormulaWidget | ( | ) |
Definition at line 53 of file kformulawidget.cpp.
Member Function Documentation
◆ cursorChanged
|
signal |
Is emitted every time the cursor might have changed.
◆ focusInEvent()
|
protectedvirtual |
Definition at line 90 of file kformulawidget.cpp.
◆ focusOutEvent()
|
protectedvirtual |
Definition at line 95 of file kformulawidget.cpp.
◆ getCursor()
|
protected |
Our cursor.
Definition at line 140 of file kformulawidget.cpp.
◆ getCursorPoint()
| TQPoint KFormulaWidget::getCursorPoint | ( | ) | const |
- Returns
- the point inside the formula widget where the cursor is.
Definition at line 58 of file kformulawidget.cpp.
◆ getDocument()
|
protected |
The document we show.
Definition at line 132 of file kformulawidget.cpp.
◆ keyPressEvent()
|
protectedvirtual |
Definition at line 84 of file kformulawidget.cpp.
◆ mouseDoubleClickEvent()
|
protectedvirtual |
Definition at line 110 of file kformulawidget.cpp.
◆ mouseMoveEvent()
|
protectedvirtual |
Definition at line 115 of file kformulawidget.cpp.
◆ mousePressEvent()
|
protectedvirtual |
Definition at line 100 of file kformulawidget.cpp.
◆ mouseReleaseEvent()
|
protectedvirtual |
Definition at line 105 of file kformulawidget.cpp.
◆ paintEvent()
|
protectedvirtual |
Definition at line 69 of file kformulawidget.cpp.
◆ setReadOnly()
| void KFormulaWidget::setReadOnly | ( | bool | ro | ) |
Puts the widget in read only mode.
Definition at line 63 of file kformulawidget.cpp.
◆ slotCursorChanged
|
protectedslot |
Definition at line 151 of file kformulawidget.cpp.
◆ slotFormulaChanged
|
protectedslot |
The formula has changed and needs to be redrawn.
Definition at line 120 of file kformulawidget.cpp.
◆ slotSelectAll
|
slot |
Definition at line 146 of file kformulawidget.cpp.
◆ view() [1/2]
|
inline |
Definition at line 64 of file kformulawidget.h.
◆ view() [2/2]
|
inline |
Definition at line 63 of file kformulawidget.h.
The documentation for this class was generated from the following files:
