QCodeEdit  2.2
Classes | Public Member Functions | Public Attributes | List of all members
QEditor::PlaceHolder Struct Reference

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
 
Affectoraffector
 
QDocumentCursor cursor
 
QList< QDocumentCursormirrors
 

Detailed Description

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


The documentation for this struct was generated from the following file: