Inviwo  0.9.10.1
Inviwo documentation
inviwo::CodeEdit Class Reference
+ Inheritance diagram for inviwo::CodeEdit:

Classes

class  LineNumberArea
 

Public Member Functions

 CodeEdit (SyntaxType type=None, QWidget *parent=nullptr)
 
void setSyntax (SyntaxType type)
 
virtual void keyPressEvent (QKeyEvent *keyEvent) override
 
void setLineAnnotation (std::function< std::string(int)>)
 
void setAnnotationSpace (std::function< int(int)>)
 

Protected Member Functions

void lineNumberAreaPaintEvent (QPaintEvent *event)
 
int lineNumberAreaWidth ()
 
void resizeEvent (QResizeEvent *event) override
 
void updateLineNumberAreaWidth (int newBlockCount)
 
void highlightCurrentLine ()
 
void updateLineNumberArea (const QRect &, int)
 

Protected Attributes

QWidget * lineNumberArea_
 
std::vector< std::shared_ptr< std::function< void()> > > callbacks_
 
ivec4 textColor_
 
ivec4 highLightColor_
 
std::function< std::string(int)> annotateLine_
 
std::function< int(int)> annotationSpace_
 

The documentation for this class was generated from the following files: