WSF
wizard::SyntaxTips Class Reference

A popup window displaying the syntax for commands as the user types. More...

#include <SyntaxTips.hpp>

Inherits QWidget.

Collaboration diagram for wizard::SyntaxTips:

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

ProjectgetProject ()
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

WsfEditormEditControlPtr
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}
WsfScriptLookupmScriptLookupPtr
bool mNeedScriptUpdateOnCursorMove
QTimer mCursorMoveUpdateTimer

Detailed Description

A popup window displaying the syntax for commands as the user types.

Constructor & Destructor Documentation

◆ SyntaxTips()

◆ ~SyntaxTips()

wizard::SyntaxTips::~SyntaxTips ( )
override

References ClearLabels(), and mScriptLookupPtr.

Member Function Documentation

◆ CheckSizeChange()

void wizard::SyntaxTips::CheckSizeChange ( )
protected

References mEditControlPtr, and mPreviousRect.

Referenced by paintEvent().

◆ ClearLabels()

void wizard::SyntaxTips::ClearLabels ( )

References mLabel.

Referenced by UpdateSuggestions(), and ~SyntaxTips().

◆ CursorMove()

void wizard::SyntaxTips::CursorMove ( )

◆ EndHoverShow()

void wizard::SyntaxTips::EndHoverShow ( )

◆ GetGeometry()

QRect wizard::SyntaxTips::GetGeometry ( )

References mPreviousRect.

◆ getProject()

wizard::Project * wizard::SyntaxTips::getProject ( )
protected

References mEditControlPtr.

Referenced by HoverShow(), and UserModification().

◆ Hide()

void wizard::SyntaxTips::Hide ( )

◆ HoverCheck()

void wizard::SyntaxTips::HoverCheck ( )
protected

◆ HoverShow()

void wizard::SyntaxTips::HoverShow ( size_t aCharOffset)

◆ paintEvent()

void wizard::SyntaxTips::paintEvent ( QPaintEvent * e)
overrideprotected

◆ ParseUpdate()

void wizard::SyntaxTips::ParseUpdate ( bool aParseUpdate)

◆ resizeEvent()

void wizard::SyntaxTips::resizeEvent ( QResizeEvent * e)
overrideprotected

References mEditControlPtr, and pos.

◆ UpdateScenario()

void wizard::SyntaxTips::UpdateScenario ( )
protected

Updates the ParseUpdated callback if the scenario has changed.

References mEditControlPtr, mParseUpdateCallbackPtr, and ParseUpdate().

Referenced by HoverShow(), SyntaxTips(), and UserModification().

◆ UpdateScriptTips()

void wizard::SyntaxTips::UpdateScriptTips ( )
protected

◆ UpdateSuggestions()

◆ UpdateWindow()

void wizard::SyntaxTips::UpdateWindow ( size_t aCursorOffset)
protected

References mEditControlPtr, and mEditShow.

Referenced by UpdateSuggestions().

◆ UserModification()

void wizard::SyntaxTips::UserModification ( )

Member Data Documentation

◆ mCallbacks

UtCallbackHolder wizard::SyntaxTips::mCallbacks
protected

◆ mCommandExtent

UtTextRange wizard::SyntaxTips::mCommandExtent
protected

◆ mCursorMoveUpdateTimer

QTimer wizard::SyntaxTips::mCursorMoveUpdateTimer
protected

◆ mEditControlPtr

◆ mEditShow

int wizard::SyntaxTips::mEditShow
protected

◆ mHoverCharacterOffset

size_t wizard::SyntaxTips::mHoverCharacterOffset
protected

Referenced by HoverShow(), and ParseUpdate().

◆ mHoverMaintainTimer

QTimer wizard::SyntaxTips::mHoverMaintainTimer
protected

◆ mHoverShow

bool wizard::SyntaxTips::mHoverShow
protected

◆ mLabel

QLabel* wizard::SyntaxTips::mLabel
protected

◆ mNeedScriptUpdateOnCursorMove

bool wizard::SyntaxTips::mNeedScriptUpdateOnCursorMove
protected

◆ mParseUpdateCallbackPtr

std::unique_ptr<UtCallback> wizard::SyntaxTips::mParseUpdateCallbackPtr {nullptr}
protected

Referenced by UpdateScenario().

◆ mPreviousRect

QRect wizard::SyntaxTips::mPreviousRect
protected

Referenced by CheckSizeChange(), and GetGeometry().

◆ mPreviousSize

QSize wizard::SyntaxTips::mPreviousSize
protected

Referenced by paintEvent().

◆ mScriptLookupPtr

WsfScriptLookup* wizard::SyntaxTips::mScriptLookupPtr
protected

The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved