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

Public Member Functions

 VCommentDiagram (Visualization::Item *parent, NodeType *node)
 
VCommentDiagramShapediagramShape (int index)
 
bool editing () const
 
QPair< int, int > lastConnector () const
 
QPoint lastRightClick () const
 
void resize (QSize size)
 
void selectLastShape ()
 
void setLastConnector (int shape, int point)
 
void setLastRightClick (QPoint pos)
 
void setShowConnectorPoints (bool show)
 
bool showConnectorPoints () const
 
void toggleEditing ()
 
CommentDiagramToolbartoolbar ()
 

Protected Member Functions

virtual void determineChildren () override
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
virtual void updateGeometry (int availableWidth, int availableHeight) override
 

Private Member Functions

void clearChildren ()
 

Private Attributes

QVector< VCommentDiagramConnector * > connectors_
 
bool editing_ {}
 
QPair< int, int > lastConnector_ {-1, -1}
 
QPoint lastRightClick_
 
QVector< VCommentDiagramShape * > shapes_
 
bool showConnectorPoints_ {}
 

Static Private Attributes

static const int EDIT_OUTLINE_SIZE = 10
 
static CommentDiagramToolbartoolbar_ = new CommentDiagramToolbar{}
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ VCommentDiagram()

Comments::VCommentDiagram::VCommentDiagram ( Visualization::Item parent,
NodeType *  node 
)

Member Function Documentation

◆ clearChildren()

void Comments::VCommentDiagram::clearChildren ( )
private

◆ determineChildren()

void Comments::VCommentDiagram::determineChildren ( )
overrideprotectedvirtual

◆ diagramShape()

VCommentDiagramShape * Comments::VCommentDiagram::diagramShape ( int  index)
inline

◆ editing()

bool Comments::VCommentDiagram::editing ( ) const
inline

◆ lastConnector()

QPair< int, int > Comments::VCommentDiagram::lastConnector ( ) const
inline

◆ lastRightClick()

QPoint Comments::VCommentDiagram::lastRightClick ( ) const
inline

◆ paint()

void Comments::VCommentDiagram::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
overrideprotectedvirtual

◆ resize()

void Comments::VCommentDiagram::resize ( QSize  size)

◆ selectLastShape()

void Comments::VCommentDiagram::selectLastShape ( )

◆ setLastConnector()

void Comments::VCommentDiagram::setLastConnector ( int  shape,
int  point 
)
inline

◆ setLastRightClick()

void Comments::VCommentDiagram::setLastRightClick ( QPoint  pos)
inline

◆ setShowConnectorPoints()

void Comments::VCommentDiagram::setShowConnectorPoints ( bool  show)

◆ showConnectorPoints()

bool Comments::VCommentDiagram::showConnectorPoints ( ) const
inline

◆ toggleEditing()

void Comments::VCommentDiagram::toggleEditing ( )

◆ toolbar()

CommentDiagramToolbar * Comments::VCommentDiagram::toolbar ( )

◆ updateGeometry()

void Comments::VCommentDiagram::updateGeometry ( int  availableWidth,
int  availableHeight 
)
overrideprotectedvirtual

Member Data Documentation

◆ connectors_

QVector<VCommentDiagramConnector*> Comments::VCommentDiagram::connectors_
private

◆ EDIT_OUTLINE_SIZE

const int Comments::VCommentDiagram::EDIT_OUTLINE_SIZE = 10
staticprivate

◆ editing_

bool Comments::VCommentDiagram::editing_ {}
private

◆ lastConnector_

QPair<int, int> Comments::VCommentDiagram::lastConnector_ {-1, -1}
private

◆ lastRightClick_

QPoint Comments::VCommentDiagram::lastRightClick_
private

◆ shapes_

QVector<VCommentDiagramShape*> Comments::VCommentDiagram::shapes_
private

◆ showConnectorPoints_

bool Comments::VCommentDiagram::showConnectorPoints_ {}
private

◆ toolbar_

CommentDiagramToolbar * Comments::VCommentDiagram::toolbar_ = new CommentDiagramToolbar{}
staticprivate