Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Private Attributes
OOInteraction::StaticStringOffsetProvider Class Reference
Inheritance diagram for OOInteraction::StaticStringOffsetProvider:
OOInteraction::StringOffsetProvider

Public Member Functions

 StaticStringOffsetProvider (Visualization::Static *v)
 
virtual bool isIndivisible ()
 Returns true when the visualization corresponding to this StringProvider is an indivisible entity. More...
 
virtual int offset (Qt::Key key)
 
virtual void setOffset (int offset)
 
virtual QString string ()
 
- Public Member Functions inherited from OOInteraction::StringOffsetProvider
 StringOffsetProvider (Visualization::Item *item)
 
virtual ~StringOffsetProvider ()
 
Visualization::Itemitem () const
 

Private Attributes

Visualization::Staticvis_
 

Additional Inherited Members

- Public Types inherited from OOInteraction::StringOffsetProvider
using AllowGridBasedProviderFunction = std::function< bool(Visualization::Item *)>
 
using BaseAdapteeType = Visualization::Item
 
- Static Public Member Functions inherited from OOInteraction::StringOffsetProvider
static void allowGridBasedProvider (AllowGridBasedProviderFunction allow)
 
static QStringList components (Model::Node *node)
 
static StringOffsetProviderdefaultProvider (Visualization::Item *item)
 
static int itemOffset (Visualization::Item *item, int stringComponentLenght, Qt::Key key)
 
static int listItemOffset (Visualization::VList *list, const QString &prefix, const QString &separator, const QString &postfix, Qt::Key key)
 
static bool setOffsetInItem (int offset, Visualization::Item *item)
 
static bool setOffsetInListItem (int &offset, Visualization::VList *list, const QString &prefix, const QString &separator, const QString &postfix)
 
static QString stringFromComponenets (Model::Node *node)
 
static QString stringFromComponenets (Visualization::Item *item)
 
static QString stringFromStringOffsetProvider (Visualization::Item *item)
 
- Protected Member Functions inherited from OOInteraction::StringOffsetProvider
virtual QStringList components ()
 

Constructor & Destructor Documentation

◆ StaticStringOffsetProvider()

OOInteraction::StaticStringOffsetProvider::StaticStringOffsetProvider ( Visualization::Static v)

Member Function Documentation

◆ isIndivisible()

bool OOInteraction::StaticStringOffsetProvider::isIndivisible ( )
virtual

Returns true when the visualization corresponding to this StringProvider is an indivisible entity.

An indivisible entity's offset should be ignored and the cursor should be placed either before or after it. This is important for example for Static text symbols which are rendered as text but actually are represented in the expression editor as different text. The same is true of icons which have a text representation.

Reimplemented from OOInteraction::StringOffsetProvider.

◆ offset()

int OOInteraction::StaticStringOffsetProvider::offset ( Qt::Key  key)
virtual

◆ setOffset()

void OOInteraction::StaticStringOffsetProvider::setOffset ( int  offset)
virtual

◆ string()

QString OOInteraction::StaticStringOffsetProvider::string ( )
virtual

Member Data Documentation

◆ vis_

Visualization::Static* OOInteraction::StaticStringOffsetProvider::vis_
private