A wrapper class of JSEdit with enriched functions of opening and saving scripts.
#include <Workspace/Widgets/jseditwidget.h>
Inherits QWidget.
◆ ColorComponent
◆ JSEditWidget()
An instance of JSEdit, open and save-as button are created and wait for further configuration in init().
◆ ~JSEditWidget()
◆ focusOut
◆ getReplaceTabs()
bool getReplaceTabs |
( |
| ) |
const |
Exposes the underlying Q_PROPERTY which decides whether or not to replace tabs with spaces in the underlying JsEdit widget
◆ getShowSaveLoadAndTabsWidgets()
bool getShowSaveLoadAndTabsWidgets |
( |
| ) |
const |
Returns if the save, load and 'spaces to tabs' UI elements are enabled
◆ isBracketsMatchingEnabled()
bool isBracketsMatchingEnabled |
( |
| ) |
const |
◆ isCodeFoldingEnabled()
bool isCodeFoldingEnabled |
( |
| ) |
const |
◆ isFoldable()
bool isFoldable |
( |
int |
line | ) |
const |
◆ isFolded()
bool isFolded |
( |
int |
line | ) |
const |
◆ isLineNumbersVisible()
bool isLineNumbersVisible |
( |
| ) |
const |
◆ isTextWrapEnabled()
bool isTextWrapEnabled |
( |
| ) |
const |
◆ keywords()
◆ setColor()
◆ setKeywords()
◆ setPlainText()
void setPlainText |
( |
const QString & |
text | ) |
|
◆ setReadOnly()
void setReadOnly |
( |
bool |
b | ) |
|
◆ setReplaceTabs()
void setReplaceTabs |
( |
bool |
enable | ) |
|
Enables or disables the Widget's ability to replace tabs with spaces.
◆ setShowSaveLoadAndTabsWidgets()
void setShowSaveLoadAndTabsWidgets |
( |
bool |
enable | ) |
|
Enables the save, load and 'spaces to tabs' UI elements
◆ textChanged
◆ toPlainText()
QString toPlainText |
( |
| ) |
const |
◆ replaceTabsWithSpaces
bool replaceTabsWithSpaces |
|
readwrite |
◆ showSaveLoadAndTabsWidgets
bool showSaveLoadAndTabsWidgets |
|
readwrite |