Workspace 6.21.5
Public Member Functions | Public Attributes | List of all members
BlockData Class Reference

#include <Tools/Widgets/highlightingtextedit.h>

Inherits QTextBlockUserData.

Public Member Functions

 BlockData (bool isGhost)
 
void addInnerSelection (int start, int count)
 
void addInsertionPoint (int column)
 
void addOuterSelection (int start, int count)
 
void clearSelections ()
 
void setEmptyBlockSelectedMarker (bool isSelected)
 

Public Attributes

bool emptyBlockSelected_ {false}
 
QVector< StringFragmentinnerSelections_
 
QVector< int > insertionPoints_
 
bool isGhost_ {false}
 
QVector< StringFragmentouterSelections_
 

Detailed Description

Holds data about whether the block is real or ghost, and any highlighted insertion points An inner selection means the selection is wholly contained within a line, an outer carries over multiple lines. Distinguish between them if you want to highlight them differently

Constructor & Destructor Documentation

◆ BlockData()

BlockData ( bool  isGhost)
inline

Member Function Documentation

◆ addInnerSelection()

void addInnerSelection ( int  start,
int  count 
)

◆ addInsertionPoint()

void addInsertionPoint ( int  column)

◆ addOuterSelection()

void addOuterSelection ( int  start,
int  count 
)

◆ clearSelections()

void clearSelections ( )
inline

◆ setEmptyBlockSelectedMarker()

void setEmptyBlockSelectedMarker ( bool  isSelected)

Member Data Documentation

◆ emptyBlockSelected_

bool emptyBlockSelected_ {false}

◆ innerSelections_

QVector<StringFragment> innerSelections_

◆ insertionPoints_

QVector<int> insertionPoints_

◆ isGhost_

bool isGhost_ {false}

◆ outerSelections_

QVector<StringFragment> outerSelections_