15#include <boost/optional.hpp>
20namespace MantidWidgets {
24class EditLocalParameterDialog;
34 void setFunctionString(
const QString &funStr);
35 QString getFunctionString()
const;
39 QString getFitFunctionString()
const;
40 bool hasFunction()
const;
41 void setParameter(
const QString ¶mName,
double value);
42 void setParameterError(
const QString ¶mName,
double value);
43 double getParameter(
const QString ¶mName);
44 bool isParameterFixed(
const QString &parName)
const;
45 QString getParameterTie(
const QString &parName)
const;
46 void updateParameters(
const IFunction &fun);
47 void updateMultiDatasetParameters(
const IFunction &fun);
48 void updateMultiDatasetAttributes(
const IFunction &fun);
50 boost::optional<QString> currentFunctionIndex()
const;
51 void setNumberOfDatasets(
int);
52 void setDatasets(
const QStringList &datasetNames);
54 void addDatasets(
const QStringList &datasetNames);
55 QStringList getDatasetNames()
const;
56 QStringList getDatasetDomainNames()
const;
57 int getNumberOfDatasets()
const;
58 int getCurrentDataset()
const;
59 void setCurrentDataset(
int);
61 double getLocalParameterValue(
const QString &parName,
int i)
const;
62 bool isLocalParameterFixed(
const QString &parName,
int i)
const;
63 QString getLocalParameterTie(
const QString &parName,
int i)
const;
64 QString getLocalParameterConstraint(
const QString &parName,
int i)
const;
65 void setLocalParameterValue(
const QString &parName,
int i,
double value);
66 void setLocalParameterValue(
const QString &parName,
int i,
double value,
double error);
67 void setLocalParameterFixed(
const QString &parName,
int i,
bool fixed);
68 void setLocalParameterTie(
const QString &parName,
int i,
const QString &tie);
69 void setLocalParameterConstraint(
const QString &parName,
int i,
const QString &constraint);
70 QStringList getGlobalParameters()
const;
71 void setGlobalParameters(
const QStringList &globals);
72 QStringList getLocalParameters()
const;
73 void setBackgroundA0(
double value);
75 void setColumnSizes(
int s0,
int s1,
int s2);
76 void setStretchLastColumn(
bool stretch);
77 void setErrorsEnabled(
bool enabled);
85 void viewChangedParameter(
const QString &parName);
86 void viewChangedAttribute(
const QString &attrName);
87 void viewPastedFunction(
const QString &funStr);
88 void viewAddedFunction(
const QString &funStr);
89 void viewRemovedFunction(
const QString &functionIndex);
90 void viewChangedTie(
const QString &parName,
const QString &tie);
91 void viewAddedConstraint(
const QString &functionIndex,
const QString &constraint);
92 void viewRemovedConstraint(
const QString &parName);
93 void viewRequestedCopyToClipboard();
94 void viewChangedGlobals(
const QStringList &globalParameters);
95 void editLocalParameter(
const QString &parName);
96 void editLocalParameterFinish(
int result);
97 void viewRequestedFunctionHelp();
100 void updateViewFromModel();
101 void updateViewAttributesFromModel();
#define EXPORT_OPT_MANTIDQT_COMMON
double value
The value of the point.
std::map< DeltaEMode::Type, std::string > index
void attributeChanged(const QString &attributeName)
void functionStructureChanged()
EditLocalParameterDialog * m_editLocalParameterDialog
void parameterChanged(const QString &funcIndex, const QString ¶mName)
IFunctionView * view() const
std::unique_ptr< FunctionModel > m_model
This is an interface to a fitting function - a semi-abstarct class.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
std::shared_ptr< IFunction > IFunction_sptr
shared pointer to the function base class