edbee - Qt Editor Library
Public Member Functions | List of all members
edbee::ScopedTextRangeList Class Reference

a list of textscopes This class is used for single-line scopes (Todo, this needs to be optimized) More...

#include <textdocumentscopes.h>

+ Collaboration diagram for edbee::ScopedTextRangeList:

Public Member Functions

 ScopedTextRangeList ()
 A scoped textrange lsit. More...
 
virtual ~ScopedTextRangeList ()
 The default destructor. More...
 
int size () const
 Retursn the number of scoped textranges in the list. More...
 
ScopedTextRangeat (int idx)
 Returns the scoped textrange at the given list. More...
 
void giveRange (ScopedTextRange *at)
 give a rnage to the range set More...
 
void giveAndPrependRange (ScopedTextRange *range)
 Prepends a range. More...
 
void squeeze ()
 Squeezes the ranges (reduces the memory usage) More...
 
void setIndependent (bool enable=true)
 set the independent flag. The independent flag means it's not dependent on other lines More...
 
bool isIndependent () const
 returns the independent flag More...
 
QString toString ()
 Converts the scoped textrange list to a strubg. More...
 

Detailed Description

a list of textscopes This class is used for single-line scopes (Todo, this needs to be optimized)

Constructor & Destructor Documentation

◆ ScopedTextRangeList()

edbee::ScopedTextRangeList::ScopedTextRangeList ( )
explicit

A scoped textrange lsit.

◆ ~ScopedTextRangeList()

edbee::ScopedTextRangeList::~ScopedTextRangeList ( )
virtual

The default destructor.

Member Function Documentation

◆ at()

ScopedTextRange * edbee::ScopedTextRangeList::at ( int  idx)

Returns the scoped textrange at the given list.

◆ giveAndPrependRange()

void edbee::ScopedTextRangeList::giveAndPrependRange ( ScopedTextRange range)

Prepends a range.

Parameters
rangethe range to prepend

◆ giveRange()

void edbee::ScopedTextRangeList::giveRange ( ScopedTextRange range)

give a rnage to the range set

Parameters
rangethe scoped text range

◆ isIndependent()

bool edbee::ScopedTextRangeList::isIndependent ( ) const

returns the independent flag

◆ setIndependent()

void edbee::ScopedTextRangeList::setIndependent ( bool  enable = true)

set the independent flag. The independent flag means it's not dependent on other lines

◆ size()

int edbee::ScopedTextRangeList::size ( ) const

Retursn the number of scoped textranges in the list.

◆ squeeze()

void edbee::ScopedTextRangeList::squeeze ( )

Squeezes the ranges (reduces the memory usage)

◆ toString()

QString edbee::ScopedTextRangeList::toString ( )

Converts the scoped textrange list to a strubg.


The documentation for this class was generated from the following files: