#include <QTextEdit.h>
Inheritance diagram for QTextEdit:


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 | |
| QFont * | getFont () |
| 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 | |
| QFont * | getFont () |
| 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 | |
| QFont * | Font |
| widget for drawing text | |
| QFont * | Font |
| widget for drawing text | |
Definition at line 17 of file QTextEdit.h.
|
|
Constructor.
Definition at line 168 of file QTextEdit.cpp. |
|
|
Destructor.
Definition at line 179 of file QTextEdit.cpp. |
|
|
Constructor.
|
|
|
Destructor.
|
|
|
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. |
|
|
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. |
|
|
defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus
Reimplemented from QWidget. |
|
|
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. |
|
|
called if a child is added/removed
Reimplemented from QWidget. |
|
|
called if a child is added/removed
Reimplemented from QWidget. Definition at line 99 of file QTextEdit.cpp. |
|
|
clean up code
Reimplemented from QWidget. |
|
|
clean up code
Reimplemented from QWidget. Definition at line 118 of file QTextEdit.cpp. |
|
|
draws itself with OpenGL. Here is the OpenGL drawing code
Reimplemented from QWidget. |
|
|
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. |
|
|
getter method for CursorPos
|
|
|
getter method for CursorPos
Definition at line 123 of file QTextEdit.cpp. References CursorPos. |
|
|
getter method for Font
|
|
|
getter method for Font
Definition at line 150 of file QTextEdit.cpp. References Font. |
|
|
getter method for Text
|
|
|
getter method for Text
Definition at line 135 of file QTextEdit.cpp. References Text. Referenced by myMethod1(). |
|
|
initialization code
Reimplemented from QWidget. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
prints itself to the cout
Reimplemented from QWidget. |
|
|
prints itself to the cout
Reimplemented from QWidget. Definition at line 158 of file QTextEdit.cpp. |
|
|
processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner
Reimplemented from QWidget. |
|
|
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. |
|
|
processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner
Reimplemented from QWidget. |
|
|
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. |
|
|
setter method for CursorPos
|
|
|
setter method for CursorPos
Definition at line 129 of file QTextEdit.cpp. References CursorPos. |
|
|
setter method for Text
|
|
|
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(). |
|
|
cursor Position
Definition at line 22 of file QTextEdit.h. Referenced by getCursorPos(), and setCursorPos(). |
|
|
widget for drawing text
Definition at line 28 of file QTextEdit.h. |
|
|
widget for drawing text
Definition at line 27 of file QTextEdit.h. |
|
|
text property
Definition at line 25 of file QTextEdit.h. Referenced by draw(), getText(), processEvent(), and setText(). |
1.2.18