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

The scope manager is used to manage the scopes... A scope consist out of several scope-parts: More...

#include <textdocumentscopes.h>

+ Collaboration diagram for edbee::TextScopeManager:

Public Member Functions

 TextScopeManager ()
 The scopemanager constructor. More...
 
virtual ~TextScopeManager ()
 The destructor of the scope manager. More...
 
void reset ()
 This method clears and delets all scopes. WARNING this destroys all registered text-scopes This method also registers the wildcard scope atom id. More...
 
TextScopeAtomId wildcardId ()
 returns the wildcard reference id More...
 
TextScopeAtomId findOrRegisterScopeAtom (const QString &atom)
 This method registers the scope element. More...
 
TextScoperefTextScope (const QString &scopeString)
 This method finds or creates a full-scope. More...
 
TextScoperefEmptyScope ()
 Returns the empty scope. More...
 
TextScopeListcreateTextScopeList (const QString &scopeListString)
 This method creates a text-scope list from the given scope string. More...
 
const QString & atomName (TextScopeAtomId id)
 Returns the name of the given atom id. More...
 

Detailed Description

The scope manager is used to manage the scopes... A scope consist out of several scope-parts:

scope-part1.scope-part2.scope-part3

These text are converted to a list of numbers 12.3.24

Constructor & Destructor Documentation

◆ TextScopeManager()

edbee::TextScopeManager::TextScopeManager ( )

The scopemanager constructor.

◆ ~TextScopeManager()

edbee::TextScopeManager::~TextScopeManager ( )
virtual

The destructor of the scope manager.

Member Function Documentation

◆ atomName()

const QString & edbee::TextScopeManager::atomName ( TextScopeAtomId  id)

Returns the name of the given atom id.

◆ createTextScopeList()

TextScopeList * edbee::TextScopeManager::createTextScopeList ( const QString &  scopeListString)

This method creates a text-scope list from the given scope string.

◆ findOrRegisterScopeAtom()

TextScopeAtomId edbee::TextScopeManager::findOrRegisterScopeAtom ( const QString &  atom)

This method registers the scope element.

◆ refEmptyScope()

TextScope * edbee::TextScopeManager::refEmptyScope ( )

Returns the empty scope.

Returns
the blank textscope

◆ refTextScope()

TextScope * edbee::TextScopeManager::refTextScope ( const QString &  scopeString)

This method finds or creates a full-scope.

◆ reset()

void edbee::TextScopeManager::reset ( )

This method clears and delets all scopes. WARNING this destroys all registered text-scopes This method also registers the wildcard scope atom id.

◆ wildcardId()

TextScopeAtomId edbee::TextScopeManager::wildcardId ( )

returns the wildcard reference id


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