WSF
wizard::WsfEditor Class Reference

#include <WsfEditor.hpp>

Inheritance diagram for wizard::WsfEditor:
Collaboration diagram for wizard::WsfEditor:

Public Member Functions

 WsfEditor (QWidget *aParent, Project *aProject, TextSource *aTextSource, EditorManager *aManagerPtr)
 ~WsfEditor () override=default
void Initialize ()
void Initialize2 ()
void TipsMoved (QRect aRect)
int GetContextMenuCharacterPosition ()
void HideAutocomplete ()
QRect GetTipsGeometry ()
void UpdateStyle () override
Public Member Functions inherited from wizard::Editor
 Editor (QWidget *aParent, Project *aProject, TextSource *aTextSource, EditorManager *aManagerPtr)
 ~Editor () override
void Initialize ()
void PrintFile ()
void DeleteLine ()
void FindNextAction ()
void FindPreviousAction ()
void GoToLineAction ()
bool ReplaceFoundText ()
void Replace (const UtTextRange &aRange, const std::string aText)
std::string GetSelectedText ()
bool SearchNext (const FindTextRequest &aFindRequest, QTextCursor *aCursorPtr=nullptr)
bool SearchNextNoWrap (const FindTextRequest &aFindRequest, QTextCursor *aCursorPtr=nullptr, int aLowerBound=-1, int aUpperBound=-1)
bool SearchPrevious (const FindTextRequest &aFindRequest)
bool GetSelectionRange (UtTextDocumentRange &aRange)
void SetSelection (const UtTextRange &aRange)
void GetCurrentPosition (size_t &aOffset, size_t &aLine, size_t &aColumn)
std::string GetLineText (const size_t &aLine)
bool TextIsSelected ()
void GetLineColumn (const size_t &aOffset, size_t &aLine, size_t &aColumn)
QPoint GetPoint (const size_t aOffset)
size_t GetOffset (const size_t aLine, const size_t aColumn)
int GetLineHeight (const int aLine)
TextSourceGetSource ()
ProjectGetProject ()
size_t GetPosition (size_t aLine, size_t aColumn)
size_t GetPosition (const QPoint &aPoint)
std::string RangeText (size_t aStart, size_t aEnd)
void RequestCloseAction ()
virtual void BeginNonUserAction ()
virtual void EndNonUserAction ()
virtual bool ExecutingNonUserAction ()
void RecordCurrentLocation (bool aForceNewEntry=true)
void GoToLine (size_t aLine)
void GoToRange (const UtTextRange &aRange)
void CopyLine ()
void CutLine ()
QString ToPlainText ()
void SetGlobalReadOnly (bool aIsGlobalReadOnly)
void Unindent ()
void Indent ()
void SetManager (EditorManager *aManagerPtr)
int LineNumberWidth ()
void BuildTitleBarMenu (QMenu &aMenu)
bool AcceptsClose ()
QString GetShortName (bool aTrim=true) const
void mousePressEvent (QMouseEvent *aEvent) override
const EditorDockGetDock () const noexcept
EditorDockGetDock () noexcept

Protected Member Functions

void GoToDefinitionAction ()
void FindReferencesAction ()
void BeginAutoComplete ()
bool CommentBlock ()
bool UncommentBlock ()
void FormatSelection ()
Protected Member Functions inherited from wizard::Editor
void keyPressEvent (QKeyEvent *e) override
EditorManagerManager ()
bool FoldingEnabled ()
void RedrawMargin ()
QTimer & DeferUpdateTimer ()
EditorMarginMargin ()
void GetCursorPoint (int &aX, int &aY, int &aLineHeight)
void AddCurrentLineSelection (QList< QTextEdit::ExtraSelection > &aSelections)
bool event (QEvent *e) override
void UpdateMarginGeometry ()
void focusInEvent (QFocusEvent *e) override

Friends

class ActionManager

Additional Inherited Members

Public Slots inherited from wizard::Editor
void DebugRunStateChange (wizard::ScriptDebugger *aDebuggerPtr, bool aIsRunning)
void TextModified ()
Static Public Member Functions inherited from wizard::Editor
static std::string ToAscii (const QString &aText)
static void UpdateStyleFromArray (const QVector< QTextCharFormat > &aFormatChanges, const QTextBlock &firstBlk, int aLastBlockNumber, int startPos, int endPos)
static QStringList Split (const QString &aStr)
static int FindNextValidToken (const QStringList &aList, int aStart)
Static Protected Attributes inherited from wizard::Editor
static const int cSYMBOL_MARGIN_WIDTH = 16

Constructor & Destructor Documentation

◆ WsfEditor()

wizard::WsfEditor::WsfEditor ( QWidget * aParent,
Project * aProject,
TextSource * aTextSource,
EditorManager * aManagerPtr )

◆ ~WsfEditor()

wizard::WsfEditor::~WsfEditor ( )
overridedefault

Member Function Documentation

◆ BeginAutoComplete()

void wizard::WsfEditor::BeginAutoComplete ( )
protected

◆ CommentBlock()

bool wizard::WsfEditor::CommentBlock ( )
protected

◆ FindReferencesAction()

void wizard::WsfEditor::FindReferencesAction ( )
inlineprotected

◆ FormatSelection()

◆ GetContextMenuCharacterPosition()

int wizard::WsfEditor::GetContextMenuCharacterPosition ( )

Referenced by ~WsfEditor().

◆ GetTipsGeometry()

QRect wizard::WsfEditor::GetTipsGeometry ( )

Referenced by ~WsfEditor().

◆ GoToDefinitionAction()

void wizard::WsfEditor::GoToDefinitionAction ( )
inlineprotected

◆ HideAutocomplete()

void wizard::WsfEditor::HideAutocomplete ( )

Referenced by ~WsfEditor().

◆ Initialize()

◆ Initialize2()

void wizard::WsfEditor::Initialize2 ( )

Referenced by Initialize(), and ~WsfEditor().

◆ TipsMoved()

void wizard::WsfEditor::TipsMoved ( QRect aRect)

Referenced by ~WsfEditor().

◆ UncommentBlock()

bool wizard::WsfEditor::UncommentBlock ( )
protected

References begin(), and end().

◆ UpdateStyle()

◆ ActionManager

friend class ActionManager
friend

References ActionManager, and WsfEditor().

Referenced by ActionManager.


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