Mantid
Loading...
Searching...
No Matches
Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
MantidQt::MantidWidgets::FunctionMultiDomainPresenter Class Reference

#include <FunctionMultiDomainPresenter.h>

Inheritance diagram for MantidQt::MantidWidgets::FunctionMultiDomainPresenter:

Signals

void attributeChanged (const QString &attributeName)
 
void functionStructureChanged ()
 
void parameterChanged (const QString &funcIndex, const QString &paramName)
 

Public Member Functions

void addDatasets (const QStringList &datasetNames)
 
void clear ()
 
void clearErrors ()
 
boost::optional< QString > currentFunctionIndex () const
 
 FunctionMultiDomainPresenter (IFunctionView *view)
 
int getCurrentDataset () const
 
QStringList getDatasetDomainNames () const
 
QStringList getDatasetNames () const
 
IFunction_sptr getFitFunction () const
 
QString getFitFunctionString () const
 
IFunction_sptr getFunction () const
 
IFunction_sptr getFunctionByIndex (const QString &index)
 
QString getFunctionString () const
 
QStringList getGlobalParameters () const
 
QString getLocalParameterConstraint (const QString &parName, int i) const
 
QStringList getLocalParameters () const
 
QString getLocalParameterTie (const QString &parName, int i) const
 
double getLocalParameterValue (const QString &parName, int i) const
 
int getNumberOfDatasets () const
 
double getParameter (const QString &paramName)
 
QString getParameterTie (const QString &parName) const
 
bool hasFunction () const
 
void hideGlobals ()
 
bool isLocalParameterFixed (const QString &parName, int i) const
 
bool isParameterFixed (const QString &parName) const
 
void removeDatasets (QList< int > indices)
 
void setBackgroundA0 (double value)
 
void setColumnSizes (int s0, int s1, int s2)
 
void setCurrentDataset (int)
 
void setDatasets (const QList< FunctionModelDataset > &datasets)
 
void setDatasets (const QStringList &datasetNames)
 
void setErrorsEnabled (bool enabled)
 
void setFunction (IFunction_sptr fun)
 
void setFunctionString (const QString &funStr)
 
void setGlobalParameters (const QStringList &globals)
 
void setLocalParameterConstraint (const QString &parName, int i, const QString &constraint)
 
void setLocalParameterFixed (const QString &parName, int i, bool fixed)
 
void setLocalParameterTie (const QString &parName, int i, const QString &tie)
 
void setLocalParameterValue (const QString &parName, int i, double value)
 
void setLocalParameterValue (const QString &parName, int i, double value, double error)
 
void setNumberOfDatasets (int)
 
void setParameter (const QString &paramName, double value)
 
void setParameterError (const QString &paramName, double value)
 
void setStretchLastColumn (bool stretch)
 
void showGlobals ()
 
void updateMultiDatasetAttributes (const IFunction &fun)
 
void updateMultiDatasetParameters (const IFunction &fun)
 
void updateParameters (const IFunction &fun)
 
IFunctionViewview () const
 

Private Slots

void editLocalParameter (const QString &parName)
 Launches the Edit Local Parameter dialog and deals with the input from it. More...
 
void editLocalParameterFinish (int result)
 
void viewAddedConstraint (const QString &functionIndex, const QString &constraint)
 
void viewAddedFunction (const QString &funStr)
 
void viewChangedAttribute (const QString &attrName)
 
void viewChangedGlobals (const QStringList &globalParameters)
 
void viewChangedParameter (const QString &parName)
 
void viewChangedTie (const QString &parName, const QString &tie)
 
void viewPastedFunction (const QString &funStr)
 
void viewRemovedConstraint (const QString &parName)
 
void viewRemovedFunction (const QString &functionIndex)
 
void viewRequestedCopyToClipboard ()
 
void viewRequestedFunctionHelp ()
 

Private Member Functions

void updateViewAttributesFromModel ()
 
void updateViewFromModel ()
 

Private Attributes

EditLocalParameterDialogm_editLocalParameterDialog
 
std::unique_ptr< FunctionModelm_model
 
IFunctionViewm_view
 

Detailed Description

Definition at line 28 of file FunctionMultiDomainPresenter.h.

Constructor & Destructor Documentation

◆ FunctionMultiDomainPresenter()

MantidQt::MantidWidgets::FunctionMultiDomainPresenter::FunctionMultiDomainPresenter ( IFunctionView view)

Member Function Documentation

◆ addDatasets()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::addDatasets ( const QStringList &  datasetNames)

Definition at line 122 of file FunctionMultiDomainPresenter.cpp.

References m_model.

◆ attributeChanged

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::attributeChanged ( const QString &  attributeName)
signal

Referenced by viewChangedAttribute().

◆ clear()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::clear ( )

◆ clearErrors()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::clearErrors ( )

◆ currentFunctionIndex()

boost::optional< QString > MantidQt::MantidWidgets::FunctionMultiDomainPresenter::currentFunctionIndex ( ) const

◆ editLocalParameter

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::editLocalParameter ( const QString &  parName)
privateslot

Launches the Edit Local Parameter dialog and deals with the input from it.

Parameters
parName:: Name of parameter that button was clicked for.

Definition at line 311 of file FunctionMultiDomainPresenter.cpp.

References editLocalParameterFinish(), getDatasetDomainNames(), getDatasetNames(), getLocalParameterConstraint(), getLocalParameterTie(), getLocalParameterValue(), isLocalParameterFixed(), m_editLocalParameterDialog, m_view, n, and value.

Referenced by FunctionMultiDomainPresenter().

◆ editLocalParameterFinish

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::editLocalParameterFinish ( int  result)
privateslot

◆ functionStructureChanged

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::functionStructureChanged ( )
signal

◆ getCurrentDataset()

int MantidQt::MantidWidgets::FunctionMultiDomainPresenter::getCurrentDataset ( ) const

Definition at line 130 of file FunctionMultiDomainPresenter.cpp.

References m_model.

◆ getDatasetDomainNames()

QStringList MantidQt::MantidWidgets::FunctionMultiDomainPresenter::getDatasetDomainNames ( ) const

Definition at line 126 of file FunctionMultiDomainPresenter.cpp.

References m_model.

Referenced by editLocalParameter().

◆ getDatasetNames()

QStringList MantidQt::MantidWidgets::FunctionMultiDomainPresenter::getDatasetNames ( ) const

Definition at line 124 of file FunctionMultiDomainPresenter.cpp.

References m_model.

Referenced by editLocalParameter().

◆ getFitFunction()

IFunction_sptr MantidQt::MantidWidgets::FunctionMultiDomainPresenter::getFitFunction ( ) const

Definition at line 63 of file FunctionMultiDomainPresenter.cpp.

References m_model.

◆ getFitFunctionString()

QString MantidQt::MantidWidgets::FunctionMultiDomainPresenter::getFitFunctionString ( ) const

Definition at line 65 of file FunctionMultiDomainPresenter.cpp.

References m_model.

◆ getFunction()

IFunction_sptr MantidQt::MantidWidgets::FunctionMultiDomainPresenter::getFunction ( ) const

Definition at line 268 of file FunctionMultiDomainPresenter.cpp.

References m_model.

Referenced by viewRequestedCopyToClipboard().

◆ getFunctionByIndex()

IFunction_sptr MantidQt::MantidWidgets::FunctionMultiDomainPresenter::getFunctionByIndex ( const QString &  index)

◆ getFunctionString()

QString MantidQt::MantidWidgets::FunctionMultiDomainPresenter::getFunctionString ( ) const

Definition at line 266 of file FunctionMultiDomainPresenter.cpp.

References m_model.

◆ getGlobalParameters()

QStringList MantidQt::MantidWidgets::FunctionMultiDomainPresenter::getGlobalParameters ( ) const

Definition at line 199 of file FunctionMultiDomainPresenter.cpp.

References m_model.

◆ getLocalParameterConstraint()

QString MantidQt::MantidWidgets::FunctionMultiDomainPresenter::getLocalParameterConstraint ( const QString &  parName,
int  i 
) const

Definition at line 154 of file FunctionMultiDomainPresenter.cpp.

References m_model.

Referenced by editLocalParameter().

◆ getLocalParameters()

QStringList MantidQt::MantidWidgets::FunctionMultiDomainPresenter::getLocalParameters ( ) const

Definition at line 206 of file FunctionMultiDomainPresenter.cpp.

References m_model.

◆ getLocalParameterTie()

QString MantidQt::MantidWidgets::FunctionMultiDomainPresenter::getLocalParameterTie ( const QString &  parName,
int  i 
) const

Definition at line 150 of file FunctionMultiDomainPresenter.cpp.

References m_model.

Referenced by editLocalParameter().

◆ getLocalParameterValue()

double MantidQt::MantidWidgets::FunctionMultiDomainPresenter::getLocalParameterValue ( const QString &  parName,
int  i 
) const

Definition at line 142 of file FunctionMultiDomainPresenter.cpp.

References m_model.

Referenced by editLocalParameter().

◆ getNumberOfDatasets()

int MantidQt::MantidWidgets::FunctionMultiDomainPresenter::getNumberOfDatasets ( ) const

Definition at line 128 of file FunctionMultiDomainPresenter.cpp.

References m_model.

Referenced by editLocalParameterFinish().

◆ getParameter()

double MantidQt::MantidWidgets::FunctionMultiDomainPresenter::getParameter ( const QString &  paramName)

Definition at line 83 of file FunctionMultiDomainPresenter.cpp.

References m_model.

◆ getParameterTie()

QString MantidQt::MantidWidgets::FunctionMultiDomainPresenter::getParameterTie ( const QString &  parName) const

Definition at line 89 of file FunctionMultiDomainPresenter.cpp.

References m_model.

◆ hasFunction()

bool MantidQt::MantidWidgets::FunctionMultiDomainPresenter::hasFunction ( ) const

Definition at line 67 of file FunctionMultiDomainPresenter.cpp.

References m_model.

◆ hideGlobals()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::hideGlobals ( )

◆ isLocalParameterFixed()

bool MantidQt::MantidWidgets::FunctionMultiDomainPresenter::isLocalParameterFixed ( const QString &  parName,
int  i 
) const

Definition at line 146 of file FunctionMultiDomainPresenter.cpp.

References m_model.

Referenced by editLocalParameter().

◆ isParameterFixed()

bool MantidQt::MantidWidgets::FunctionMultiDomainPresenter::isParameterFixed ( const QString &  parName) const

Definition at line 85 of file FunctionMultiDomainPresenter.cpp.

References m_model.

◆ parameterChanged

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::parameterChanged ( const QString &  funcIndex,
const QString &  paramName 
)
signal

◆ removeDatasets()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::removeDatasets ( QList< int >  indices)

Definition at line 137 of file FunctionMultiDomainPresenter.cpp.

References m_model, and setCurrentDataset().

◆ setBackgroundA0()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setBackgroundA0 ( double  value)

◆ setColumnSizes()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setColumnSizes ( int  s0,
int  s1,
int  s2 
)

◆ setCurrentDataset()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setCurrentDataset ( int  index)

Definition at line 132 of file FunctionMultiDomainPresenter.cpp.

References index, m_model, and updateViewFromModel().

Referenced by removeDatasets().

◆ setDatasets() [1/2]

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setDatasets ( const QList< FunctionModelDataset > &  datasets)

Definition at line 118 of file FunctionMultiDomainPresenter.cpp.

References m_model.

◆ setDatasets() [2/2]

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setDatasets ( const QStringList &  datasetNames)

Definition at line 116 of file FunctionMultiDomainPresenter.cpp.

References m_model.

◆ setErrorsEnabled()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setErrorsEnabled ( bool  enabled)

◆ setFunction()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setFunction ( IFunction_sptr  fun)

◆ setFunctionString()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setFunctionString ( const QString &  funStr)

◆ setGlobalParameters()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setGlobalParameters ( const QStringList &  globals)

◆ setLocalParameterConstraint()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setLocalParameterConstraint ( const QString &  parName,
int  i,
const QString &  constraint 
)

◆ setLocalParameterFixed()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setLocalParameterFixed ( const QString &  parName,
int  i,
bool  fixed 
)

◆ setLocalParameterTie()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setLocalParameterTie ( const QString &  parName,
int  i,
const QString &  tie 
)

◆ setLocalParameterValue() [1/2]

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setLocalParameterValue ( const QString &  parName,
int  i,
double  value 
)

◆ setLocalParameterValue() [2/2]

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setLocalParameterValue ( const QString &  parName,
int  i,
double  value,
double  error 
)

◆ setNumberOfDatasets()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setNumberOfDatasets ( int  n)

Definition at line 114 of file FunctionMultiDomainPresenter.cpp.

References m_model, and n.

◆ setParameter()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setParameter ( const QString &  paramName,
double  value 
)

◆ setParameterError()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setParameterError ( const QString &  paramName,
double  value 
)

◆ setStretchLastColumn()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setStretchLastColumn ( bool  stretch)

Definition at line 282 of file FunctionMultiDomainPresenter.cpp.

References m_view.

◆ showGlobals()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::showGlobals ( )

◆ updateMultiDatasetAttributes()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::updateMultiDatasetAttributes ( const IFunction fun)

Definition at line 103 of file FunctionMultiDomainPresenter.cpp.

References m_model, and updateViewFromModel().

◆ updateMultiDatasetParameters()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::updateMultiDatasetParameters ( const IFunction fun)

Definition at line 98 of file FunctionMultiDomainPresenter.cpp.

References m_model, and updateViewFromModel().

◆ updateParameters()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::updateParameters ( const IFunction fun)

Definition at line 93 of file FunctionMultiDomainPresenter.cpp.

References m_model, and updateViewFromModel().

◆ updateViewAttributesFromModel()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::updateViewAttributesFromModel ( )
private

◆ updateViewFromModel()

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::updateViewFromModel ( )
private

◆ view()

IFunctionView * MantidQt::MantidWidgets::FunctionMultiDomainPresenter::view ( ) const
inline

Definition at line 109 of file FunctionMultiDomainPresenter.h.

◆ viewAddedConstraint

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewAddedConstraint ( const QString &  functionIndex,
const QString &  constraint 
)
privateslot

Definition at line 238 of file FunctionMultiDomainPresenter.cpp.

References functionStructureChanged(), and m_model.

Referenced by FunctionMultiDomainPresenter().

◆ viewAddedFunction

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewAddedFunction ( const QString &  funStr)
privateslot

◆ viewChangedAttribute

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewChangedAttribute ( const QString &  attrName)
privateslot

◆ viewChangedGlobals

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewChangedGlobals ( const QStringList &  globalParameters)
privateslot

Definition at line 255 of file FunctionMultiDomainPresenter.cpp.

References functionStructureChanged(), and m_model.

Referenced by FunctionMultiDomainPresenter().

◆ viewChangedParameter

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewChangedParameter ( const QString &  parName)
privateslot

◆ viewChangedTie

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewChangedTie ( const QString &  parName,
const QString &  tie 
)
privateslot

Definition at line 233 of file FunctionMultiDomainPresenter.cpp.

References functionStructureChanged(), and m_model.

Referenced by FunctionMultiDomainPresenter().

◆ viewPastedFunction

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewPastedFunction ( const QString &  funStr)
privateslot

Definition at line 214 of file FunctionMultiDomainPresenter.cpp.

References functionStructureChanged(), and m_model.

Referenced by FunctionMultiDomainPresenter().

◆ viewRemovedConstraint

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewRemovedConstraint ( const QString &  parName)
privateslot

Definition at line 243 of file FunctionMultiDomainPresenter.cpp.

References functionStructureChanged(), and m_model.

Referenced by FunctionMultiDomainPresenter().

◆ viewRemovedFunction

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewRemovedFunction ( const QString &  functionIndex)
privateslot

◆ viewRequestedCopyToClipboard

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewRequestedCopyToClipboard ( )
privateslot

Definition at line 248 of file FunctionMultiDomainPresenter.cpp.

References getFunction().

Referenced by FunctionMultiDomainPresenter().

◆ viewRequestedFunctionHelp

void MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewRequestedFunctionHelp ( )
privateslot

Member Data Documentation

◆ m_editLocalParameterDialog

EditLocalParameterDialog* MantidQt::MantidWidgets::FunctionMultiDomainPresenter::m_editLocalParameterDialog
private

Definition at line 106 of file FunctionMultiDomainPresenter.h.

Referenced by editLocalParameter(), and editLocalParameterFinish().

◆ m_model

std::unique_ptr<FunctionModel> MantidQt::MantidWidgets::FunctionMultiDomainPresenter::m_model
private

◆ m_view

IFunctionView* MantidQt::MantidWidgets::FunctionMultiDomainPresenter::m_view
private

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