Quark  0.1
SourceTextEdit Class Reference

A subclass of QPlainTextEdit that is specialied for editing source code. More...

#include <SourceTextEdit.h++>

Inheritance diagram for SourceTextEdit:

Public Slots

void setHighlightingEnabled (bool enabled)
 Enables or disables syntax highlighting. More...
 

Public Member Functions

 SourceTextEdit (QWidget *parent=NULL)
 Constructor. More...
 
virtual ~SourceTextEdit ()
 Destructor. More...
 
void setSyntaxHighlighter (QSharedPointer< QSyntaxHighlighter > highlighter)
 Sets the syntax highlighter. More...
 

Protected Member Functions

void resizeEvent (QResizeEvent *event)
 

Friends

class MarginWidget
 

Detailed Description

A subclass of QPlainTextEdit that is specialied for editing source code.

The widget renders a left margin with line numbers and optionally performs syntax highlighting.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ SourceTextEdit()

SourceTextEdit ( QWidget *  parent = NULL)
explicit

Constructor.

◆ ~SourceTextEdit()

virtual ~SourceTextEdit ( )
virtual

Destructor.

Member Function Documentation

◆ resizeEvent()

void resizeEvent ( QResizeEvent *  event)
protected

◆ setHighlightingEnabled

void setHighlightingEnabled ( bool  enabled)
slot

Enables or disables syntax highlighting.

◆ setSyntaxHighlighter()

void setSyntaxHighlighter ( QSharedPointer< QSyntaxHighlighter >  highlighter)

Sets the syntax highlighter.

Friends And Related Function Documentation

◆ MarginWidget

friend class MarginWidget
friend

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