Tome
A generic data editor for games supporting arbitrary input and output formats.
Signals | Public Member Functions | List of all members
Tome::FindRecordController Class Reference

Controller for finding specific records. More...

#include <findrecordcontroller.h>

Inheritance diagram for Tome::FindRecordController:

Signals

void progressChanged (const QString title, const QString text, const int currentValue, const int maximumValue) const
 Progress of the current search operation has changed. More...
 
void searchResultChanged (const QString &title, const Tome::SearchResultList results) const
 A search has been completed. More...
 

Public Member Functions

 FindRecordController (const RecordsController &recordsController)
 Constructs a new controller for finding specific records. More...
 
const SearchResultList findRecord (const QString &searchPattern) const
 Searches for records whose id or display name contain the specified string. More...
 

Detailed Description

Controller for finding specific records.

Constructor & Destructor Documentation

◆ FindRecordController()

FindRecordController::FindRecordController ( const RecordsController recordsController)

Constructs a new controller for finding specific records.

Parameters
recordsControllerController for adding, updating and removing records.

Member Function Documentation

◆ findRecord()

const SearchResultList FindRecordController::findRecord ( const QString &  searchPattern) const

Searches for records whose id or display name contain the specified string.

Parameters
searchPatternString to search for.
Returns
Records whose id or display name contain the specified string.

◆ progressChanged

void Tome::FindRecordController::progressChanged ( const QString  title,
const QString  text,
const int  currentValue,
const int  maximumValue 
) const
signal

Progress of the current search operation has changed.

Parameters
titleTitle of the current search operation step.
textDetails of the current search operation step.
currentValueCurrent progress value of the current search operation step.
maximumValueMaximum progress value of the current search operation step.

◆ searchResultChanged

void Tome::FindRecordController::searchResultChanged ( const QString &  title,
const Tome::SearchResultList  results 
) const
signal

A search has been completed.

Parameters
titleTitle of the search operation.
resultsResults of the search operation.

The documentation for this class was generated from the following files: