Mantid
|
The interface to a function view. More...
#include <IFunctionView.h>
Signals | |
void | attributePropertyChanged (const QString &attrName) |
Function attribute gets changed. More... | |
void | copyToClipboardRequest () |
User requested copy function to clipboard. More... | |
void | currentFunctionChanged () |
User selects a different (sub)function (or one of it's sub-properties) More... | |
void | functionAdded (const QString &funStr) |
User adds a function. More... | |
void | functionHelpRequest () |
User requested function help. More... | |
void | functionRemoved (const QString &functionIndex) |
User removes a function. More... | |
void | functionRemovedString (const QString &funStr) |
User removes a function. More... | |
void | functionReplaced (const QString &funStr) |
User replaces the whole function (eg, by pasting it from clipboard) More... | |
void | globalsChanged (const QStringList &) |
User changed the list of global parameters. More... | |
void | localParameterButtonClicked (const QString &parName) |
In multi-dataset context a button value editor was clicked. More... | |
void | parameterChanged (const QString ¶mName) |
Function parameter gets changed. More... | |
void | parameterConstraintAdded (const QString &functionIndex, const QString &constraint) |
User sets a constraint. More... | |
void | parameterConstraintRemoved (const QString ¶mName) |
User removes a constraint. More... | |
void | parameterTieChanged (const QString &parName, const QString &tie) |
User sets a tie. More... | |
Public Member Functions | |
virtual void | clear ()=0 |
virtual void | clearErrors ()=0 |
virtual boost::optional< QString > | currentFunctionIndex () const =0 |
virtual IFunction::Attribute | getAttribute (const QString &attrName) const =0 |
virtual double | getParameter (const QString ¶mName) const =0 |
virtual IFunction_sptr | getSelectedFunction ()=0 |
virtual bool | hasFunction () const =0 |
IFunctionView (QWidget *parent=nullptr) | |
template<typename T > | |
void | setAttributeValue (const QString &attributeName, T &value) |
virtual void | setErrorsEnabled (bool enabled)=0 |
virtual void | setFunction (IFunction_sptr fun)=0 |
virtual void | setGlobalParameters (const QStringList &)=0 |
virtual void | setParameter (const QString ¶mName, double value)=0 |
virtual void | setParameterConstraint (const QString ¶mName, const QString &constraint)=0 |
virtual void | setParameterError (const QString ¶mName, double error)=0 |
virtual void | setParameterTie (const QString ¶mName, const QString &tie)=0 |
virtual void | showFunctionHelp (const QString &) const =0 |
virtual | ~IFunctionView ()=default |
Protected Member Functions | |
virtual void | setBooleanAttribute (const QString ¶mName, bool value)=0 |
virtual void | setDoubleAttribute (const QString ¶mName, double value)=0 |
virtual void | setIntAttribute (const QString ¶mName, int value)=0 |
virtual void | setStringAttribute (const QString ¶mName, std::string &value)=0 |
virtual void | setVectorAttribute (const QString ¶mName, std::vector< double > &val)=0 |
The interface to a function view.
Definition at line 26 of file IFunctionView.h.
|
inline |
Definition at line 29 of file IFunctionView.h.
|
virtualdefault |
|
signal |
Function attribute gets changed.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::attributeChanged().
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::clear().
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::clearErrors().
|
signal |
User requested copy function to clipboard.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::copyToClipboard().
|
signal |
User selects a different (sub)function (or one of it's sub-properties)
Referenced by MantidQt::MantidWidgets::FunctionTreeView::updateCurrentFunctionIndex().
|
pure virtual |
|
signal |
User adds a function.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::addFunctionEnd().
|
signal |
User requested function help.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::createActions().
|
signal |
User removes a function.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::removeFunction().
|
signal |
User removes a function.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::removeFunction().
|
signal |
User replaces the whole function (eg, by pasting it from clipboard)
Referenced by MantidQt::MantidWidgets::FunctionTreeView::attributeChanged(), and MantidQt::MantidWidgets::FunctionTreeView::pasteFromClipboard().
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewChangedAttribute().
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewChangedParameter().
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewRequestedFunctionHelp().
|
signal |
User changed the list of global parameters.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::addFunctionEnd(), MantidQt::MantidWidgets::FunctionTreeView::globalChanged(), and MantidQt::MantidWidgets::FunctionTreeView::removeFunction().
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
|
signal |
In multi-dataset context a button value editor was clicked.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::parameterButtonClicked().
|
signal |
Function parameter gets changed.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::parameterPropertyChanged().
|
signal |
User sets a constraint.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::addConstraints(), MantidQt::MantidWidgets::FunctionTreeView::addConstraints10(), MantidQt::MantidWidgets::FunctionTreeView::addConstraints50(), MantidQt::MantidWidgets::FunctionTreeView::constraintChanged(), and MantidQt::MantidWidgets::FunctionTreeView::removeConstraint().
|
signal |
User removes a constraint.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::removeConstraint(), and MantidQt::MantidWidgets::FunctionTreeView::removeConstraints().
|
signal |
|
inline |
Definition at line 47 of file IFunctionView.h.
References value.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::updateViewAttributesFromModel().
|
protectedpure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
|
protectedpure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setErrorsEnabled().
|
pure virtual |
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setGlobalParameters(), MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewAddedFunction(), and MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewRemovedFunction().
|
protectedpure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setBackgroundA0(), MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setLocalParameterValue(), MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setParameter(), and MantidQt::MantidWidgets::FunctionMultiDomainPresenter::updateViewFromModel().
|
pure virtual |
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setLocalParameterValue(), MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setParameterError(), and MantidQt::MantidWidgets::FunctionMultiDomainPresenter::updateViewFromModel().
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setLocalParameterFixed(), MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setLocalParameterTie(), and MantidQt::MantidWidgets::FunctionMultiDomainPresenter::updateViewFromModel().
|
protectedpure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
|
protectedpure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewRequestedFunctionHelp().