Move the caret / and selection commands.
More...
#include <selectionchange.h>
|
void | notifyChange () |
| This method is called internally for notifying the control the selection has been changed Perhaps we should make e proper emit-signal for this purpose.
|
|
Move the caret / and selection commands.
◆ SelectionChange()
The selection selection change constructor.
- Parameters
-
controller | the crontroler this selection change is for |
◆ ~SelectionChange()
edbee::SelectionChange::~SelectionChange |
( |
| ) |
|
|
virtual |
◆ execute()
void edbee::SelectionChange::execute |
( |
TextDocument * | document | ) |
|
|
virtual |
Executes the textchange.
- Parameters
-
document | the textdocument to execute this change for |
Implements edbee::Change.
◆ giveAndMerge()
bool edbee::SelectionChange::giveAndMerge |
( |
TextDocument * | document, |
|
|
Change * | textChange ) |
|
virtual |
This method tries to merge the given change with the other change The textChange supplied with this method. Should NOT have been executed yet. It's the choice of this merge operation if the execution is required.
Reimplemented from edbee::Change.
◆ giveTextRangeSet()
void edbee::SelectionChange::giveTextRangeSet |
( |
TextRangeSet * | rangeSet | ) |
|
|
virtual |
Gives the textrange to the textchange.
◆ notifyChange()
void edbee::SelectionChange::notifyChange |
( |
| ) |
|
|
protected |
This method is called internally for notifying the control the selection has been changed Perhaps we should make e proper emit-signal for this purpose.
- Todo
- : make the controllerContext only repaint the affected areas via the TextRangeSets
◆ rangeSet()
◆ revert()
void edbee::SelectionChange::revert |
( |
TextDocument * | document | ) |
|
|
virtual |
Reverts the selection change.
- Parameters
-
document | the textdocument to revert this change for |
Reimplemented from edbee::Change.
◆ takeRangeSet()
Takes ownership of the rangeset and clears the clearset.
- Returns
- the rangeset
◆ toString()
QString edbee::SelectionChange::toString |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following files: