|
Mantid
|
#include <UserInputValidator.h>
Public Member Functions | |
| virtual void | addErrorMessage (const std::string &message, bool const silent=false)=0 |
| virtual bool | checkBins (double lower, double binWidth, double upper, double tolerance=0.00000001)=0 |
| virtual bool | checkDataSelectorIsValid (const QString &name, DataSelector *widget, bool const silent=false, bool const autoLoad=true)=0 |
| virtual bool | checkFieldIsNotEmpty (const QString &name, QLineEdit *field, QLabel *errorLabel=nullptr)=0 |
| virtual bool | checkFieldIsValid (const QString &errorMessage, QLineEdit *field, QLabel *errorLabel=nullptr)=0 |
| virtual bool | checkFileFinderWidgetIsValid (const QString &name, const FileFinderWidget *widget)=0 |
| virtual bool | checkRangeIsEnclosed (const QString &outerName, std::pair< double, double > outer, const QString &innerName, std::pair< double, double > inner)=0 |
| virtual bool | checkRangesDontOverlap (std::pair< double, double > rangeA, std::pair< double, double > rangeB)=0 |
| virtual bool | checkValidRange (const QString &name, std::pair< double, double > range)=0 |
| virtual bool | checkWorkspaceExists (QString const &workspaceName, bool silent=false)=0 |
| virtual bool | checkWorkspaceGroupIsValid (QString const &groupName, QString const &inputType, bool silent=false)=0 |
| virtual bool | checkWorkspaceSelectorIsNotEmpty (const QString &name, WorkspaceSelector *workspaceSelector)=0 |
| template<typename T = Mantid::API::MatrixWorkspace> | |
| bool | checkWorkspaceType (QString const &workspaceName, QString const &inputType, QString const &validType, bool silent=false) |
| Checks if the workspace has the correct type. | |
| virtual std::string | generateErrorMessage () const =0 |
| virtual bool | isAllInputValid () const =0 |
| virtual void | setErrorLabel (QLabel *errorLabel, bool valid)=0 |
| virtual | ~IUserInputValidator ()=default |
Definition at line 27 of file UserInputValidator.h.
|
virtualdefault |
|
pure virtual |
Implemented in MantidQt::CustomInterfaces::UserInputValidator.
Referenced by checkWorkspaceType().
|
pure virtual |
Implemented in MantidQt::CustomInterfaces::UserInputValidator.
|
pure virtual |
Implemented in MantidQt::CustomInterfaces::UserInputValidator.
|
pure virtual |
Implemented in MantidQt::CustomInterfaces::UserInputValidator.
|
pure virtual |
Implemented in MantidQt::CustomInterfaces::UserInputValidator.
|
pure virtual |
Implemented in MantidQt::CustomInterfaces::UserInputValidator.
|
pure virtual |
Implemented in MantidQt::CustomInterfaces::UserInputValidator.
|
pure virtual |
Implemented in MantidQt::CustomInterfaces::UserInputValidator.
|
pure virtual |
Implemented in MantidQt::CustomInterfaces::UserInputValidator.
|
pure virtual |
Implemented in MantidQt::CustomInterfaces::UserInputValidator.
Referenced by checkWorkspaceType().
|
pure virtual |
Implemented in MantidQt::CustomInterfaces::UserInputValidator.
|
pure virtual |
Implemented in MantidQt::CustomInterfaces::UserInputValidator.
| bool MantidQt::CustomInterfaces::IUserInputValidator::checkWorkspaceType | ( | QString const & | workspaceName, |
| QString const & | inputType, | ||
| QString const & | validType, | ||
| bool | silent = false |
||
| ) |
Checks if the workspace has the correct type.
| workspaceName | The name of the workspace |
| inputType | What the workspace is used for (e.g. Sample) |
| validType | The type which is valid |
| silent | True if an error should not be added to the validator. |
Definition at line 134 of file UserInputValidator.h.
References addErrorMessage(), and checkWorkspaceExists().
|
pure virtual |
Implemented in MantidQt::CustomInterfaces::UserInputValidator.
|
pure virtual |
Implemented in MantidQt::CustomInterfaces::UserInputValidator.
|
pure virtual |
Implemented in MantidQt::CustomInterfaces::UserInputValidator.