QCodeEdit
2.2
|
A small structure holding placeholder data. More...
Classes | |
class | Affector |
A small class allowing "placeholder scripting". More... | |
Public Member Functions | |
PlaceHolder (const PlaceHolder &ph) | |
Public Attributes | |
int | length |
bool | autoRemove |
Affector * | affector |
QDocumentCursor | cursor |
QList< QDocumentCursor > | mirrors |
A small structure holding placeholder data.
Placeholders are basically lists of cursors. When several palceholders coexist, it is possible to navigate among them using the key assigned to that function by the current input binding (CTRL+arrows by default).
Each placeholder consist of a primary cursor and a list of mirrors (modeling the internals of QEditor and allowing extended snippet replacements easily).
Additionaly a placeholder can have an Affector which allows the text of the mirrors to be modified in any imaginable way