7 #ifndef QTOPENGL_LUA_EDITOR_H
8 #define QTOPENGL_LUA_EDITOR_H
11 class CQTOpenGLLuaEditor;
14 #include <QPlainTextEdit>
39 void UpdateLineNumberAreaWidth(
int);
40 void HighlightCurrentLine();
41 void UpdateLineNumberArea(
const QRect& c_rect,
int n_dy);
48 class CLineNumberArea :
public QWidget {
53 m_pcEditor = pc_editor;
56 QSize sizeHint()
const {
57 return QSize(m_pcEditor->LineNumberAreaWidth(), 0);
62 void paintEvent(QPaintEvent* pc_event) {
63 m_pcEditor->LineNumberAreaPaintEvent(pc_event);
75 CLineNumberArea* m_pcLineNumberArea;
The namespace containing all the ARGoS related code.
virtual ~CQTOpenGLLuaEditor()
void LineNumberAreaPaintEvent(QPaintEvent *pc_event)
void resizeEvent(QResizeEvent *pc_event)
int LineNumberAreaWidth()
CQTOpenGLLuaEditor(QWidget *pc_parent)