BALL  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Member Functions | Protected Member Functions | Private Slots | Private Attributes | List of all members
BALL::VIEW::TextEditorWidget Class Reference

#include <BALL/VIEW/WIDGETS/textEditorWidget.h>

Inheritance diagram for BALL::VIEW::TextEditorWidget:
QPlainTextEdit BALL::VIEW::PyWidget::MyTextEdit

Classes

class  LineNumbers
 

Public Member Functions

 TextEditorWidget (QWidget *parent=0)
 
void lineNumbersPaintEvent (QPaintEvent *event)
 
int lineNumbersWidth ()
 

Protected Member Functions

void resizeEvent (QResizeEvent *event)
 

Private Slots

void updateLineNumbersWidth (int newBlockCount)
 
void highlightCurrentLine ()
 
void updateLineNumbers (const QRect &, int)
 

Private Attributes

QWidgetline_numbers_
 

Detailed Description

This widget can be used for displaying or editing text. This class is heavily based on the Qt CodeEditor example.

Definition at line 31 of file textEditorWidget.h.

Constructor & Destructor Documentation

BALL::VIEW::TextEditorWidget::TextEditorWidget ( QWidget parent = 0)

Member Function Documentation

void BALL::VIEW::TextEditorWidget::highlightCurrentLine ( )
privateslot
void BALL::VIEW::TextEditorWidget::lineNumbersPaintEvent ( QPaintEvent *  event)
int BALL::VIEW::TextEditorWidget::lineNumbersWidth ( )
void BALL::VIEW::TextEditorWidget::resizeEvent ( QResizeEvent *  event)
protected
void BALL::VIEW::TextEditorWidget::updateLineNumbers ( const QRect &  ,
int   
)
privateslot
void BALL::VIEW::TextEditorWidget::updateLineNumbersWidth ( int  newBlockCount)
privateslot

Member Data Documentation

QWidget* BALL::VIEW::TextEditorWidget::line_numbers_
private

Definition at line 67 of file textEditorWidget.h.