kformula

#include <kformulawidget.h>

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

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

Is emitted every time the cursor might have changed.

◆ focusInEvent()

void KFormulaWidget::focusInEvent ( TQFocusEvent * event)
protectedvirtual

Definition at line 90 of file kformulawidget.cpp.

◆ focusOutEvent()

void KFormulaWidget::focusOutEvent ( TQFocusEvent * event)
protectedvirtual

Definition at line 95 of file kformulawidget.cpp.

◆ getCursor()

KFormula::FormulaCursor * KFormulaWidget::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()

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

The document we show.

Definition at line 132 of file kformulawidget.cpp.

◆ keyPressEvent()

void KFormulaWidget::keyPressEvent ( TQKeyEvent * event)
protectedvirtual

Definition at line 84 of file kformulawidget.cpp.

◆ mouseDoubleClickEvent()

void KFormulaWidget::mouseDoubleClickEvent ( TQMouseEvent * event)
protectedvirtual

Definition at line 110 of file kformulawidget.cpp.

◆ mouseMoveEvent()

void KFormulaWidget::mouseMoveEvent ( TQMouseEvent * event)
protectedvirtual

Definition at line 115 of file kformulawidget.cpp.

◆ mousePressEvent()

void KFormulaWidget::mousePressEvent ( TQMouseEvent * event)
protectedvirtual

Definition at line 100 of file kformulawidget.cpp.

◆ mouseReleaseEvent()

void KFormulaWidget::mouseReleaseEvent ( TQMouseEvent * event)
protectedvirtual

Definition at line 105 of file kformulawidget.cpp.

◆ paintEvent()

void KFormulaWidget::paintEvent ( TQPaintEvent * event)
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

void KFormulaWidget::slotCursorChanged ( bool visible,
bool selecting )
protectedslot

Definition at line 151 of file kformulawidget.cpp.

◆ slotFormulaChanged

void KFormulaWidget::slotFormulaChanged ( int width,
int height )
protectedslot

The formula has changed and needs to be redrawn.

Definition at line 120 of file kformulawidget.cpp.

◆ slotSelectAll

void KFormulaWidget::slotSelectAll ( )
slot

Definition at line 146 of file kformulawidget.cpp.

◆ view() [1/2]

KFormula::View * KFormulaWidget::view ( )
inline

Definition at line 64 of file kformulawidget.h.

◆ view() [2/2]

const KFormula::View * KFormulaWidget::view ( ) const
inline

Definition at line 63 of file kformulawidget.h.


The documentation for this class was generated from the following files: