Mantid
|
Class FitPropertyBrowser implements QtPropertyBrowser to display and control fitting function parameters and settings. More...
#include <FitPropertyBrowser.h>
Public Slots | |
virtual void | clear () |
Slot. More... | |
void | clearBrowser () |
void | executeClearCustomSetups () |
void | executeCustomSetupRemove (const QString &name) |
void | executeDisplayMenu (const QString &) |
virtual void | executeFitMenu (const QString &) |
void | executeSetupManageMenu (const QString &) |
void | executeSetupMenu (const QString &) |
void | findPeaks () |
virtual void | fit () |
Do the fit. More... | |
virtual void | removePropertiesFromSettingsBrowser (const QStringList &propsToRemove) |
Function to toggle the visibility of a settings group property exposed to python. More... | |
virtual void | sequentialFit () |
void | setPeakToolOn (bool on) |
virtual void | toggleSettingsBrowserVisible () |
Function to toggle the visibility of the settings browser. More... | |
virtual void | toggleWsListVisible () |
void | undoFit () |
Slot. More... | |
void | workspaceDoubleClicked (QListWidgetItem *item) |
Signals | |
void | algorithmFinished (const QString &) |
void | algorithmStarted (const QString &) |
void | changedParameterOf (const QString &prefix) |
void | changeWindowTitle (const QString &) |
void | currentChanged () const |
void | endXChanged (double) |
void | errorsEnabled (bool enabled) |
void | executeFit (QString, QHash< QString, QString >, Mantid::API::AlgorithmObserver *) |
void | fitResultsChanged (const QString &status) |
void | fittingDone (const QString &) |
signal which can optionally be caught for customization after a fit has been done More... | |
void | fitUndone () |
void | functionChanged () |
void | functionCleared () |
void | functionFactoryUpdateReceived () |
void | functionLoaded (const QString &) |
void | functionRemoved () |
void | itemDoubleClicked (QListWidgetItem *item) |
void | multifitFinished () |
void | parameterChanged (const Mantid::API::IFunction *) |
void | plotCurrentGuess () |
void | plotGuess () |
void | removeCurrentGuess () |
void | removeFitCurves () |
void | removeGuess () |
void | removePlotSignal (MantidQt::MantidWidgets::PropertyHandler *) |
void | sequentialFitDone () const |
void | startXChanged (double) |
void | updatePlotSpectrum (int index) |
void | workspaceClicked (const QString &wsName) |
void | workspaceIndexChanged (int index) |
void | workspaceNameChanged (const QString &) |
void | wsChangePPAssign (const QString &) |
void | xRangeChanged (double, double) |
Public Member Functions | |
void | addAllowedSpectra (const QString &wsName, const QList< int > &wsIndices) |
void | addAllowedTableWorkspace (const QString &wsName) |
void | addAutoBackground () |
Creates and adds the autobackground. More... | |
void | addFitResultWorkspacesToTableWidget () |
Adds the fit result workspaces to the QListWidget in the browser. More... | |
QString | addFunction (const QString &fnName) |
A specialisation of addFunction to be used in the workbench. More... | |
PropertyHandler * | addFunction (const std::string &fnName) |
Create a new function. More... | |
void | addHandle (const std::string &wsName, const std::shared_ptr< Mantid::API::Workspace > &ws) override |
workspace was added More... | |
void | allowSequentialFits (bool allow) override |
Allow or disallow sequential fits (depending on whether other conditions are met) More... | |
double | centre () const |
Centre of the current peak. More... | |
std::shared_ptr< Mantid::API::CompositeFunction > | compositeFunction () const |
Get Composite Function. More... | |
bool | convolveMembers () const |
Get the "ConvolveMembers" option. More... | |
std::string | costFunction () const |
Get the cost function. More... | |
int | count () const |
Get count. More... | |
PropertyHandler * | currentHandler () const |
Get the current function. More... | |
std::string | defaultBackgroundType () const |
Get the default background type. More... | |
std::string | defaultFunctionType () const |
Get the default function type. More... | |
std::string | defaultPeakType () |
Get the default peak type. More... | |
double | endX () const |
Get the end X. More... | |
void | finishHandle (const Mantid::API::IAlgorithm *alg) override |
Called when the Fit is finished. More... | |
FitPropertyBrowser (QWidget *parent=nullptr, QObject *mantidui=nullptr) | |
Constructor. More... | |
double | fwhm () const |
Width of the current peak. More... | |
QString | getAutoBackgroundString () const |
std::string | getCentreParameterNameOf (const QString &prefix) |
QString | getConstraintsString () const |
Creates the "Constraints" property value for the Fit algorithm. More... | |
int | getDecimals () const |
Number of decimal places in double properties. More... | |
QString | getErrColumnName () const |
Get the name of the Error column. More... | |
std::string | getExcludeRange () const |
Get the excluded range for the fit. More... | |
std::string | getFitAlgorithmOutputStatus () const |
================================================================================================= Get Fit Algorithm output statuss More... | |
std::string | getFitAlgorithmParameters () const |
================================================================================================= Get Fit Algorithm parameters More... | |
QMenu * | getFitMenu () const |
Return the Fit menu. More... | |
Mantid::API::IFunction_sptr | getFittingFunction () const |
Return the fitting function. More... | |
Mantid::API::IFunction_sptr | getFunctionAtIndex (std::size_t const &index) const |
Return a function at a specific index in the composite function. More... | |
std::string | getFunctionString () const |
Get the function as a string. More... | |
PropertyHandler * | getHandler () const |
Get handler to the root composite function. More... | |
QStringList | getParameterNames () const |
Get function parameter names. More... | |
QList< double > | getParameterValues () const |
Get function parameter values. More... | |
double | getPeakCentreOf (const QString &prefix) |
double | getPeakFwhmOf (const QString &prefix) |
PropertyHandler * | getPeakHandler (const QString &prefix) |
double | getPeakHeightOf (const QString &prefix) |
QStringList | getPeakPrefixes () const |
int | getPeakRadius () const |
Get the peak radius for peak functions. More... | |
QString | getTieString () const |
Creates the "Ties" property value for the Fit algorithm. More... | |
std::string | getWidthParameterNameOf (const QString &prefix) |
std::shared_ptr< Mantid::API::Workspace > | getWorkspace () const |
Get the workspace. More... | |
QListWidget * | getWorkspaceList () const |
Return the Fit menu. More... | |
QStringList | getWorkspaceNames () |
Returns the list of workspaces that are currently been worked on by the fit property browser. More... | |
QString | getXColumnName () const |
Get the name of the X column. More... | |
QVector< double > | getXRange () |
Get the X limits of the workspace. More... | |
QString | getYColumnName () const |
Get the name of the Y column. More... | |
double | height () const |
Height of the current peak. More... | |
bool | ignoreInvalidData () const |
Get the ignore invalid data option. More... | |
virtual void | init () |
Initialise layout. More... | |
bool | isAutoBack () const |
bool | isFitEnabled () const |
Returns true if the function is ready for a fit. More... | |
bool | isHistogramFit () const |
Get "HistogramFit" option. More... | |
bool | isParameterExplicitlySetOf (const QString &prefix, const std::string ¶m) |
bool | isPeak () const |
Is the current function a peak? More... | |
bool | isUndoEnabled () const |
Tells if undo can be done. More... | |
void | loadFunction (const QString &funcString) |
Load function. More... | |
int | maxIterations () const |
Get the max number of iterations. More... | |
std::string | minimizer (bool withProperties=false) const |
Get the minimizer. More... | |
void | normaliseData (bool on) |
Set if the data must be normalised before fitting. More... | |
virtual std::string | outputName () const |
Get the output name. More... | |
bool | plotCompositeMembers () const |
Returns true if a composite's member functions should be plotted also. More... | |
bool | plotDiff () const |
Returns true if the difference plot should be drawn. More... | |
void | postDeleteHandle (const std::string &wsName) override |
workspace was removed More... | |
bool | rawData () const override |
Returns true if the fit should be done against binned (bunched) data. More... | |
void | refitAutoBackground () |
const QStringList & | registeredBackgrounds () const |
Return a list of registered backgrounds. More... | |
const QStringList & | registeredFunctions () const |
Return a list of registered functions. More... | |
const QStringList & | registeredOthers () const |
Return a list of registered other functions. More... | |
const QStringList & | registeredPeaks () const |
Return a list of registered peaks. More... | |
virtual void | removeFunction (PropertyHandler *handler) |
Removes the function held by the property handler. More... | |
void | removeWorkspace (const std::string &wsName) |
void | removeWorkspaceAndSpectra (const std::string &wsName) |
void | renameHandle (const std::string &oldName, const std::string &newName) override |
Handler of the Rename notifications. More... | |
void | saveFunction (const QString &fnName) |
save function More... | |
void | sendParameterChanged (const Mantid::API::IFunction *f) |
void | sendParameterChanged (const QString &prefix) |
void | sequentialFitFinished () |
void | setADSObserveEnabled (bool enabled) |
void | setAutoBackgroundName (const QString &aName) |
Remember a background function name to be used for creating auto-background. More... | |
void | setCentre (double value) |
Set centre of the current peak. More... | |
void | setCurrentFunction (PropertyHandler *h) const |
Set new current function. More... | |
void | setDecimals (int d) |
void | setDefaultBackgroundType (const std::string &fnType) |
Set the default background type. More... | |
void | setDefaultFunctionType (const std::string &fnType) |
Set the default function type. More... | |
void | setDefaultPeakType (const std::string &fnType) |
Set the default peak type. More... | |
void | setEndX (double end) override |
Set the end X. More... | |
virtual void | setFitEnabled (bool enable) |
Enable/disable the Fit buttons;. More... | |
void | setFwhm (double value) |
Set width of the current peak. More... | |
void | setHeight (double value) |
Set height of the current peak. More... | |
void | setIgnoreInvalidData (bool on) |
Set the ignore invalid data option. More... | |
void | setOutputName (const std::string &) |
Set the output name. More... | |
void | setPeakCentreOf (const QString &prefix, double value) |
void | setPeakFwhmOf (const QString &prefix, double value) |
void | setPeakHeightOf (const QString &prefix, double value) |
void | setStartX (double start) override |
Set the start X. More... | |
void | setTextPlotGuess (const QString &text) |
alter text of Plot Guess More... | |
void | setTip (const QString &txt) |
Display a tip. More... | |
void | setWorkspaceIndex (int i) override |
Set workspace index. More... | |
virtual void | setWorkspaceName (const QString &wsName) override |
Set the input workspace name. More... | |
void | setXRange (double start, double end) |
Set both start and end X. More... | |
int | sizeOfFunctionsGroup () const |
double | startX () const |
Get the start X. More... | |
std::shared_ptr< const Mantid::API::IFunction > | theFunction () const |
Get the current function. More... | |
void | updateAttributes () |
Update the function attributes. More... | |
void | updateParameters () |
Update the function parameters. More... | |
int | workspaceIndex () const |
Get workspace index. More... | |
std::string | workspaceName () const |
Get the input workspace name. More... | |
~FitPropertyBrowser () override | |
Destructor. More... | |
Public Member Functions inherited from Mantid::API::AlgorithmObserver | |
AlgorithmObserver () | |
Default constructor. More... | |
AlgorithmObserver (const IAlgorithm_const_sptr &alg) | |
Constructs AlgorithmObserver and connects all its handlers to algorithm alg. More... | |
virtual void | errorHandle (const IAlgorithm *alg, const std::string &what) |
virtual void | finishHandle (const IAlgorithm *alg) |
void | observeAll (const IAlgorithm_const_sptr &alg) |
Connect to algorithm alg and observe all its notifications. More... | |
void | observeError (const IAlgorithm_const_sptr &alg) |
Connect to algorithm alg and observe its error notification. More... | |
void | observeFinish (const IAlgorithm_const_sptr &alg) |
Connect to algorithm alg and observe its finish notification. More... | |
void | observeProgress (const IAlgorithm_const_sptr &alg) |
Connect to algorithm alg and observe its progress notification. More... | |
void | observeStart (const IAlgorithm_const_sptr &alg) |
Connect to algorithm alg and observe its start notification. More... | |
void | observeStarting () |
Connect to AlgorithmManager and observe its starting notifications. More... | |
virtual void | progressHandle (const IAlgorithm *alg, double p, const std::string &msg, const double estimatedTime, const int progressPrecision) |
virtual void | startHandle (const IAlgorithm *alg) |
virtual void | startingHandle (IAlgorithm_sptr alg) |
void | stopObserving (const IAlgorithm_const_sptr &alg) |
Disconnect from algorithm alg. More... | |
void | stopObserving (const Mantid::API::IAlgorithm *alg) |
void | stopObservingManager () |
Disconnect from the algorithm manager. More... | |
virtual | ~AlgorithmObserver () |
Virtual destructor. More... | |
Public Member Functions inherited from MantidQt::API::WorkspaceObserver | |
void | observeAdd (bool on=true) |
Observe additions. More... | |
void | observeADSClear (bool on=true) |
Observe clearances. More... | |
void | observeAfterReplace (bool on=true) |
Observe replacements. More... | |
void | observePostDelete (bool on=true) |
Observe workspace deletes. More... | |
void | observePreDelete (bool on=true) |
Observe workspace deletes. More... | |
void | observeRename (bool on=true) |
Observe renaming. More... | |
WorkspaceObserver () | |
Default constructor. More... | |
virtual | ~WorkspaceObserver () |
Destructor. More... | |
Public Member Functions inherited from MantidQt::MantidWidgets::IWorkspaceFitControl | |
virtual void | allowSequentialFits (bool allow)=0 |
virtual bool | rawData () const =0 |
virtual void | setEndX (double end)=0 |
virtual void | setStartX (double start)=0 |
virtual void | setWorkspaceIndex (int i)=0 |
virtual void | setWorkspaceName (const QString &wsName)=0 |
virtual | ~IWorkspaceFitControl ()=default |
Protected Slots | |
virtual void | boolChanged (QtProperty *prop) |
Called when a bool property is changed. More... | |
virtual void | doubleChanged (QtProperty *prop) |
Called when a double property changed. More... | |
void | enactAttributeChange (QtProperty *prop, PropertyHandler *h, const bool vectorAttribute=false) |
virtual void | enumChanged (QtProperty *prop) |
Called when the function name property changed. More... | |
virtual void | intChanged (QtProperty *prop) |
Called when an int property changed. More... | |
virtual void | populateFunctionNames () |
Get the registered function names. More... | |
Protected Member Functions | |
QtProperty * | addDoubleProperty (const QString &name, QtDoublePropertyManager *manager=nullptr) const |
Create a double property and set some settings. More... | |
virtual void | addWorkspaceIndexToBrowser () |
Adds the workspace index property to the browser. More... | |
void | createCompositeFunction (const Mantid::API::IFunction_sptr &func) |
Create CompositeFunction from pointer. More... | |
void | createCompositeFunction (const QString &str="") |
Create CompositeFunction from string. More... | |
void | createEditors (QWidget *w) |
Create editors and assign them to the managers. More... | |
void | doFit (int maxIterations) |
Do the fitting. More... | |
bool | getShouldBeNormalised () |
void | hideEvent (QHideEvent *e) override |
actions to do before the browser is hidden More... | |
void | initBasicLayout (QWidget *w) |
Initialise the layout, except for the fit button in the menu bar. More... | |
void | initLayout (QWidget *w) |
Initialise the layout. More... | |
void | minimizerChanged () |
Called when the minimizer changes. Creates minimizes's properties. More... | |
void | modifyFitMenu (QAction *fitAction, bool enabled) |
virtual void | populateFitMenuButton (QSignalMapper *fitMapper, QMenu *fitMenu) |
Populate the fit button. More... | |
void | populateWorkspaceNames () |
Get and store available workspace names. More... | |
void | setWorkspace (const Mantid::API::IFunction_sptr &function) const |
Sets the workspace to a function. More... | |
void | setWorkspaceProperties () |
Display properties relevant to the selected workspace. More... | |
void | showEvent (QShowEvent *e) override |
actions to do before the browser made visible More... | |
Mantid::API::IFunction_sptr | tryCreateFitFunction (const QString &str) |
Catches unexpected not found exceptions. More... | |
void | updateBrowserFromFitResults (const Mantid::API::IFunction_sptr &finalFunction) |
Set the parameters to the fit outcome. More... | |
void | updateDecimals () |
impose a number of decimal places on all defined Double properties More... | |
Protected Member Functions inherited from MantidQt::API::WorkspaceObserver | |
void | _addHandle (Mantid::API::WorkspaceAddNotification_ptr pNf) |
Poco notification handler for DataService::DeleteNotification. More... | |
void | _afterReplaceHandle (Mantid::API::WorkspaceAfterReplaceNotification_ptr pNf) |
Poco notification handler for DataService::AfterReplaceNotification. More... | |
void | _clearADSHandle (Mantid::API::ClearADSNotification_ptr) |
ADS clear notification. More... | |
void | _postDeleteHandle (Mantid::API::WorkspacePostDeleteNotification_ptr pNf) |
Poco notification handler for DataService::PostDeleteNotification. More... | |
void | _preDeleteHandle (Mantid::API::WorkspacePreDeleteNotification_ptr pNf) |
Poco notification handler for DataService::PostDeleteNotification. More... | |
void | _renameHandle (Mantid::API::WorkspaceRenameNotification_ptr pNf) |
Poco notification handler for DataService::RenameNotification. More... | |
virtual void | addHandle (const std::string &wsName, const Mantid::API::Workspace_sptr &ws) |
Handler of the add notifications. More... | |
virtual void | afterReplaceHandle (const std::string &wsName, const Mantid::API::Workspace_sptr &ws) |
Handler of the AfterReplace notifications. More... | |
virtual void | clearADSHandle () |
Handle an ADS clear notification. More... | |
virtual void | postDeleteHandle (const std::string &wsName) |
Handler of the delete notifications. More... | |
virtual void | preDeleteHandle (const std::string &wsName, const Mantid::API::Workspace_sptr &ws) |
Handler of the delete notifications. More... | |
virtual void | renameHandle (const std::string &oldName, const std::string &newName) |
Handler of the Rename notifications. More... | |
Protected Attributes | |
QtBoolPropertyManager * | m_boolManager |
QtTreePropertyBrowser * | m_browser |
bool | m_changeSlotsEnabled |
If false the change-slots (such as enumChanged(), doubleChanged()) are disabled. More... | |
QtEnumPropertyManager * | m_columnManager |
std::shared_ptr< Mantid::API::CompositeFunction > | m_compositeFunction |
A copy of the edited function. More... | |
QtProperty * | m_convolveMembers |
QtProperty * | m_costFunction |
QStringList | m_costFunctions |
A list of available cost functions. More... | |
QtBrowserItem * | m_customSettingsGroup |
Group for custom options available on muon analysis widget. More... | |
QtDoublePropertyManager * | m_doubleManager |
QtProperty * | m_endX |
QtEnumPropertyManager * | m_enumManager |
QtProperty * | m_errColumn |
QtProperty * | m_evaluationType |
QStringList | m_evaluationTypes |
A list of possible function evaluation types. More... | |
QtProperty * | m_excludeRange |
QtStringPropertyManager * | m_filenameManager |
QAction * | m_fitActionEvaluate |
QAction * | m_fitActionFit |
QAction * | m_fitActionSeqFit |
QAction * | m_fitActionUndoFit |
QtStringPropertyManager * | m_formulaManager |
QtBrowserItem * | m_functionsGroup |
Group for functions. More... | |
QtGroupPropertyManager * | m_groupManager |
Property managers: More... | |
bool | m_guessOutputName |
if true the output name will be guessed every time workspace name is changeed More... | |
QtProperty * | m_ignoreInvalidData |
std::vector< double > | m_initialParameters |
To keep a copy of the initial parameters in case for undo fit. More... | |
QtIntPropertyManager * | m_intManager |
QtProperty * | m_maxIterations |
QtProperty * | m_minimizer |
QList< QtProperty * > | m_minimizerProperties |
QStringList | m_minimizers |
A list of available minimizers. More... | |
QtProperty * | m_output |
ParameterPropertyManager * | m_parameterManager |
QtProperty * | m_peakRadius |
QtProperty * | m_plotCompositeMembers |
QtProperty * | m_plotDiff |
QtProperty * | m_rawData |
QStringList | m_registeredBackgrounds |
A list of registered backgrounds. More... | |
QStringList | m_registeredFunctions |
A list of registered functions. More... | |
QStringList | m_registeredOther |
A list of registered functions that are neither peaks nor backgrounds. More... | |
QStringList | m_registeredPeaks |
A list of registered peaks. More... | |
QtBrowserItem * | m_settingsGroup |
Group for input/output settings. More... | |
QtProperty * | m_showParamErrors |
QtProperty * | m_startX |
QtStringPropertyManager * | m_stringManager |
QtDoublePropertyManager * | m_vectorDoubleManager |
QtGroupPropertyManager * | m_vectorManager |
QtIntPropertyManager * | m_vectorSizeManager |
QtProperty * | m_workspace |
QtProperty * | m_workspaceIndex |
QStringList | m_workspaceNames |
A list of available workspaces. More... | |
QtProperty * | m_xColumn |
QtProperty * | m_yColumn |
Protected Attributes inherited from MantidQt::API::WorkspaceObserver | |
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspaceAddNotification > | m_addObserver |
Poco::NObserver for DataServise::AddNotification. More... | |
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspaceAfterReplaceNotification > | m_afterReplaceObserver |
Poco::NObserver for DataServise::AfterReplaceNotification. More... | |
Poco::NObserver< WorkspaceObserver, Mantid::API::ClearADSNotification > | m_clearADSObserver |
Clear notification observer. More... | |
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspacePostDeleteNotification > | m_postDeleteObserver |
Poco::NObserver for DataServise::DeleteNotification. More... | |
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspacePreDeleteNotification > | m_preDeleteObserver |
Poco::NObserver for DataServise::DeleteNotification. More... | |
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspaceRenameNotification > | m_renameObserver |
Poco::NObserver for DataServise::RenameNotification. More... | |
Private Slots | |
void | acceptFit () |
void | addBothBounds () |
Slot.Adds lower and upper bounds to the selected parameter property. More... | |
void | addBothBounds10 () |
Slot.Sets the lower and upper bounds of the selected parameter to 10% of its value. More... | |
void | addBothBounds50 () |
Slot.Sets the lower and upper bounds of the selected parameter to 50% of its value. More... | |
void | addConstraint (int f, bool lo, bool up) |
Slot. More... | |
void | addFixTie () |
Slot. More... | |
void | addFunction () |
Slot. More... | |
void | addLowerBound () |
Slot. More... | |
void | addLowerBound10 () |
Slot. More... | |
void | addLowerBound50 () |
Slot. More... | |
void | addTie () |
Slot. More... | |
void | addTieToFunction () |
Slot. More... | |
void | addUpperBound () |
Slot.Adds upper bound to the selected parameter property. More... | |
void | addUpperBound10 () |
Slot.Adds upper bound to the selected parameter property. More... | |
void | addUpperBound50 () |
Slot.Adds upper bound to the selected parameter property. More... | |
void | browserHelp () |
Open a web page with description of FitPropertyBrowser. More... | |
void | clearAllPlots () |
void | clearFitResultStatus () |
Clear the Fit status display. More... | |
void | closeFit () |
void | columnChanged (QtProperty *prop) |
================================================================================================= Slot connected to the change signals of properties m_xColumn, m_yColumn, and m_errColumn. More... | |
void | copy () |
Copy the function string to the clipboard. More... | |
void | currentItemChanged (QtBrowserItem *) |
Slot. More... | |
void | deleteFunction () |
Slot. More... | |
void | deleteTie () |
Slot. More... | |
void | executeCustomSetupLoad (const QString &name) |
void | filenameChanged (QtProperty *prop) |
Called when a filename property changed. More... | |
void | functionHelp () |
Open a web page with description of the current function. More... | |
void | loadFunction () |
void | loadFunctionFromString () |
void | parameterChanged (QtProperty *prop) |
Called when one of the parameter values gets changed. More... | |
void | paste () |
Paste a function string from the clipboard. More... | |
void | plotGuessAll () |
Slot. More... | |
void | plotGuessCurrent () |
Slot. More... | |
void | plotOrRemoveGuessAll () |
void | popupMenu (const QPoint &) |
void | processMultiBGResults () |
Process and create some output if it is a MultiBG fit. More... | |
void | removeBounds () |
Slot.Removes lower and upper bounds from the selected parameter property. More... | |
void | removeGuessAll () |
Slot. More... | |
void | removeGuessCurrent () |
Slot. More... | |
void | reset () |
reset the function part, renew function, all handlers are new More... | |
void | saveFunction () |
void | setupMultifit () |
Call MultifitSetupDialog to populate MultiBG function. More... | |
void | showFitResultStatus (const QString &status) |
Display the status string returned from Fit. More... | |
void | stringChanged (QtProperty *prop) |
Called when a string property changed. More... | |
void | updateStructureTooltips () |
Update structure tooltips for all functions. More... | |
void | vectorDoubleChanged (QtProperty *prop) |
Slot. More... | |
void | vectorSizeChanged (QtProperty *prop) |
Slot. More... | |
Private Member Functions | |
QtProperty * | addStringListProperty (const QString &name, const std::vector< std::string > &allowed_values) const |
Create a string list property. More... | |
QtProperty * | addStringProperty (const QString &name) const |
Create a string property and set some settings. More... | |
void | checkFunction () |
Check that the properties match the function. More... | |
QPushButton * | createFitMenuButton (QWidget *w) |
Initialise the layout for the fit button. More... | |
void | disableUndo () |
disable undo when the function changes More... | |
QtBrowserItem * | findItem (QtBrowserItem *parent, QtProperty *prop) const |
Find QtBrowserItem for a property prop among the chidren of. More... | |
int | getAllowedIndex (int currentIndex) const |
Return the nearest allowed workspace index. More... | |
QString | getStringPropertyValue (QtProperty *prop) const |
QtProperty * | getTieProperty (QtProperty *parProp) const |
Returns the tie property for a parameter property, or NULL. More... | |
void | handleFactoryUpdate (Mantid::API::FunctionFactoryUpdateNotification_ptr) |
Callback for FunctionFactory update notifications. More... | |
void | hasConstraints (QtProperty *parProp, bool &hasTie, bool &hasBounds) const |
Does a parameter have a tie. More... | |
virtual bool | isWorkspaceValid (Mantid::API::Workspace_sptr) const |
Check if the workspace can be used in the fit. More... | |
void | setCurrentFunction (const Mantid::API::IFunction_const_sptr &f) const |
Set new current function. More... | |
void | setStringPropertyValue (QtProperty *prop, const QString &value) const |
Set a value to a string property. More... | |
void | updateSetupMenus () |
Update setup menus according to how these are set in settings. More... | |
virtual void | workspaceChange (const QString &wsName) |
Sets the new workspace to the current one. More... | |
Private Attributes | |
QMap< QString, QList< int > > | m_allowedSpectra |
If non-empty it contains references to the spectra allowed to be fitted in this browser: keys are workspace names, values are lists of workspace indices. More... | |
QString | m_allowedTableWorkspace |
If set it contains the table workspace name to be fitted in this browser: More... | |
bool | m_auto_back |
If true background function will be included automatically. More... | |
PropertyHandler * | m_autoBackground |
The autobackground handler. More... | |
QString | m_autoBgAttributes |
List of attributes of the autobackground function as name=value pairs separated by spaces. More... | |
QString | m_autoBgName |
Name of the autobackground function. More... | |
PropertyHandler * | m_currentHandler |
QStringList | m_dataTypes |
A list of available data types. More... | |
int | m_decimals |
Number of decimal places in double properties. More... | |
std::string | m_defaultBackground |
Default background name. More... | |
std::string | m_defaultFunction |
Default function name. More... | |
std::string | m_defaultPeak |
Default peak name. More... | |
QAction * | m_displayActionClearAll |
QAction * | m_displayActionPlotGuess |
QAction * | m_displayActionQuality |
std::string | m_fitAlgOutputStatus |
std::string | m_fitAlgParameters |
QSignalMapper * | m_fitMapper |
Make sure m_groupMember belongs to the group. More... | |
QMenu * | m_fitMenu |
SelectFunctionDialog * | m_fitSelector |
QTreeWidget * | m_fitTree |
bool | m_hideWsListWidget |
bool to display ws list or not More... | |
QObject * | m_mantidui |
holds effectively a MantidUI for connecting More... | |
int | m_oldWorkspaceIndex |
Store workspace index to revert to in case validation fails. More... | |
bool | m_peakToolOn |
Shows if the PeakPickerTool is on. More... | |
QAction * | m_setupActionCustomSetup |
Setup menu. More... | |
QAction * | m_setupActionRemove |
bool | m_shouldBeNormalised |
Should the data be normalised before fitting? More... | |
QLabel * | m_status |
To display fit status. More... | |
std::string | m_storedWorkspaceName |
store current workspace name More... | |
QMap< QString, QtStringPropertyManager * > | m_stringManagers |
String property managers for special case attributes such as Filename or Formula <attribute_name,string_manager> More... | |
QLabel * | m_tip |
To display a tip text. More... | |
Poco::NObserver< FitPropertyBrowser, Mantid::API::FunctionFactoryUpdateNotification > | m_updateObserver |
Observes algorithm factory update notifications. More... | |
QString | m_windowBaseString |
QLabel * | m_workspaceLabel |
QListWidget * | m_wsListWidget |
Friends | |
class | CreateAttributeProperty |
class | PropertyHandler |
class | SequentialFitDialog |
class | SetAttribute |
class | SetAttributeProperty |
Class FitPropertyBrowser implements QtPropertyBrowser to display and control fitting function parameters and settings.
Definition at line 65 of file FitPropertyBrowser.h.
MantidQt::MantidWidgets::FitPropertyBrowser::FitPropertyBrowser | ( | QWidget * | parent = nullptr , |
QObject * | mantidui = nullptr |
||
) |
Constructor.
parent | :: The parent widget - must be an ApplicationWindow |
mantidui | :: The UI form for MantidPlot |
Definition at line 80 of file FitPropertyBrowser.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance(), m_autoBgName, m_boolManager, m_columnManager, m_defaultBackground, m_defaultFunction, m_defaultPeak, m_doubleManager, m_enumManager, m_filenameManager, m_formulaManager, m_groupManager, m_intManager, m_parameterManager, m_stringManager, m_vectorDoubleManager, m_vectorManager, m_vectorSizeManager, m_workspace, and setAutoBackgroundName().
|
override |
Destructor.
Definition at line 664 of file FitPropertyBrowser.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance(), m_boolManager, m_browser, m_columnManager, m_compositeFunction, m_doubleManager, m_enumManager, m_filenameManager, m_formulaManager, m_intManager, m_parameterManager, m_stringManager, m_updateObserver, m_vectorDoubleManager, and m_vectorSizeManager.
|
privateslot |
Definition at line 722 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::addFunction(), closeFit(), MantidQt::MantidWidgets::PropertyHandler::findCompositeFunction(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), functionChanged(), MantidQt::MantidWidgets::SelectFunctionDialog::getFunction(), getHandler(), m_browser, and m_fitSelector.
Referenced by addFunction().
void MantidQt::MantidWidgets::FitPropertyBrowser::addAllowedSpectra | ( | const QString & | wsName, |
const QList< int > & | wsIndices | ||
) |
Definition at line 3224 of file FitPropertyBrowser.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance(), intChanged(), m_allowedSpectra, m_workspaceIndex, and populateWorkspaceNames().
void MantidQt::MantidWidgets::FitPropertyBrowser::addAllowedTableWorkspace | ( | const QString & | wsName | ) |
Definition at line 3255 of file FitPropertyBrowser.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance(), and m_allowedTableWorkspace.
void MantidQt::MantidWidgets::FitPropertyBrowser::addAutoBackground | ( | ) |
Creates and adds the autobackground.
Definition at line 2608 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::addFunction(), MantidQt::MantidWidgets::PropertyHandler::calcBaseAll(), currentHandler(), MantidQt::MantidWidgets::PropertyHandler::fit(), Mantid::API::FunctionHandler::function(), getHandler(), MantidQt::MantidWidgets::PropertyHandler::hasPlot(), m_autoBackground, m_autoBgAttributes, m_autoBgName, plotCurrentGuess(), MantidQt::MantidWidgets::PropertyHandler::removeFunction(), MantidQt::MantidWidgets::PropertyHandler::setAttribute(), setCurrentFunction(), and value.
Referenced by createCompositeFunction().
|
privateslot |
Slot.Adds lower and upper bounds to the selected parameter property.
Definition at line 2352 of file FitPropertyBrowser.cpp.
References addConstraint().
Referenced by popupMenu().
|
privateslot |
Slot.Sets the lower and upper bounds of the selected parameter to 10% of its value.
Definition at line 2341 of file FitPropertyBrowser.cpp.
References addConstraint().
Referenced by popupMenu().
|
privateslot |
Slot.Sets the lower and upper bounds of the selected parameter to 50% of its value.
Definition at line 2347 of file FitPropertyBrowser.cpp.
References addConstraint().
Referenced by popupMenu().
|
privateslot |
Slot.
Adds lower bound to the selected parameter property and sets it f % below parameter's current value
Definition at line 2293 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::addConstraint(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), getHandler(), m_browser, and Mantid::Geometry::x.
Referenced by addBothBounds(), addBothBounds10(), addBothBounds50(), addLowerBound(), addLowerBound10(), addLowerBound50(), addUpperBound(), addUpperBound10(), and addUpperBound50().
|
protected |
Create a double property and set some settings.
name | :: The name of the new property |
manager | :: The current property manager |
Definition at line 2403 of file FitPropertyBrowser.cpp.
References m_decimals, and m_doubleManager.
Referenced by MantidQt::MantidWidgets::PropertyHandler::addConstraint(), MantidQt::MantidWidgets::CreateAttributeProperty::apply(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), MantidQt::MantidWidgets::PropertyHandler::initParameters(), and minimizerChanged().
void MantidQt::MantidWidgets::FitPropertyBrowser::addFitResultWorkspacesToTableWidget | ( | ) |
Adds the fit result workspaces to the QListWidget in the browser.
Definition at line 504 of file FitPropertyBrowser.cpp.
References height(), Mantid::Kernel::SingletonHolder< T >::Instance(), m_hideWsListWidget, m_workspaceLabel, m_wsListWidget, and outputName().
|
privateslot |
Slot.
Adds a tie. The current item must be a function parameter
Definition at line 2177 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::findHandler(), MantidQt::MantidWidgets::PropertyHandler::fix(), getHandler(), MantidQt::MantidWidgets::PropertyHandler::isParameter(), and m_browser.
Referenced by popupMenu().
|
privateslot |
Slot.
Called to add a new function
Definition at line 707 of file FitPropertyBrowser.cpp.
References acceptFit(), closeFit(), MantidQt::MantidWidgets::PropertyHandler::findCompositeFunction(), getHandler(), m_browser, and m_fitSelector.
Referenced by addFunction(), findPeaks(), and popupMenu().
QString MantidQt::MantidWidgets::FitPropertyBrowser::addFunction | ( | const QString & | fnName | ) |
A specialisation of addFunction to be used in the workbench.
It returns an id of the added function as a string of "f-dot" indices. This provides function identification that doesn't use PropertyHandlers and can be used on the python side.
fnName | :: Name of a function to add. |
Definition at line 3273 of file FitPropertyBrowser.cpp.
References addFunction().
PropertyHandler * MantidQt::MantidWidgets::FitPropertyBrowser::addFunction | ( | const std::string & | fnName | ) |
Create a new function.
Definition at line 689 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::addFunction(), functionChanged(), and getHandler().
|
override |
workspace was added
Definition at line 1766 of file FitPropertyBrowser.cpp.
References isWorkspaceValid(), m_allowedSpectra, m_allowedTableWorkspace, m_enumManager, m_workspace, m_workspaceNames, and workspaceName().
|
privateslot |
Slot.
Adds lower bound to the selected parameter property
Definition at line 2310 of file FitPropertyBrowser.cpp.
References addConstraint().
Referenced by popupMenu().
|
privateslot |
Slot.
Adds lower bound to the selected parameter property
Definition at line 2315 of file FitPropertyBrowser.cpp.
References addConstraint().
Referenced by popupMenu().
|
privateslot |
Slot.
Adds lower bound to the selected parameter property
Definition at line 2320 of file FitPropertyBrowser.cpp.
References addConstraint().
Referenced by popupMenu().
|
private |
Create a string list property.
Create a string list property and selects a property manager for it based on the property name.
name | :: The name of the new property |
allowed_values | :: A list of the values allowed by the validator |
Definition at line 2438 of file FitPropertyBrowser.cpp.
References m_enumManager.
Referenced by MantidQt::MantidWidgets::CreateAttributeProperty::apply().
|
private |
Create a string property and set some settings.
Create a string property and selects a property manager for it based on the property name.
name | :: The name of the new property |
!! dont forget to change the manager !!!
Definition at line 2417 of file FitPropertyBrowser.cpp.
References m_filenameManager, m_formulaManager, and m_stringManager.
Referenced by MantidQt::MantidWidgets::CreateAttributeProperty::apply().
|
privateslot |
Slot.
Adds a tie. Full expression to be entered <name>=<formula>
Definition at line 2103 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::addTie(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), Mantid::API::FunctionHandler::function(), MantidQt::MantidWidgets::PropertyHandler::functionPrefix(), getHandler(), MantidQt::MantidWidgets::PropertyHandler::isParameter(), and m_browser.
Referenced by popupMenu().
|
privateslot |
Slot.
Ties a parameter to a parameter with the same name of a different function
Definition at line 2131 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::addTie(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), Mantid::API::FunctionHandler::function(), getHandler(), Mantid::API::ParameterReference::getLocalFunction(), Mantid::API::ParameterReference::getLocalIndex(), MantidQt::MantidWidgets::PropertyHandler::isParameter(), m_browser, m_compositeFunction, and Mantid::API::IFunction::parameterName().
Referenced by popupMenu().
|
privateslot |
Slot.Adds upper bound to the selected parameter property.
Definition at line 2335 of file FitPropertyBrowser.cpp.
References addConstraint().
Referenced by popupMenu().
|
privateslot |
Slot.Adds upper bound to the selected parameter property.
Definition at line 2325 of file FitPropertyBrowser.cpp.
References addConstraint().
Referenced by popupMenu().
|
privateslot |
Slot.Adds upper bound to the selected parameter property.
Definition at line 2330 of file FitPropertyBrowser.cpp.
References addConstraint().
Referenced by popupMenu().
|
protectedvirtual |
Adds the workspace index property to the browser.
Definition at line 3018 of file FitPropertyBrowser.cpp.
References m_browser, m_settingsGroup, m_workspace, and m_workspaceIndex.
Referenced by setWorkspaceProperties().
|
signal |
Referenced by finishHandle().
|
signal |
Referenced by doFit().
|
overridevirtual |
Allow or disallow sequential fits (depending on whether other conditions are met)
================================================================================================= Allow/disallow sequential fits, depending on whether other conditions are met
allow | :: [input] Allow or disallow |
Implements MantidQt::MantidWidgets::IWorkspaceFitControl.
Definition at line 3202 of file FitPropertyBrowser.cpp.
References m_compositeFunction, and m_fitActionSeqFit.
|
protectedvirtualslot |
Called when a bool property is changed.
Called when a bool property changed.
prop | :: A pointer to the property |
Definition at line 1264 of file FitPropertyBrowser.cpp.
References enactAttributeChange(), errorsEnabled(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), getHandler(), m_boolManager, m_changeSlotsEnabled, m_ignoreInvalidData, m_parameterManager, m_plotCompositeMembers, m_plotDiff, and m_showParamErrors.
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::boolChanged(), and initBasicLayout().
|
privateslot |
Open a web page with description of FitPropertyBrowser.
================================================================================================= Show online browser help
Definition at line 3191 of file FitPropertyBrowser.cpp.
References MantidQt::API::MantidDesktopServices::openUrl().
Referenced by popupMenu().
double MantidQt::MantidWidgets::FitPropertyBrowser::centre | ( | ) | const |
Centre of the current peak.
Definition at line 1477 of file FitPropertyBrowser.cpp.
References m_currentHandler, and MantidQt::MantidWidgets::PropertyHandler::pfun().
Referenced by findPeaks().
|
signal |
|
signal |
Referenced by finishHandle(), and initBasicLayout().
|
private |
Check that the properties match the function.
Definition at line 2473 of file FitPropertyBrowser.cpp.
|
virtualslot |
Slot.
Removes all functions.
Definition at line 2042 of file FitPropertyBrowser.cpp.
References clearBrowser(), createCompositeFunction(), functionCleared(), getHandler(), and MantidQt::MantidWidgets::PropertyHandler::removeAllPlots().
Referenced by executeSetupMenu(), findPeaks(), and popupMenu().
|
privateslot |
Definition at line 2396 of file FitPropertyBrowser.cpp.
References removeFitCurves().
Referenced by executeDisplayMenu().
|
slot |
Definition at line 2049 of file FitPropertyBrowser.cpp.
References m_functionsGroup.
Referenced by clear(), loadFunction(), and reset().
|
privateslot |
Clear the Fit status display.
Definition at line 1707 of file FitPropertyBrowser.cpp.
References m_status.
Referenced by initBasicLayout(), and undoFit().
|
privateslot |
Definition at line 738 of file FitPropertyBrowser.cpp.
References m_fitSelector.
Referenced by acceptFit(), and addFunction().
|
privateslot |
================================================================================================= Slot connected to the change signals of properties m_xColumn, m_yColumn, and m_errColumn.
prop | :: Property that changed. |
Definition at line 3066 of file FitPropertyBrowser.cpp.
References endX(), Mantid::Kernel::SingletonHolder< T >::Instance(), m_columnManager, m_doubleManager, m_endX, m_startX, m_xColumn, startX(), and workspaceName().
Referenced by initBasicLayout().
|
inline |
Get Composite Function.
Definition at line 126 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::PropertyHandler::addFunction(), MantidQt::MantidWidgets::PropertyHandler::addTie(), MantidQt::MantidWidgets::MultifitSetupDialog::cellChanged(), doFit(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit(), MantidQt::MantidWidgets::SequentialFitDialog::getFitResults(), isUndoEnabled(), MantidQt::MantidWidgets::MultifitSetupDialog::MultifitSetupDialog(), processMultiBGResults(), removeFunction(), MantidQt::MantidWidgets::PropertyHandler::removeTie(), MantidQt::MantidWidgets::PropertyHandler::setAttribute(), stringChanged(), undoFit(), and updateBrowserFromFitResults().
bool MantidQt::MantidWidgets::FitPropertyBrowser::convolveMembers | ( | ) | const |
Get the "ConvolveMembers" option.
Definition at line 1167 of file FitPropertyBrowser.cpp.
References m_boolManager, and m_convolveMembers.
Referenced by doFit().
|
privateslot |
Copy the function string to the clipboard.
Definition at line 2574 of file FitPropertyBrowser.cpp.
References theFunction().
Referenced by executeSetupManageMenu(), and popupMenu().
std::string MantidQt::MantidWidgets::FitPropertyBrowser::costFunction | ( | ) | const |
Get the cost function.
Definition at line 1159 of file FitPropertyBrowser.cpp.
References m_costFunction, m_costFunctions, and m_enumManager.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), doFit(), and finishHandle().
int MantidQt::MantidWidgets::FitPropertyBrowser::count | ( | ) | const |
Get count.
Get number of functions in CompositeFunction.
Definition at line 1534 of file FitPropertyBrowser.cpp.
References m_compositeFunction.
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::checkFitEnabled(), MantidQt::MantidWidgets::SequentialFitDialog::getFitResults(), isPeak(), and popupMenu().
|
protected |
Create CompositeFunction from pointer.
Create CompositeFunction from function pointer.
func | :: [input] Pointer to function |
Definition at line 744 of file FitPropertyBrowser.cpp.
References addAutoBackground(), disableUndo(), functionChanged(), functionRemoved(), m_auto_back, m_autoBackground, m_compositeFunction, setCurrentFunction(), setFitEnabled(), and setWorkspace().
|
protected |
Create CompositeFunction from string.
str | :: [input] Function string |
Definition at line 779 of file FitPropertyBrowser.cpp.
References createCompositeFunction(), and tryCreateFitFunction().
Referenced by clear(), createCompositeFunction(), initBasicLayout(), loadFunction(), paste(), and reset().
|
protected |
Create editors and assign them to the managers.
Associates a particular widget factory to each property manager. Thus, the factory will automatically create widgets befitting to edit the properties that we define.
w | :: widget showing the properties tree and the actions buttons |
Definition at line 538 of file FitPropertyBrowser.cpp.
References m_boolManager, m_browser, m_columnManager, m_doubleManager, m_enumManager, m_filenameManager, m_formulaManager, m_intManager, m_parameterManager, m_stringManager, m_vectorDoubleManager, and m_vectorSizeManager.
Referenced by init(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::init().
|
private |
Initialise the layout for the fit button.
This initialization includes:
w | widget parenting the action menus and the property tree browser |
Definition at line 277 of file FitPropertyBrowser.cpp.
References executeFitMenu(), m_fitMapper, m_fitMenu, m_tip, and populateFitMenuButton().
Referenced by initBasicLayout().
|
signal |
Referenced by currentItemChanged(), and setCurrentFunction().
PropertyHandler * MantidQt::MantidWidgets::FitPropertyBrowser::currentHandler | ( | ) | const |
Get the current function.
Definition at line 1537 of file FitPropertyBrowser.cpp.
References m_currentHandler.
Referenced by addAutoBackground(), and functionHelp().
|
privateslot |
Slot.
Responds to changing the current item
Definition at line 1998 of file FitPropertyBrowser.cpp.
References currentChanged(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), getHandler(), and m_currentHandler.
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and initBasicLayout().
std::string MantidQt::MantidWidgets::FitPropertyBrowser::defaultBackgroundType | ( | ) | const |
Get the default background type.
Definition at line 1044 of file FitPropertyBrowser.cpp.
References m_defaultBackground.
std::string MantidQt::MantidWidgets::FitPropertyBrowser::defaultFunctionType | ( | ) | const |
Get the default function type.
Definition at line 1024 of file FitPropertyBrowser.cpp.
References m_defaultFunction.
std::string MantidQt::MantidWidgets::FitPropertyBrowser::defaultPeakType | ( | ) |
Get the default peak type.
Definition at line 1030 of file FitPropertyBrowser.cpp.
References Mantid::API::g_log, m_defaultPeak, m_registeredPeaks, setDefaultPeakType(), and Mantid::Kernel::Logger::warning().
Referenced by findPeaks().
|
privateslot |
Slot.
Called to remove a function
Definition at line 1015 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::findHandler(), getHandler(), m_browser, and removeFunction().
Referenced by popupMenu().
|
privateslot |
Slot.
Deletes a tie.
Definition at line 2191 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::findHandler(), Mantid::API::FunctionHandler::function(), getHandler(), Mantid::API::ParameterReference::getLocalFunction(), Mantid::API::ParameterReference::getLocalIndex(), MantidQt::MantidWidgets::PropertyHandler::getTies(), m_browser, m_compositeFunction, Mantid::API::IFunction::parameterName(), and MantidQt::MantidWidgets::PropertyHandler::removeTie().
Referenced by popupMenu().
|
private |
disable undo when the function changes
Definition at line 2081 of file FitPropertyBrowser.cpp.
References m_fitActionUndoFit, and m_initialParameters.
Referenced by MantidQt::MantidWidgets::PropertyHandler::addFunction(), createCompositeFunction(), enumChanged(), and undoFit().
|
protected |
Do the fitting.
Creates an instance of Fit algorithm, sets its properties and launches it.
Definition at line 1560 of file FitPropertyBrowser.cpp.
References algorithmStarted(), compositeFunction(), convolveMembers(), costFunction(), endX(), Mantid::API::g_log, getErrColumnName(), getExcludeRange(), getPeakRadius(), getWorkspace(), getXColumnName(), getYColumnName(), ignoreInvalidData(), Mantid::Kernel::SingletonHolder< T >::Instance(), isHistogramFit(), m_fitActionUndoFit, m_fitAlgParameters, m_initialParameters, m_shouldBeNormalised, maxIterations(), minimizer(), Mantid::API::AlgorithmObserver::observeFinish(), outputName(), startX(), Mantid::Kernel::Logger::warning(), workspaceIndex(), and workspaceName().
Referenced by executeFitMenu(), and fit().
|
protectedvirtualslot |
Called when a double property changed.
prop | :: A pointer to the property |
Definition at line 1339 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::addConstraint(), enactAttributeChange(), endX(), endXChanged(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), getHandler(), MantidQt::MantidWidgets::PropertyHandler::getParameterProperty(), m_changeSlotsEnabled, m_compositeFunction, m_doubleManager, m_endX, m_startX, MantidQt::MantidWidgets::PropertyHandler::setAttribute(), setWorkspace(), startX(), startXChanged(), value, and xRangeChanged().
Referenced by initBasicLayout(), and setXRange().
|
protectedslot |
Definition at line 1380 of file FitPropertyBrowser.cpp.
References Mantid::API::g_log, MantidQt::MantidWidgets::PropertyHandler::setAttribute(), MantidQt::MantidWidgets::PropertyHandler::setVectorAttribute(), and Mantid::Kernel::Logger::warning().
Referenced by boolChanged(), doubleChanged(), intChanged(), vectorDoubleChanged(), and vectorSizeChanged().
double MantidQt::MantidWidgets::FitPropertyBrowser::endX | ( | ) | const |
Get the end X.
Definition at line 1882 of file FitPropertyBrowser.cpp.
References m_doubleManager, and m_endX.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), MantidQt::MantidWidgets::PropertyHandler::addFunction(), MantidQt::MantidWidgets::PropertyHandler::centre(), MantidQt::MantidWidgets::PropertyHandler::changeType(), columnChanged(), doFit(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit(), doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), MantidQt::MantidWidgets::PropertyHandler::EstimateFwhm(), findPeaks(), MantidQt::MantidWidgets::PropertyHandler::fit(), MantidQt::MantidWidgets::PropertyHandler::setFunctionWorkspace(), setupMultifit(), and setWorkspace().
|
signal |
Referenced by doubleChanged(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged().
|
protectedvirtualslot |
Called when the function name property changed.
prop | :: A pointer to the function name property m_functionName |
Definition at line 1223 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::changeType(), disableUndo(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), functionChanged(), getHandler(), intChanged(), m_changeSlotsEnabled, m_compositeFunction, m_enumManager, m_evaluationType, m_minimizer, m_storedWorkspaceName, m_workspace, m_workspaceIndex, minimizerChanged(), MantidQt::MantidWidgets::PropertyHandler::parentHandler(), setCurrentFunction(), setWorkspaceProperties(), workspaceChange(), and workspaceName().
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::enumChanged(), and initBasicLayout().
|
signal |
Referenced by boolChanged().
|
slot |
Definition at line 609 of file FitPropertyBrowser.cpp.
References updateSetupMenus().
Referenced by executeSetupManageMenu().
|
privateslot |
Definition at line 593 of file FitPropertyBrowser.cpp.
References loadFunction().
Referenced by updateSetupMenus().
|
slot |
Definition at line 601 of file FitPropertyBrowser.cpp.
References updateSetupMenus().
Referenced by updateSetupMenus().
|
slot |
Definition at line 637 of file FitPropertyBrowser.cpp.
References clearAllPlots(), and plotOrRemoveGuessAll().
Referenced by initBasicLayout().
|
signal |
|
virtualslot |
Definition at line 625 of file FitPropertyBrowser.cpp.
References doFit(), fit(), sequentialFit(), and undoFit().
Referenced by createFitMenuButton(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::executeFitMenu().
|
slot |
Definition at line 652 of file FitPropertyBrowser.cpp.
References copy(), executeClearCustomSetups(), loadFunctionFromString(), and saveFunction().
Referenced by initBasicLayout().
|
slot |
Definition at line 645 of file FitPropertyBrowser.cpp.
References clear(), and findPeaks().
Referenced by initBasicLayout().
|
privateslot |
Called when a filename property changed.
prop | :: A pointer to the property |
Definition at line 1468 of file FitPropertyBrowser.cpp.
References getHandler(), and m_changeSlotsEnabled.
|
private |
Find QtBrowserItem for a property prop among the chidren of.
Definition at line 1979 of file FitPropertyBrowser.cpp.
References findItem().
Referenced by findItem().
|
slot |
Definition at line 2690 of file FitPropertyBrowser.cpp.
References addFunction(), centre(), clear(), defaultPeakType(), endX(), height(), Mantid::Kernel::SingletonHolder< T >::Instance(), startX(), Mantid::Kernel::Tolerance, workspaceIndex(), and workspaceName().
Referenced by executeSetupMenu().
|
overridevirtual |
Called when the Fit is finished.
Reimplemented from Mantid::API::AlgorithmObserver.
Reimplemented in MantidQt::MantidWidgets::MuonFitPropertyBrowser.
Definition at line 1651 of file FitPropertyBrowser.cpp.
References algorithmFinished(), changeWindowTitle(), costFunction(), Mantid::Kernel::IPropertyManager::existsProperty(), fitResultsChanged(), fittingDone(), Mantid::Kernel::IPropertyManager::getProperty(), Mantid::Kernel::IPropertyManager::getPropertyValue(), Mantid::Kernel::SingletonHolder< T >::Instance(), m_compositeFunction, m_displayActionQuality, m_fitAlgOutputStatus, multifitFinished(), and updateBrowserFromFitResults().
|
virtualslot |
Do the fit.
Definition at line 3029 of file FitPropertyBrowser.cpp.
References doFit(), m_intManager, m_maxIterations, and maxIterations().
Referenced by executeFitMenu(), and popupMenu().
|
signal |
Referenced by finishHandle(), and initBasicLayout().
|
signal |
signal which can optionally be caught for customization after a fit has been done
Referenced by finishHandle().
|
signal |
Referenced by undoFit().
|
signal |
|
signal |
Referenced by clear().
|
signal |
Referenced by handleFactoryUpdate(), and initBasicLayout().
|
privateslot |
Open a web page with description of the current function.
================================================================================================= Show online function help
Definition at line 3181 of file FitPropertyBrowser.cpp.
References currentHandler(), MantidQt::MantidWidgets::PropertyHandler::ifun(), and MantidQt::API::HelpWindow::showFitFunction().
Referenced by popupMenu().
|
signal |
Referenced by loadFunction().
|
signal |
Referenced by createCompositeFunction(), and removeFunction().
double MantidQt::MantidWidgets::FitPropertyBrowser::fwhm | ( | ) | const |
Width of the current peak.
Definition at line 1515 of file FitPropertyBrowser.cpp.
References m_currentHandler, and MantidQt::MantidWidgets::PropertyHandler::pfun().
|
private |
Return the nearest allowed workspace index.
If the current workspace index is set to a disallowed value this function returns the nearest allowed index.
Otherwise the current index is returned.
Definition at line 2479 of file FitPropertyBrowser.cpp.
References getWorkspace(), m_allowedSpectra, m_oldWorkspaceIndex, workspace, and workspaceName().
Referenced by intChanged(), and setWorkspaceIndex().
|
inline |
Definition at line 242 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::init().
std::string MantidQt::MantidWidgets::FitPropertyBrowser::getCentreParameterNameOf | ( | const QString & | prefix | ) |
Definition at line 3328 of file FitPropertyBrowser.cpp.
References getPeakHandler().
QString MantidQt::MantidWidgets::FitPropertyBrowser::getConstraintsString | ( | ) | const |
Creates the "Constraints" property value for the Fit algorithm.
|
inline |
Number of decimal places in double properties.
Definition at line 245 of file FitPropertyBrowser.h.
QString MantidQt::MantidWidgets::FitPropertyBrowser::getErrColumnName | ( | ) | const |
Get the name of the Error column.
Definition at line 1961 of file FitPropertyBrowser.cpp.
References getWorkspace(), m_columnManager, and m_errColumn.
Referenced by doFit().
std::string MantidQt::MantidWidgets::FitPropertyBrowser::getExcludeRange | ( | ) | const |
Get the excluded range for the fit.
Get the excluded range.
Definition at line 1185 of file FitPropertyBrowser.cpp.
References m_excludeRange, and m_stringManager.
Referenced by doFit().
std::string MantidQt::MantidWidgets::FitPropertyBrowser::getFitAlgorithmOutputStatus | ( | ) | const |
================================================================================================= Get Fit Algorithm output statuss
Definition at line 3176 of file FitPropertyBrowser.cpp.
References m_fitAlgOutputStatus.
std::string MantidQt::MantidWidgets::FitPropertyBrowser::getFitAlgorithmParameters | ( | ) | const |
================================================================================================= Get Fit Algorithm parameters
Definition at line 3171 of file FitPropertyBrowser.cpp.
References m_fitAlgParameters.
|
inline |
Return the Fit menu.
This gives Python access to events emitted by this menu.
Definition at line 279 of file FitPropertyBrowser.h.
Mantid::API::IFunction_sptr MantidQt::MantidWidgets::FitPropertyBrowser::getFittingFunction | ( | ) | const |
Return the fitting function.
Return the function that will be passed to Fit.
Definition at line 1634 of file FitPropertyBrowser.cpp.
References getFunctionAtIndex(), and m_compositeFunction.
Referenced by getFunctionString().
Mantid::API::IFunction_sptr MantidQt::MantidWidgets::FitPropertyBrowser::getFunctionAtIndex | ( | std::size_t const & | index | ) | const |
Return a function at a specific index in the composite function.
Return the function within a composite function at the position specified.
Definition at line 1647 of file FitPropertyBrowser.cpp.
References index, and m_compositeFunction.
Referenced by getFittingFunction(), processMultiBGResults(), and setupMultifit().
std::string MantidQt::MantidWidgets::FitPropertyBrowser::getFunctionString | ( | ) | const |
Get the function as a string.
Definition at line 1687 of file FitPropertyBrowser.cpp.
References getFittingFunction().
PropertyHandler * MantidQt::MantidWidgets::FitPropertyBrowser::getHandler | ( | ) | const |
Get handler to the root composite function.
Definition at line 685 of file FitPropertyBrowser.cpp.
References m_compositeFunction.
Referenced by acceptFit(), addAutoBackground(), addConstraint(), addFixTie(), addFunction(), addTie(), addTieToFunction(), boolChanged(), clear(), currentItemChanged(), deleteFunction(), deleteTie(), doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), enumChanged(), filenameChanged(), MantidQt::MantidWidgets::PropertyHandler::fit(), MantidQt::MantidWidgets::SequentialFitDialog::getFitResults(), getPeakHandler(), getPeakPrefixes(), intChanged(), loadFunction(), parameterChanged(), plotOrRemoveGuessAll(), popupMenu(), removeBounds(), removeFunction(), setCurrentFunction(), setXRange(), stringChanged(), undoFit(), updateAttributes(), updateBrowserFromFitResults(), updateParameters(), updateStructureTooltips(), vectorDoubleChanged(), and vectorSizeChanged().
QStringList MantidQt::MantidWidgets::FitPropertyBrowser::getParameterNames | ( | ) | const |
Get function parameter names.
================================================================================================= Get parameter names
Definition at line 3158 of file FitPropertyBrowser.cpp.
References theFunction().
QList< double > MantidQt::MantidWidgets::FitPropertyBrowser::getParameterValues | ( | ) | const |
Get function parameter values.
================================================================================================= Get function parameter values
Definition at line 3144 of file FitPropertyBrowser.cpp.
References theFunction().
double MantidQt::MantidWidgets::FitPropertyBrowser::getPeakCentreOf | ( | const QString & | prefix | ) |
Definition at line 3296 of file FitPropertyBrowser.cpp.
References getPeakHandler().
double MantidQt::MantidWidgets::FitPropertyBrowser::getPeakFwhmOf | ( | const QString & | prefix | ) |
Definition at line 3318 of file FitPropertyBrowser.cpp.
References getPeakHandler().
PropertyHandler * MantidQt::MantidWidgets::FitPropertyBrowser::getPeakHandler | ( | const QString & | prefix | ) |
Definition at line 3277 of file FitPropertyBrowser.cpp.
References getHandler(), index, and n.
Referenced by getCentreParameterNameOf(), getPeakCentreOf(), getPeakFwhmOf(), getPeakHeightOf(), getWidthParameterNameOf(), isParameterExplicitlySetOf(), setPeakCentreOf(), setPeakFwhmOf(), and setPeakHeightOf().
double MantidQt::MantidWidgets::FitPropertyBrowser::getPeakHeightOf | ( | const QString & | prefix | ) |
Definition at line 3307 of file FitPropertyBrowser.cpp.
References getPeakHandler().
QStringList MantidQt::MantidWidgets::FitPropertyBrowser::getPeakPrefixes | ( | ) | const |
Definition at line 3338 of file FitPropertyBrowser.cpp.
References getHandler().
int MantidQt::MantidWidgets::FitPropertyBrowser::getPeakRadius | ( | ) | const |
Get the peak radius for peak functions.
Definition at line 1182 of file FitPropertyBrowser.cpp.
References m_intManager, and m_peakRadius.
Referenced by doFit().
|
inlineprotected |
Definition at line 449 of file FitPropertyBrowser.h.
|
private |
Definition at line 2463 of file FitPropertyBrowser.cpp.
Referenced by MantidQt::MantidWidgets::SetAttribute::apply().
|
private |
Returns the tie property for a parameter property, or NULL.
Returns the tie property for a parameter property, or nullptr.
parProp | :: parameter property |
Definition at line 2263 of file FitPropertyBrowser.cpp.
QString MantidQt::MantidWidgets::FitPropertyBrowser::getTieString | ( | ) | const |
Creates the "Ties" property value for the Fit algorithm.
std::string MantidQt::MantidWidgets::FitPropertyBrowser::getWidthParameterNameOf | ( | const QString & | prefix | ) |
Definition at line 3323 of file FitPropertyBrowser.cpp.
References getPeakHandler().
std::shared_ptr< Mantid::API::Workspace > MantidQt::MantidWidgets::FitPropertyBrowser::getWorkspace | ( | ) | const |
Get the workspace.
Definition at line 1051 of file FitPropertyBrowser.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance(), and workspaceName().
Referenced by MantidQt::MantidWidgets::PropertyHandler::calcBase(), doFit(), MantidQt::MantidWidgets::PropertyHandler::EstimateFwhm(), getAllowedIndex(), getErrColumnName(), getXColumnName(), getXRange(), getYColumnName(), and MantidQt::MantidWidgets::PropertyHandler::setCentre().
|
inline |
Return the Fit menu.
This gives Python access to events emitted by this menu.
Definition at line 283 of file FitPropertyBrowser.h.
QStringList MantidQt::MantidWidgets::FitPropertyBrowser::getWorkspaceNames | ( | ) |
Returns the list of workspaces that are currently been worked on by the fit property browser.
Returns the list of workspace names the fit property browser is working on.
Definition at line 2801 of file FitPropertyBrowser.cpp.
References m_workspaceNames.
QString MantidQt::MantidWidgets::FitPropertyBrowser::getXColumnName | ( | ) | const |
Get the name of the X column.
Definition at line 1931 of file FitPropertyBrowser.cpp.
References getWorkspace(), m_columnManager, and m_xColumn.
Referenced by doFit().
QVector< double > MantidQt::MantidWidgets::FitPropertyBrowser::getXRange | ( | ) |
Get the X limits of the workspace.
Definition at line 1903 of file FitPropertyBrowser.cpp.
References getWorkspace(), m_columnManager, m_xColumn, and workspaceIndex().
QString MantidQt::MantidWidgets::FitPropertyBrowser::getYColumnName | ( | ) | const |
Get the name of the Y column.
Definition at line 1946 of file FitPropertyBrowser.cpp.
References getWorkspace(), m_columnManager, and m_yColumn.
Referenced by doFit().
|
private |
Callback for FunctionFactory update notifications.
Called when the function factory has been updated.
notice | A Poco notification object |
Definition at line 2277 of file FitPropertyBrowser.cpp.
References functionFactoryUpdateReceived().
|
private |
Does a parameter have a tie.
parProp | :: The property for a function parameter |
hasTie | :: Parameter has a tie |
hasBounds | :: Parameter has bounds |
Definition at line 2243 of file FitPropertyBrowser.cpp.
Referenced by popupMenu().
double MantidQt::MantidWidgets::FitPropertyBrowser::height | ( | ) | const |
Height of the current peak.
Definition at line 1496 of file FitPropertyBrowser.cpp.
References m_currentHandler, and MantidQt::MantidWidgets::PropertyHandler::pfun().
Referenced by addFitResultWorkspacesToTableWidget(), and findPeaks().
|
overrideprotected |
actions to do before the browser is hidden
Disconnect from the AnalysisDataService when hiden.
Definition at line 1754 of file FitPropertyBrowser.cpp.
References setADSObserveEnabled().
bool MantidQt::MantidWidgets::FitPropertyBrowser::ignoreInvalidData | ( | ) | const |
Get the ignore invalid data option.
Definition at line 1153 of file FitPropertyBrowser.cpp.
References m_boolManager, and m_ignoreInvalidData.
Referenced by doFit().
|
virtual |
Initialise layout.
Initialise the fit property browser.
Reimplemented in MantidQt::MantidWidgets::MuonFitPropertyBrowser.
Definition at line 149 of file FitPropertyBrowser.cpp.
References addDoubleProperty(), createEditors(), initLayout(), m_boolManager, m_browser, m_columnManager, m_convolveMembers, m_costFunction, m_costFunctions, m_endX, m_enumManager, m_errColumn, m_evaluationType, m_evaluationTypes, m_excludeRange, m_functionsGroup, m_groupManager, m_ignoreInvalidData, m_intManager, m_mantidui, m_maxIterations, m_minimizer, m_minimizers, m_output, m_parameterManager, m_peakRadius, m_plotCompositeMembers, m_plotDiff, m_settingsGroup, m_showParamErrors, m_startX, m_stringManager, m_workspace, m_workspaceIndex, m_xColumn, m_yColumn, plotDiff(), setIgnoreInvalidData(), updateDecimals(), and xRangeChanged().
|
protected |
Initialise the layout, except for the fit button in the menu bar.
This initialization includes:
w | widget parenting the action menus and the property tree browser |
Definition at line 331 of file FitPropertyBrowser.cpp.
References boolChanged(), changeWindowTitle(), clearFitResultStatus(), columnChanged(), createCompositeFunction(), createFitMenuButton(), currentItemChanged(), doubleChanged(), enumChanged(), executeDisplayMenu(), executeSetupManageMenu(), executeSetupMenu(), fitResultsChanged(), functionChanged(), functionFactoryUpdateReceived(), Mantid::Kernel::SingletonHolder< T >::Instance(), intChanged(), itemDoubleClicked(), m_boolManager, m_browser, m_changeSlotsEnabled, m_columnManager, m_displayActionClearAll, m_displayActionPlotGuess, m_displayActionQuality, m_doubleManager, m_enumManager, m_filenameManager, m_formulaManager, m_groupManager, m_intManager, m_parameterManager, m_setupActionCustomSetup, m_setupActionRemove, m_status, m_stringManager, m_tip, m_updateObserver, m_vectorDoubleManager, m_vectorSizeManager, m_workspaceLabel, m_wsListWidget, multifitFinished(), parameterChanged(), populateFunctionNames(), popupMenu(), processMultiBGResults(), showFitResultStatus(), stringChanged(), updateSetupMenus(), updateStructureTooltips(), vectorDoubleChanged(), vectorSizeChanged(), and workspaceDoubleClicked().
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and initLayout().
|
protected |
Initialise the layout.
This initialization includes:
w | widget parenting the action menus and the property tree browser |
Definition at line 267 of file FitPropertyBrowser.cpp.
References initBasicLayout().
Referenced by init().
|
protectedvirtualslot |
Called when an int property changed.
prop | :: A pointer to the property |
Definition at line 1291 of file FitPropertyBrowser.cpp.
References enactAttributeChange(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), getAllowedIndex(), getHandler(), index, m_changeSlotsEnabled, m_compositeFunction, m_intManager, m_maxIterations, m_oldWorkspaceIndex, m_peakRadius, m_workspaceIndex, sendParameterChanged(), MantidQt::MantidWidgets::PropertyHandler::setAttribute(), MantidQt::MantidWidgets::PropertyHandler::setFunctionWorkspace(), setWorkspaceIndex(), updatePlotSpectrum(), workspaceIndex(), and workspaceIndexChanged().
Referenced by addAllowedSpectra(), enumChanged(), and initBasicLayout().
|
inline |
Definition at line 239 of file FitPropertyBrowser.h.
bool MantidQt::MantidWidgets::FitPropertyBrowser::isFitEnabled | ( | ) | const |
Returns true if the function is ready for a fit.
Definition at line 2098 of file FitPropertyBrowser.cpp.
References m_fitActionFit.
Referenced by popupMenu().
bool MantidQt::MantidWidgets::FitPropertyBrowser::isHistogramFit | ( | ) | const |
Get "HistogramFit" option.
Definition at line 1170 of file FitPropertyBrowser.cpp.
References m_enumManager, m_evaluationType, and m_evaluationTypes.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), and doFit().
bool MantidQt::MantidWidgets::FitPropertyBrowser::isParameterExplicitlySetOf | ( | const QString & | prefix, |
const std::string & | param | ||
) |
Definition at line 3333 of file FitPropertyBrowser.cpp.
References getPeakHandler().
bool MantidQt::MantidWidgets::FitPropertyBrowser::isPeak | ( | ) | const |
Is the current function a peak?
Definition at line 1868 of file FitPropertyBrowser.cpp.
References count(), m_currentHandler, and MantidQt::MantidWidgets::PropertyHandler::pfun().
bool MantidQt::MantidWidgets::FitPropertyBrowser::isUndoEnabled | ( | ) | const |
Tells if undo can be done.
Definition at line 2087 of file FitPropertyBrowser.cpp.
References compositeFunction(), and m_initialParameters.
Referenced by popupMenu().
|
privatevirtual |
Check if the workspace can be used in the fit.
The accepted types are MatrixWorkspaces or TableWorkspaces
ws | :: The workspace |
Reimplemented in MantidQt::MantidWidgets::MuonFitPropertyBrowser.
Definition at line 1862 of file FitPropertyBrowser.cpp.
Referenced by addHandle(), and populateWorkspaceNames().
|
signal |
Referenced by initBasicLayout().
|
privateslot |
Definition at line 2532 of file FitPropertyBrowser.cpp.
References loadFunction().
Referenced by executeCustomSetupLoad(), loadFunction(), loadFunctionFromString(), popupMenu(), and setupMultifit().
void MantidQt::MantidWidgets::FitPropertyBrowser::loadFunction | ( | const QString & | funcString | ) |
Load function.
Definition at line 2556 of file FitPropertyBrowser.cpp.
References clearBrowser(), createCompositeFunction(), functionLoaded(), getHandler(), m_auto_back, and MantidQt::MantidWidgets::PropertyHandler::removeAllPlots().
|
privateslot |
Definition at line 2548 of file FitPropertyBrowser.cpp.
References loadFunction().
Referenced by executeSetupManageMenu().
int MantidQt::MantidWidgets::FitPropertyBrowser::maxIterations | ( | ) | const |
Get the max number of iterations.
Definition at line 1179 of file FitPropertyBrowser.cpp.
References m_intManager, and m_maxIterations.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), doFit(), and fit().
std::string MantidQt::MantidWidgets::FitPropertyBrowser::minimizer | ( | bool | withProperties = false | ) | const |
Get the minimizer.
Definition at line 1122 of file FitPropertyBrowser.cpp.
References m_boolManager, m_doubleManager, m_enumManager, m_intManager, m_minimizer, m_minimizerProperties, m_minimizers, m_stringManager, and value.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), doFit(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit(), and minimizerChanged().
|
protected |
Called when the minimizer changes. Creates minimizes's properties.
================================================================================================= Called when the minimizer changes.
Creates minimizes's properties.
Definition at line 3090 of file FitPropertyBrowser.cpp.
References addDoubleProperty(), Mantid::Kernel::SingletonHolder< T >::Instance(), m_boolManager, m_doubleManager, m_intManager, m_minimizerProperties, m_settingsGroup, m_stringManager, and minimizer().
Referenced by enumChanged().
|
protected |
Definition at line 3212 of file FitPropertyBrowser.cpp.
References m_fitMenu.
|
signal |
Referenced by finishHandle(), and initBasicLayout().
|
inline |
Set if the data must be normalised before fitting.
Definition at line 173 of file FitPropertyBrowser.h.
|
virtual |
Get the output name.
Reimplemented in MantidQt::MantidWidgets::MuonFitPropertyBrowser.
Definition at line 1114 of file FitPropertyBrowser.cpp.
References m_output, and m_stringManager.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), addFitResultWorkspacesToTableWidget(), doFit(), and stringChanged().
|
signal |
Referenced by initBasicLayout(), setCentre(), setFwhm(), and setHeight().
|
privateslot |
Called when one of the parameter values gets changed.
This could be caused either by user setting the value or programmatically.
prop | :: Parameter property which value got changed |
Definition at line 1400 of file FitPropertyBrowser.cpp.
References getHandler(), m_changeSlotsEnabled, and MantidQt::MantidWidgets::PropertyHandler::setParameter().
|
privateslot |
Paste a function string from the clipboard.
Definition at line 2579 of file FitPropertyBrowser.cpp.
References createCompositeFunction().
bool MantidQt::MantidWidgets::FitPropertyBrowser::plotCompositeMembers | ( | ) | const |
Returns true if a composite's member functions should be plotted also.
Definition at line 2780 of file FitPropertyBrowser.cpp.
References m_boolManager, and m_plotCompositeMembers.
|
signal |
Referenced by addAutoBackground(), and plotGuessCurrent().
bool MantidQt::MantidWidgets::FitPropertyBrowser::plotDiff | ( | ) | const |
Returns true if the difference plot should be drawn.
Definition at line 2777 of file FitPropertyBrowser.cpp.
References m_boolManager, and m_plotDiff.
Referenced by init(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::init().
|
signal |
Referenced by plotGuessAll().
|
privateslot |
Slot.
Sends a signal to plot the guess for the whole function
Definition at line 2375 of file FitPropertyBrowser.cpp.
References plotGuess().
Referenced by plotOrRemoveGuessAll(), and popupMenu().
|
privateslot |
Slot.
Sends a signal to plot the guess for the current (selected) function
Definition at line 2370 of file FitPropertyBrowser.cpp.
References plotCurrentGuess().
Referenced by popupMenu().
|
privateslot |
Definition at line 2388 of file FitPropertyBrowser.cpp.
References getHandler(), plotGuessAll(), and removeGuessAll().
Referenced by executeDisplayMenu().
|
protectedvirtual |
Populate the fit button.
This initialization includes:
fitMapper | the QMap to the fit mapper |
fitMenu | the QMenu for the fit button |
Definition at line 297 of file FitPropertyBrowser.cpp.
References m_fitActionEvaluate, m_fitActionFit, m_fitActionSeqFit, and m_fitActionUndoFit.
Referenced by createFitMenuButton().
|
protectedvirtualslot |
Get the registered function names.
Reimplemented in MantidQt::MantidWidgets::MuonFitPropertyBrowser.
Definition at line 1190 of file FitPropertyBrowser.cpp.
References Mantid::API::g_log, Mantid::Kernel::SingletonHolder< T >::Instance(), m_registeredBackgrounds, m_registeredFunctions, m_registeredOther, m_registeredPeaks, and Mantid::Kernel::Logger::warning().
Referenced by initBasicLayout().
|
protected |
Get and store available workspace names.
Definition at line 1713 of file FitPropertyBrowser.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance(), isWorkspaceValid(), m_allowedSpectra, m_allowedTableWorkspace, m_enumManager, m_workspace, m_workspaceNames, and setWorkspaceIndex().
Referenced by addAllowedSpectra(), setWorkspaceName(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::setWorkspaceName(), and showEvent().
|
privateslot |
Definition at line 801 of file FitPropertyBrowser.cpp.
References addBothBounds(), addBothBounds10(), addBothBounds50(), addFixTie(), addFunction(), addLowerBound(), addLowerBound10(), addLowerBound50(), addTie(), addTieToFunction(), addUpperBound(), addUpperBound10(), addUpperBound50(), browserHelp(), clear(), copy(), count(), deleteFunction(), deleteTie(), MantidQt::MantidWidgets::PropertyHandler::findCompositeFunction(), MantidQt::MantidWidgets::PropertyHandler::findFunction(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), fit(), functionHelp(), getHandler(), hasConstraints(), MantidQt::MantidWidgets::PropertyHandler::hasPlot(), Mantid::Kernel::SingletonHolder< T >::Instance(), isFitEnabled(), MantidQt::MantidWidgets::PropertyHandler::isParameter(), isUndoEnabled(), loadFunction(), m_browser, m_compositeFunction, m_functionsGroup, m_peakToolOn, m_settingsGroup, plotGuessAll(), plotGuessCurrent(), removeBounds(), removeGuessAll(), removeGuessCurrent(), saveFunction(), setupMultifit(), undoFit(), and workspaceName().
Referenced by initBasicLayout().
|
overridevirtual |
workspace was removed
Reimplemented from MantidQt::API::WorkspaceObserver.
Definition at line 1796 of file FitPropertyBrowser.cpp.
References removeWorkspace().
|
privateslot |
Process and create some output if it is a MultiBG fit.
Definition at line 2841 of file FitPropertyBrowser.cpp.
References compositeFunction(), getFunctionAtIndex(), Mantid::Kernel::SingletonHolder< T >::Instance(), and workspaceName().
Referenced by initBasicLayout().
|
overridevirtual |
Returns true if the fit should be done against binned (bunched) data.
Implements MantidQt::MantidWidgets::IWorkspaceFitControl.
Definition at line 2782 of file FitPropertyBrowser.cpp.
References m_boolManager, and m_rawData.
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::boolChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::getUnnormName(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::setNormalization().
void MantidQt::MantidWidgets::FitPropertyBrowser::refitAutoBackground | ( | ) |
Definition at line 2650 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::fit(), and m_autoBackground.
|
inline |
Return a list of registered backgrounds.
Definition at line 207 of file FitPropertyBrowser.h.
|
inline |
Return a list of registered functions.
Definition at line 203 of file FitPropertyBrowser.h.
|
inline |
Return a list of registered other functions.
Definition at line 209 of file FitPropertyBrowser.h.
|
inline |
Return a list of registered peaks.
Definition at line 205 of file FitPropertyBrowser.h.
|
privateslot |
Slot.Removes lower and upper bounds from the selected parameter property.
Definition at line 2357 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::findHandler(), getHandler(), m_browser, and MantidQt::MantidWidgets::PropertyHandler::removeConstraint().
Referenced by popupMenu().
|
signal |
Referenced by removeGuessCurrent().
|
signal |
Referenced by clearAllPlots().
|
virtual |
Removes the function held by the property handler.
Definition at line 695 of file FitPropertyBrowser.cpp.
References compositeFunction(), functionChanged(), functionRemoved(), getHandler(), MantidQt::MantidWidgets::PropertyHandler::removeFunction(), and removePlotSignal().
Referenced by deleteFunction().
|
signal |
Referenced by removeGuessAll().
|
privateslot |
Slot.
Sends a signal to remove the guess for the whole function
Definition at line 2386 of file FitPropertyBrowser.cpp.
References removeGuess().
Referenced by plotOrRemoveGuessAll(), and popupMenu().
|
privateslot |
Slot.
Sends a signal to remove the guess for the current (selected) function
Definition at line 2381 of file FitPropertyBrowser.cpp.
References removeCurrentGuess().
Referenced by popupMenu().
|
signal |
|
virtualslot |
Function to toggle the visibility of a settings group property exposed to python.
Definition at line 3049 of file FitPropertyBrowser.cpp.
References m_settingsGroup.
void MantidQt::MantidWidgets::FitPropertyBrowser::removeWorkspace | ( | const std::string & | wsName | ) |
Definition at line 1798 of file FitPropertyBrowser.cpp.
References m_enumManager, m_workspace, m_workspaceLabel, m_workspaceNames, m_wsListWidget, and workspaceName().
Referenced by postDeleteHandle(), and removeWorkspaceAndSpectra().
void MantidQt::MantidWidgets::FitPropertyBrowser::removeWorkspaceAndSpectra | ( | const std::string & | wsName | ) |
Definition at line 3248 of file FitPropertyBrowser.cpp.
References m_allowedSpectra, and removeWorkspace().
|
overridevirtual |
Handler of the Rename notifications.
Could be overriden in inherited classes. The default handler is provided (doing nothing).
oldName | :: The old name of a workspace |
newName | :: The new name of a workspace |
Reimplemented from MantidQt::API::WorkspaceObserver.
Definition at line 1833 of file FitPropertyBrowser.cpp.
References m_allowedSpectra, m_enumManager, m_workspace, m_workspaceNames, m_wsListWidget, and workspaceChange().
|
privateslot |
reset the function part, renew function, all handlers are new
Definition at line 2585 of file FitPropertyBrowser.cpp.
References clearBrowser(), createCompositeFunction(), and theFunction().
Referenced by MantidQt::MantidWidgets::PropertyHandler::addFunction().
|
privateslot |
Definition at line 2509 of file FitPropertyBrowser.cpp.
References saveFunction().
Referenced by executeSetupManageMenu(), popupMenu(), and saveFunction().
void MantidQt::MantidWidgets::FitPropertyBrowser::saveFunction | ( | const QString & | fnName | ) |
save function
Definition at line 2518 of file FitPropertyBrowser.cpp.
References theFunction(), and updateSetupMenus().
|
inline |
Definition at line 232 of file FitPropertyBrowser.h.
Referenced by intChanged(), and MantidQt::MantidWidgets::PropertyHandler::setParameter().
|
inline |
Definition at line 235 of file FitPropertyBrowser.h.
|
virtualslot |
Definition at line 2682 of file FitPropertyBrowser.cpp.
References m_mantidui, SequentialFitDialog, and workspaceName().
Referenced by executeFitMenu().
|
signal |
|
inline |
Definition at line 311 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::finishHandle().
void MantidQt::MantidWidgets::FitPropertyBrowser::setADSObserveEnabled | ( | bool | enabled | ) |
Definition at line 1759 of file FitPropertyBrowser.cpp.
References MantidQt::API::WorkspaceObserver::observeAdd(), MantidQt::API::WorkspaceObserver::observePostDelete(), and MantidQt::API::WorkspaceObserver::observeRename().
Referenced by hideEvent(), and showEvent().
void MantidQt::MantidWidgets::FitPropertyBrowser::setAutoBackgroundName | ( | const QString & | aName | ) |
Remember a background function name to be used for creating auto-background.
aName | :: A name of the auto-background. The may be followed by function attributes as name=value pairs separated by spaces. |
Definition at line 2662 of file FitPropertyBrowser.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance(), m_auto_back, m_autoBgAttributes, and m_autoBgName.
Referenced by FitPropertyBrowser().
void MantidQt::MantidWidgets::FitPropertyBrowser::setCentre | ( | double | value | ) |
Set centre of the current peak.
value | :: The new centre value |
Definition at line 1487 of file FitPropertyBrowser.cpp.
References Mantid::API::FunctionHandler::function(), m_currentHandler, parameterChanged(), MantidQt::MantidWidgets::PropertyHandler::setCentre(), MantidQt::MantidWidgets::PropertyHandler::updateParameters(), and value.
|
private |
Set new current function.
f | :: New current function |
Definition at line 1553 of file FitPropertyBrowser.cpp.
References getHandler(), and setCurrentFunction().
void MantidQt::MantidWidgets::FitPropertyBrowser::setCurrentFunction | ( | PropertyHandler * | h | ) | const |
Set new current function.
h | :: New current function |
Definition at line 1542 of file FitPropertyBrowser.cpp.
References currentChanged(), MantidQt::MantidWidgets::PropertyHandler::item(), m_browser, and m_currentHandler.
Referenced by addAutoBackground(), MantidQt::MantidWidgets::PropertyHandler::addFunction(), createCompositeFunction(), enumChanged(), and setCurrentFunction().
void MantidQt::MantidWidgets::FitPropertyBrowser::setDecimals | ( | int | d | ) |
Definition at line 2769 of file FitPropertyBrowser.cpp.
References Mantid::Geometry::d, m_decimals, and updateDecimals().
void MantidQt::MantidWidgets::FitPropertyBrowser::setDefaultBackgroundType | ( | const std::string & | fnType | ) |
Set the default background type.
Definition at line 1046 of file FitPropertyBrowser.cpp.
References m_defaultBackground, and setDefaultFunctionType().
Referenced by MantidQt::MantidWidgets::PropertyHandler::addFunction(), and MantidQt::MantidWidgets::PropertyHandler::changeType().
void MantidQt::MantidWidgets::FitPropertyBrowser::setDefaultFunctionType | ( | const std::string & | fnType | ) |
Set the default function type.
Definition at line 1027 of file FitPropertyBrowser.cpp.
References m_defaultFunction.
Referenced by setDefaultBackgroundType(), and setDefaultPeakType().
void MantidQt::MantidWidgets::FitPropertyBrowser::setDefaultPeakType | ( | const std::string & | fnType | ) |
Set the default peak type.
Definition at line 1039 of file FitPropertyBrowser.cpp.
References m_defaultPeak, and setDefaultFunctionType().
Referenced by MantidQt::MantidWidgets::PropertyHandler::addFunction(), MantidQt::MantidWidgets::PropertyHandler::changeType(), and defaultPeakType().
|
overridevirtual |
Set the end X.
Implements MantidQt::MantidWidgets::IWorkspaceFitControl.
Definition at line 1885 of file FitPropertyBrowser.cpp.
References m_doubleManager, m_endX, and value.
Referenced by setWorkspaceName().
|
virtual |
Enable/disable the Fit buttons;.
Reimplemented in MantidQt::MantidWidgets::MuonFitPropertyBrowser.
Definition at line 2092 of file FitPropertyBrowser.cpp.
References m_fitActionFit, and m_fitActionSeqFit.
Referenced by MantidQt::MantidWidgets::PropertyHandler::addFunction(), createCompositeFunction(), and MantidQt::MantidWidgets::PropertyHandler::removeFunction().
void MantidQt::MantidWidgets::FitPropertyBrowser::setFwhm | ( | double | value | ) |
Set width of the current peak.
value | :: The new width value |
Definition at line 1525 of file FitPropertyBrowser.cpp.
References Mantid::API::FunctionHandler::function(), m_currentHandler, parameterChanged(), MantidQt::MantidWidgets::PropertyHandler::setFwhm(), MantidQt::MantidWidgets::PropertyHandler::updateParameters(), and value.
void MantidQt::MantidWidgets::FitPropertyBrowser::setHeight | ( | double | value | ) |
Set height of the current peak.
value | :: The new height value |
Definition at line 1506 of file FitPropertyBrowser.cpp.
References Mantid::API::FunctionHandler::function(), m_currentHandler, parameterChanged(), MantidQt::MantidWidgets::PropertyHandler::setHeight(), MantidQt::MantidWidgets::PropertyHandler::updateParameters(), and value.
void MantidQt::MantidWidgets::FitPropertyBrowser::setIgnoreInvalidData | ( | bool | on | ) |
Set the ignore invalid data option.
Definition at line 1156 of file FitPropertyBrowser.cpp.
References m_boolManager, and m_ignoreInvalidData.
Referenced by init().
void MantidQt::MantidWidgets::FitPropertyBrowser::setOutputName | ( | const std::string & | name | ) |
Set the output name.
Definition at line 1117 of file FitPropertyBrowser.cpp.
References m_output, and m_stringManager.
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::enumChanged(), and stringChanged().
void MantidQt::MantidWidgets::FitPropertyBrowser::setPeakCentreOf | ( | const QString & | prefix, |
double | value | ||
) |
Definition at line 3290 of file FitPropertyBrowser.cpp.
References getPeakHandler(), and value.
void MantidQt::MantidWidgets::FitPropertyBrowser::setPeakFwhmOf | ( | const QString & | prefix, |
double | value | ||
) |
Definition at line 3312 of file FitPropertyBrowser.cpp.
References getPeakHandler(), and value.
void MantidQt::MantidWidgets::FitPropertyBrowser::setPeakHeightOf | ( | const QString & | prefix, |
double | value | ||
) |
Definition at line 3301 of file FitPropertyBrowser.cpp.
References getPeakHandler(), and value.
|
slot |
Definition at line 2751 of file FitPropertyBrowser.cpp.
References m_displayActionPlotGuess, and m_peakToolOn.
|
overridevirtual |
Set the start X.
Implements MantidQt::MantidWidgets::IWorkspaceFitControl.
Definition at line 1879 of file FitPropertyBrowser.cpp.
References m_doubleManager, m_startX, and value.
Referenced by setWorkspaceName().
|
private |
Set a value to a string property.
prop | :: A pointer to the property |
value | :: New value for the property |
Definition at line 2456 of file FitPropertyBrowser.cpp.
References value.
Referenced by MantidQt::MantidWidgets::CreateAttributeProperty::apply(), and MantidQt::MantidWidgets::SetAttributeProperty::apply().
void MantidQt::MantidWidgets::FitPropertyBrowser::setTextPlotGuess | ( | const QString & | text | ) |
alter text of Plot Guess
Definition at line 2784 of file FitPropertyBrowser.cpp.
References m_displayActionPlotGuess.
void MantidQt::MantidWidgets::FitPropertyBrowser::setTip | ( | const QString & | txt | ) |
Display a tip.
txt | :: The text to display |
Definition at line 2287 of file FitPropertyBrowser.cpp.
References m_tip.
|
privateslot |
Call MultifitSetupDialog to populate MultiBG function.
Definition at line 2806 of file FitPropertyBrowser.cpp.
References endX(), getFunctionAtIndex(), Mantid::Kernel::SingletonHolder< T >::Instance(), loadFunction(), startX(), and workspaceName().
Referenced by popupMenu().
|
protected |
Sets the workspace to a function.
Definition at line 2592 of file FitPropertyBrowser.cpp.
References endX(), Mantid::Kernel::SingletonHolder< T >::Instance(), startX(), workspaceIndex(), and workspaceName().
Referenced by MantidQt::MantidWidgets::PropertyHandler::addFunction(), createCompositeFunction(), doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), and setXRange().
|
overridevirtual |
Set workspace index.
Implements MantidQt::MantidWidgets::IWorkspaceFitControl.
Definition at line 1104 of file FitPropertyBrowser.cpp.
References getAllowedIndex(), index, m_intManager, and m_workspaceIndex.
Referenced by intChanged(), populateWorkspaceNames(), setWorkspaceName(), and setWorkspaceProperties().
|
overridevirtual |
Set the input workspace name.
Implements MantidQt::MantidWidgets::IWorkspaceFitControl.
Reimplemented in MantidQt::MantidWidgets::MuonFitPropertyBrowser.
Definition at line 1073 of file FitPropertyBrowser.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance(), m_enumManager, m_workspace, m_workspaceNames, populateWorkspaceNames(), setEndX(), setStartX(), setWorkspaceIndex(), and workspaceIndex().
|
protected |
Display properties relevant to the selected workspace.
Display properties relevant to the selected workspace: WorkspaceIndex, StartX, and EndX for a MatrixWorkspace; XColumn, YColumn, and ErrColumn for a TableWorkspace.
Definition at line 2913 of file FitPropertyBrowser.cpp.
References addWorkspaceIndexToBrowser(), Mantid::Kernel::SingletonHolder< T >::Instance(), m_browser, m_columnManager, m_customSettingsGroup, m_errColumn, m_evaluationType, m_settingsGroup, m_storedWorkspaceName, m_workspace, m_workspaceIndex, m_xColumn, m_yColumn, setWorkspaceIndex(), and workspaceName().
Referenced by enumChanged().
void MantidQt::MantidWidgets::FitPropertyBrowser::setXRange | ( | double | start, |
double | end | ||
) |
Set both start and end X.
Definition at line 1887 of file FitPropertyBrowser.cpp.
References doubleChanged(), getHandler(), m_compositeFunction, m_doubleManager, m_endX, m_startX, MantidQt::MantidWidgets::PropertyHandler::setAttribute(), and setWorkspace().
|
overrideprotected |
actions to do before the browser made visible
Connect to the AnalysisDataService when shown.
Definition at line 1742 of file FitPropertyBrowser.cpp.
References populateWorkspaceNames(), and setADSObserveEnabled().
|
privateslot |
Display the status string returned from Fit.
status | :: A status string as returned by OutputStatus Fit property. |
Definition at line 1694 of file FitPropertyBrowser.cpp.
References m_status.
Referenced by initBasicLayout().
int MantidQt::MantidWidgets::FitPropertyBrowser::sizeOfFunctionsGroup | ( | ) | const |
Definition at line 3220 of file FitPropertyBrowser.cpp.
double MantidQt::MantidWidgets::FitPropertyBrowser::startX | ( | ) | const |
Get the start X.
Definition at line 1876 of file FitPropertyBrowser.cpp.
References m_doubleManager, and m_startX.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), MantidQt::MantidWidgets::PropertyHandler::addFunction(), MantidQt::MantidWidgets::PropertyHandler::centre(), MantidQt::MantidWidgets::PropertyHandler::changeType(), columnChanged(), doFit(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit(), doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), MantidQt::MantidWidgets::PropertyHandler::EstimateFwhm(), findPeaks(), MantidQt::MantidWidgets::PropertyHandler::fit(), MantidQt::MantidWidgets::PropertyHandler::setFunctionWorkspace(), setupMultifit(), and setWorkspace().
|
signal |
Referenced by doubleChanged(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged().
|
privateslot |
Called when a string property changed.
prop | :: A pointer to the property |
Definition at line 1410 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::addTie(), compositeFunction(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), functionChanged(), MantidQt::MantidWidgets::PropertyHandler::functionPrefix(), getHandler(), MantidQt::MantidWidgets::PropertyHandler::getParameterProperty(), m_changeSlotsEnabled, m_guessOutputName, m_output, m_stringManager, outputName(), Mantid::API::ParameterTie::set(), setOutputName(), and workspaceName().
Referenced by initBasicLayout().
Mantid::API::IFunction_const_sptr MantidQt::MantidWidgets::FitPropertyBrowser::theFunction | ( | ) | const |
Get the current function.
Definition at line 2471 of file FitPropertyBrowser.cpp.
References m_compositeFunction.
Referenced by copy(), getParameterNames(), getParameterValues(), reset(), and saveFunction().
|
virtualslot |
Function to toggle the visibility of the settings browser.
Definition at line 3037 of file FitPropertyBrowser.cpp.
References m_browser, and m_settingsGroup.
|
virtualslot |
Definition at line 3059 of file FitPropertyBrowser.cpp.
References m_hideWsListWidget.
|
protected |
Catches unexpected not found exceptions.
Definition at line 792 of file FitPropertyBrowser.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance().
Referenced by createCompositeFunction().
|
slot |
Slot.
Undoes the fit: restores the parameters to their initial values.
Definition at line 2067 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::clearErrors(), clearFitResultStatus(), compositeFunction(), disableUndo(), fitUndone(), getHandler(), m_initialParameters, and updateParameters().
Referenced by executeFitMenu(), and popupMenu().
void MantidQt::MantidWidgets::FitPropertyBrowser::updateAttributes | ( | ) |
Update the function attributes.
Update the function attributes which have changed.
Definition at line 2037 of file FitPropertyBrowser.cpp.
References getHandler(), and MantidQt::MantidWidgets::PropertyHandler::updateAttributes().
|
protected |
Set the parameters to the fit outcome.
Definition at line 2055 of file FitPropertyBrowser.cpp.
References compositeFunction(), getHandler(), MantidQt::MantidWidgets::PropertyHandler::updateErrors(), and updateParameters().
Referenced by finishHandle().
|
protected |
impose a number of decimal places on all defined Double properties
Definition at line 2759 of file FitPropertyBrowser.cpp.
References m_decimals, and m_doubleManager.
Referenced by init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and setDecimals().
void MantidQt::MantidWidgets::FitPropertyBrowser::updateParameters | ( | ) |
Update the function parameters.
Update the function parameter properties.
Definition at line 2032 of file FitPropertyBrowser.cpp.
References getHandler(), and MantidQt::MantidWidgets::PropertyHandler::updateParameters().
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::getFitResults(), undoFit(), and updateBrowserFromFitResults().
|
signal |
Referenced by intChanged().
|
private |
Update setup menus according to how these are set in settings.
Definition at line 563 of file FitPropertyBrowser.cpp.
References executeCustomSetupLoad(), executeCustomSetupRemove(), m_setupActionCustomSetup, and m_setupActionRemove.
Referenced by executeClearCustomSetups(), executeCustomSetupRemove(), initBasicLayout(), and saveFunction().
|
privateslot |
Update structure tooltips for all functions.
Recursively updates structure tooltips for all the functions.
Definition at line 620 of file FitPropertyBrowser.cpp.
References getHandler(), and MantidQt::MantidWidgets::PropertyHandler::updateStructureTooltip().
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and initBasicLayout().
|
privateslot |
Slot.
Responds to changing a vector attribute member
prop | :: A property managed by m_vectorDoubleManager. |
Definition at line 2011 of file FitPropertyBrowser.cpp.
References enactAttributeChange(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), and getHandler().
Referenced by initBasicLayout().
|
privateslot |
Slot.
Responds to changing a vector attribute size
prop | :: A property managed by m_vectorSizeManager. |
Definition at line 2022 of file FitPropertyBrowser.cpp.
References enactAttributeChange(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), and getHandler().
Referenced by initBasicLayout().
|
privatevirtual |
Sets the new workspace to the current one.
Sets a new workspace.
Definition at line 2789 of file FitPropertyBrowser.cpp.
References m_guessOutputName, m_output, m_stringManager, workspaceName(), workspaceNameChanged(), and wsChangePPAssign().
Referenced by enumChanged(), and renameHandle().
|
signal |
Referenced by workspaceDoubleClicked().
|
slot |
Definition at line 526 of file FitPropertyBrowser.cpp.
References workspaceClicked().
Referenced by initBasicLayout().
int MantidQt::MantidWidgets::FitPropertyBrowser::workspaceIndex | ( | ) | const |
Get workspace index.
Definition at line 1101 of file FitPropertyBrowser.cpp.
References m_intManager, and m_workspaceIndex.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), MantidQt::MantidWidgets::PropertyHandler::addFunction(), MantidQt::MantidWidgets::SequentialFitDialog::addWorkspaces(), MantidQt::MantidWidgets::PropertyHandler::calcBase(), MantidQt::MantidWidgets::PropertyHandler::changeType(), doFit(), MantidQt::MantidWidgets::PropertyHandler::EstimateFwhm(), findPeaks(), MantidQt::MantidWidgets::PropertyHandler::fit(), MantidQt::MantidWidgets::SequentialFitDialog::getFitResults(), getXRange(), intChanged(), MantidQt::MantidWidgets::PropertyHandler::setCentre(), setWorkspace(), and setWorkspaceName().
|
signal |
Referenced by intChanged().
std::string MantidQt::MantidWidgets::FitPropertyBrowser::workspaceName | ( | ) | const |
Get the input workspace name.
Definition at line 1063 of file FitPropertyBrowser.cpp.
References m_enumManager, m_workspace, and m_workspaceNames.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), MantidQt::MantidWidgets::PropertyHandler::addFunction(), addHandle(), MantidQt::MantidWidgets::PropertyHandler::changeType(), columnChanged(), doFit(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit(), enumChanged(), findPeaks(), MantidQt::MantidWidgets::PropertyHandler::fit(), getAllowedIndex(), MantidQt::MantidWidgets::SequentialFitDialog::getFitResults(), getWorkspace(), popupMenu(), processMultiBGResults(), removeWorkspace(), sequentialFit(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::setNormalization(), setupMultifit(), setWorkspace(), setWorkspaceProperties(), stringChanged(), and workspaceChange().
|
signal |
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::enumChanged(), and workspaceChange().
|
signal |
Referenced by workspaceChange().
|
signal |
Referenced by doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), and init().
|
friend |
Definition at line 694 of file FitPropertyBrowser.h.
|
friend |
Definition at line 693 of file FitPropertyBrowser.h.
|
friend |
Definition at line 697 of file FitPropertyBrowser.h.
Referenced by sequentialFit().
|
friend |
Definition at line 695 of file FitPropertyBrowser.h.
|
friend |
Definition at line 696 of file FitPropertyBrowser.h.
|
private |
If non-empty it contains references to the spectra allowed to be fitted in this browser: keys are workspace names, values are lists of workspace indices.
Definition at line 687 of file FitPropertyBrowser.h.
Referenced by addAllowedSpectra(), addHandle(), getAllowedIndex(), populateWorkspaceNames(), removeWorkspaceAndSpectra(), and renameHandle().
|
private |
If set it contains the table workspace name to be fitted in this browser:
Definition at line 689 of file FitPropertyBrowser.h.
Referenced by addAllowedTableWorkspace(), addHandle(), and populateWorkspaceNames().
|
private |
If true background function will be included automatically.
Definition at line 656 of file FitPropertyBrowser.h.
Referenced by createCompositeFunction(), loadFunction(), and setAutoBackgroundName().
|
private |
The autobackground handler.
Definition at line 665 of file FitPropertyBrowser.h.
Referenced by addAutoBackground(), MantidQt::MantidWidgets::PropertyHandler::calcBase(), MantidQt::MantidWidgets::PropertyHandler::calcBaseAll(), MantidQt::MantidWidgets::PropertyHandler::changeType(), createCompositeFunction(), refitAutoBackground(), MantidQt::MantidWidgets::PropertyHandler::removeFunction(), and MantidQt::MantidWidgets::PropertyHandler::setAttribute().
|
private |
List of attributes of the autobackground function as name=value pairs separated by spaces.
Definition at line 662 of file FitPropertyBrowser.h.
Referenced by addAutoBackground(), and setAutoBackgroundName().
|
private |
Name of the autobackground function.
Definition at line 659 of file FitPropertyBrowser.h.
Referenced by addAutoBackground(), FitPropertyBrowser(), and setAutoBackgroundName().
|
protected |
Definition at line 490 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::SetAttribute::apply(), MantidQt::MantidWidgets::CreateAttributeProperty::apply(), MantidQt::MantidWidgets::SetAttributeProperty::apply(), boolChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::boolChanged(), convolveMembers(), createEditors(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::enumChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::executeFitMenu(), FitPropertyBrowser(), ignoreInvalidData(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), initBasicLayout(), minimizer(), minimizerChanged(), plotCompositeMembers(), plotDiff(), rawData(), setIgnoreInvalidData(), and ~FitPropertyBrowser().
|
protected |
Definition at line 525 of file FitPropertyBrowser.h.
Referenced by acceptFit(), addConstraint(), addFixTie(), addFunction(), addTie(), addTieToFunction(), addWorkspaceIndexToBrowser(), createEditors(), deleteFunction(), deleteTie(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::enumChanged(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), MantidQt::MantidWidgets::PropertyHandler::init(), initBasicLayout(), popupMenu(), removeBounds(), setCurrentFunction(), setWorkspaceProperties(), toggleSettingsBrowserVisible(), and ~FitPropertyBrowser().
|
protected |
If false the change-slots (such as enumChanged(), doubleChanged()) are disabled.
Definition at line 541 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::PropertyHandler::addConstraint(), MantidQt::MantidWidgets::PropertyHandler::addFunction(), MantidQt::MantidWidgets::PropertyHandler::addTie(), MantidQt::MantidWidgets::SetAttributeProperty::apply(), boolChanged(), MantidQt::MantidWidgets::PropertyHandler::changeType(), doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), enumChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::enumChanged(), filenameChanged(), MantidQt::MantidWidgets::PropertyHandler::fix(), MantidQt::MantidWidgets::PropertyHandler::init(), initBasicLayout(), intChanged(), parameterChanged(), MantidQt::MantidWidgets::PropertyHandler::removeTie(), MantidQt::MantidWidgets::PropertyHandler::renameChildren(), and stringChanged().
|
protected |
Definition at line 494 of file FitPropertyBrowser.h.
Referenced by columnChanged(), createEditors(), FitPropertyBrowser(), getErrColumnName(), getXColumnName(), getXRange(), getYColumnName(), init(), initBasicLayout(), setWorkspaceProperties(), and ~FitPropertyBrowser().
|
protected |
A copy of the edited function.
Definition at line 523 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), addTieToFunction(), allowSequentialFits(), count(), createCompositeFunction(), deleteTie(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit(), doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), enumChanged(), finishHandle(), getFittingFunction(), getFunctionAtIndex(), getHandler(), intChanged(), MantidQt::MantidWidgets::SequentialFitDialog::populateParameters(), popupMenu(), setXRange(), theFunction(), and ~FitPropertyBrowser().
|
protected |
Definition at line 513 of file FitPropertyBrowser.h.
Referenced by convolveMembers(), and init().
|
protected |
Definition at line 507 of file FitPropertyBrowser.h.
Referenced by costFunction(), init(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::init().
|
mutableprotected |
A list of available cost functions.
Definition at line 559 of file FitPropertyBrowser.h.
Referenced by costFunction(), init(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::init().
|
mutableprivate |
Definition at line 637 of file FitPropertyBrowser.h.
Referenced by centre(), currentHandler(), currentItemChanged(), fwhm(), height(), isPeak(), setCentre(), setCurrentFunction(), setFwhm(), and setHeight().
|
protected |
Group for custom options available on muon analysis widget.
Definition at line 537 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and setWorkspaceProperties().
|
mutableprivate |
A list of available data types.
Definition at line 640 of file FitPropertyBrowser.h.
|
private |
Number of decimal places in double properties.
Definition at line 668 of file FitPropertyBrowser.h.
Referenced by addDoubleProperty(), setDecimals(), and updateDecimals().
|
private |
Default background name.
Definition at line 647 of file FitPropertyBrowser.h.
Referenced by defaultBackgroundType(), FitPropertyBrowser(), and setDefaultBackgroundType().
|
private |
Default function name.
Definition at line 643 of file FitPropertyBrowser.h.
Referenced by defaultFunctionType(), FitPropertyBrowser(), and setDefaultFunctionType().
|
private |
Default peak name.
Definition at line 645 of file FitPropertyBrowser.h.
Referenced by defaultPeakType(), FitPropertyBrowser(), and setDefaultPeakType().
|
private |
Definition at line 610 of file FitPropertyBrowser.h.
Referenced by initBasicLayout().
|
private |
Definition at line 608 of file FitPropertyBrowser.h.
Referenced by initBasicLayout(), setPeakToolOn(), and setTextPlotGuess().
|
private |
Definition at line 609 of file FitPropertyBrowser.h.
Referenced by finishHandle(), and initBasicLayout().
|
protected |
Definition at line 487 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::PropertyHandler::addConstraint(), addDoubleProperty(), MantidQt::MantidWidgets::CreateAttributeProperty::apply(), MantidQt::MantidWidgets::SetAttributeProperty::apply(), MantidQt::MantidWidgets::SetAttribute::apply(), columnChanged(), createEditors(), doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), endX(), FitPropertyBrowser(), initBasicLayout(), MantidQt::MantidWidgets::PropertyHandler::initParameters(), minimizer(), minimizerChanged(), setEndX(), setStartX(), setXRange(), startX(), updateDecimals(), and ~FitPropertyBrowser().
|
protected |
Definition at line 503 of file FitPropertyBrowser.h.
Referenced by columnChanged(), doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), endX(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), setEndX(), and setXRange().
|
protected |
Definition at line 488 of file FitPropertyBrowser.h.
Referenced by addHandle(), addStringListProperty(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::boolChanged(), MantidQt::MantidWidgets::PropertyHandler::changeType(), costFunction(), createEditors(), enumChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::enumChanged(), FitPropertyBrowser(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), MantidQt::MantidWidgets::PropertyHandler::init(), initBasicLayout(), isHistogramFit(), minimizer(), populateWorkspaceNames(), removeWorkspace(), renameHandle(), MantidQt::MantidWidgets::PropertyHandler::setFunctionWorkspace(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::setNormalization(), setWorkspaceName(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::setWorkspaceName(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::updateGroupDisplay(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::updatePeriodDisplay(), MantidQt::MantidWidgets::PropertyHandler::updateWorkspaces(), workspaceName(), and ~FitPropertyBrowser().
|
protected |
Definition at line 517 of file FitPropertyBrowser.h.
Referenced by getErrColumnName(), init(), and setWorkspaceProperties().
|
protected |
Definition at line 519 of file FitPropertyBrowser.h.
Referenced by enumChanged(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), isHistogramFit(), and setWorkspaceProperties().
|
mutableprotected |
A list of possible function evaluation types.
Definition at line 561 of file FitPropertyBrowser.h.
Referenced by init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and isHistogramFit().
|
protected |
Definition at line 511 of file FitPropertyBrowser.h.
Referenced by getExcludeRange(), and init().
|
protected |
Definition at line 492 of file FitPropertyBrowser.h.
Referenced by addStringProperty(), createEditors(), FitPropertyBrowser(), initBasicLayout(), and ~FitPropertyBrowser().
|
protected |
Definition at line 530 of file FitPropertyBrowser.h.
Referenced by populateFitMenuButton().
|
protected |
Definition at line 529 of file FitPropertyBrowser.h.
Referenced by isFitEnabled(), populateFitMenuButton(), setFitEnabled(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::setFitEnabled().
|
protected |
Definition at line 528 of file FitPropertyBrowser.h.
Referenced by allowSequentialFits(), populateFitMenuButton(), setFitEnabled(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::setFitEnabled().
|
protected |
Definition at line 527 of file FitPropertyBrowser.h.
Referenced by disableUndo(), doFit(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit(), and populateFitMenuButton().
|
private |
Definition at line 681 of file FitPropertyBrowser.h.
Referenced by finishHandle(), and getFitAlgorithmOutputStatus().
|
private |
Definition at line 680 of file FitPropertyBrowser.h.
Referenced by doFit(), and getFitAlgorithmParameters().
|
private |
Make sure m_groupMember belongs to the group.
Fit and Display menu
Definition at line 606 of file FitPropertyBrowser.h.
Referenced by createFitMenuButton().
|
private |
Definition at line 607 of file FitPropertyBrowser.h.
Referenced by createFitMenuButton(), and modifyFitMenu().
|
private |
Definition at line 624 of file FitPropertyBrowser.h.
Referenced by acceptFit(), addFunction(), and closeFit().
|
private |
Definition at line 626 of file FitPropertyBrowser.h.
|
protected |
Definition at line 493 of file FitPropertyBrowser.h.
Referenced by addStringProperty(), createEditors(), FitPropertyBrowser(), initBasicLayout(), and ~FitPropertyBrowser().
|
protected |
Group for functions.
Definition at line 533 of file FitPropertyBrowser.h.
Referenced by clearBrowser(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), MantidQt::MantidWidgets::PropertyHandler::init(), and popupMenu().
|
protected |
Property managers:
Definition at line 486 of file FitPropertyBrowser.h.
Referenced by FitPropertyBrowser(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), MantidQt::MantidWidgets::PropertyHandler::init(), and initBasicLayout().
|
protected |
if true the output name will be guessed every time workspace name is changeed
Definition at line 544 of file FitPropertyBrowser.h.
Referenced by stringChanged(), and workspaceChange().
|
private |
bool to display ws list or not
Definition at line 653 of file FitPropertyBrowser.h.
Referenced by addFitResultWorkspacesToTableWidget(), and toggleWsListVisible().
|
protected |
Definition at line 506 of file FitPropertyBrowser.h.
Referenced by boolChanged(), ignoreInvalidData(), init(), and setIgnoreInvalidData().
|
protected |
To keep a copy of the initial parameters in case for undo fit.
Definition at line 564 of file FitPropertyBrowser.h.
Referenced by disableUndo(), doFit(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit(), isUndoEnabled(), and undoFit().
|
protected |
Definition at line 489 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::CreateAttributeProperty::apply(), MantidQt::MantidWidgets::SetAttributeProperty::apply(), MantidQt::MantidWidgets::SetAttribute::apply(), createEditors(), fit(), FitPropertyBrowser(), getPeakRadius(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), initBasicLayout(), intChanged(), maxIterations(), minimizer(), minimizerChanged(), MantidQt::MantidWidgets::PropertyHandler::setFunctionWorkspace(), setWorkspaceIndex(), workspaceIndex(), and ~FitPropertyBrowser().
|
private |
holds effectively a MantidUI for connecting
Definition at line 671 of file FitPropertyBrowser.h.
Referenced by init(), and sequentialFit().
|
protected |
Definition at line 508 of file FitPropertyBrowser.h.
Referenced by fit(), init(), intChanged(), and maxIterations().
|
protected |
Definition at line 505 of file FitPropertyBrowser.h.
Referenced by enumChanged(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and minimizer().
|
protected |
Definition at line 520 of file FitPropertyBrowser.h.
Referenced by minimizer(), and minimizerChanged().
|
mutableprotected |
A list of available minimizers.
Definition at line 555 of file FitPropertyBrowser.h.
Referenced by init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and minimizer().
|
private |
Store workspace index to revert to in case validation fails.
Definition at line 691 of file FitPropertyBrowser.h.
Referenced by getAllowedIndex(), and intChanged().
|
protected |
Definition at line 504 of file FitPropertyBrowser.h.
Referenced by init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), outputName(), setOutputName(), stringChanged(), and workspaceChange().
|
protected |
Definition at line 498 of file FitPropertyBrowser.h.
Referenced by boolChanged(), MantidQt::MantidWidgets::PropertyHandler::clearError(), createEditors(), FitPropertyBrowser(), MantidQt::MantidWidgets::PropertyHandler::fix(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), initBasicLayout(), MantidQt::MantidWidgets::PropertyHandler::initParameters(), MantidQt::MantidWidgets::PropertyHandler::setParameter(), MantidQt::MantidWidgets::PropertyHandler::updateError(), MantidQt::MantidWidgets::PropertyHandler::updateParameter(), and ~FitPropertyBrowser().
|
protected |
Definition at line 509 of file FitPropertyBrowser.h.
Referenced by getPeakRadius(), init(), and intChanged().
|
private |
Shows if the PeakPickerTool is on.
Definition at line 650 of file FitPropertyBrowser.h.
Referenced by popupMenu(), and setPeakToolOn().
|
protected |
Definition at line 512 of file FitPropertyBrowser.h.
Referenced by boolChanged(), init(), and plotCompositeMembers().
|
protected |
Definition at line 510 of file FitPropertyBrowser.h.
Referenced by boolChanged(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and plotDiff().
|
protected |
Definition at line 514 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::boolChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and rawData().
|
mutableprotected |
A list of registered backgrounds.
Definition at line 551 of file FitPropertyBrowser.h.
Referenced by populateFunctionNames(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::populateFunctionNames().
|
mutableprotected |
A list of registered functions.
Definition at line 547 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::PropertyHandler::init(), populateFunctionNames(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::populateFunctionNames().
|
mutableprotected |
A list of registered functions that are neither peaks nor backgrounds.
Definition at line 553 of file FitPropertyBrowser.h.
Referenced by populateFunctionNames(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::populateFunctionNames().
|
mutableprotected |
A list of registered peaks.
Definition at line 549 of file FitPropertyBrowser.h.
Referenced by defaultPeakType(), populateFunctionNames(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::populateFunctionNames().
|
protected |
Group for input/output settings.
Definition at line 535 of file FitPropertyBrowser.h.
Referenced by addWorkspaceIndexToBrowser(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), minimizerChanged(), popupMenu(), removePropertiesFromSettingsBrowser(), setWorkspaceProperties(), and toggleSettingsBrowserVisible().
|
private |
Setup menu.
Definition at line 614 of file FitPropertyBrowser.h.
Referenced by initBasicLayout(), and updateSetupMenus().
|
private |
Definition at line 615 of file FitPropertyBrowser.h.
Referenced by initBasicLayout(), and updateSetupMenus().
|
private |
Should the data be normalised before fitting?
Definition at line 677 of file FitPropertyBrowser.h.
Referenced by doFit().
|
protected |
Definition at line 518 of file FitPropertyBrowser.h.
Referenced by boolChanged(), init(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::init().
|
protected |
Definition at line 502 of file FitPropertyBrowser.h.
Referenced by columnChanged(), doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), setStartX(), setXRange(), and startX().
|
private |
To display fit status.
Definition at line 621 of file FitPropertyBrowser.h.
Referenced by clearFitResultStatus(), initBasicLayout(), and showFitResultStatus().
|
private |
store current workspace name
Definition at line 674 of file FitPropertyBrowser.h.
Referenced by enumChanged(), and setWorkspaceProperties().
|
protected |
Definition at line 491 of file FitPropertyBrowser.h.
Referenced by addStringProperty(), MantidQt::MantidWidgets::PropertyHandler::addTie(), createEditors(), FitPropertyBrowser(), MantidQt::MantidWidgets::PropertyHandler::fix(), getExcludeRange(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), initBasicLayout(), MantidQt::MantidWidgets::PropertyHandler::initParameters(), minimizer(), minimizerChanged(), outputName(), MantidQt::MantidWidgets::PropertyHandler::renameChildren(), setOutputName(), stringChanged(), workspaceChange(), and ~FitPropertyBrowser().
|
private |
String property managers for special case attributes such as Filename or Formula <attribute_name,string_manager>
Definition at line 635 of file FitPropertyBrowser.h.
|
private |
To display a tip text.
Definition at line 619 of file FitPropertyBrowser.h.
Referenced by createFitMenuButton(), initBasicLayout(), and setTip().
|
private |
Observes algorithm factory update notifications.
Definition at line 600 of file FitPropertyBrowser.h.
Referenced by initBasicLayout(), and ~FitPropertyBrowser().
|
protected |
Definition at line 497 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::CreateAttributeProperty::apply(), MantidQt::MantidWidgets::SetAttribute::apply(), createEditors(), FitPropertyBrowser(), initBasicLayout(), and ~FitPropertyBrowser().
|
protected |
Definition at line 495 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::CreateAttributeProperty::apply(), and FitPropertyBrowser().
|
protected |
Definition at line 496 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::CreateAttributeProperty::apply(), MantidQt::MantidWidgets::SetAttribute::apply(), createEditors(), FitPropertyBrowser(), initBasicLayout(), and ~FitPropertyBrowser().
|
private |
Definition at line 611 of file FitPropertyBrowser.h.
|
protected |
Definition at line 500 of file FitPropertyBrowser.h.
Referenced by addHandle(), addWorkspaceIndexToBrowser(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::boolChanged(), enumChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::enumChanged(), FitPropertyBrowser(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), populateWorkspaceNames(), removeWorkspace(), renameHandle(), setWorkspaceName(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::setWorkspaceName(), setWorkspaceProperties(), and workspaceName().
|
protected |
Definition at line 501 of file FitPropertyBrowser.h.
Referenced by addAllowedSpectra(), addWorkspaceIndexToBrowser(), enumChanged(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), intChanged(), setWorkspaceIndex(), setWorkspaceProperties(), and workspaceIndex().
|
private |
Definition at line 630 of file FitPropertyBrowser.h.
Referenced by addFitResultWorkspacesToTableWidget(), initBasicLayout(), and removeWorkspace().
|
mutableprotected |
A list of available workspaces.
Definition at line 557 of file FitPropertyBrowser.h.
Referenced by addHandle(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::boolChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::enumChanged(), getWorkspaceNames(), populateWorkspaceNames(), removeWorkspace(), renameHandle(), MantidQt::MantidWidgets::PropertyHandler::setFunctionWorkspace(), setWorkspaceName(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::setWorkspaceName(), MantidQt::MantidWidgets::PropertyHandler::updateWorkspaces(), and workspaceName().
|
private |
Definition at line 629 of file FitPropertyBrowser.h.
Referenced by addFitResultWorkspacesToTableWidget(), initBasicLayout(), removeWorkspace(), and renameHandle().
|
protected |
Definition at line 515 of file FitPropertyBrowser.h.
Referenced by columnChanged(), getXColumnName(), getXRange(), init(), and setWorkspaceProperties().
|
protected |
Definition at line 516 of file FitPropertyBrowser.h.
Referenced by getYColumnName(), init(), and setWorkspaceProperties().