![]() |
Galaxis Codebase
1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
|
#include <jsedit.h>


Public Types | |
| enum | ColorComponent { Background, Normal, Comment, Number, String, Operator, Identifier, Keyword, BuiltIn, Sidebar, LineNumber, Cursor, Marker, BracketMatch, BracketError, FoldIndicator } |
Public Slots | |
| void | updateSidebar () |
| void | mark (const QString &str, Qt::CaseSensitivity sens=Qt::CaseInsensitive) |
| void | setBracketsMatchingEnabled (bool enable) |
| void | setCodeFoldingEnabled (bool enable) |
| void | setLineNumbersVisible (bool visible) |
| void | setTextWrapEnabled (bool enable) |
| void | fold (int line) |
| void | unfold (int line) |
| void | toggleFold (int line) |
Public Member Functions | |
| JSEdit (QWidget *parent=0) | |
| ~JSEdit () | |
| void | setColor (ColorComponent component, const QColor &color) |
| QStringList | keywords () const |
| void | setKeywords (const QStringList &keywords) |
| bool | isBracketsMatchingEnabled () const |
| bool | isCodeFoldingEnabled () const |
| bool | isLineNumbersVisible () const |
| bool | isTextWrapEnabled () const |
| bool | isFoldable (int line) const |
| bool | isFolded (int line) const |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *e) |
| void | wheelEvent (QWheelEvent *e) |
Properties | |
| bool | bracketsMatchingEnabled |
| bool | codeFoldingEnabled |
| bool | lineNumbersVisible |
| bool | textWrapEnabled |
Private Slots | |
| void | updateCursor () |
| void | updateSidebar (const QRect &rect, int d) |
Private Member Functions | |
| Q_DECLARE_PRIVATE (JSEdit) | |
| Q_DISABLE_COPY (JSEdit) | |
Private Attributes | |
| QScopedPointer< JSEditPrivate > | d_ptr |
| JSEdit::JSEdit | ( | QWidget * | parent = 0 | ) |
Definition at line 623 of file jsedit.cpp.
References d_ptr, updateCursor(), and updateSidebar().

| JSEdit::~JSEdit | ( | ) |
|
slot |
Definition at line 798 of file jsedit.cpp.
References findClosingConstruct(), JSDocLayout::forceUpdate(), and updateSidebar().
Referenced by toggleFold().


| bool JSEdit::isBracketsMatchingEnabled | ( | ) | const |
Definition at line 732 of file jsedit.cpp.
References d_ptr.
| bool JSEdit::isCodeFoldingEnabled | ( | ) | const |
Definition at line 743 of file jsedit.cpp.
References d_ptr.
| bool JSEdit::isFoldable | ( | int | line | ) | const |
Definition at line 776 of file jsedit.cpp.
References findClosingConstruct().
Referenced by updateSidebar().


| bool JSEdit::isFolded | ( | int | line | ) | const |
Definition at line 787 of file jsedit.cpp.
Referenced by toggleFold(), and updateSidebar().

| bool JSEdit::isLineNumbersVisible | ( | ) | const |
Definition at line 710 of file jsedit.cpp.
References d_ptr.
| bool JSEdit::isTextWrapEnabled | ( | ) | const |
Definition at line 721 of file jsedit.cpp.
References d_ptr.
| QStringList JSEdit::keywords | ( | ) | const |
Definition at line 700 of file jsedit.cpp.
References d_ptr.
Referenced by setKeywords().

|
slot |
Definition at line 1007 of file jsedit.cpp.
References d_ptr.
|
private |
|
private |
|
protected |
Definition at line 850 of file jsedit.cpp.
References updateSidebar().

|
slot |
Definition at line 737 of file jsedit.cpp.
References d_ptr, and updateCursor().

|
slot |
Definition at line 748 of file jsedit.cpp.
References d_ptr, and updateSidebar().

| void JSEdit::setColor | ( | ColorComponent | component, |
| const QColor & | color | ||
| ) |
Definition at line 662 of file jsedit.cpp.
References Background, BracketError, BracketMatch, Cursor, FoldIndicator, LineNumber, Normal, Sidebar, updateCursor(), and updateSidebar().

| void JSEdit::setKeywords | ( | const QStringList & | keywords | ) |
Definition at line 705 of file jsedit.cpp.
References d_ptr, and keywords().

|
slot |
Definition at line 715 of file jsedit.cpp.
References d_ptr, and updateSidebar().

|
slot |
Definition at line 726 of file jsedit.cpp.
References d_ptr.
|
slot |
Definition at line 842 of file jsedit.cpp.
References fold(), isFolded(), and unfold().
Referenced by SidebarWidget::mousePressEvent().


|
slot |
Definition at line 821 of file jsedit.cpp.
References findClosingConstruct(), JSDocLayout::forceUpdate(), and updateSidebar().
Referenced by toggleFold().


|
privateslot |
Definition at line 874 of file jsedit.cpp.
References findClosingMatch(), and findOpeningMatch().
Referenced by JSEdit(), setBracketsMatchingEnabled(), and setColor().


|
slot |
Definition at line 950 of file jsedit.cpp.
References isFoldable(), and isFolded().
Referenced by fold(), JSEdit(), resizeEvent(), setCodeFoldingEnabled(), setColor(), setLineNumbersVisible(), unfold(), updateSidebar(), and wheelEvent().


|
privateslot |
Definition at line 943 of file jsedit.cpp.
References updateSidebar().

|
protected |
Definition at line 856 of file jsedit.cpp.
References updateSidebar().

|
private |
Definition at line 116 of file jsedit.h.
Referenced by isBracketsMatchingEnabled(), isCodeFoldingEnabled(), isLineNumbersVisible(), isTextWrapEnabled(), JSEdit(), keywords(), mark(), setBracketsMatchingEnabled(), setCodeFoldingEnabled(), setKeywords(), setLineNumbersVisible(), setTextWrapEnabled(), and ~JSEdit().