WSF
wizard::AutoCompletePopup Class Reference

Provides auto-completion for a WsfEditor. More...

#include <AutoCompletePopup.hpp>

Inherits QWidget.

Classes

class  SuggestionList

Public Member Functions

 AutoCompletePopup (QWidget *aParentPtr, WsfEditor *aEditControlPtr)
 ~AutoCompletePopup () override
void CursorMove (int aX, int aY, int aLineHeight)
void UpdateAutocomplete (size_t aCursorLine, size_t aCursorColumn)
bool InterceptKeyDown (QKeyEvent *aEventPtr)
bool HasFocus ()
void UpdateWindowPosition ()

Protected Member Functions

void paintEvent (QPaintEvent *) override

Friends

class SuggestionList

Detailed Description

Provides auto-completion for a WsfEditor.

Constructor & Destructor Documentation

◆ AutoCompletePopup()

wizard::AutoCompletePopup::AutoCompletePopup ( QWidget * aParentPtr,
WsfEditor * aEditControlPtr )

◆ ~AutoCompletePopup()

wizard::AutoCompletePopup::~AutoCompletePopup ( )
override

Member Function Documentation

◆ CursorMove()

void wizard::AutoCompletePopup::CursorMove ( int aX,
int aY,
int aLineHeight )

◆ HasFocus()

bool wizard::AutoCompletePopup::HasFocus ( )

◆ InterceptKeyDown()

bool wizard::AutoCompletePopup::InterceptKeyDown ( QKeyEvent * aEventPtr)

Intercepts key events that may be useful to the autocomplete popup.

Parameters
aEventPtrA point to the event.
Returns
bool Returns 'true' if the key event was intercepted.

◆ paintEvent()

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

◆ UpdateAutocomplete()

void wizard::AutoCompletePopup::UpdateAutocomplete ( size_t aCursorLine,
size_t aCursorColumn )

Provides the auto-complete popup with new information. Actual update of the suggestion list may happen later.

References wizard::Project::ExecuteWhenParseComplete().

Referenced by CursorMove().

◆ UpdateWindowPosition()

void wizard::AutoCompletePopup::UpdateWindowPosition ( )

Referenced by CursorMove().

◆ SuggestionList

friend class SuggestionList
friend

Referenced by AutoCompletePopup().


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