lib

#include <kformulawidget.h>

Public Slots

void slotSelectAll ()

Signals

void cursorChanged (bool visible, bool selecting)

Public Member Functions

 KFormulaWidget (Container *, TQWidget *parent=0, const char *name=0, WFlags f=0)
TQPoint getCursorPoint () const
void setReadOnly (bool ro)

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 wheelEvent (TQWheelEvent *event)
virtual void paintEvent (TQPaintEvent *event)
virtual void keyPressEvent (TQKeyEvent *event)
virtual void focusInEvent (TQFocusEvent *event)
virtual void focusOutEvent (TQFocusEvent *event)
Container * getDocument ()
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 48 of file kformulawidget.h.

Constructor & Destructor Documentation

◆ KFormulaWidget()

KFormulaWidget::KFormulaWidget ( Container * doc,
TQWidget * parent = 0,
const char * name = 0,
WFlags f = 0 )

Definition at line 38 of file kformulawidget.cpp.

◆ ~KFormulaWidget()

KFormulaWidget::~KFormulaWidget ( )

Definition at line 54 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 91 of file kformulawidget.cpp.

◆ focusOutEvent()

void KFormulaWidget::focusOutEvent ( TQFocusEvent * event)
protectedvirtual

Definition at line 96 of file kformulawidget.cpp.

◆ getCursor()

FormulaCursor * KFormulaWidget::getCursor ( )
protected

Our cursor.

Definition at line 146 of file kformulawidget.cpp.

◆ getCursorPoint()

TQPoint KFormulaWidget::getCursorPoint ( ) const
Returns
the point inside the formula widget where the cursor is.

Definition at line 59 of file kformulawidget.cpp.

◆ getDocument()

Container * KFormulaWidget::getDocument ( )
protected

The document we show.

Definition at line 138 of file kformulawidget.cpp.

◆ keyPressEvent()

void KFormulaWidget::keyPressEvent ( TQKeyEvent * event)
protectedvirtual

Definition at line 85 of file kformulawidget.cpp.

◆ mouseDoubleClickEvent()

void KFormulaWidget::mouseDoubleClickEvent ( TQMouseEvent * event)
protectedvirtual

Definition at line 111 of file kformulawidget.cpp.

◆ mouseMoveEvent()

void KFormulaWidget::mouseMoveEvent ( TQMouseEvent * event)
protectedvirtual

Definition at line 116 of file kformulawidget.cpp.

◆ mousePressEvent()

void KFormulaWidget::mousePressEvent ( TQMouseEvent * event)
protectedvirtual

Definition at line 101 of file kformulawidget.cpp.

◆ mouseReleaseEvent()

void KFormulaWidget::mouseReleaseEvent ( TQMouseEvent * event)
protectedvirtual

Definition at line 106 of file kformulawidget.cpp.

◆ paintEvent()

void KFormulaWidget::paintEvent ( TQPaintEvent * event)
protectedvirtual

Definition at line 70 of file kformulawidget.cpp.

◆ setReadOnly()

void KFormulaWidget::setReadOnly ( bool ro)

Puts the widget in read only mode.

Definition at line 64 of file kformulawidget.cpp.

◆ slotCursorChanged

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

Definition at line 157 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 126 of file kformulawidget.cpp.

◆ slotSelectAll

void KFormulaWidget::slotSelectAll ( )
slot

Definition at line 152 of file kformulawidget.cpp.

◆ wheelEvent()

void KFormulaWidget::wheelEvent ( TQWheelEvent * event)
protectedvirtual

Definition at line 121 of file kformulawidget.cpp.


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