kformula

KFormulaWidget Class Reference

#include <kformulawidget.h>

List of all members.


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.


Public Slots

void slotSelectAll ()

Signals

void cursorChanged (bool visible, bool selecting)

Public Member Functions

 KFormulaWidget (KFormula::Container *, QWidget *parent=0, const char *name=0, WFlags f=0)
 ~KFormulaWidget ()
QPoint 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 (QMouseEvent *event)
virtual void mouseReleaseEvent (QMouseEvent *event)
virtual void mouseDoubleClickEvent (QMouseEvent *event)
virtual void mouseMoveEvent (QMouseEvent *event)
virtual void paintEvent (QPaintEvent *event)
virtual void keyPressEvent (QKeyEvent *event)
virtual void focusInEvent (QFocusEvent *event)
virtual void focusOutEvent (QFocusEvent *event)
KFormula::Container * getDocument ()
KFormula::FormulaCursor * getCursor ()

Member Function Documentation

void KFormulaWidget::cursorChanged ( bool  visible,
bool  selecting 
) [signal]

Is emitted every time the cursor might have changed.

KFormula::FormulaCursor * KFormulaWidget::getCursor (  )  [protected]

Our cursor.

Definition at line 140 of file kformulawidget.cc.

QPoint KFormulaWidget::getCursorPoint (  )  const

Returns:
the point inside the formula widget where the cursor is.

Definition at line 58 of file kformulawidget.cc.

KFormula::Container * KFormulaWidget::getDocument (  )  [protected]

The document we show.

Definition at line 132 of file kformulawidget.cc.

void KFormulaWidget::setReadOnly ( bool  ro  ) 

Puts the widget in read only mode.

Definition at line 63 of file kformulawidget.cc.

void KFormulaWidget::slotFormulaChanged ( int  width,
int  height 
) [protected, slot]

The formula has changed and needs to be redrawn.

Definition at line 120 of file kformulawidget.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys