void focusInEvent(QFocusEvent *e) override
Method, that's called on focus into widget. It's required for setting this widget to set completer...
int tabReplaceSize() const
Method for getting number of spaces, that will replace tab if tabReplace is true. Default: 4...
QStyleSyntaxHighlighter * m_highlighter
void initDocumentLayoutHandlers()
Method for initializing document layout handlers.
bool autoIndentation() const
Method for getting is auto indentation enabled. Default: true.
QCompleter * completer() const
Method for getting completer.
Class, that describes line number area widget.
void onSelectionChanged()
Slot, that will be called on selection change.
QString wordUnderCursor() const
Method for getting word under cursor.
void setCompleter(QCompleter *completer)
Method for setting completer.
bool tabReplace() const
Method for getting is tab replacing enabled. Default value: true.
bool autoParentheses() const
Method for getting is auto parentheses enabled. Default value: true.
void paintEvent(QPaintEvent *e) override
Method, that's called on editor painting. This method if overloaded for line number area redraw...
void proceedCompleterEnd(QKeyEvent *e)
QCodeEditor(QWidget *widget=nullptr)
Constructor.
void highlightCurrentLine(QList< QTextEdit::ExtraSelection > &extraSelection)
Method, that adds highlighting of currently selected line to extra selection list.
void setTabReplace(bool enabled)
Method for setting tab replacing enabled.
void updateLineNumberAreaWidth(int)
Slot, that performs update of internal editor viewport based on line number area width.
void setTabReplaceSize(int val)
Method for setting amount of spaces, that will replace tab.
QCodeEditor & operator=(const QCodeEditor &)=delete
Class, that describes Qt style parser for QCodeEditor.
void setHighlighter(QStyleSyntaxHighlighter *highlighter)
Method for setting highlighter.
QChar charUnderCursor(int offset=0) const
Method for getting character under cursor.
void keyPressEvent(QKeyEvent *e) override
Method, that's called on any key press, posted into code editor widget. This method is overloaded for...
Class, that descrubes highlighter with syntax style.
void insertFromMimeData(const QMimeData *source) override
Method, that's called on any text insertion of mimedata into editor. If it's text - it inserts text a...
QFramedTextAttribute * m_framedAttribute
int getFirstVisibleBlock()
Method for getting first visible block index.
void updateStyle()
Slot, that will update editor style.
void updateLineGeometry()
Method for updating geometry of line number area.
void initFont()
Method for initializing default monospace font.
void highlightParenthesis(QList< QTextEdit::ExtraSelection > &extraSelection)
Method, that adds highlighting of parenthesis if available.
void updateExtraSelection()
Slot, that will proceed extra selection for current cursor position.
void insertCompletion(QString s)
Slot, that performs insertion of completion info into code.
void setAutoParentheses(bool enabled)
Method setting auto parentheses enabled.
QSyntaxStyle * m_syntaxStyle
int getIndentationSpaces()
Method for getting number of indentation spaces in current line. Tabs will be treated as tabWidth / s...
QLineNumberArea * m_lineNumberArea
void updateLineNumberArea(const QRect &rect)
Slot, that performs update of some part of line number area.
void resizeEvent(QResizeEvent *e) override
Method, that's called on any widget resize. This method if overloaded for line number area resizing...
void setSyntaxStyle(QSyntaxStyle *style)
Method for setting syntax sty.e.
bool proceedCompleterBegin(QKeyEvent *e)
Method, that performs completer processing. Returns true if event has to be dropped.
void performConnections()
Method for performing connection of objects.
Class, that describes code editor.
void handleSelectionQuery(QTextCursor cursor)
Method, that performs selection frame selection.
void setAutoIndentation(bool enabled)
Method for setting auto indentation enabled.
Class, that describes attribute for making text frame.