WSF
wizard::EditorManager Class Reference

#include <EditorManager.hpp>

Inherits QObject.

Public Member Functions

 EditorManager ()
 ~EditorManager () override
EditorGetCurrentEditor ()
void VisibilityChanged (Editor *aEditor, bool aVisible)
void EditorClosed (Editor *aEditor)
void AddTab (Editor *aEditor)
void SetCurrent (Editor *aEditor)
void TabFocusIn (Editor *aEditor)
void RecordCurrentLocation ()
void ProjectClosing (Project *aProject)
void SetFindRequest (const FindTextRequest &aRequest)
void SetReplaceRequest (const ReplaceTextRequest &aRequest)
FindTextRequestGetActiveFindRequest ()
ReplaceTextRequestGetActiveReplaceRequest ()
void TabFocusOut (Editor *aEditor)
void RequestClose (Editor *aEditor)
bool IsReadOnly ()
void RecordHistoryLocation (const UtTextDocumentLocation &aLoc, bool aForceNewEntry)
void TabBack ()
void TabForward ()
const std::map< QString, Editor * > & GetEditorMap () const
void CloseAll ()
void CloseAllButStartup ()
void CloseAllButIncluded ()
void CloseAllLeft (Editor *aEditor)
void CloseAllRight (Editor *aEditor)
void CloseInactive ()
void CloseAllBut (Editor *aEditorPtr)
QStringList GetOpenEditorNames () const
bool AcceptsClose (TextSource *aSourcePtr)
void CloseEditor (TextSource *aSourcePtr)
void BeginUndoCapture () noexcept
 Start capturing many changes to consider as one change.
bool IsCapturingUndo () const noexcept
void EndUndoCapture () noexcept
 Stop capturing many changes to consider as one change.
void ModificationOccured (Editor *aEditorPtr)
void Undo ()
void Redo ()
void ClearUndoStacks ()
bool eventFilter (QObject *aObjPtr, QEvent *aEventPtr) override
void AdjustFontSize (int aValue)

Static Public Member Functions

static void UpdateStyleFromArray (const std::vector< QTextCharFormat > &aFormatChanges, const QTextBlock &aFirstBlk, int aLastBlockNumber, size_t aStartPos, size_t aEndPos)

Protected Member Functions

void RegisterEditor (Editor *aEditorPtr)
void DeregisterEditor (Editor *aEditorPtr)

Friends

class Editor

Constructor & Destructor Documentation

◆ EditorManager()

◆ ~EditorManager()

wizard::EditorManager::~EditorManager ( )
override

Member Function Documentation

◆ AcceptsClose()

bool wizard::EditorManager::AcceptsClose ( TextSource * aSourcePtr)

◆ AddTab()

void wizard::EditorManager::AddTab ( Editor * aEditor)

References Editor.

Referenced by Editor.

◆ AdjustFontSize()

void wizard::EditorManager::AdjustFontSize ( int aValue)

◆ BeginUndoCapture()

void wizard::EditorManager::BeginUndoCapture ( )
noexcept

Start capturing many changes to consider as one change.

Referenced by wizard::Environment::BeginUndoCapture(), and ModificationOccured().

◆ ClearUndoStacks()

void wizard::EditorManager::ClearUndoStacks ( )

◆ CloseAll()

void wizard::EditorManager::CloseAll ( )

◆ CloseAllBut()

void wizard::EditorManager::CloseAllBut ( Editor * aEditorPtr)

References Editor.

◆ CloseAllButIncluded()

void wizard::EditorManager::CloseAllButIncluded ( )

◆ CloseAllButStartup()

void wizard::EditorManager::CloseAllButStartup ( )

◆ CloseAllLeft()

void wizard::EditorManager::CloseAllLeft ( Editor * aEditor)

References Editor.

◆ CloseAllRight()

void wizard::EditorManager::CloseAllRight ( Editor * aEditor)

References Editor.

◆ CloseEditor()

void wizard::EditorManager::CloseEditor ( TextSource * aSourcePtr)

◆ CloseInactive()

void wizard::EditorManager::CloseInactive ( )

◆ DeregisterEditor()

void wizard::EditorManager::DeregisterEditor ( Editor * aEditorPtr)
protected

References Editor.

◆ EditorClosed()

void wizard::EditorManager::EditorClosed ( Editor * aEditor)

References Editor, and wizSignals.

Referenced by Editor.

◆ EndUndoCapture()

void wizard::EditorManager::EndUndoCapture ( )
noexcept

Stop capturing many changes to consider as one change.

References IsCapturingUndo().

Referenced by wizard::Environment::EndUndoCapture(), and ModificationOccured().

◆ eventFilter()

bool wizard::EditorManager::eventFilter ( QObject * aObjPtr,
QEvent * aEventPtr )
override

◆ GetActiveFindRequest()

wizard::FindTextRequest & wizard::EditorManager::GetActiveFindRequest ( )

Referenced by Editor.

◆ GetActiveReplaceRequest()

wizard::ReplaceTextRequest & wizard::EditorManager::GetActiveReplaceRequest ( )

Referenced by Editor.

◆ GetCurrentEditor()

wizard::Editor * wizard::EditorManager::GetCurrentEditor ( )

◆ GetEditorMap()

const std::map< QString, Editor * > & wizard::EditorManager::GetEditorMap ( ) const
inline

◆ GetOpenEditorNames()

QStringList wizard::EditorManager::GetOpenEditorNames ( ) const

◆ IsCapturingUndo()

bool wizard::EditorManager::IsCapturingUndo ( ) const
noexcept

Denotes whether the EditorManager is capturing many changes to consider as one change

Returns
the status of the undo capture

Referenced by EndUndoCapture(), wizard::Environment::IsCapturingUndo(), ModificationOccured(), Redo(), and Undo().

◆ IsReadOnly()

bool wizard::EditorManager::IsReadOnly ( )

Referenced by Editor.

◆ ModificationOccured()

void wizard::EditorManager::ModificationOccured ( Editor * aEditorPtr)

◆ ProjectClosing()

void wizard::EditorManager::ProjectClosing ( Project * aProject)

Referenced by Editor.

◆ RecordCurrentLocation()

void wizard::EditorManager::RecordCurrentLocation ( )

Referenced by Editor.

◆ RecordHistoryLocation()

void wizard::EditorManager::RecordHistoryLocation ( const UtTextDocumentLocation & aLoc,
bool aForceNewEntry )

Referenced by Editor.

◆ Redo()

void wizard::EditorManager::Redo ( )

◆ RegisterEditor()

void wizard::EditorManager::RegisterEditor ( Editor * aEditorPtr)
protected

◆ RequestClose()

void wizard::EditorManager::RequestClose ( Editor * aEditor)

References Editor, and wizard::Editor::GetDock().

Referenced by Editor.

◆ SetCurrent()

void wizard::EditorManager::SetCurrent ( Editor * aEditor)

References ed, Editor, and wizSignals.

Referenced by Editor, Redo(), Undo(), and VisibilityChanged().

◆ SetFindRequest()

void wizard::EditorManager::SetFindRequest ( const FindTextRequest & aRequest)

Referenced by Editor.

◆ SetReplaceRequest()

void wizard::EditorManager::SetReplaceRequest ( const ReplaceTextRequest & aRequest)

Referenced by Editor.

◆ TabBack()

void wizard::EditorManager::TabBack ( )

Referenced by Editor.

◆ TabFocusIn()

void wizard::EditorManager::TabFocusIn ( Editor * aEditor)

References Editor.

Referenced by Editor.

◆ TabFocusOut()

void wizard::EditorManager::TabFocusOut ( Editor * aEditor)

References Editor.

Referenced by Editor.

◆ TabForward()

void wizard::EditorManager::TabForward ( )

Referenced by Editor.

◆ Undo()

void wizard::EditorManager::Undo ( )

◆ UpdateStyleFromArray()

void wizard::EditorManager::UpdateStyleFromArray ( const std::vector< QTextCharFormat > & aFormatChanges,
const QTextBlock & aFirstBlk,
int aLastBlockNumber,
size_t aStartPos,
size_t aEndPos )
static

◆ VisibilityChanged()

void wizard::EditorManager::VisibilityChanged ( Editor * aEditor,
bool aVisible )

◆ Editor


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