This is the main texteditor-component (which is the true editor) This is the QWidget that recieves the keypresses, mouse presses etc.
More...
#include <texteditorcomponent.h>
|
void | repaintCarets () |
| This method repaints 'all' carets.
|
|
virtual void | updateLineAtOffset (int offset) |
| updates the given line so it will be repainted
|
|
virtual void | updateAreaAroundOffset (int offset, int width=8) |
| updates the character before and at the given offset
|
|
virtual void | updateLine (int line, int length) |
| This method invalidates the given lines.
|
|
This is the main texteditor-component (which is the true editor) This is the QWidget that recieves the keypresses, mouse presses etc.
◆ TextEditorComponent()
edbee::TextEditorComponent::TextEditorComponent |
( |
TextEditorController * | controller, |
|
|
QWidget * | parent = 0 ) |
|
explicit |
The default texteditor compenent constructor.
- Parameters
-
controller | the active controller for this editor |
parent | the parent QObject |
◆ ~TextEditorComponent()
edbee::TextEditorComponent::~TextEditorComponent |
( |
| ) |
|
|
virtual |
The destructor of the the component.
◆ commandMap()
Returns the active commandmap.
◆ config()
Returns the active configuration.
◆ contextMenuEvent()
void edbee::TextEditorComponent::contextMenuEvent |
( |
QContextMenuEvent * | event | ) |
|
|
protectedvirtual |
The default context menu is requested Add the default menu actions.
◆ controller()
Returns the active texteditor controller.
◆ event()
bool edbee::TextEditorComponent::event |
( |
QEvent * | event | ) |
|
|
protectedvirtual |
This method is used to FORCE the interception of tab events.
- Parameters
-
◆ focusInEvent()
void edbee::TextEditorComponent::focusInEvent |
( |
QFocusEvent * | event | ) |
|
|
protectedvirtual |
A focus in event occured.
◆ focusOutEvent()
void edbee::TextEditorComponent::focusOutEvent |
( |
QFocusEvent * | event | ) |
|
|
protectedvirtual |
The focus is lost, we must STOP coalescing of undo-events!
◆ fullUpdate()
void edbee::TextEditorComponent::fullUpdate |
( |
| ) |
|
A slow and full update of the control.
◆ giveTextEditorRenderer()
◆ hideEvent()
void edbee::TextEditorComponent::hideEvent |
( |
QHideEvent * | hideEvent | ) |
|
|
protectedvirtual |
◆ inputMethodEvent()
void edbee::TextEditorComponent::inputMethodEvent |
( |
QInputMethodEvent * | m | ) |
|
|
protected |
◆ inputMethodQuery()
QVariant edbee::TextEditorComponent::inputMethodQuery |
( |
Qt::InputMethodQuery | p | ) |
const |
|
protected |
◆ keyMap()
Returns the current keymap.
◆ keyPressEvent()
void edbee::TextEditorComponent::keyPressEvent |
( |
QKeyEvent * | event | ) |
|
|
protectedvirtual |
◆ keyReleaseEvent()
void edbee::TextEditorComponent::keyReleaseEvent |
( |
QKeyEvent * | event | ) |
|
|
protectedvirtual |
◆ mouseDoubleClickEvent()
void edbee::TextEditorComponent::mouseDoubleClickEvent |
( |
QMouseEvent * | event | ) |
|
|
protectedvirtual |
A mouse double click happens.
- Parameters
-
event | the mouse double click that occured |
◆ mouseMoveEvent()
void edbee::TextEditorComponent::mouseMoveEvent |
( |
QMouseEvent * | event | ) |
|
|
protectedvirtual |
A mouse move event.
- Parameters
-
◆ mousePressEvent()
void edbee::TextEditorComponent::mousePressEvent |
( |
QMouseEvent * | event | ) |
|
|
protectedvirtual |
A mouse press happens.
The normal operation is to move the caret to the character under the given mouse position. When shift is pressed, the selection is extended to the given position
If the controller modifier is used a new caret is added to character at the given position
- Parameters
-
◆ mouseReleaseEvent()
void edbee::TextEditorComponent::mouseReleaseEvent |
( |
QMouseEvent * | event | ) |
|
|
protectedvirtual |
A mouse release happens.
Only used to copy selection to selection clipboard for X11 / linux systems
- Parameters
-
◆ moveEvent()
void edbee::TextEditorComponent::moveEvent |
( |
QMoveEvent * | moveEvent | ) |
|
|
protectedvirtual |
◆ paintEvent()
void edbee::TextEditorComponent::paintEvent |
( |
QPaintEvent * | paintEvent | ) |
|
|
protectedvirtual |
paint the editor
- Parameters
-
paintEvent | the paint event that occured |
◆ registerClickEvent()
void edbee::TextEditorComponent::registerClickEvent |
( |
| ) |
|
|
protected |
registers a click event and modifies the clickcount and last-click moment
◆ repaintCarets
void edbee::TextEditorComponent::repaintCarets |
( |
| ) |
|
|
slot |
This method repaints 'all' carets.
- Todo
- : Optimize so only blinks visible carets
◆ resetCaretTime()
void edbee::TextEditorComponent::resetCaretTime |
( |
| ) |
|
This method resets the caret timer The caret time is used for blinking carets When resetting the timer the caret is displayed directly.
◆ sizeHint()
QSize edbee::TextEditorComponent::sizeHint |
( |
| ) |
const |
|
virtual |
returns the size hint. This is the total size of the editor-area
◆ textDocument()
TextDocument * edbee::TextEditorComponent::textDocument |
( |
| ) |
const |
Returns the active textdocument.
◆ textEditorRenderer()
◆ textKeyPressed
void edbee::TextEditorComponent::textKeyPressed |
( |
| ) |
|
|
signal |
◆ textSelection()
Returns the texselection range.
◆ updateAreaAroundOffset
void edbee::TextEditorComponent::updateAreaAroundOffset |
( |
int | offset, |
|
|
int | width = 8 ) |
|
virtualslot |
updates the character before and at the given offset
◆ updateLine
void edbee::TextEditorComponent::updateLine |
( |
int | line, |
|
|
int | length ) |
|
virtualslot |
This method invalidates the given lines.
- Parameters
-
line | the first line to update |
length | the number of lines to update |
◆ updateLineAtOffset
void edbee::TextEditorComponent::updateLineAtOffset |
( |
int | offset | ) |
|
|
virtualslot |
updates the given line so it will be repainted
The documentation for this class was generated from the following files: