|
WSF
|
A popup window displaying the syntax for commands as the user types. More...
#include <SyntaxTips.hpp>
Inherits QWidget.

Public Member Functions | |
| SyntaxTips (WsfEditor *aEditControlPtr) | |
| ~SyntaxTips () override | |
| void | ParseUpdate (bool aParseUpdate) |
| void | ClearLabels () |
| void | HoverShow (size_t aCharOffset) |
| void | EndHoverShow () |
| void | UserModification () |
| void | CursorMove () |
| void | Hide () |
| QRect | GetGeometry () |
Protected Member Functions | |
| Project * | getProject () |
| void | UpdateScriptTips () |
| void | CheckSizeChange () |
| void | paintEvent (QPaintEvent *) override |
| bool | UpdateSuggestions (size_t aCharacterOffset) |
| void | HoverCheck () |
| void | UpdateWindow (size_t aCursorOffset) |
| void | UpdateScenario () |
| Updates the ParseUpdated callback if the scenario has changed. | |
| void | resizeEvent (QResizeEvent *) override |
Protected Attributes | |
| WsfEditor * | mEditControlPtr |
| int | mEditShow |
| bool | mHoverShow |
| size_t | mHoverCharacterOffset |
| UtCallbackHolder | mCallbacks |
| QLabel * | mLabel |
| QSize | mPreviousSize |
| UtTextRange | mCommandExtent |
| QTimer | mHoverMaintainTimer |
| QRect | mPreviousRect |
| std::unique_ptr< UtCallback > | mParseUpdateCallbackPtr {nullptr} |
| WsfScriptLookup * | mScriptLookupPtr |
| bool | mNeedScriptUpdateOnCursorMove |
| QTimer | mCursorMoveUpdateTimer |
A popup window displaying the syntax for commands as the user types.
|
explicit |
|
override |
References ClearLabels(), and mScriptLookupPtr.
|
protected |
References mEditControlPtr, and mPreviousRect.
Referenced by paintEvent().
| void wizard::SyntaxTips::ClearLabels | ( | ) |
References mLabel.
Referenced by UpdateSuggestions(), and ~SyntaxTips().
| void wizard::SyntaxTips::CursorMove | ( | ) |
References mCommandExtent, mCursorMoveUpdateTimer, mEditControlPtr, mEditShow, mNeedScriptUpdateOnCursorMove, and pos.
| void wizard::SyntaxTips::EndHoverShow | ( | ) |
References mEditShow, mHoverMaintainTimer, and mHoverShow.
Referenced by Hide(), HoverCheck(), HoverShow(), ParseUpdate(), and UserModification().
| QRect wizard::SyntaxTips::GetGeometry | ( | ) |
References mPreviousRect.
|
protected |
References mEditControlPtr.
Referenced by HoverShow(), and UserModification().
| void wizard::SyntaxTips::Hide | ( | ) |
References EndHoverShow(), mEditShow, and mNeedScriptUpdateOnCursorMove.
|
protected |
References contains(), EndHoverShow(), mCommandExtent, mEditControlPtr, and pos.
Referenced by SyntaxTips().
| void wizard::SyntaxTips::HoverShow | ( | size_t | aCharOffset | ) |
References EndHoverShow(), getProject(), mEditShow, mHoverCharacterOffset, mHoverMaintainTimer, mHoverShow, UpdateScenario(), and UpdateSuggestions().
|
overrideprotected |
References CheckSizeChange(), mLabel, and mPreviousSize.
| void wizard::SyntaxTips::ParseUpdate | ( | bool | aParseUpdate | ) |
References EndHoverShow(), mEditControlPtr, mEditShow, mHoverCharacterOffset, mHoverMaintainTimer, mHoverShow, and UpdateSuggestions().
Referenced by UpdateScenario(), UpdateScriptTips(), and UserModification().
|
overrideprotected |
References mEditControlPtr, and pos.
|
protected |
Updates the ParseUpdated callback if the scenario has changed.
References mEditControlPtr, mParseUpdateCallbackPtr, and ParseUpdate().
Referenced by HoverShow(), SyntaxTips(), and UserModification().
|
protected |
References mCursorMoveUpdateTimer, mNeedScriptUpdateOnCursorMove, and ParseUpdate().
Referenced by SyntaxTips().
|
protected |
References ClearLabels(), wizard::WsfScriptLookup::cNO_SCRIPT, wizard::InputContext::ContextFromCursor(), wizard::WsfScriptLookup::cSTOP_AT_END_OF_STATEMENT, wizard::WsfScriptLookup::cSUCCESS, UsFunction::cVARARGS, wizard::TextSource::GetSource(), wizard::AutoComplete::GetSyntax(), WsfParseUtil::IsWhitespace(), UsFunction::mArgs, wizard::InputContext::Context::mBlockNodePtr, mCommandExtent, wizard::AutoComplete::SyntaxResults::mConcreteWordCount, mEditControlPtr, UsFunction::mFlags, mHoverShow, mLabel, mNeedScriptUpdateOnCursorMove, wizard::InputContext::Context::mQueryTextRange, UsFunction::mReturnType, mScriptLookupPtr, wizard::AutoComplete::SyntaxResults::mSequences, wizard::AutoComplete::SyntaxResults::mWordIndex, wizard::Project::ParseIsUpToDate(), pos, DynamicArray< T, ARRAY_SIZE, GROW_SIZE >::size(), and UpdateWindow().
Referenced by HoverShow(), and ParseUpdate().
|
protected |
References mEditControlPtr, and mEditShow.
Referenced by UpdateSuggestions().
| void wizard::SyntaxTips::UserModification | ( | ) |
References EndHoverShow(), getProject(), mEditShow, ParseUpdate(), and UpdateScenario().
|
protected |
|
protected |
Referenced by CursorMove(), HoverCheck(), and UpdateSuggestions().
|
protected |
Referenced by CursorMove(), SyntaxTips(), and UpdateScriptTips().
|
protected |
Referenced by CheckSizeChange(), CursorMove(), getProject(), HoverCheck(), ParseUpdate(), resizeEvent(), SyntaxTips(), UpdateScenario(), UpdateSuggestions(), and UpdateWindow().
|
protected |
Referenced by CursorMove(), EndHoverShow(), Hide(), HoverShow(), ParseUpdate(), SyntaxTips(), UpdateWindow(), and UserModification().
|
protected |
Referenced by HoverShow(), and ParseUpdate().
|
protected |
Referenced by EndHoverShow(), HoverShow(), ParseUpdate(), and SyntaxTips().
|
protected |
Referenced by EndHoverShow(), HoverShow(), ParseUpdate(), SyntaxTips(), and UpdateSuggestions().
|
protected |
Referenced by ClearLabels(), paintEvent(), SyntaxTips(), and UpdateSuggestions().
|
protected |
Referenced by CursorMove(), Hide(), SyntaxTips(), UpdateScriptTips(), and UpdateSuggestions().
|
protected |
Referenced by UpdateScenario().
|
protected |
Referenced by CheckSizeChange(), and GetGeometry().
|
protected |
Referenced by paintEvent().
|
protected |
Referenced by SyntaxTips(), UpdateSuggestions(), and ~SyntaxTips().