Main Page   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

QTextEdit Class Reference

Text edit widget. More...

#include <QTextEdit.h>

Inheritance diagram for QTextEdit:

Inheritance graph
[legend]
Collaboration diagram for QTextEdit:

Collaboration graph
[legend]

Public Methods

virtual void draw (QEvent *e)
 draws itself with OpenGL. Here is the OpenGL drawing code

virtual void layout ()
 layout the children widgets. This method is called every time the size is changed. Have to be overwritten for respond on size changes

virtual bool canDrag (QEvent *e)
 have to return true if widget should be dragged with mouse. This method is overwritten in sub classes. If returns true, widget will be dragged

virtual bool processEvent (QEvent *e)
 processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner

virtual bool processMouseOwner (QEvent *e)
 processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner

virtual void childrenChanged ()
 called if a child is added/removed

virtual bool canFocus (QEvent *e)
 defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus

virtual void Init ()
 initialization code

virtual void CleanUp ()
 clean up code

virtual int getCursorPos ()
 getter method for CursorPos

virtual void setCursorPos (int newValue)
 setter method for CursorPos

virtual string getText ()
 getter method for Text

virtual void setText (string newValue)
 setter method for Text

QFontgetFont ()
 getter method for Font

void print ()
 prints itself to the cout

 QTextEdit (QWidget *aOwner)
 Constructor.

virtual ~QTextEdit ()
 Destructor.

virtual void draw (QEvent *e)
 draws itself with OpenGL. Here is the OpenGL drawing code

virtual void layout ()
 layout the children widgets. This method is called every time the size is changed. Have to be overwritten for respond on size changes

virtual bool canDrag (QEvent *e)
 have to return true if widget should be dragged with mouse. This method is overwritten in sub classes. If returns true, widget will be dragged

virtual bool processEvent (QEvent *e)
 processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner

virtual bool processMouseOwner (QEvent *e)
 processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner

virtual void childrenChanged ()
 called if a child is added/removed

virtual bool canFocus (QEvent *e)
 defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus

virtual void Init ()
 initialization code

virtual void CleanUp ()
 clean up code

virtual int getCursorPos ()
 getter method for CursorPos

virtual void setCursorPos (int newValue)
 setter method for CursorPos

virtual string getText ()
 getter method for Text

virtual void setText (string newValue)
 setter method for Text

QFontgetFont ()
 getter method for Font

void print ()
 prints itself to the cout

 QTextEdit (QWidget *aOwner)
 Constructor.

virtual ~QTextEdit ()
 Destructor.


Protected Attributes

int CursorPos
 cursor Position

string Text
 text property

QFontFont
 widget for drawing text

QFontFont
 widget for drawing text


Detailed Description

Text edit widget.

Definition at line 17 of file QTextEdit.h.


Constructor & Destructor Documentation

QTextEdit::QTextEdit QWidget   aOwner
 

Constructor.

Definition at line 168 of file QTextEdit.cpp.

QTextEdit::~QTextEdit   [virtual]
 

Destructor.

Definition at line 179 of file QTextEdit.cpp.

QTextEdit::QTextEdit QWidget   aOwner
 

Constructor.

virtual QTextEdit::~QTextEdit   [virtual]
 

Destructor.


Member Function Documentation

virtual bool QTextEdit::canDrag QEvent   e [virtual]
 

have to return true if widget should be dragged with mouse. This method is overwritten in sub classes. If returns true, widget will be dragged

Reimplemented from QWidget.

bool QTextEdit::canDrag QEvent   e [virtual]
 

have to return true if widget should be dragged with mouse. This method is overwritten in sub classes. If returns true, widget will be dragged

Reimplemented from QWidget.

Definition at line 64 of file QTextEdit.cpp.

virtual bool QTextEdit::canFocus QEvent   e [virtual]
 

defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus

Reimplemented from QWidget.

bool QTextEdit::canFocus QEvent   e [virtual]
 

defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus

Reimplemented from QWidget.

Definition at line 104 of file QTextEdit.cpp.

virtual void QTextEdit::childrenChanged   [virtual]
 

called if a child is added/removed

Reimplemented from QWidget.

void QTextEdit::childrenChanged   [virtual]
 

called if a child is added/removed

Reimplemented from QWidget.

Definition at line 99 of file QTextEdit.cpp.

virtual void QTextEdit::CleanUp   [virtual]
 

clean up code

Reimplemented from QWidget.

void QTextEdit::CleanUp   [virtual]
 

clean up code

Reimplemented from QWidget.

Definition at line 118 of file QTextEdit.cpp.

virtual void QTextEdit::draw QEvent   e [virtual]
 

draws itself with OpenGL. Here is the OpenGL drawing code

Reimplemented from QWidget.

void QTextEdit::draw QEvent   e [virtual]
 

draws itself with OpenGL. Here is the OpenGL drawing code

Reimplemented from QWidget.

Definition at line 14 of file QTextEdit.cpp.

References QLookAndFeel::drawBevel(), QFont::drawInternal(), QLookAndFeel::drawRect(), Font, QLookAndFeel::getBackGroundColor(), QWidget::getFocused(), QWidget::getFocusPath(), QLookAndFeel::getHighlightColor(), QWidget::Height, QWidget::LookAndFeel, QWidget::Owner, QColor::setAsCurrent(), Text, and QWidget::Width.

virtual int QTextEdit::getCursorPos   [virtual]
 

getter method for CursorPos

int QTextEdit::getCursorPos   [virtual]
 

getter method for CursorPos

Definition at line 123 of file QTextEdit.cpp.

References CursorPos.

QFont* QTextEdit::getFont  
 

getter method for Font

QFont * QTextEdit::getFont  
 

getter method for Font

Definition at line 150 of file QTextEdit.cpp.

References Font.

virtual string QTextEdit::getText   [virtual]
 

getter method for Text

string QTextEdit::getText   [virtual]
 

getter method for Text

Definition at line 135 of file QTextEdit.cpp.

References Text.

Referenced by myMethod1().

virtual void QTextEdit::Init   [virtual]
 

initialization code

Reimplemented from QWidget.

void QTextEdit::Init   [virtual]
 

initialization code

Reimplemented from QWidget.

Definition at line 110 of file QTextEdit.cpp.

References QFont::copyFrom(), Font, QLookAndFeel::getFont(), QWidget::Height, QWidget::LookAndFeel, and QWidget::Width.

virtual void QTextEdit::layout   [virtual]
 

layout the children widgets. This method is called every time the size is changed. Have to be overwritten for respond on size changes

Reimplemented from QWidget.

void QTextEdit::layout   [virtual]
 

layout the children widgets. This method is called every time the size is changed. Have to be overwritten for respond on size changes

Reimplemented from QWidget.

Definition at line 59 of file QTextEdit.cpp.

void QTextEdit::print  
 

prints itself to the cout

Reimplemented from QWidget.

void QTextEdit::print  
 

prints itself to the cout

Reimplemented from QWidget.

Definition at line 158 of file QTextEdit.cpp.

virtual bool QTextEdit::processEvent QEvent   e [virtual]
 

processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner

Reimplemented from QWidget.

bool QTextEdit::processEvent QEvent   e [virtual]
 

processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner

Reimplemented from QWidget.

Definition at line 70 of file QTextEdit.cpp.

References QEvent::getKey(), QEvent::getType(), QEvent::print(), setText(), and Text.

virtual bool QTextEdit::processMouseOwner QEvent   e [virtual]
 

processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner

Reimplemented from QWidget.

bool QTextEdit::processMouseOwner QEvent   e [virtual]
 

processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner

Reimplemented from QWidget.

Definition at line 93 of file QTextEdit.cpp.

virtual void QTextEdit::setCursorPos int    newValue [virtual]
 

setter method for CursorPos

void QTextEdit::setCursorPos int    newValue [virtual]
 

setter method for CursorPos

Definition at line 129 of file QTextEdit.cpp.

References CursorPos.

virtual void QTextEdit::setText string    newValue [virtual]
 

setter method for Text

void QTextEdit::setText string    newValue [virtual]
 

setter method for Text

Definition at line 141 of file QTextEdit.cpp.

References Font, QFont::getTextWidth(), Text, and QWidget::Width.

Referenced by MyWindow::MyWindow(), and processEvent().


Field Documentation

int QTextEdit::CursorPos [protected]
 

cursor Position

Definition at line 22 of file QTextEdit.h.

Referenced by getCursorPos(), and setCursorPos().

QFont* QTextEdit::Font [protected]
 

widget for drawing text

Definition at line 28 of file QTextEdit.h.

QFont* QTextEdit::Font [protected]
 

widget for drawing text

Definition at line 27 of file QTextEdit.h.

Referenced by draw(), getFont(), Init(), and setText().

string QTextEdit::Text [protected]
 

text property

Definition at line 25 of file QTextEdit.h.

Referenced by draw(), getText(), processEvent(), and setText().


The documentation for this class was generated from the following files:
Generated on Thu Mar 18 18:34:32 2004 for miniQT by doxygen1.2.18