itom
Loading...
Searching...
No Matches
ito::ScriptEditorWidget Class Reference
Inheritance diagram for ito::ScriptEditorWidget:
ito::AbstractCodeEditorWidget ito::CodeEditor

Public Slots

void triggerCodeChecker ()
 Sends the code to the Syntax Checker.
 
void codeCheckResultsReady (QList< ito::CodeCheckerItem > codeCheckerItems)
 slot invoked by pythonEnginge::pythonCodeCheck
 
void codeCheckerResultsChanged (const QList< ito::CodeCheckerItem > &codeCheckerItems)
 Updates the list of code checker results if changes are available.
 
void menuCut ()
 
void menuCopy ()
 
void menuPaste ()
 
void menuIndent ()
 
void menuUnindent ()
 
void menuComment ()
 
void menuUncomment ()
 
void menuFoldAll ()
 
void menuUnfoldAll ()
 
void menuFoldUnfoldToplevel ()
 
void menuFoldUnfoldAll ()
 
void menuRunScript ()
 
void menuRunSelection ()
 
void menuDebugScript ()
 
void menuStopScript ()
 
void menuPyCodeFormatting ()
 
bool menuPyCodeReferenceRenaming ()
 
void menuGenerateDocstring ()
 
void menuScriptCharsetEncoding ()
 
void pythonStateChanged (tPythonTransitions pyTransition)
 
void pythonDebugPositionChanged (QString filename, int lineno)
 
void breakPointAdd (BreakPointItem bp, int row)
 < slot, invoked by BreakPointModel
 
void breakPointDelete (QString filename, int lineIdx, int pyBpNumber)
 < slot, invoked by BreakPointModel
 
void breakPointChange (BreakPointItem oldBp, BreakPointItem newBp)
 < slot, invoked by BreakPointModel
 
void updateSyntaxCheck ()
 slot invoked by timer
 
void print ()
 
- Public Slots inherited from ito::AbstractCodeEditorWidget
void reloadSettings ()
 

Signals

void pythonRunFile (QString filename)
 
void pythonRunSelection (QString selectionText)
 
void pythonDebugFile (QString filename)
 
void closeRequest (ScriptEditorWidget *sew, bool ignoreModifications)
 
void marginChanged ()
 
void outlineModelChanged (ScriptEditorWidget *editor, QSharedPointer< OutlineItem > rootItem)
 
void addGoBackNavigationItem (const GoBackNavigationItem &item)
 
void tabChangeRequested ()
 
void findSymbolsShowRequested ()
 
- Signals inherited from ito::AbstractCodeEditorWidget
void userSelectionChanged (int lineFrom, int indexFrom, int lineTo, int indexTo)
 
- Signals inherited from ito::CodeEditor
void dirtyChanged (bool state)
 
void painted (QPaintEvent *e)
 
void keyPressed (QKeyEvent *e)
 
void keyReleased (QKeyEvent *e)
 
void postKeyPressed (QKeyEvent *e)
 
void mouseDoubleClicked (QMouseEvent *e)
 
void mousePressed (QMouseEvent *e)
 
void mouseReleased (QMouseEvent *e)
 
void mouseMoved (QMouseEvent *e)
 
void mouseWheelActivated (QWheelEvent *e)
 
void focusedIn (QFocusEvent *e)
 
void indentRequested ()
 
void unindentRequested ()
 
void updateRequest ()
 
void updateActions ()
 
void newTextSet ()
 Signal emitted when a new text is set on the widget.
 

Public Member Functions

 ScriptEditorWidget (BookmarkModel *bookmarkModel, QWidget *parent=nullptr)
 
RetVal saveFile (bool askFirst=true)
 
RetVal saveAsFile (bool askFirst=true)
 
RetVal openFile (const QString &fileName, bool ignorePresentDocument=false, QWidget *parent=nullptr)
 
bool keepIndentationOnPaste () const
 
void setKeepIndentationOnPaste (bool value)
 
QString getFilename () const
 
bool hasNoFilename () const
 
int getUID () const
 
bool getCanCopy () const
 
QString getUntitledName () const
 
RetVal setCursorPosAndEnsureVisible (const int line, bool errorMessageClick=false, bool showSelectedCallstackLine=false)
 
RetVal showLineAndHighlightWord (const int line, const QString &highlightedText, Qt::CaseSensitivity caseSensitivity=Qt::CaseInsensitive)
 
void removeCurrentCallstackLine ()
 removes the current-callstack-line arrow from the breakpoint panel, if currently displayed
 
const ScriptEditorStorage saveState () const
 
RetVal restoreState (const ScriptEditorStorage &data)
 
RetVal toggleBookmark (int line)
 < bookmark handling
 
virtual bool removeTextBlockUserData (TextBlockUserData *userData)
 if UidFilter is -1, the current cursor position is always reported, else only if its editorUID is equal to UIDFilter
 
void reportCurrentCursorAsGoBackNavigationItem (const QString &reason, int UIDFilter=-1)
 wrapper for undo() or redo() that tries to keep breakpoints and bookmarks
 
void startUndoRedo (bool unundoNotRedo)
 < executes and undo or redo action and tries to preserve bookmarks and breakpoints
 
QSharedPointer< OutlineItemparseOutline (bool forceParsing=false) const
 
bool currentLineCanHaveDocstring () const
 
IOHelper::CharsetEncodingItem charsetEncoding () const
 the replacement will be handled as one undo-action. The script will be marked as modified afterwards.
 
void replaceOccurencesInCurrentScript (const QString &newValue, const QVector< ito::FileRenameItem > &renameItems)
 
- Public Member Functions inherited from ito::AbstractCodeEditorWidget
 AbstractCodeEditorWidget (QWidget *parent=NULL)
 
QString getWordAtPosition (const int &line, const int &index) const
 
virtual void copy ()
 copy selected code to the clipboard
 
virtual void paste ()
 paste code from the clipboard at the current cursor position
 
virtual void cut ()
 cut selected code and puts it into the clipboard
 
- Public Member Functions inherited from ito::CodeEditor
 CodeEditor (QWidget *parent=NULL, bool createDefaultActions=true)
 
bool useSpacesInsteadOfTabs () const
 
void setUseSpacesInsteadOfTabs (bool value)
 
bool selectLineOnCopyEmpty () const
 
void setSelectLineOnCopyEmpty (bool value)
 
bool showContextMenu () const
 
void setShowContextMenu (bool value)
 
bool showWhitespaces () const
 
void setShowWhitespaces (bool value)
 
QString fontName () const
 
void setFontName (const QString &value)
 
int fontSize () const
 
void setFontSize (int fontSize)
 
int zoomLevel () const
 
void setZoomLevel (int value)
 
int tabLength () const
 
void setTabLength (int value)
 
QColor background () const
 
void setBackground (const QColor &value)
 
QColor foreground () const
 
void setForeground (const QColor &value)
 
QColor selectionForeground () const
 
void setSelectionForeground (const QColor &value)
 
QColor selectionBackground () const
 
void setSelectionBackground (const QColor &value)
 
QColor whitespacesForeground () const
 
void setWhitespacesForeground (const QColor &value)
 
bool saveOnFocusOut () const
 
void setSaveOnFocusOut (bool value)
 
EdgeMode edgeMode () const
 
void setEdgeMode (EdgeMode mode)
 
int edgeColumn () const
 
void setEdgeColumn (int column)
 
QColor edgeColor () const
 
void setEdgeColor (const QColor &color)
 
bool showIndentationGuides () const
 
void setShowIndentationGuides (bool value)
 
QColor indentationGuidesColor () const
 
void setIndentationGuidesColor (const QColor &color)
 
QList< VisibleBlockvisibleBlocks () const
 
bool dirty () const
 
int firstVisibleLine () const
 
void setFirstVisibleLine (int line)
 
bool isModified () const
 
void setModified (bool modified)
 
QString wordSeparators () const
 
bool isUndoAvailable () const
 
bool isRedoAvailable () const
 
void setMouseCursor (const QCursor &cursor)
 
void cursorPosition (int &line, int &column) const
 
void setViewportMargins (int left, int top, int right, int bottom)
 
QRectF blockBoundingGeometry (const QTextBlock &block) const
 
QPointF contentOffset () const
 
PanelsManagerpanels () const
 
TextDecorationsManagerdecorations () const
 
ModesManagermodes () const
 
SyntaxHighlighterBasesyntaxHighlighter () const
 
int currentLineNumber () const
 
int currentColumnNumber () const
 
int lineNbrFromPosition (int yPos) const
 
int lineCount () const
 
int lineLength (int line) const
 
QTextCursor selectWholeLine (int line=-1, bool applySelection=true)
 
QTextCursor selectLines (int start=0, int end=-1, bool applySelection=true)
 
QPair< int, int > selectionRange () const
 
void getSelection (int *lineFrom, int *indexFrom, int *lineTo, int *indexTo)
 
void setSelection (int lineFrom, int indexFrom, int lineTo, int indexTo)
 
bool hasSelectedText () const
 
int linePosFromNumber (int lineNumber) const
 
void lineIndexFromPosition (const QPoint &pos, int *line, int *column) const
 
void lineIndexFromPosition (int pos, int *line, int *column) const
 
void getCursorPosition (int *line, int *column) const
 
QTextCursor setCursorPosition (int line, int column, bool applySelection=true)
 
void unfoldCursorPosition ()
 
void ensureLineVisible (int line)
 
QTextCursor gotoLine (int line, int column, bool move=true)
 
void removeSelectedText ()
 
bool findFirst (const QString &expr, bool re, bool cs, bool wo, bool wrap, bool forward=true, int line=-1, int index=-1, bool show=true)
 
bool findNext ()
 
void replace (const QString &text)
 
void endUndoAction ()
 
void beginUndoAction ()
 
QString selectedText () const
 
int length () const
 
int positionFromLineIndex (int line, int column) const
 
int lineIndent (int lineNumber=-1) const
 
int lineIndent (const QTextBlock *lineNbr) const
 
QString lineText (int lineIdx) const
 
void markWholeDocDirty ()
 
void callResizeEvent (QResizeEvent *evt)
 
virtual QString codeText (int &, int &) const
 
void indent ()
 
void unindent ()
 
void resetStylesheet ()
 
void rehighlight ()
 
void rehighlightBlock (int lineFromIdx, int lineToIdx)
 
void showTooltip (const QPoint &pos, const QString &tooltip)
 
void showTooltip (const QPoint &pos, const QString &tooltip, const TextDecoration::Ptr &senderDeco)
 
void setPlainText (const QString &text, const QString &mimeType="", const QString &encoding="")
 
void insertAt (const QString &text, int line, int index)
 
void append (const QString &text)
 
bool isCommentOrString (const QTextCursor &cursor, const QList< StyleItem::StyleType > &formats=QList< StyleItem::StyleType >())
 
bool isCommentOrString (const QTextBlock &block, const QList< StyleItem::StyleType > &formats=QList< StyleItem::StyleType >())
 
bool isNumber (const QTextCursor &cursor) const
 
bool isNumber (const QTextBlock &block) const
 
QTextCursor wordUnderCursor (bool selectWholeWord) const
 
QTextCursor wordUnderCursor (const QTextCursor &cursor, bool selectWholeWord) const
 
QString wordAtPosition (int line, int index, bool selectWholeWord) const
 
QTextCursor wordUnderMouseCursor () const
 
TextBlockUserDatagetTextBlockUserData (int lineIndex, bool createIfNotExist=true)
 
TextBlockUserDatagetTextBlockUserData (QTextBlock &block, bool createIfNotExist=true)
 
QSet< TextBlockUserData * > & textBlockUserDataList ()
 
const QSet< TextBlockUserData * > & textBlockUserDataList () const
 
const TextBlockUserDatagetConstTextBlockUserData (int lineIndex) const
 
bool bookmarksAvailable () const
 
bool breakpointsAvailable () const
 
void callWheelEvent (QWheelEvent *e)
 
void reportPositionAsGoBackNavigationItem (const QTextCursor &cursor, const QString &reason) const
 

Static Public Member Functions

static QString filenameFromUID (int UID, bool &found)
 

Protected Member Functions

bool canInsertFromMimeData (const QMimeData *source) const
 
void insertFromMimeData (const QMimeData *source)
 
void dropEvent (QDropEvent *event)
 
void dragEnterEvent (QDragEnterEvent *event)
 
void dragLeaveEvent (QDragLeaveEvent *event)
 
virtual void loadSettings ()
 
bool event (QEvent *event)
 
void mouseReleaseEvent (QMouseEvent *event)
 
void mousePressEvent (QMouseEvent *event)
 
void keyPressEvent (QKeyEvent *event)
 
virtual void contextMenuAboutToShow (int contextMenuLine)
 
void reportGoBackNavigationCursorMovement (const CursorPosition &cursor, const QString &origin) const
 
void replaceSelectionAndKeepBookmarksAndBreakpoints (QTextCursor &cursor, const QString &newString)
 
QVector< int > compareTexts (const QString &oldText, const QString &newText)
 
BreakPointModelgetBreakPointModel ()
 
const BreakPointModelgetBreakPointModel () const
 
- Protected Member Functions inherited from ito::AbstractCodeEditorWidget
void init ()
 
QString formatCodeBeforeInsertion (const QString &text, int &lineCount, bool trimText=false, const QString &newIndent="") const
 
QString formatCodeForClipboard (const QString &code, const QString &prependedTextInFirstLine) const
 this method modifies a code string such before copying it to the clipboard or a mimedata.
 
QPixmap loadMarker (const QString &name, int sizeAt96dpi) const
 
virtual int startLineOffset (int lineIdx) const
 
- Protected Member Functions inherited from ito::CodeEditor
CodeEditoroperator= (const CodeEditor &)
 
QMenu * contextMenu () const
 
void showTooltipDelayJobRunner (QList< QVariant > args)
 
void initSettings ()
 
void initStyle ()
 
QString previousLineText () const
 
QString currentLineText () const
 
void setWhitespacesFlags (bool show)
 
void updateTabStopAndIndentationWidth ()
 
void updateVisibleBlocks ()
 
void doHomeKey (QEvent *event=NULL, bool select=false)
 
QTextCursor moveCursorTo (int line) const
 
virtual void resizeEvent (QResizeEvent *e)
 
virtual void closeEvent (QCloseEvent *e)
 
virtual void keyReleaseEvent (QKeyEvent *e)
 
virtual void mouseDoubleClickEvent (QMouseEvent *e)
 
virtual void mouseMoveEvent (QMouseEvent *e)
 
virtual void showEvent (QShowEvent *e)
 
virtual void paintEvent (QPaintEvent *e)
 
virtual void wheelEvent (QWheelEvent *e)
 
virtual void contextMenuEvent (QContextMenuEvent *e)
 
virtual void focusInEvent (QFocusEvent *e)
 
virtual void focusOutEvent (QFocusEvent *e)
 
virtual bool eventFilter (QObject *obj, QEvent *e)
 
virtual bool keyPressInternalEvent (QKeyEvent *e)
 

Private Types

enum  markerType { markerBookmark = 1 , markerPyBug = 2 , markerBookmarkAndPyBug = markerBookmark | markerPyBug }
 

Private Slots

void toggleBookmarkRequested (int line)
 
void onBookmarkAdded (const BookmarkItem &item)
 
void onBookmarkDeleted (const BookmarkItem &item)
 
RetVal toggleBreakpoint (int line)
 
RetVal toggleEnableBreakpoint (int line)
 
RetVal editBreakpoint (int line)
 
RetVal clearAllBreakpoints ()
 
RetVal gotoNextBreakPoint ()
 
RetVal gotoPreviousBreakPoint ()
 
void gotoAssignmentOutOfDoc (PyAssignment ref)
 
void copyAvailable (const bool yes)
 
void outlineTimerElapsed ()
 
void nrOfLinesChanged ()
 
void fileSysWatcherFileChanged (const QString &path)
 
void fileSysWatcherFileChangedStep2 (const QString &path)
 
void printPreviewRequested (QPrinter *printer)
 
void dumpFoldsToConsole (bool)
 
void onCursorPositionChanged ()
 
void onTextChanged ()
 
void tabChangeRequest ()
 
void pyCodeFormatterDone (bool success, QString code)
 

Private Member Functions

RetVal initEditor ()
 
void initMenus ()
 
bool lineAcceptsBPs (int line)
 
RetVal changeFilename (const QString &newFilename)
 
IOHelper::CharsetEncodingItem guessEncoding (const QByteArray &content) const
 
void changeFileSaveEncoding (const IOHelper::CharsetEncodingItem &encoding)
 
void parseOutlineRecursive (QSharedPointer< OutlineItem > &parent) const
 
QSharedPointer< OutlineItemcheckBlockForOutlineItem (int startLineIdx, int endLineIdx) const
 

Private Attributes

QFileSystemWatcher * m_pFileSysWatcher
 
bool m_codeCheckerEnabled
 
int m_codeCheckerInterval
 timeout time after the last key press, when the next code check is called.
 
QTimer * m_codeCheckerCallTimer
 timer, that is used to call a new code check after a certain time after the key press
 
Qt::CaseSensitivity m_filenameCaseSensitivity
 menus
 
std::map< QString, QAction * > m_editorMenuActions
 
QString m_filename
 canonical filename of the script or empty if no script name has been given yet
 
int m_uid
 
bool m_cursorJumpLastAction
 true if the last cursor movement was a jump by a mouse click
 
CursorPosition m_cursorBeforeMouseClick
 
bool m_pythonBusy
 true: python is executing or debugging a script, a command...
 
bool m_pythonExecutable
 
bool m_wasReadonly
 
bool m_canCopy
 
bool m_keepIndentationOnPaste
 
int m_textBlockLineIdxAboutToBeDeleted
 if != -1, a TextBlockUserData in the line index is about to be removed.
 
BookmarkModelm_pBookmarkModel
 
QSharedPointer< PyCodeFormatterm_pyCodeFormatter
 borrowed reference to the bookmark model. The owner of this model is the ScriptEditorOrganizer.
 
QSharedPointer< PyCodeReferenceRenamerm_pyCodeReferenceRenamer
 the current command string for the python auto code formatting.
 
QString m_autoCodeFormatCmd
 the current command string for the python imports sorting (or empty, if this pre-step is not enabled)
 
QString m_autoCodeFormatPreCmd
 
IOHelper::CharsetEncodingItem m_charsetEncoding
 
bool m_charsetDefined
 
bool m_charsetEncodingAutoGuess
 
QSharedPointer< FoldingPanelm_foldingPanel
 
QSharedPointer< CheckerBookmarkPanelm_checkerBookmarkPanel
 
QSharedPointer< BreakpointPanelm_breakpointPanel
 
QSharedPointer< ErrorLineHighlighterModem_errorLineHighlighterMode
 
QSharedPointer< LineNumberPanelm_lineNumberPanel
 
QSharedPointer< PyGotoAssignmentModem_pyGotoAssignmentMode
 
QSharedPointer< WordHoverTooltipModem_wordHoverTooltipMode
 
QSharedPointer< PyDocstringGeneratorModem_pyDocstringGeneratorMode
 
QTimer * m_outlineTimer
 hash table that maps the UID to its instance of ScriptEditorWidget*
 
bool m_outlineTimerEnabled
 
int m_currentLineIndex
 current line index of the cursor
 
QSharedPointer< OutlineItemm_rootOutlineItem
 cache for the latest outline items
 
bool m_outlineDirty
 
QRegularExpression m_regExpClass
 regular expression to parse the definition of a class
 
QRegularExpression m_regExpDecorator
 regular expression to parse a decorator
 
QRegularExpression m_regExpMethodStart
 regular expression to parse the start of a method definition
 
QRegularExpression m_regExpMethod
 regular expression to parse a full method definition
 

Static Private Attributes

static const QString lineBreak = QString("\n")
 < static variable initialization
 
static int currentMaximumUID = 1
 
static CursorPosition currentGlobalEditorCursorPos
 
static QHash< int, ScriptEditorWidget * > editorByUID
 the current cursor position within all opened editor widgets
 

Additional Inherited Members

- Public Types inherited from ito::CodeEditor
enum  EdgeMode { EdgeNone , EdgeLine , EdgeBackground }
 
- Protected Types inherited from ito::AbstractCodeEditorWidget
enum  tUserSelectionState { selNo , selRange }
 
- Protected Attributes inherited from ito::AbstractCodeEditorWidget
tUserSelectionState m_userSelectionState
 
QSharedPointer< SyntaxHighlighterBasem_pythonSyntaxHighlighter
 
QSharedPointer< CodeEditorStylem_editorStyle
 
QSharedPointer< SymbolMatcherModem_symbolMatcher
 
QSharedPointer< CaretLineHighlighterModem_caretLineHighlighter
 
QSharedPointer< PyCalltipsModem_calltipsMode
 
QSharedPointer< CodeCompletionModem_codeCompletionMode
 
QSharedPointer< PyAutoIndentModem_pyAutoIndentMode
 
QSharedPointer< PyCodeReferenceRenamerm_pyCodeReferenceRenamer
 

Constructor & Destructor Documentation

◆ ScriptEditorWidget()

ito::ScriptEditorWidget::ScriptEditorWidget ( BookmarkModel * bookmarkModel,
QWidget * parent = nullptr )

< check if BreakPointModel already contains breakpoints for this editor and load them

Member Function Documentation

◆ breakPointAdd

void ito::ScriptEditorWidget::breakPointAdd ( BreakPointItem bp,
int row )
slot

< slot, invoked by BreakPointModel

< there is already a breakpoint in this line, do not add the new one

◆ breakPointChange

void ito::ScriptEditorWidget::breakPointChange ( BreakPointItem oldBp,
BreakPointItem newBp )
slot

< slot, invoked by BreakPointModel

< -1 has no task

◆ codeCheckerResultsChanged

void ito::ScriptEditorWidget::codeCheckerResultsChanged ( const QList< ito::CodeCheckerItem > & codeCheckerItems)
slot

Updates the list of code checker results if changes are available.

Parameters
codeCheckerItemslist of all current code checker result messages for this file

◆ codeCheckResultsReady

void ito::ScriptEditorWidget::codeCheckResultsReady ( QList< ito::CodeCheckerItem > codeCheckerItems)
slot

slot invoked by pythonEnginge::pythonCodeCheck

This function is automatically called to deliver the results of the syntax checker

See also
triggerCodeChecker

◆ contextMenuAboutToShow()

void ito::ScriptEditorWidget::contextMenuAboutToShow ( int contextMenuLine)
protectedvirtual

Reimplemented from ito::CodeEditor.

◆ keyPressEvent()

void ito::ScriptEditorWidget::keyPressEvent ( QKeyEvent * event)
protectedvirtual

Reimplemented from ito::CodeEditor.

◆ loadSettings()

void ito::ScriptEditorWidget::loadSettings ( )
protectedvirtual

Reimplemented from ito::AbstractCodeEditorWidget.

◆ mousePressEvent()

void ito::ScriptEditorWidget::mousePressEvent ( QMouseEvent * event)
protectedvirtual

Reimplemented from ito::CodeEditor.

◆ mouseReleaseEvent()

void ito::ScriptEditorWidget::mouseReleaseEvent ( QMouseEvent * event)
protectedvirtual

Reimplemented from ito::CodeEditor.

◆ openFile()

RetVal ito::ScriptEditorWidget::openFile ( const QString & fileName,
bool ignorePresentDocument = false,
QWidget * parent = nullptr )

< check if BreakPointModel already contains breakpoints for this editor and load them

◆ parseOutline()

QSharedPointer< OutlineItem > ito::ScriptEditorWidget::parseOutline ( bool forceParsing = false) const

returns true if the current line can be a trigger to insert a template docstring for a possible method / function, this line belongs to.

◆ removeCurrentCallstackLine()

void ito::ScriptEditorWidget::removeCurrentCallstackLine ( )

removes the current-callstack-line arrow from the breakpoint panel, if currently displayed

< removes the current-line and current-callstack-line arrows from the breakpoint panel, if currently displayed

◆ removeTextBlockUserData()

bool ito::ScriptEditorWidget::removeTextBlockUserData ( TextBlockUserData * userData)
virtual

if UidFilter is -1, the current cursor position is always reported, else only if its editorUID is equal to UIDFilter

Reimplemented from ito::CodeEditor.

◆ reportGoBackNavigationCursorMovement()

void ito::ScriptEditorWidget::reportGoBackNavigationCursorMovement ( const CursorPosition & cursor,
const QString & origin ) const
protectedvirtual

Reimplemented from ito::CodeEditor.

◆ toggleBreakpoint

RetVal ito::ScriptEditorWidget::toggleBreakpoint ( int line)
privateslot

< markerLine(handle) returns -1, if marker doesn't exist any more (because lines have been deleted...)

◆ triggerCodeChecker

void ito::ScriptEditorWidget::triggerCodeChecker ( )
slot

Sends the code to the Syntax Checker.

This function is called to send the content of this ScriptEditorWidget to the syntax checker

See also
codeCheckResultsReady

◆ updateSyntaxCheck

void ito::ScriptEditorWidget::updateSyntaxCheck ( )
slot

slot invoked by timer

This slot is invoked by the timer to trigger the syntax check. The interval is set in the option dialog.

See also
codeCheckResultsReady, triggerCodeChecker

Member Data Documentation

◆ m_autoCodeFormatPreCmd

QString ito::ScriptEditorWidget::m_autoCodeFormatPreCmd
private

this is the encoding of this script, hence, the encoding that was used to load this script from a file and will also be used to store it in a file.

◆ m_outlineTimer

QTimer* ito::ScriptEditorWidget::m_outlineTimer
private

hash table that maps the UID to its instance of ScriptEditorWidget*

timer to recreate the outline model with a certain delay

◆ m_pythonExecutable

bool ito::ScriptEditorWidget::m_pythonExecutable
private

to accept drop events of other files dropped onto this file, the script must not be readonly. Therefore a readonly script will be temporary set in a read/write mode


The documentation for this class was generated from the following files: