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