4 #ifndef BPSSCRIPTEDITOR_H
5 #define BPSSCRIPTEDITOR_H
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
Public include file for BPS GUI library macros.
#define BPSGUI_EXPORT
Declare class an import from the shared library.
Definition: bpsgui_global.h:22
Syntax highlighting code editor class for BPScript.
Definition: bpsscripteditor.h:16
BpsScriptEditor(QWidget *aParent)
void setStopLine(int aLineNo)
Sets the line that should have the stop line indicator.
void clearHistory()
Clear the undo history.
void copyAvailable(bool aAvailable)
This signal is emitted when text is selected or deselected in the text edit.
void redo()
Redoes the last operation.
int currentLine() const
Get the current line number.
int stopLine() const
Get the stop line number.
void setErrorLine(int aLineNo)
Sets the line that should have the error line indicator.
void contentsChanged()
Emitted whenever content changes (characters added/deleted for example)
void setCurrentLine(int aLineNo)
Sets the line that should have the current line indicator.
QTextCursor textCursor() const
Returns a copy of the QTextCursor that represents the currently visible cursor.
int errorLine() const
Get the error line number.
void setText(const QString &aText)
Set the current text.
void setTextCursor(const QTextCursor &aCursor)
Sets the visible cursor.
void cut()
Copies the selected text to the clipboard and deletes it from the text edit.
void undo()
Undoes the last operation.
void paste()
Pastes the text from the clipboard into the text edit at the current cursor position.
QString text() const
Retrieve the current text.
bool canPaste() const
Returns whether text can be pasted from the clipboard into the text edit.
void copy()
Copies any selected text to the clipboard.
void undoAvailable(bool aAvailable)
This signal is emitted whenever undo operations become available (aAvailable is true) or unavailable ...
void redoAvailable(bool aAvailable)
This signal is emitted whenever redo operations become available (aAvailable is true) or unavailable ...