Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Public Attributes | Private Attributes
Visualization::ItemStyle Class Reference
Inheritance diagram for Visualization::ItemStyle:
Core::Reflect< Base >

Public Member Functions

 ItemStyle ()
 
virtual ~ItemStyle () override
 
ShapecreateShape (Item *parent) const
 
bool hasShape () const
 
virtual void load (StyleLoader &sl) override
 

Public Attributes

Property< bool > allowEquivalentCursorsThroughBoundary {this, "allowEquivalentCursorsThroughBoundary"}
 
Property< bool > drawShapeWhenEmpty {this, "drawShapeWhenEmpty"}
 
Property< bool > drawsOnlyShape {this, "drawsOnlyShape"}
 
Property< bool > linelikeCursorMovementAlongX {this, "linelikeCursorMovementAlongX"}
 If false, the cursor will move strictly in the direction of the arrow key the user pressed. More...
 
Property< bool > linelikeCursorMovementAlongY {this, "linelikeCursorMovementAlongY"}
 
Property< bool > noItemRegions {this, "noItemRegions"}
 
Property< bool > wholeItemCursor {this, "wholeItemCursor"}
 

Private Attributes

QString shapeName_
 
QSharedPointer< ShapeStyleshapeStyle_
 

Additional Inherited Members

- Protected Types inherited from Core::Reflect< Base >
using Super = Reflect< Base >
 

Constructor & Destructor Documentation

◆ ItemStyle()

Visualization::ItemStyle::ItemStyle ( )

◆ ~ItemStyle()

Visualization::ItemStyle::~ItemStyle ( )
overridevirtual

Member Function Documentation

◆ createShape()

Shape * Visualization::ItemStyle::createShape ( Item parent) const

◆ hasShape()

bool Visualization::ItemStyle::hasShape ( ) const
inline

◆ load()

void Visualization::ItemStyle::load ( StyleLoader sl)
overridevirtual

Member Data Documentation

◆ allowEquivalentCursorsThroughBoundary

Property<bool> Visualization::ItemStyle::allowEquivalentCursorsThroughBoundary {this, "allowEquivalentCursorsThroughBoundary"}

◆ drawShapeWhenEmpty

Property<bool> Visualization::ItemStyle::drawShapeWhenEmpty {this, "drawShapeWhenEmpty"}

◆ drawsOnlyShape

Property<bool> Visualization::ItemStyle::drawsOnlyShape {this, "drawsOnlyShape"}

◆ linelikeCursorMovementAlongX

Property<bool> Visualization::ItemStyle::linelikeCursorMovementAlongX {this, "linelikeCursorMovementAlongX"}

If false, the cursor will move strictly in the direction of the arrow key the user pressed.

If true, the cursor will move any region that is rougly in the direction the user pressed. This is useful for example in lists of Statements, when pressing down at the end of the statement and we want to end up at the end of the next line. If that line is shorter than the current and this property is false, we will skip that line.

◆ linelikeCursorMovementAlongY

Property<bool> Visualization::ItemStyle::linelikeCursorMovementAlongY {this, "linelikeCursorMovementAlongY"}

◆ noItemRegions

Property<bool> Visualization::ItemStyle::noItemRegions {this, "noItemRegions"}

◆ shapeName_

QString Visualization::ItemStyle::shapeName_
private

◆ shapeStyle_

QSharedPointer<ShapeStyle> Visualization::ItemStyle::shapeStyle_
private

◆ wholeItemCursor

Property<bool> Visualization::ItemStyle::wholeItemCursor {this, "wholeItemCursor"}