lib Library API Documentation

KFormulaWidget Class Reference

The view. More...

#include <kformulawidget.h>

Inheritance diagram for KFormulaWidget:

Inheritance graph
[legend]
Collaboration diagram for KFormulaWidget:

Collaboration graph
[legend]
List of all members.

Public Slots

void slotSelectAll ()

Signals

void cursorChanged (bool visible, bool selecting)

Public Member Functions

 KFormulaWidget (Container *, QWidget *parent=0, const char *name=0, WFlags f=0)
QPoint 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 (QMouseEvent *event)
virtual void mouseReleaseEvent (QMouseEvent *event)
virtual void mouseDoubleClickEvent (QMouseEvent *event)
virtual void mouseMoveEvent (QMouseEvent *event)
virtual void wheelEvent (QWheelEvent *event)
virtual void paintEvent (QPaintEvent *event)
virtual void keyPressEvent (QKeyEvent *event)
virtual void focusInEvent (QFocusEvent *event)
virtual void focusOutEvent (QFocusEvent *event)
ContainergetDocument ()
FormulaCursorgetCursor ()

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.


Member Function Documentation

QPoint KFormulaWidget::getCursorPoint  )  const
 

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

Definition at line 59 of file kformulawidget.cc.

References View::getCursorPoint().

void KFormulaWidget::setReadOnly bool  ro  ) 
 

Puts the widget in read only mode.

Definition at line 64 of file kformulawidget.cc.

References View::setReadOnly().

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

Is emitted every time the cursor might have changed.

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

The formula has changed and needs to be redrawn.

Definition at line 126 of file kformulawidget.cc.

Container * KFormulaWidget::getDocument  )  [protected]
 

The document we show.

Definition at line 138 of file kformulawidget.cc.

References View::getDocument().

FormulaCursor * KFormulaWidget::getCursor  )  [protected]
 

Our cursor.

Definition at line 146 of file kformulawidget.cc.

References View::getCursor().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Mar 20 14:25:55 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003