edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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.
 
virtual ~ScopedTextRangeList ()
 The default destructor.
 
int size () const
 Retursn the number of scoped textranges in the list.
 
ScopedTextRangeat (int idx)
 Returns the scoped textrange at the given list.
 
void giveRange (ScopedTextRange *at)
 give a rnage to the range set
 
void giveAndPrependRange (ScopedTextRange *range)
 Prepends a range.
 
void squeeze ()
 Squeezes the ranges (reduces the memory usage)
 
void setIndependent (bool enable=true)
 set the independent flag. The independent flag means it's not dependent on other lines
 
bool isIndependent () const
 returns the independent flag
 
QString toString ()
 Converts the scoped textrange list to a strubg.
 

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: