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

Public Member Functions

 VComment (Visualization::Item *parent, NodeType *node, const StyleType *style=itemStyles().get())
 
virtual int determineForm () override
 
bool editing () const
 
QList< QPair< QString, QString > > parseMarkdownArguments (const QString &argString)
 
virtual bool sizeDependsOnParent () const override
 
void toggleEditing ()
 

Static Public Member Functions

static void initializeForms ()
 

Protected Member Functions

virtual void determineChildren () override
 

Private Member Functions

ItemcreateTextualCommentElement (QStringList &contents, bool asHtml=false)
 
void parseLines ()
 
QSize parseSize (const QString &str)
 
QString replaceMarkdown (QString str)
 

Private Attributes

QList< Visualization::Item * > commentElements_ {}
 
bool editing_ {}
 
Visualization::VListeditText_ {}
 
Visualization::LinelineEnd_ {}
 
Visualization::LinelineStart_ {}
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ VComment()

Comments::VComment::VComment ( Visualization::Item parent,
NodeType *  node,
const StyleType *  style = itemStyles().get() 
)

Member Function Documentation

◆ createTextualCommentElement()

Item * Comments::VComment::createTextualCommentElement ( QStringList &  contents,
bool  asHtml = false 
)
private

◆ determineChildren()

void Comments::VComment::determineChildren ( )
overrideprotectedvirtual

◆ determineForm()

int Comments::VComment::determineForm ( )
overridevirtual

◆ editing()

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

◆ initializeForms()

void Comments::VComment::initializeForms ( )
static

◆ parseLines()

void Comments::VComment::parseLines ( )
private

◆ parseMarkdownArguments()

QList< QPair< QString, QString > > Comments::VComment::parseMarkdownArguments ( const QString &  argString)

◆ parseSize()

QSize Comments::VComment::parseSize ( const QString &  str)
private

◆ replaceMarkdown()

QString Comments::VComment::replaceMarkdown ( QString  str)
private

◆ sizeDependsOnParent()

bool Comments::VComment::sizeDependsOnParent ( ) const
overridevirtual

◆ toggleEditing()

void Comments::VComment::toggleEditing ( )

Member Data Documentation

◆ commentElements_

QList<Visualization::Item*> Comments::VComment::commentElements_ {}
private

◆ editing_

bool Comments::VComment::editing_ {}
private

◆ editText_

Visualization::VList* Comments::VComment::editText_ {}
private

◆ lineEnd_

Visualization::Line* Comments::VComment::lineEnd_ {}
private

◆ lineStart_

Visualization::Line* Comments::VComment::lineStart_ {}
private