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

Public Member Functions

 VCommentImage (Visualization::Item *parent, const QString &path, const StyleType *style=itemStyles().get())
 
 VCommentImage (Visualization::Item *parent, const QString &path, QSize size, const StyleType *style=itemStyles().get())
 
QSize imageSize () const
 
int lineNumber () const
 
void setLineNumber (int lineNumber)
 
bool updateSize (QSize size)
 

Protected Member Functions

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

Private Attributes

QImage image_
 
int lineNumber_ {-1}
 
QString path_
 
QSize size_
 

Static Private Attributes

static const QSize errorSize_ {400, 400}
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ VCommentImage() [1/2]

Comments::VCommentImage::VCommentImage ( Visualization::Item parent,
const QString &  path,
const StyleType *  style = itemStyles().get() 
)

◆ VCommentImage() [2/2]

Comments::VCommentImage::VCommentImage ( Visualization::Item parent,
const QString &  path,
QSize  size,
const StyleType *  style = itemStyles().get() 
)

Member Function Documentation

◆ determineChildren()

void Comments::VCommentImage::determineChildren ( )
overrideprotectedvirtual

◆ imageSize()

QSize Comments::VCommentImage::imageSize ( ) const
inline

◆ lineNumber()

int Comments::VCommentImage::lineNumber ( ) const
inline

◆ paint()

void Comments::VCommentImage::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  style,
QWidget *  widget 
)
overrideprotected

◆ setLineNumber()

void Comments::VCommentImage::setLineNumber ( int  lineNumber)
inline

◆ updateGeometry()

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

◆ updateSize()

bool Comments::VCommentImage::updateSize ( QSize  size)

Member Data Documentation

◆ errorSize_

const QSize Comments::VCommentImage::errorSize_ {400, 400}
staticprivate

◆ image_

QImage Comments::VCommentImage::image_
private

◆ lineNumber_

int Comments::VCommentImage::lineNumber_ {-1}
private

◆ path_

QString Comments::VCommentImage::path_
private

◆ size_

QSize Comments::VCommentImage::size_
private