View Class Reference
The view that shows the formula. More...
#include <kformulaview.h>
Inheritance diagram for View:


Public Slots | |
void | slotSelectAll () |
Signals | |
void | cursorChanged (bool visible, bool selecting) |
Public Member Functions | |
View (Container *) | |
QPoint | getCursorPoint () const |
void | setReadOnly (bool ro) |
void | mousePressEvent (QMouseEvent *event) |
void | mouseReleaseEvent (QMouseEvent *event) |
void | mouseDoubleClickEvent (QMouseEvent *event) |
void | mouseMoveEvent (QMouseEvent *event) |
void | wheelEvent (QWheelEvent *event) |
void | mousePressEvent (QMouseEvent *event, const PtPoint &pos) |
void | mouseReleaseEvent (QMouseEvent *event, const PtPoint &pos) |
void | mouseDoubleClickEvent (QMouseEvent *event, const PtPoint &pos) |
void | mouseMoveEvent (QMouseEvent *event, const PtPoint &pos) |
void | wheelEvent (QWheelEvent *event, const PtPoint &pos) |
void | mousePressEvent (QMouseEvent *event, const LuPixelPoint &pos) |
void | mouseReleaseEvent (QMouseEvent *event, const LuPixelPoint &pos) |
void | mouseDoubleClickEvent (QMouseEvent *event, const LuPixelPoint &pos) |
void | mouseMoveEvent (QMouseEvent *event, const LuPixelPoint &pos) |
void | wheelEvent (QWheelEvent *event, const LuPixelPoint &pos) |
void | keyPressEvent (QKeyEvent *event) |
virtual void | focusInEvent (QFocusEvent *event) |
virtual void | focusOutEvent (QFocusEvent *event) |
void | calcCursor () |
void | draw (QPainter &painter, const QRect &rect, const QColorGroup &cg) |
void | draw (QPainter &painter, const QRect &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 (QString str) |
Protected Slots | |
void | slotCursorMoved (FormulaCursor *cursor) |
void | slotFormulaLoaded (FormulaElement *) |
void | slotElementWillVanish (BasicElement *) |
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.
Member Function Documentation
|
Definition at line 102 of file kformulaview.cc. References KoZoomHandler::layoutUnitToPixel(). Referenced by KFormulaWidget::getCursorPoint(). |
|
Puts the widget in read only mode.
Definition at line 107 of file kformulaview.cc. References FormulaCursor::setReadOnly(). Referenced by KFormulaWidget::setReadOnly(). |
|
The document we show.
Definition at line 100 of file kformulaview.h. Referenced by KFormulaWidget::getDocument(). |
|
Our cursor.
Definition at line 105 of file kformulaview.h. Referenced by KFormulaWidget::getCursor(). |
|
Definition at line 318 of file kformulaview.cc. References FormulaCursor::isHome(). |
|
Definition at line 323 of file kformulaview.cc. References FormulaCursor::isEnd(). |
|
Is emitted every time the cursor might have changed.
|
|
The cursor has been moved by the container. We need to repaint if it was ours. Definition at line 248 of file kformulaview.cc. |
|
A new formula has been loaded.
Definition at line 256 of file kformulaview.cc. References FormulaCursor::formulaLoaded(). |
|
There is an element that will disappear from the tree. our cursor must not be inside it. Definition at line 261 of file kformulaview.cc. References FormulaCursor::elementWillVanish(). |
The documentation for this class was generated from the following files: