#include <kformulaview.h>
Public Slots | |
| void | slotSelectAll () |
Signals | |
| void | cursorChanged (bool visible, bool selecting) |
Public Member Functions | |
| View (Container *) | |
| TQPoint | getCursorPoint () const |
| void | setReadOnly (bool ro) |
| void | mousePressEvent (TQMouseEvent *event) |
| void | mouseReleaseEvent (TQMouseEvent *event) |
| void | mouseDoubleClickEvent (TQMouseEvent *event) |
| void | mouseMoveEvent (TQMouseEvent *event) |
| void | wheelEvent (TQWheelEvent *event) |
| void | mousePressEvent (TQMouseEvent *event, const PtPoint &pos) |
| void | mouseReleaseEvent (TQMouseEvent *event, const PtPoint &pos) |
| void | mouseDoubleClickEvent (TQMouseEvent *event, const PtPoint &pos) |
| void | mouseMoveEvent (TQMouseEvent *event, const PtPoint &pos) |
| void | wheelEvent (TQWheelEvent *event, const PtPoint &pos) |
| void | mousePressEvent (TQMouseEvent *event, const LuPixelPoint &pos) |
| void | mouseReleaseEvent (TQMouseEvent *event, const LuPixelPoint &pos) |
| void | mouseDoubleClickEvent (TQMouseEvent *event, const LuPixelPoint &pos) |
| void | mouseMoveEvent (TQMouseEvent *event, const LuPixelPoint &pos) |
| void | wheelEvent (TQWheelEvent *event, const LuPixelPoint &pos) |
| void | keyPressEvent (TQKeyEvent *event) |
| virtual void | focusInEvent (TQFocusEvent *event) |
| virtual void | focusOutEvent (TQFocusEvent *event) |
| void | calcCursor () |
| void | draw (TQPainter &painter, const TQRect &rect, const TQColorGroup &cg) |
| void | draw (TQPainter &painter, const TQRect &rect) |
| virtual Container * | getDocument () const |
| FormulaCursor * | getCursor () const |
| void | setSmallCursor (bool small) |
| void | moveLeft (int flag=NormalMovement) |
| void | moveRight (int flag=NormalMovement) |
| void | moveUp (int flag=NormalMovement) |
| void | moveDown (int flag=NormalMovement) |
| void | moveHome (int flag=NormalMovement) |
| void | moveEnd (int flag=NormalMovement) |
| bool | isHome () const |
| bool | isEnd () const |
| void | eraseSelection (Direction direction=beforeCursor) |
| void | addText (TQString str) |
Protected Slots | |
| void | slotCursorMoved (FormulaCursor *cursor) |
| void | slotFormulaLoaded (FormulaElement *) |
| void | slotElementWillVanish (BasicElement *) |
| void | slotBlinkCursor () |
Protected Member Functions | |
| virtual bool | cursorVisible () |
Detailed Description
The view that shows the formula.
Its main purpose is to handle the cursor. There are methods to move the cursor around. To edit the formula use the document.
The view is meant to be easy embeddable into a widget or to be used alone if there is a bigger widget the formula is to be drawn into.
Definition at line 50 of file kformulaview.h.
Constructor & Destructor Documentation
◆ View()
| View::View | ( | Container * | doc | ) |
Definition at line 121 of file kformulaview.cpp.
◆ ~View()
|
virtual |
Definition at line 127 of file kformulaview.cpp.
Member Function Documentation
◆ addText()
| void View::addText | ( | TQString | str | ) |
Definition at line 381 of file kformulaview.cpp.
◆ calcCursor()
| void View::calcCursor | ( | ) |
Definition at line 144 of file kformulaview.cpp.
◆ cursorChanged
|
signal |
Is emitted every time the cursor might have changed.
◆ cursorVisible()
|
protectedvirtual |
Definition at line 405 of file kformulaview.cpp.
◆ draw() [1/2]
| void View::draw | ( | TQPainter & | painter, |
| const TQRect & | rect ) |
Definition at line 161 of file kformulaview.cpp.
◆ draw() [2/2]
| void View::draw | ( | TQPainter & | painter, |
| const TQRect & | rect, | ||
| const TQColorGroup & | cg ) |
Definition at line 150 of file kformulaview.cpp.
◆ eraseSelection()
| void View::eraseSelection | ( | Direction | direction = beforeCursor | ) |
Definition at line 375 of file kformulaview.cpp.
◆ focusInEvent()
|
virtual |
Definition at line 176 of file kformulaview.cpp.
◆ focusOutEvent()
|
virtual |
Definition at line 186 of file kformulaview.cpp.
◆ getCursor()
|
inline |
Our cursor.
Definition at line 106 of file kformulaview.h.
◆ getCursorPoint()
| TQPoint View::getCursorPoint | ( | ) | const |
- Returns
- the point inside the formula view where the cursor is.
Definition at line 133 of file kformulaview.cpp.
◆ getDocument()
|
inlinevirtual |
The document we show.
Definition at line 101 of file kformulaview.h.
◆ isEnd()
| bool View::isEnd | ( | ) | const |
- Returns
- whether the cursor is at the last position.
Definition at line 370 of file kformulaview.cpp.
◆ isHome()
| bool View::isHome | ( | ) | const |
- Returns
- whether the cursor is at the first position.
Definition at line 365 of file kformulaview.cpp.
◆ keyPressEvent()
| void View::keyPressEvent | ( | TQKeyEvent * | event | ) |
Definition at line 170 of file kformulaview.cpp.
◆ mouseDoubleClickEvent() [1/3]
| void View::mouseDoubleClickEvent | ( | TQMouseEvent * | event | ) |
Definition at line 207 of file kformulaview.cpp.
◆ mouseDoubleClickEvent() [2/3]
| void View::mouseDoubleClickEvent | ( | TQMouseEvent * | event, |
| const LuPixelPoint & | pos ) |
Definition at line 270 of file kformulaview.cpp.
◆ mouseDoubleClickEvent() [3/3]
| void View::mouseDoubleClickEvent | ( | TQMouseEvent * | event, |
| const PtPoint & | pos ) |
Definition at line 237 of file kformulaview.cpp.
◆ mouseMoveEvent() [1/3]
| void View::mouseMoveEvent | ( | TQMouseEvent * | event | ) |
Definition at line 213 of file kformulaview.cpp.
◆ mouseMoveEvent() [2/3]
| void View::mouseMoveEvent | ( | TQMouseEvent * | event, |
| const LuPixelPoint & | pos ) |
Definition at line 277 of file kformulaview.cpp.
◆ mouseMoveEvent() [3/3]
| void View::mouseMoveEvent | ( | TQMouseEvent * | event, |
| const PtPoint & | pos ) |
Definition at line 243 of file kformulaview.cpp.
◆ mousePressEvent() [1/3]
| void View::mousePressEvent | ( | TQMouseEvent * | event | ) |
Definition at line 195 of file kformulaview.cpp.
◆ mousePressEvent() [2/3]
| void View::mousePressEvent | ( | TQMouseEvent * | event, |
| const LuPixelPoint & | pos ) |
Definition at line 256 of file kformulaview.cpp.
◆ mousePressEvent() [3/3]
| void View::mousePressEvent | ( | TQMouseEvent * | event, |
| const PtPoint & | pos ) |
Definition at line 225 of file kformulaview.cpp.
◆ mouseReleaseEvent() [1/3]
| void View::mouseReleaseEvent | ( | TQMouseEvent * | event | ) |
Definition at line 201 of file kformulaview.cpp.
◆ mouseReleaseEvent() [2/3]
| void View::mouseReleaseEvent | ( | TQMouseEvent * | event, |
| const LuPixelPoint & | pos ) |
Definition at line 263 of file kformulaview.cpp.
◆ mouseReleaseEvent() [3/3]
| void View::mouseReleaseEvent | ( | TQMouseEvent * | event, |
| const PtPoint & | pos ) |
Definition at line 231 of file kformulaview.cpp.
◆ moveDown()
| void View::moveDown | ( | int | flag = NormalMovement | ) |
Definition at line 340 of file kformulaview.cpp.
◆ moveEnd()
| void View::moveEnd | ( | int | flag = NormalMovement | ) |
Definition at line 353 of file kformulaview.cpp.
◆ moveHome()
| void View::moveHome | ( | int | flag = NormalMovement | ) |
Definition at line 347 of file kformulaview.cpp.
◆ moveLeft()
| void View::moveLeft | ( | int | flag = NormalMovement | ) |
Definition at line 322 of file kformulaview.cpp.
◆ moveRight()
| void View::moveRight | ( | int | flag = NormalMovement | ) |
Definition at line 328 of file kformulaview.cpp.
◆ moveUp()
| void View::moveUp | ( | int | flag = NormalMovement | ) |
Definition at line 334 of file kformulaview.cpp.
◆ setReadOnly()
| void View::setReadOnly | ( | bool | ro | ) |
Puts the widget in read only mode.
Definition at line 138 of file kformulaview.cpp.
◆ setSmallCursor()
| void View::setSmallCursor | ( | bool | small | ) |
Definition at line 360 of file kformulaview.cpp.
◆ slotBlinkCursor
|
protectedslot |
Tell the cursor to change its visibility status.
Definition at line 308 of file kformulaview.cpp.
◆ slotCursorMoved
|
protectedslot |
The cursor has been moved by the container.
We need to repaint if it was ours.
Definition at line 289 of file kformulaview.cpp.
◆ slotElementWillVanish
|
protectedslot |
There is an element that will disappear from the tree.
our cursor must not be inside it.
Definition at line 302 of file kformulaview.cpp.
◆ slotFormulaLoaded
|
protectedslot |
A new formula has been loaded.
Definition at line 297 of file kformulaview.cpp.
◆ slotSelectAll
|
slot |
Definition at line 314 of file kformulaview.cpp.
◆ wheelEvent() [1/3]
| void View::wheelEvent | ( | TQWheelEvent * | event | ) |
Definition at line 219 of file kformulaview.cpp.
◆ wheelEvent() [2/3]
| void View::wheelEvent | ( | TQWheelEvent * | event, |
| const LuPixelPoint & | pos ) |
Definition at line 284 of file kformulaview.cpp.
◆ wheelEvent() [3/3]
| void View::wheelEvent | ( | TQWheelEvent * | event, |
| const PtPoint & | pos ) |
Definition at line 249 of file kformulaview.cpp.
The documentation for this class was generated from the following files:
