54 : QListWidget(aParentPtr)
69 void CursorMove(
int aX,
int aY,
int aLineHeight);
80 void DocLinkClicked(
const QUrl& aUrl);
81 void LinkActivated(
const QString& link);
83 bool UpdateScriptSymbols();
86 void ClearDocumentationView();
93 void ItemClicked(QListWidgetItem* aItemPtr);
94 std::string GetLineText(UtTextDocumentRange& aRange);
95 bool InsertSelection(QListWidgetItem* aItemPtr =
nullptr);
96 void UpdateAutocompleteWSF();
98 bool UpdateAutocompleteScript();
101 bool FilterAutoCompleteList();
103 void CurrentSuggestionChanged(QListWidgetItem* current, QListWidgetItem* previous);
104 void SelectedItem(QListWidgetItem* aItemPtr);
105 bool ScriptMode() {
return mContextType == cWSF_SCRIPT; }
107 bool CharCompare(
char a,
char b)
const;
108 int GetSymbolMatchScore(
const std::string& aInput,
const std::string& aSymbol)
const;
110 ContextType mContextType;
113 size_t mCursorColumn;
114 UtTextDocumentRange mReplaceRange;
115 WsfEditor* mEditControlPtr;
116 UtCallbackHolder mCallbacks;
119 QWidget* mDetailPane;
120 QLabel* mDetailHeader;
121 BrowserWidget* mDetailDocumentation;
122 WsfTextPreview* mDetailPreview;
123 QLabel* mDetailFooter;
125 size_t mInsertPosition;
126 size_t mReplaceCharacters;
127 bool mSuggestionIsLastToken;
128 bool mSuggestionIsPartialToken;
135 size_t mPreviousCommandPosition;
136 bool mNeedsNewSuggestionList;
137 std::vector<std::string> mCurrentSuggestions;
138 UtCallbackN<void()>* mUpdateCallbackPtr;
140 WsfScriptLookup* mScriptLookupPtr;
142 bool mShowScriptTypes;
Definition TextSource.hpp:48
Displays a syntax-highlighted snippet of an WSF file.
Definition WsfTextPreview.hpp:28