WSF
wizard::FindResultsControl Class Reference

#include <FindResultsControl.hpp>

Inherits QDockWidget.

Collaboration diagram for wizard::FindResultsControl:

Public Member Functions

 FindResultsControl (QMainWindow *aParentPtr, EditorManager *aEditorPtr)
 ~FindResultsControl () override=default
void NewFind (FindTextRequest aRequest)

Protected Slots

void ProjectOpened (Project *aProjectPtr)
void ProjectClosed (Project *aProjectPtr)
void ItemActivated (const QModelIndex &aIndex)

Protected Member Functions

void AddResult (TextSource *aSourcePtr, int aCharOffset, int aCharOffsetEnd)
int SearchFile (const FindTextRequest &aRequest, TextSource *aSourcePtr, const std::string &aLowerCaseString)
void SearchDirectory (const QString &aDirectory, const FindTextRequest &aRequest, const std::string &aLowerCaseString)

Protected Attributes

EditorManagermEditorPtr
Ui::FindResultsControl mUi
TextLocationItemModelmModelPtr
std::vector< UtTextDocumentAutoUpdateRange > mResults
ProjectmProjectPtr
QLabel * mWaitBox

Constructor & Destructor Documentation

◆ FindResultsControl()

◆ ~FindResultsControl()

wizard::FindResultsControl::~FindResultsControl ( )
overridedefault

Member Function Documentation

◆ AddResult()

void wizard::FindResultsControl::AddResult ( TextSource * aSourcePtr,
int aCharOffset,
int aCharOffsetEnd )
protected

References mResults.

Referenced by SearchFile().

◆ ItemActivated

void wizard::FindResultsControl::ItemActivated ( const QModelIndex & aIndex)
protectedslot

◆ NewFind()

◆ ProjectClosed

void wizard::FindResultsControl::ProjectClosed ( Project * aProjectPtr)
protectedslot

References mModelPtr, mProjectPtr, and mResults.

Referenced by FindResultsControl().

◆ ProjectOpened

void wizard::FindResultsControl::ProjectOpened ( Project * aProjectPtr)
protectedslot

References mProjectPtr.

Referenced by FindResultsControl().

◆ SearchDirectory()

void wizard::FindResultsControl::SearchDirectory ( const QString & aDirectory,
const FindTextRequest & aRequest,
const std::string & aLowerCaseString )
protected

◆ SearchFile()

int wizard::FindResultsControl::SearchFile ( const FindTextRequest & aRequest,
TextSource * aSourcePtr,
const std::string & aLowerCaseString )
protected

Member Data Documentation

◆ mEditorPtr

EditorManager* wizard::FindResultsControl::mEditorPtr
protected

Referenced by FindResultsControl(), and NewFind().

◆ mModelPtr

TextLocationItemModel* wizard::FindResultsControl::mModelPtr
protected

◆ mProjectPtr

Project* wizard::FindResultsControl::mProjectPtr
protected

◆ mResults

std::vector<UtTextDocumentAutoUpdateRange> wizard::FindResultsControl::mResults
protected

Referenced by AddResult(), NewFind(), and ProjectClosed().

◆ mUi

Ui::FindResultsControl wizard::FindResultsControl::mUi
protected

Referenced by FindResultsControl(), and NewFind().

◆ mWaitBox

QLabel* wizard::FindResultsControl::mWaitBox
protected

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