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

Class FitPropertyBrowser implements QtPropertyBrowser to display and control fitting function parameters and settings. More...

#include <FitPropertyBrowser.h>

Inheritance diagram for MantidQt::MantidWidgets::FitPropertyBrowser:
Mantid::API::AlgorithmObserver MantidQt::API::WorkspaceObserver MantidQt::MantidWidgets::IWorkspaceFitControl MantidQt::MantidWidgets::MuonFitPropertyBrowser

Public Slots

virtual void clear ()
 Slot.
 
void clearBrowser ()
 
void executeClearCustomSetups ()
 
void executeCustomSetupRemove (const QString &name)
 
void executeDisplayMenu (const QString &)
 
virtual void executeFitMenu (const QString &)
 
void executePeakFindingAlgMenu (const QString &)
 
void executeSetupManageMenu (const QString &)
 
void executeSetupMenu (const QString &)
 
virtual void fit ()
 Do the fit.
 
virtual void removePropertiesFromSettingsBrowser (const QStringList &propsToRemove)
 Function to toggle the visibility of a settings group property exposed to python.
 
virtual void sequentialFit ()
 
void setPeakToolOn (bool on)
 
virtual void toggleSettingsBrowserVisible ()
 Function to toggle the visibility of the settings browser.
 
virtual void toggleWsListVisible ()
 
void undoFit ()
 Slot.
 
void workspaceDoubleClicked (QListWidgetItem *item)
 

Signals

void algorithmFailed ()
 
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
 
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.
 
void addFitResultWorkspacesToTableWidget ()
 Adds the fit result workspaces to the QListWidget in the browser.
 
QString addFunction (const QString &fnName)
 A specialisation of addFunction to be used in the workbench.
 
PropertyHandleraddFunction (const std::string &fnName)
 Create a new function.
 
void addHandle (const std::string &wsName, const std::shared_ptr< Mantid::API::Workspace > &ws) override
 workspace was added
 
void allowSequentialFits (bool allow) override
 Allow or disallow sequential fits (depending on whether other conditions are met)
 
double centre () const
 Centre of the current peak.
 
std::shared_ptr< Mantid::API::CompositeFunctioncompositeFunction () const
 Get Composite Function.
 
bool convolveMembers () const
 Get the "ConvolveMembers" option.
 
std::string costFunction () const
 Get the cost function.
 
int count () const
 Get count.
 
bool createAndAddFunction (const Mantid::API::MatrixWorkspace_sptr inputWS, const size_t peakIndex, const std::unique_ptr< FindPeakStrategyGeneric > &findPeakStrategy)
 
void createCompositeFunction (const QString &str="")
 Create CompositeFunction from string.
 
PropertyHandlercurrentHandler () const
 Get the current function.
 
const std::string & defaultBackgroundType () const
 Get the default background type.
 
const std::string & defaultFunctionType () const
 Get the default function type.
 
std::string defaultPeakType ()
 Get the default peak type.
 
double endX () const
 Get the end X.
 
void findPeaks (const std::unique_ptr< FindPeakStrategyGeneric > findPeakStrategy)
 
void finishHandle (const Mantid::API::IAlgorithm *alg) override
 Called when the Fit is finished.
 
 FitPropertyBrowser (QWidget *parent=nullptr, QObject *mantidui=nullptr)
 Constructor.
 
double fwhm () const
 Width of the current peak.
 
QString getAutoBackgroundString () const
 
std::string getCentreParameterNameOf (const QString &prefix)
 
QString getConstraintsString () const
 Creates the "Constraints" property value for the Fit algorithm.
 
int getDecimals () const
 Number of decimal places in double properties.
 
QString getErrColumnName () const
 Get the name of the Error column.
 
std::string getExcludeRange () const
 Get the excluded range for the fit.
 
const std::string & getFitAlgorithmOutputStatus () const
 ================================================================================================= Get Fit Algorithm output statuss
 
const std::string & getFitAlgorithmParameters () const
 ================================================================================================= Get Fit Algorithm parameters
 
QMenu * getFitMenu () const
 Return the Fit menu.
 
Mantid::API::IFunction_sptr getFittingFunction () const
 Return the fitting function.
 
Mantid::API::IFunction_sptr getFunctionAtIndex (std::size_t const &index) const
 Return a function at a specific index in the composite function.
 
std::string getFunctionString () const
 Get the function as a string.
 
PropertyHandlergetHandler () const
 Get handler to the root composite function.
 
QString getOldExpressionAsString (const QString &parameterName) const
 Get the tie expression stored in the function in case the new expression is invalid and the GUI needs to be reset.
 
QStringList getParameterNames () const
 Get function parameter names.
 
QList< double > getParameterValues () const
 Get function parameter values.
 
double getPeakCentreOf (const QString &prefix)
 
double getPeakFwhmOf (const QString &prefix)
 
PropertyHandlergetPeakHandler (const QString &prefix)
 
double getPeakHeightOf (const QString &prefix)
 
QStringList getPeakPrefixes () const
 
int getPeakRadius () const
 Get the peak radius for peak functions.
 
QString getTieString () const
 Creates the "Ties" property value for the Fit algorithm.
 
std::string getWidthParameterNameOf (const QString &prefix)
 
std::shared_ptr< Mantid::API::WorkspacegetWorkspace () const
 Get the workspace.
 
QListWidget * getWorkspaceList () const
 Return the Fit menu.
 
const QStringList & getWorkspaceNames ()
 Returns the list of workspaces that are currently been worked on by the fit property browser.
 
QString getXColumnName () const
 Get the name of the X column.
 
QVector< double > getXRange ()
 Get the X limits of the workspace.
 
QString getYColumnName () const
 Get the name of the Y column.
 
double height () const
 Height of the current peak.
 
bool ignoreInvalidData () const
 Get the ignore invalid data option.
 
virtual void init ()
 Initialise layout.
 
bool isAutoBack () const
 
bool isFitEnabled () const
 Returns true if the function is ready for a fit.
 
bool isHistogramFit () const
 Get "HistogramFit" option.
 
bool isParameterExplicitlySetOf (const QString &prefix, const std::string &param)
 
bool isPeak () const
 Is the current function a peak?
 
bool isUndoEnabled () const
 Tells if undo can be done.
 
void loadFunction (const QString &funcString)
 Load function.
 
int maxIterations () const
 Get the max number of iterations.
 
std::string minimizer (bool withProperties=false) const
 Get the minimizer.
 
void normaliseData (bool on)
 Set if the data must be normalised before fitting.
 
virtual std::string outputName () const
 Get the output name.
 
bool plotCompositeMembers () const
 Returns true if a composite's member functions should be plotted also.
 
bool plotDiff () const
 Returns true if the difference plot should be drawn.
 
void postDeleteHandle (const std::string &wsName) override
 workspace was removed
 
bool rawData () const override
 Returns true if the fit should be done against binned (bunched) data.
 
void refitAutoBackground ()
 
const QStringList & registeredBackgrounds () const
 Return a list of registered backgrounds.
 
const QStringList & registeredFunctions () const
 Return a list of registered functions.
 
const QStringList & registeredOthers () const
 Return a list of registered other functions.
 
const QStringList & registeredPeaks () const
 Return a list of registered peaks.
 
virtual void removeFunction (PropertyHandler *handler)
 Removes the function held by the property handler.
 
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.
 
void saveFunction (const QString &fnName)
 save function
 
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.
 
void setCentre (double value)
 Set centre of the current peak.
 
void setCurrentFunction (PropertyHandler *h) const
 Set new current function.
 
void setDecimals (int d)
 
void setDefaultBackgroundType (const std::string &fnType)
 Set the default background type.
 
void setDefaultFunctionType (const std::string &fnType)
 Set the default function type.
 
void setDefaultPeakType (const std::string &fnType)
 Set the default peak type.
 
void setEndX (double end) override
 Set the end X.
 
virtual void setFitEnabled (bool enable)
 Enable/disable the Fit buttons;.
 
void setFwhm (double value)
 Set width of the current peak.
 
void setHeight (double value)
 Set height of the current peak.
 
void setIgnoreInvalidData (bool on)
 Set the ignore invalid data option.
 
void setOutputName (const std::string &)
 Set the output name.
 
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.
 
void setTextPlotGuess (const QString &text)
 alter text of Plot Guess
 
void setTip (const QString &txt)
 Display a tip.
 
void setWorkspaceIndex (int i) override
 Set workspace index.
 
virtual void setWorkspaceName (const QString &wsName) override
 Set the input workspace name.
 
void setXRange (double start, double end)
 Set both start and end X.
 
int sizeOfFunctionsGroup () const
 
double startX () const
 Get the start X.
 
std::shared_ptr< const Mantid::API::IFunctiontheFunction () const
 Get the current function.
 
void updateAttributes ()
 Update the function attributes.
 
void updateParameters ()
 Update the function parameters.
 
int workspaceIndex () const
 Get workspace index.
 
std::string workspaceName () const
 Get the input workspace name.
 
 ~FitPropertyBrowser () override
 Destructor.
 
- Public Member Functions inherited from Mantid::API::AlgorithmObserver
 AlgorithmObserver ()
 Default constructor.
 
 AlgorithmObserver (const IAlgorithm_const_sptr &alg)
 Constructs AlgorithmObserver and connects all its handlers to algorithm alg.
 
virtual void errorHandle (const IAlgorithm *alg, const std::string &what)
 
void observeAll (const IAlgorithm_const_sptr &alg)
 Connect to algorithm alg and observe all its notifications.
 
void observeError (const IAlgorithm_const_sptr &alg)
 Connect to algorithm alg and observe its error notification.
 
void observeFinish (const IAlgorithm_const_sptr &alg)
 Connect to algorithm alg and observe its finish notification.
 
void observeProgress (const IAlgorithm_const_sptr &alg)
 Connect to algorithm alg and observe its progress notification.
 
void observeStart (const IAlgorithm_const_sptr &alg)
 Connect to algorithm alg and observe its start notification.
 
void observeStarting ()
 Connect to AlgorithmManager and observe its starting notifications.
 
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.
 
void stopObserving (const Mantid::API::IAlgorithm *alg)
 
void stopObservingManager ()
 Disconnect from the algorithm manager.
 
virtual ~AlgorithmObserver ()
 Virtual destructor.
 
- Public Member Functions inherited from MantidQt::API::WorkspaceObserver
void observeAdd (bool on=true)
 Observe additions.
 
void observeADSClear (bool on=true)
 Observe clearances.
 
void observeAfterReplace (bool on=true)
 Observe replacements.
 
void observePostDelete (bool on=true)
 Observe workspace deletes.
 
void observePreDelete (bool on=true)
 Observe workspace deletes.
 
void observeRename (bool on=true)
 Observe renaming.
 
 WorkspaceObserver ()
 Default constructor.
 
virtual ~WorkspaceObserver ()
 Destructor.
 
- Public Member Functions inherited from MantidQt::MantidWidgets::IWorkspaceFitControl
virtual ~IWorkspaceFitControl ()=default
 

Protected Slots

virtual void boolChanged (QtProperty *prop)
 Called when a bool property is changed.
 
virtual void doubleChanged (QtProperty *prop)
 Called when a double property changed.
 
void enactAttributeChange (QtProperty *prop, PropertyHandler *h, const bool vectorAttribute=false)
 
virtual void enumChanged (QtProperty *prop)
 Called when the function name property changed.
 
virtual void intChanged (QtProperty *prop)
 Called when an int property changed.
 
virtual void populateFunctionNames ()
 Get the registered function names.
 

Protected Member Functions

QtProperty * addDoubleProperty (const QString &name, QtDoublePropertyManager *manager=nullptr) const
 Create a double property and set some settings.
 
virtual void addWorkspaceIndexToBrowser ()
 Adds the workspace index property to the browser.
 
void createCompositeFunction (const Mantid::API::IFunction_sptr &func)
 Create CompositeFunction from pointer.
 
void createEditors (QWidget *w)
 Create editors and assign them to the managers.
 
void doFit (int maxIterations)
 Do the fitting.
 
bool getShouldBeNormalised ()
 
void hideEvent (QHideEvent *e) override
 actions to do before the browser is hidden
 
void initBasicLayout (QWidget *w)
 Initialise the layout, except for the fit button in the menu bar.
 
void initLayout (QWidget *w)
 Initialise the layout.
 
void minimizerChanged ()
 Called when the minimizer changes. Creates minimizes's properties.
 
void modifyFitMenu (QAction *fitAction, bool enabled)
 
virtual void populateFitMenuButton (QSignalMapper *fitMapper, QMenu *fitMenu)
 Populate the fit button.
 
void populateWorkspaceNames ()
 Get and store available workspace names.
 
void setWorkspace (const Mantid::API::IFunction_sptr &function) const
 Sets the workspace to a function.
 
void setWorkspaceProperties ()
 Display properties relevant to the selected workspace.
 
void showEvent (QShowEvent *e) override
 actions to do before the browser made visible
 
Mantid::API::IFunction_sptr tryCreateFitFunction (const QString &str)
 Catches unexpected not found exceptions.
 
void updateBrowserFromFitResults (const Mantid::API::IFunction_sptr &finalFunction)
 Set the parameters to the fit outcome.
 
void updateDecimals ()
 impose a number of decimal places on all defined Double properties
 
- Protected Member Functions inherited from MantidQt::API::WorkspaceObserver
void _addHandle (Mantid::API::WorkspaceAddNotification_ptr pNf)
 Poco notification handler for DataService::DeleteNotification.
 
void _afterReplaceHandle (Mantid::API::WorkspaceAfterReplaceNotification_ptr pNf)
 Poco notification handler for DataService::AfterReplaceNotification.
 
void _clearADSHandle (Mantid::API::ClearADSNotification_ptr)
 ADS clear notification.
 
void _postDeleteHandle (Mantid::API::WorkspacePostDeleteNotification_ptr pNf)
 Poco notification handler for DataService::PostDeleteNotification.
 
void _preDeleteHandle (Mantid::API::WorkspacePreDeleteNotification_ptr pNf)
 Poco notification handler for DataService::PostDeleteNotification.
 
void _renameHandle (Mantid::API::WorkspaceRenameNotification_ptr pNf)
 Poco notification handler for DataService::RenameNotification.
 
virtual void addHandle (const std::string &wsName, const Mantid::API::Workspace_sptr &ws)
 Handler of the add notifications.
 
virtual void afterReplaceHandle (const std::string &wsName, const Mantid::API::Workspace_sptr &ws)
 Handler of the AfterReplace notifications.
 
virtual void clearADSHandle ()
 Handle an ADS clear notification.
 
virtual void preDeleteHandle (const std::string &wsName, const Mantid::API::Workspace_sptr &ws)
 Handler of the delete notifications.
 

Protected Attributes

QtBoolPropertyManager * m_boolManager
 
QtTreePropertyBrowser * m_browser
 
bool m_changeSlotsEnabled
 If false the change-slots (such as enumChanged(), doubleChanged()) are disabled.
 
QtEnumPropertyManager * m_columnManager
 
std::shared_ptr< Mantid::API::CompositeFunctionm_compositeFunction
 A copy of the edited function.
 
QtProperty * m_convolveMembers
 
QtProperty * m_costFunction
 
QStringList m_costFunctions
 A list of available cost functions.
 
QtBrowserItem * m_customSettingsGroup
 Group for custom options available on muon analysis widget.
 
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.
 
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.
 
QtGroupPropertyManager * m_groupManager
 Property managers:
 
bool m_guessOutputName
 if true the output name will be guessed every time workspace name is changeed
 
QtProperty * m_ignoreInvalidData
 
std::vector< double > m_initialParameters
 To keep a copy of the initial parameters in case for undo fit.
 
QtIntPropertyManager * m_intManager
 
QtProperty * m_maxIterations
 
QtProperty * m_minimizer
 
QList< QtProperty * > m_minimizerProperties
 
QStringList m_minimizers
 A list of available minimizers.
 
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.
 
QStringList m_registeredFunctions
 A list of registered functions.
 
QStringList m_registeredOther
 A list of registered functions that are neither peaks nor backgrounds.
 
QStringList m_registeredPeaks
 A list of registered peaks.
 
QtBrowserItem * m_settingsGroup
 Group for input/output settings.
 
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.
 
QtProperty * m_xColumn
 
QtProperty * m_yColumn
 
- Protected Attributes inherited from MantidQt::API::WorkspaceObserver
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspaceAddNotificationm_addObserver
 Poco::NObserver for DataServise::AddNotification.
 
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspaceAfterReplaceNotificationm_afterReplaceObserver
 Poco::NObserver for DataServise::AfterReplaceNotification.
 
Poco::NObserver< WorkspaceObserver, Mantid::API::ClearADSNotificationm_clearADSObserver
 Clear notification observer.
 
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspacePostDeleteNotificationm_postDeleteObserver
 Poco::NObserver for DataServise::DeleteNotification.
 
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspacePreDeleteNotificationm_preDeleteObserver
 Poco::NObserver for DataServise::DeleteNotification.
 
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspaceRenameNotificationm_renameObserver
 Poco::NObserver for DataServise::RenameNotification.
 

Private Slots

void acceptFit ()
 
void addBothBounds ()
 Slot.Adds lower and upper bounds to the selected parameter property.
 
void addBothBounds10 ()
 Slot.Sets the lower and upper bounds of the selected parameter to 10% of its value.
 
void addBothBounds50 ()
 Slot.Sets the lower and upper bounds of the selected parameter to 50% of its value.
 
void addConstraint (int f, bool lo, bool up)
 Slot.
 
void addFixTie ()
 Slot.
 
void addFunction ()
 Slot.
 
void addLowerBound ()
 Slot.
 
void addLowerBound10 ()
 Slot.
 
void addLowerBound50 ()
 Slot.
 
void addTie ()
 Slot.
 
void addTieToFunction ()
 Slot.
 
void addUpperBound ()
 Slot.Adds upper bound to the selected parameter property.
 
void addUpperBound10 ()
 Slot.Adds upper bound to the selected parameter property.
 
void addUpperBound50 ()
 Slot.Adds upper bound to the selected parameter property.
 
void browserHelp ()
 Open a web page with description of FitPropertyBrowser.
 
void clearAllPlots ()
 
void clearFitResultStatus ()
 Clear the Fit status display.
 
void closeFit ()
 
void columnChanged (QtProperty *prop)
 ================================================================================================= Slot connected to the change signals of properties m_xColumn, m_yColumn, and m_errColumn.
 
void copy ()
 Copy the function string to the clipboard.
 
void currentItemChanged (QtBrowserItem *)
 Slot.
 
void deleteFunction ()
 Slot.
 
void deleteTie ()
 Slot.
 
void executeCustomSetupLoad (const QString &name)
 
void filenameChanged (QtProperty *prop)
 Called when a filename property changed.
 
void functionHelp ()
 Open a web page with description of the current function.
 
void loadFunction ()
 
void loadFunctionFromString ()
 
void parameterChanged (QtProperty *prop)
 Called when one of the parameter values gets changed.
 
void paste ()
 Paste a function string from the clipboard.
 
void plotGuessAll ()
 Slot.
 
void plotGuessCurrent ()
 Slot.
 
void plotOrRemoveGuessAll ()
 
void popupMenu (const QPoint &)
 
void processMultiBGResults ()
 Process and create some output if it is a MultiBG fit.
 
void removeBounds ()
 Slot.Removes lower and upper bounds from the selected parameter property.
 
void removeGuessAll ()
 Slot.
 
void removeGuessCurrent ()
 Slot.
 
void reset ()
 reset the function part, renew function, all handlers are new
 
void saveFunction ()
 
void setupMultifit ()
 Call MultifitSetupDialog to populate MultiBG function.
 
void showFitResultStatus (const QString &status)
 Display the status string returned from Fit.
 
void stringChanged (QtProperty *prop)
 Called when a string property changed.
 
void updateStructureTooltips ()
 Update structure tooltips for all functions.
 
void vectorDoubleChanged (QtProperty *prop)
 Slot.
 
void vectorSizeChanged (QtProperty *prop)
 Slot.
 

Private Member Functions

QtProperty * addStringListProperty (const QString &name, const std::vector< std::string > &allowed_values) const
 Create a string list property.
 
QtProperty * addStringProperty (const QString &name) const
 Create a string property and set some settings.
 
void checkFunction ()
 Check that the properties match the function.
 
QPushButton * createFitMenuButton (QWidget *w)
 Initialise the layout for the fit button.
 
void disableUndo ()
 disable undo when the function changes
 
QtBrowserItem * findItem (QtBrowserItem *parent, QtProperty *prop) const
 Find QtBrowserItem for a property prop among the chidren of.
 
int getAllowedIndex (int currentIndex) const
 Return the nearest allowed workspace index.
 
QString getStringPropertyValue (QtProperty *prop) const
 
QtProperty * getTieProperty (QtProperty *parProp) const
 Returns the tie property for a parameter property, or NULL.
 
void handleFactoryUpdate (Mantid::API::FunctionFactoryUpdateNotification_ptr)
 Callback for FunctionFactory update notifications.
 
void hasConstraints (QtProperty *parProp, bool &hasTie, bool &hasFix, bool &hasBounds) const
 Does a parameter have a tie.
 
virtual bool isWorkspaceValid (Mantid::API::Workspace_sptr) const
 Check if the workspace can be used in the fit.
 
void setCurrentFunction (const Mantid::API::IFunction_const_sptr &f) const
 Set new current function.
 
void setStringPropertyValue (QtProperty *prop, const QString &value) const
 Set a value to a string property.
 
void updateSetupMenus ()
 Update setup menus according to how these are set in settings.
 
virtual void workspaceChange (const QString &wsName)
 Sets the new workspace to the current one.
 

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.
 
QString m_allowedTableWorkspace
 If set it contains the table workspace name to be fitted in this browser:
 
bool m_auto_back
 If true background function will be included automatically.
 
PropertyHandlerm_autoBackground
 The autobackground handler.
 
QString m_autoBgAttributes
 List of attributes of the autobackground function as name=value pairs separated by spaces.
 
QString m_autoBgName
 Name of the autobackground function.
 
PropertyHandlerm_currentHandler
 
QStringList m_dataTypes
 A list of available data types.
 
int m_decimals
 Number of decimal places in double properties.
 
std::string m_defaultBackground
 Default background name.
 
std::string m_defaultFunction
 Default function name.
 
std::string m_defaultPeak
 Default peak name.
 
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.
 
QMenu * m_fitMenu
 
SelectFunctionDialogm_fitSelector
 
QTreeWidget * m_fitTree
 
bool m_hideWsListWidget
 bool to display ws list or not
 
QObject * m_mantidui
 holds effectively a MantidUI for connecting
 
int m_oldWorkspaceIndex
 Store workspace index to revert to in case validation fails.
 
bool m_peakToolOn
 Shows if the PeakPickerTool is on.
 
QAction * m_setupActionCustomSetup
 Setup menu.
 
QAction * m_setupActionRemove
 
bool m_shouldBeNormalised
 Should the data be normalised before fitting?
 
QLabel * m_status
 To display fit status.
 
std::string m_storedWorkspaceName
 store current workspace name
 
QMap< QString, QtStringPropertyManager * > m_stringManagers
 String property managers for special case attributes such as Filename or Formula <attribute_name,string_manager>
 
QLabel * m_tip
 To display a tip text.
 
Poco::NObserver< FitPropertyBrowser, Mantid::API::FunctionFactoryUpdateNotificationm_updateObserver
 Observes algorithm factory update notifications.
 
QString m_windowBaseString
 
QLabel * m_workspaceLabel
 
QListWidget * m_wsListWidget
 

Friends

class CreateAttributeProperty
 
class PropertyHandler
 
class SequentialFitDialog
 
class SetAttribute
 
class SetAttributeProperty
 

Detailed Description

Class FitPropertyBrowser implements QtPropertyBrowser to display and control fitting function parameters and settings.

Date
13/11/2009

Definition at line 66 of file FitPropertyBrowser.h.

Constructor & Destructor Documentation

◆ FitPropertyBrowser()

MantidQt::MantidWidgets::FitPropertyBrowser::FitPropertyBrowser ( QWidget *  parent = nullptr,
QObject *  mantidui = nullptr 
)

◆ ~FitPropertyBrowser()

MantidQt::MantidWidgets::FitPropertyBrowser::~FitPropertyBrowser ( )
override

Member Function Documentation

◆ acceptFit

void MantidQt::MantidWidgets::FitPropertyBrowser::acceptFit ( )
privateslot

◆ addAllowedSpectra()

void MantidQt::MantidWidgets::FitPropertyBrowser::addAllowedSpectra ( const QString &  wsName,
const QList< int > &  wsIndices 
)

◆ addAllowedTableWorkspace()

void MantidQt::MantidWidgets::FitPropertyBrowser::addAllowedTableWorkspace ( const QString &  wsName)

Definition at line 3279 of file FitPropertyBrowser.cpp.

References m_allowedTableWorkspace, and name.

◆ addAutoBackground()

void MantidQt::MantidWidgets::FitPropertyBrowser::addAutoBackground ( )

◆ addBothBounds

void MantidQt::MantidWidgets::FitPropertyBrowser::addBothBounds ( )
privateslot

Slot.Adds lower and upper bounds to the selected parameter property.

Definition at line 2401 of file FitPropertyBrowser.cpp.

References addConstraint().

Referenced by popupMenu().

◆ addBothBounds10

void MantidQt::MantidWidgets::FitPropertyBrowser::addBothBounds10 ( )
privateslot

Slot.Sets the lower and upper bounds of the selected parameter to 10% of its value.

Definition at line 2390 of file FitPropertyBrowser.cpp.

References addConstraint().

Referenced by popupMenu().

◆ addBothBounds50

void MantidQt::MantidWidgets::FitPropertyBrowser::addBothBounds50 ( )
privateslot

Slot.Sets the lower and upper bounds of the selected parameter to 50% of its value.

Definition at line 2396 of file FitPropertyBrowser.cpp.

References addConstraint().

Referenced by popupMenu().

◆ addConstraint

void MantidQt::MantidWidgets::FitPropertyBrowser::addConstraint ( int  f,
bool  lo,
bool  up 
)
privateslot

◆ addDoubleProperty()

QtProperty * MantidQt::MantidWidgets::FitPropertyBrowser::addDoubleProperty ( const QString &  name,
QtDoublePropertyManager *  manager = nullptr 
) const
protected

Create a double property and set some settings.

Parameters
name:: The name of the new property
manager:: The current property manager
Returns
Pointer to the created property

Definition at line 2452 of file FitPropertyBrowser.cpp.

References m_decimals, m_doubleManager, and name.

Referenced by MantidQt::MantidWidgets::PropertyHandler::addConstraint(), MantidQt::MantidWidgets::CreateAttributeProperty::apply(), MantidQt::MantidWidgets::CreateAttributeProperty::apply(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), MantidQt::MantidWidgets::PropertyHandler::initParameters(), and minimizerChanged().

◆ addFitResultWorkspacesToTableWidget()

void MantidQt::MantidWidgets::FitPropertyBrowser::addFitResultWorkspacesToTableWidget ( )

Adds the fit result workspaces to the QListWidget in the browser.

Definition at line 519 of file FitPropertyBrowser.cpp.

References m_hideWsListWidget, m_workspaceLabel, m_wsListWidget, name, and outputName().

◆ addFixTie

void MantidQt::MantidWidgets::FitPropertyBrowser::addFixTie ( )
privateslot

◆ addFunction [1/3]

void MantidQt::MantidWidgets::FitPropertyBrowser::addFunction ( )
privateslot

◆ addFunction() [2/3]

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.

Parameters
fnName:: Name of a function to add.
Returns
:: An ID string, eg: f0.f2.f1 (There is no dot at the end).

Definition at line 3297 of file FitPropertyBrowser.cpp.

References addFunction().

◆ addFunction() [3/3]

PropertyHandler * MantidQt::MantidWidgets::FitPropertyBrowser::addFunction ( const std::string &  fnName)

Create a new function.

Definition at line 709 of file FitPropertyBrowser.cpp.

References MantidQt::MantidWidgets::PropertyHandler::addFunction(), functionChanged(), and getHandler().

◆ addHandle()

void MantidQt::MantidWidgets::FitPropertyBrowser::addHandle ( const std::string &  wsName,
const std::shared_ptr< Mantid::API::Workspace > &  ws 
)
override

◆ addLowerBound

void MantidQt::MantidWidgets::FitPropertyBrowser::addLowerBound ( )
privateslot

Slot.

Adds lower bound to the selected parameter property

Definition at line 2359 of file FitPropertyBrowser.cpp.

References addConstraint().

Referenced by popupMenu().

◆ addLowerBound10

void MantidQt::MantidWidgets::FitPropertyBrowser::addLowerBound10 ( )
privateslot

Slot.

Adds lower bound to the selected parameter property

Definition at line 2364 of file FitPropertyBrowser.cpp.

References addConstraint().

Referenced by popupMenu().

◆ addLowerBound50

void MantidQt::MantidWidgets::FitPropertyBrowser::addLowerBound50 ( )
privateslot

Slot.

Adds lower bound to the selected parameter property

Definition at line 2369 of file FitPropertyBrowser.cpp.

References addConstraint().

Referenced by popupMenu().

◆ addStringListProperty()

QtProperty * MantidQt::MantidWidgets::FitPropertyBrowser::addStringListProperty ( const QString &  name,
const std::vector< std::string > &  allowed_values 
) const
private

Create a string list property.

Create a string list property and selects a property manager for it based on the property name.

Parameters
name:: The name of the new property
allowed_values:: A list of the values allowed by the validator
Returns
Pointer to the created property

Definition at line 2487 of file FitPropertyBrowser.cpp.

References m_enumManager, and name.

Referenced by MantidQt::MantidWidgets::CreateAttributeProperty::apply().

◆ addStringProperty()

QtProperty * MantidQt::MantidWidgets::FitPropertyBrowser::addStringProperty ( const QString &  name) const
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.

Parameters
name:: The name of the new property
Returns
Pointer to the created property

!! dont forget to change the manager !!!

Definition at line 2466 of file FitPropertyBrowser.cpp.

References m_filenameManager, m_formulaManager, m_stringManager, and name.

Referenced by MantidQt::MantidWidgets::CreateAttributeProperty::apply().

◆ addTie

void MantidQt::MantidWidgets::FitPropertyBrowser::addTie ( )
privateslot

◆ addTieToFunction

void MantidQt::MantidWidgets::FitPropertyBrowser::addTieToFunction ( )
privateslot

◆ addUpperBound

void MantidQt::MantidWidgets::FitPropertyBrowser::addUpperBound ( )
privateslot

Slot.Adds upper bound to the selected parameter property.

Definition at line 2384 of file FitPropertyBrowser.cpp.

References addConstraint().

Referenced by popupMenu().

◆ addUpperBound10

void MantidQt::MantidWidgets::FitPropertyBrowser::addUpperBound10 ( )
privateslot

Slot.Adds upper bound to the selected parameter property.

Definition at line 2374 of file FitPropertyBrowser.cpp.

References addConstraint().

Referenced by popupMenu().

◆ addUpperBound50

void MantidQt::MantidWidgets::FitPropertyBrowser::addUpperBound50 ( )
privateslot

Slot.Adds upper bound to the selected parameter property.

Definition at line 2379 of file FitPropertyBrowser.cpp.

References addConstraint().

Referenced by popupMenu().

◆ addWorkspaceIndexToBrowser()

void MantidQt::MantidWidgets::FitPropertyBrowser::addWorkspaceIndexToBrowser ( )
protectedvirtual

Adds the workspace index property to the browser.

Definition at line 3045 of file FitPropertyBrowser.cpp.

References m_browser, m_settingsGroup, m_workspace, and m_workspaceIndex.

Referenced by setWorkspaceProperties().

◆ algorithmFailed

void MantidQt::MantidWidgets::FitPropertyBrowser::algorithmFailed ( )
signal

Referenced by doFit().

◆ algorithmFinished

void MantidQt::MantidWidgets::FitPropertyBrowser::algorithmFinished ( const QString &  )
signal

Referenced by finishHandle().

◆ algorithmStarted

void MantidQt::MantidWidgets::FitPropertyBrowser::algorithmStarted ( const QString &  )
signal

Referenced by doFit().

◆ allowSequentialFits()

void MantidQt::MantidWidgets::FitPropertyBrowser::allowSequentialFits ( bool  allow)
overridevirtual

Allow or disallow sequential fits (depending on whether other conditions are met)

================================================================================================= Allow/disallow sequential fits, depending on whether other conditions are met

Parameters
allow:: [input] Allow or disallow

Implements MantidQt::MantidWidgets::IWorkspaceFitControl.

Definition at line 3226 of file FitPropertyBrowser.cpp.

References m_compositeFunction, and m_fitActionSeqFit.

◆ boolChanged

void MantidQt::MantidWidgets::FitPropertyBrowser::boolChanged ( QtProperty *  prop)
protectedvirtualslot

◆ browserHelp

void MantidQt::MantidWidgets::FitPropertyBrowser::browserHelp ( )
privateslot

Open a web page with description of FitPropertyBrowser.

================================================================================================= Show online browser help

Definition at line 3217 of file FitPropertyBrowser.cpp.

References MantidQt::API::HelpWindow::showPage().

Referenced by popupMenu().

◆ centre()

double MantidQt::MantidWidgets::FitPropertyBrowser::centre ( ) const

Centre of the current peak.

Definition at line 1515 of file FitPropertyBrowser.cpp.

References m_currentHandler, and MantidQt::MantidWidgets::PropertyHandler::pfun().

◆ changedParameterOf

void MantidQt::MantidWidgets::FitPropertyBrowser::changedParameterOf ( const QString &  prefix)
signal

◆ changeWindowTitle

void MantidQt::MantidWidgets::FitPropertyBrowser::changeWindowTitle ( const QString &  )
signal

Referenced by finishHandle(), and initBasicLayout().

◆ checkFunction()

void MantidQt::MantidWidgets::FitPropertyBrowser::checkFunction ( )
private

Check that the properties match the function.

Definition at line 2522 of file FitPropertyBrowser.cpp.

◆ clear

void MantidQt::MantidWidgets::FitPropertyBrowser::clear ( )
virtualslot

◆ clearAllPlots

void MantidQt::MantidWidgets::FitPropertyBrowser::clearAllPlots ( )
privateslot

Definition at line 2445 of file FitPropertyBrowser.cpp.

References removeFitCurves().

Referenced by executeDisplayMenu().

◆ clearBrowser

void MantidQt::MantidWidgets::FitPropertyBrowser::clearBrowser ( )
slot

Definition at line 2093 of file FitPropertyBrowser.cpp.

References m_functionsGroup.

Referenced by clear(), loadFunction(), and reset().

◆ clearFitResultStatus

void MantidQt::MantidWidgets::FitPropertyBrowser::clearFitResultStatus ( )
privateslot

Clear the Fit status display.

Definition at line 1751 of file FitPropertyBrowser.cpp.

References m_status.

Referenced by initBasicLayout(), and undoFit().

◆ closeFit

void MantidQt::MantidWidgets::FitPropertyBrowser::closeFit ( )
privateslot

Definition at line 758 of file FitPropertyBrowser.cpp.

References m_fitSelector.

Referenced by acceptFit(), and addFunction().

◆ columnChanged

void MantidQt::MantidWidgets::FitPropertyBrowser::columnChanged ( QtProperty *  prop)
privateslot

================================================================================================= Slot connected to the change signals of properties m_xColumn, m_yColumn, and m_errColumn.

Parameters
prop:: Property that changed.

Definition at line 3090 of file FitPropertyBrowser.cpp.

References m_columnManager, m_doubleManager, m_endX, m_startX, m_xColumn, and workspaceName().

Referenced by initBasicLayout().

◆ compositeFunction()

std::shared_ptr< Mantid::API::CompositeFunction > MantidQt::MantidWidgets::FitPropertyBrowser::compositeFunction ( ) const
inline

◆ convolveMembers()

bool MantidQt::MantidWidgets::FitPropertyBrowser::convolveMembers ( ) const

Get the "ConvolveMembers" option.

Definition at line 1190 of file FitPropertyBrowser.cpp.

References m_boolManager, and m_convolveMembers.

Referenced by doFit().

◆ copy

void MantidQt::MantidWidgets::FitPropertyBrowser::copy ( )
privateslot

Copy the function string to the clipboard.

Definition at line 2623 of file FitPropertyBrowser.cpp.

References theFunction().

Referenced by executeSetupManageMenu(), and popupMenu().

◆ costFunction()

std::string MantidQt::MantidWidgets::FitPropertyBrowser::costFunction ( ) const

Get the cost function.

Definition at line 1182 of file FitPropertyBrowser.cpp.

References m_costFunction, m_costFunctions, and m_enumManager.

Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), and doFit().

◆ count()

int MantidQt::MantidWidgets::FitPropertyBrowser::count ( ) const

◆ createAndAddFunction()

bool MantidQt::MantidWidgets::FitPropertyBrowser::createAndAddFunction ( const Mantid::API::MatrixWorkspace_sptr  inputWS,
const size_t  peakIndex,
const std::unique_ptr< FindPeakStrategyGeneric > &  findPeakStrategy 
)

Definition at line 3301 of file FitPropertyBrowser.cpp.

References addFunction(), defaultPeakType(), endX(), startX(), and workspaceIndex().

Referenced by findPeaks().

◆ createCompositeFunction() [1/2]

void MantidQt::MantidWidgets::FitPropertyBrowser::createCompositeFunction ( const Mantid::API::IFunction_sptr func)
protected

Create CompositeFunction from pointer.

Create CompositeFunction from function pointer.

Parameters
func:: [input] Pointer to function

Definition at line 764 of file FitPropertyBrowser.cpp.

References addAutoBackground(), disableUndo(), functionChanged(), functionRemoved(), m_auto_back, m_autoBackground, m_compositeFunction, setCurrentFunction(), setFitEnabled(), and setWorkspace().

◆ createCompositeFunction() [2/2]

void MantidQt::MantidWidgets::FitPropertyBrowser::createCompositeFunction ( const QString &  str = "")

Create CompositeFunction from string.

Parameters
str:: [input] Function string

Definition at line 799 of file FitPropertyBrowser.cpp.

References createCompositeFunction(), and tryCreateFitFunction().

Referenced by clear(), createCompositeFunction(), initBasicLayout(), loadFunction(), paste(), and reset().

◆ createEditors()

void MantidQt::MantidWidgets::FitPropertyBrowser::createEditors ( QWidget *  w)
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.

Parameters
w:: widget showing the properties tree and the actions buttons

Definition at line 553 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().

◆ createFitMenuButton()

QPushButton * MantidQt::MantidWidgets::FitPropertyBrowser::createFitMenuButton ( QWidget *  w)
private

Initialise the layout for the fit button.

This initialization includes:

  1. SIGNALs/SLOTs when properties change.
  2. Actions and associated SIGNALs/SLOTs.
    Parameters
    wwidget parenting the action menus and the property tree browser
    Returns
    push botton for the fit menu

Definition at line 277 of file FitPropertyBrowser.cpp.

References executeFitMenu(), m_fitMapper, m_fitMenu, m_tip, and populateFitMenuButton().

Referenced by initBasicLayout().

◆ currentChanged

void MantidQt::MantidWidgets::FitPropertyBrowser::currentChanged ( ) const
signal

◆ currentHandler()

PropertyHandler * MantidQt::MantidWidgets::FitPropertyBrowser::currentHandler ( ) const

Get the current function.

Definition at line 1575 of file FitPropertyBrowser.cpp.

References m_currentHandler.

Referenced by addAutoBackground(), and functionHelp().

◆ currentItemChanged

void MantidQt::MantidWidgets::FitPropertyBrowser::currentItemChanged ( QtBrowserItem *  current)
privateslot

◆ defaultBackgroundType()

const std::string & MantidQt::MantidWidgets::FitPropertyBrowser::defaultBackgroundType ( ) const

Get the default background type.

Definition at line 1067 of file FitPropertyBrowser.cpp.

References m_defaultBackground.

◆ defaultFunctionType()

const std::string & MantidQt::MantidWidgets::FitPropertyBrowser::defaultFunctionType ( ) const

Get the default function type.

Definition at line 1047 of file FitPropertyBrowser.cpp.

References m_defaultFunction.

◆ defaultPeakType()

std::string MantidQt::MantidWidgets::FitPropertyBrowser::defaultPeakType ( )

◆ deleteFunction

void MantidQt::MantidWidgets::FitPropertyBrowser::deleteFunction ( )
privateslot

Slot.

Called to remove a function

Definition at line 1038 of file FitPropertyBrowser.cpp.

References MantidQt::MantidWidgets::PropertyHandler::findHandler(), getHandler(), m_browser, and removeFunction().

Referenced by popupMenu().

◆ deleteTie

void MantidQt::MantidWidgets::FitPropertyBrowser::deleteTie ( )
privateslot

◆ disableUndo()

void MantidQt::MantidWidgets::FitPropertyBrowser::disableUndo ( )
private

disable undo when the function changes

Definition at line 2127 of file FitPropertyBrowser.cpp.

References m_fitActionUndoFit, and m_initialParameters.

Referenced by MantidQt::MantidWidgets::PropertyHandler::addFunction(), createCompositeFunction(), enumChanged(), and undoFit().

◆ doFit()

void MantidQt::MantidWidgets::FitPropertyBrowser::doFit ( int  maxIterations)
protected

◆ doubleChanged

void MantidQt::MantidWidgets::FitPropertyBrowser::doubleChanged ( QtProperty *  prop)
protectedvirtualslot

◆ enactAttributeChange

void MantidQt::MantidWidgets::FitPropertyBrowser::enactAttributeChange ( QtProperty *  prop,
PropertyHandler h,
const bool  vectorAttribute = false 
)
protectedslot

◆ endX()

double MantidQt::MantidWidgets::FitPropertyBrowser::endX ( ) const

◆ endXChanged

void MantidQt::MantidWidgets::FitPropertyBrowser::endXChanged ( double  )
signal

◆ enumChanged

void MantidQt::MantidWidgets::FitPropertyBrowser::enumChanged ( QtProperty *  prop)
protectedvirtualslot

◆ errorsEnabled

void MantidQt::MantidWidgets::FitPropertyBrowser::errorsEnabled ( bool  enabled)
signal

Referenced by boolChanged().

◆ executeClearCustomSetups

void MantidQt::MantidWidgets::FitPropertyBrowser::executeClearCustomSetups ( )
slot

Definition at line 624 of file FitPropertyBrowser.cpp.

References updateSetupMenus().

Referenced by executeSetupManageMenu().

◆ executeCustomSetupLoad

void MantidQt::MantidWidgets::FitPropertyBrowser::executeCustomSetupLoad ( const QString &  name)
privateslot

Definition at line 608 of file FitPropertyBrowser.cpp.

References loadFunction(), and name.

Referenced by updateSetupMenus().

◆ executeCustomSetupRemove

void MantidQt::MantidWidgets::FitPropertyBrowser::executeCustomSetupRemove ( const QString &  name)
slot

Definition at line 616 of file FitPropertyBrowser.cpp.

References name, and updateSetupMenus().

Referenced by updateSetupMenus().

◆ executeDisplayMenu

void MantidQt::MantidWidgets::FitPropertyBrowser::executeDisplayMenu ( const QString &  item)
slot

Definition at line 652 of file FitPropertyBrowser.cpp.

References clearAllPlots(), and plotOrRemoveGuessAll().

Referenced by initBasicLayout().

◆ executeFit

void MantidQt::MantidWidgets::FitPropertyBrowser::executeFit ( QString  ,
QHash< QString, QString >  ,
Mantid::API::AlgorithmObserver  
)
signal

◆ executeFitMenu

void MantidQt::MantidWidgets::FitPropertyBrowser::executeFitMenu ( const QString &  item)
virtualslot

◆ executePeakFindingAlgMenu

void MantidQt::MantidWidgets::FitPropertyBrowser::executePeakFindingAlgMenu ( const QString &  item)
slot

Definition at line 660 of file FitPropertyBrowser.cpp.

References findPeaks().

Referenced by initBasicLayout().

◆ executeSetupManageMenu

void MantidQt::MantidWidgets::FitPropertyBrowser::executeSetupManageMenu ( const QString &  item)
slot

◆ executeSetupMenu

void MantidQt::MantidWidgets::FitPropertyBrowser::executeSetupMenu ( const QString &  item)
slot

Definition at line 667 of file FitPropertyBrowser.cpp.

References clear().

Referenced by initBasicLayout().

◆ filenameChanged

void MantidQt::MantidWidgets::FitPropertyBrowser::filenameChanged ( QtProperty *  prop)
privateslot

Called when a filename property changed.

Parameters
prop:: A pointer to the property

Definition at line 1506 of file FitPropertyBrowser.cpp.

References getHandler(), and m_changeSlotsEnabled.

◆ findItem()

QtBrowserItem * MantidQt::MantidWidgets::FitPropertyBrowser::findItem ( QtBrowserItem *  parent,
QtProperty *  prop 
) const
private

Find QtBrowserItem for a property prop among the chidren of.

Definition at line 2023 of file FitPropertyBrowser.cpp.

References findItem().

Referenced by findItem().

◆ findPeaks()

void MantidQt::MantidWidgets::FitPropertyBrowser::findPeaks ( const std::unique_ptr< FindPeakStrategyGeneric findPeakStrategy)

◆ finishHandle()

void MantidQt::MantidWidgets::FitPropertyBrowser::finishHandle ( const Mantid::API::IAlgorithm alg)
overridevirtual

◆ fit

void MantidQt::MantidWidgets::FitPropertyBrowser::fit ( )
virtualslot

Do the fit.

Definition at line 3056 of file FitPropertyBrowser.cpp.

References doFit(), m_intManager, and m_maxIterations.

Referenced by executeFitMenu(), and popupMenu().

◆ fitResultsChanged

void MantidQt::MantidWidgets::FitPropertyBrowser::fitResultsChanged ( const QString &  status)
signal

Referenced by finishHandle(), and initBasicLayout().

◆ fittingDone

void MantidQt::MantidWidgets::FitPropertyBrowser::fittingDone ( const QString &  )
signal

signal which can optionally be caught for customization after a fit has been done

Referenced by finishHandle().

◆ fitUndone

void MantidQt::MantidWidgets::FitPropertyBrowser::fitUndone ( )
signal

Referenced by undoFit().

◆ functionChanged

void MantidQt::MantidWidgets::FitPropertyBrowser::functionChanged ( )
signal

◆ functionCleared

void MantidQt::MantidWidgets::FitPropertyBrowser::functionCleared ( )
signal

Referenced by clear().

◆ functionFactoryUpdateReceived

void MantidQt::MantidWidgets::FitPropertyBrowser::functionFactoryUpdateReceived ( )
signal

◆ functionHelp

void MantidQt::MantidWidgets::FitPropertyBrowser::functionHelp ( )
privateslot

Open a web page with description of the current function.

================================================================================================= Show online function help

Definition at line 3207 of file FitPropertyBrowser.cpp.

References currentHandler(), MantidQt::MantidWidgets::PropertyHandler::ifun(), and MantidQt::API::HelpWindow::showFitFunction().

Referenced by popupMenu().

◆ functionLoaded

void MantidQt::MantidWidgets::FitPropertyBrowser::functionLoaded ( const QString &  )
signal

Referenced by loadFunction().

◆ functionRemoved

void MantidQt::MantidWidgets::FitPropertyBrowser::functionRemoved ( )
signal

◆ fwhm()

double MantidQt::MantidWidgets::FitPropertyBrowser::fwhm ( ) const

Width of the current peak.

Definition at line 1553 of file FitPropertyBrowser.cpp.

References m_currentHandler, and MantidQt::MantidWidgets::PropertyHandler::pfun().

◆ getAllowedIndex()

int MantidQt::MantidWidgets::FitPropertyBrowser::getAllowedIndex ( int  currentIndex) const
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 2528 of file FitPropertyBrowser.cpp.

References getWorkspace(), m_allowedSpectra, m_oldWorkspaceIndex, workspace, and workspaceName().

Referenced by intChanged(), and setWorkspaceIndex().

◆ getAutoBackgroundString()

QString MantidQt::MantidWidgets::FitPropertyBrowser::getAutoBackgroundString ( ) const
inline

◆ getCentreParameterNameOf()

std::string MantidQt::MantidWidgets::FitPropertyBrowser::getCentreParameterNameOf ( const QString &  prefix)

Definition at line 3368 of file FitPropertyBrowser.cpp.

References getPeakHandler().

◆ getConstraintsString()

QString MantidQt::MantidWidgets::FitPropertyBrowser::getConstraintsString ( ) const

Creates the "Constraints" property value for the Fit algorithm.

◆ getDecimals()

int MantidQt::MantidWidgets::FitPropertyBrowser::getDecimals ( ) const
inline

Number of decimal places in double properties.

Definition at line 246 of file FitPropertyBrowser.h.

◆ getErrColumnName()

QString MantidQt::MantidWidgets::FitPropertyBrowser::getErrColumnName ( ) const

Get the name of the Error column.

Definition at line 2005 of file FitPropertyBrowser.cpp.

References getWorkspace(), m_columnManager, and m_errColumn.

Referenced by doFit().

◆ getExcludeRange()

std::string MantidQt::MantidWidgets::FitPropertyBrowser::getExcludeRange ( ) const

Get the excluded range for the fit.

Get the excluded range.

Definition at line 1208 of file FitPropertyBrowser.cpp.

References m_excludeRange, and m_stringManager.

Referenced by doFit().

◆ getFitAlgorithmOutputStatus()

const std::string & MantidQt::MantidWidgets::FitPropertyBrowser::getFitAlgorithmOutputStatus ( ) const

================================================================================================= Get Fit Algorithm output statuss

Definition at line 3202 of file FitPropertyBrowser.cpp.

References m_fitAlgOutputStatus.

◆ getFitAlgorithmParameters()

const std::string & MantidQt::MantidWidgets::FitPropertyBrowser::getFitAlgorithmParameters ( ) const

================================================================================================= Get Fit Algorithm parameters

Definition at line 3197 of file FitPropertyBrowser.cpp.

References m_fitAlgParameters.

◆ getFitMenu()

QMenu * MantidQt::MantidWidgets::FitPropertyBrowser::getFitMenu ( ) const
inline

Return the Fit menu.

This gives Python access to events emitted by this menu.

Definition at line 280 of file FitPropertyBrowser.h.

◆ getFittingFunction()

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 1678 of file FitPropertyBrowser.cpp.

References getFunctionAtIndex(), and m_compositeFunction.

Referenced by getFunctionString().

◆ getFunctionAtIndex()

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 1691 of file FitPropertyBrowser.cpp.

References index, and m_compositeFunction.

Referenced by getFittingFunction(), processMultiBGResults(), and setupMultifit().

◆ getFunctionString()

std::string MantidQt::MantidWidgets::FitPropertyBrowser::getFunctionString ( ) const

Get the function as a string.

Definition at line 1731 of file FitPropertyBrowser.cpp.

References getFittingFunction().

◆ getHandler()

PropertyHandler * MantidQt::MantidWidgets::FitPropertyBrowser::getHandler ( ) const

◆ getOldExpressionAsString()

QString MantidQt::MantidWidgets::FitPropertyBrowser::getOldExpressionAsString ( const QString &  parameterName) const

Get the tie expression stored in the function in case the new expression is invalid and the GUI needs to be reset.

Parameters
parameterName:: A pointer to the parameter name

Definition at line 1483 of file FitPropertyBrowser.cpp.

References compositeFunction().

Referenced by stringChanged().

◆ getParameterNames()

QStringList MantidQt::MantidWidgets::FitPropertyBrowser::getParameterNames ( ) const

Get function parameter names.

================================================================================================= Get parameter names

Definition at line 3184 of file FitPropertyBrowser.cpp.

References theFunction().

◆ getParameterValues()

QList< double > MantidQt::MantidWidgets::FitPropertyBrowser::getParameterValues ( ) const

Get function parameter values.

================================================================================================= Get function parameter values

Definition at line 3170 of file FitPropertyBrowser.cpp.

References theFunction().

◆ getPeakCentreOf()

double MantidQt::MantidWidgets::FitPropertyBrowser::getPeakCentreOf ( const QString &  prefix)

Definition at line 3336 of file FitPropertyBrowser.cpp.

References getPeakHandler().

◆ getPeakFwhmOf()

double MantidQt::MantidWidgets::FitPropertyBrowser::getPeakFwhmOf ( const QString &  prefix)

Definition at line 3358 of file FitPropertyBrowser.cpp.

References getPeakHandler().

◆ getPeakHandler()

PropertyHandler * MantidQt::MantidWidgets::FitPropertyBrowser::getPeakHandler ( const QString &  prefix)

◆ getPeakHeightOf()

double MantidQt::MantidWidgets::FitPropertyBrowser::getPeakHeightOf ( const QString &  prefix)

Definition at line 3347 of file FitPropertyBrowser.cpp.

References getPeakHandler().

◆ getPeakPrefixes()

QStringList MantidQt::MantidWidgets::FitPropertyBrowser::getPeakPrefixes ( ) const

Definition at line 3378 of file FitPropertyBrowser.cpp.

References getHandler().

◆ getPeakRadius()

int MantidQt::MantidWidgets::FitPropertyBrowser::getPeakRadius ( ) const

Get the peak radius for peak functions.

Definition at line 1205 of file FitPropertyBrowser.cpp.

References m_intManager, and m_peakRadius.

Referenced by doFit().

◆ getShouldBeNormalised()

bool MantidQt::MantidWidgets::FitPropertyBrowser::getShouldBeNormalised ( )
inlineprotected

Definition at line 459 of file FitPropertyBrowser.h.

◆ getStringPropertyValue()

QString MantidQt::MantidWidgets::FitPropertyBrowser::getStringPropertyValue ( QtProperty *  prop) const
private

◆ getTieProperty()

QtProperty * MantidQt::MantidWidgets::FitPropertyBrowser::getTieProperty ( QtProperty *  parProp) const
private

Returns the tie property for a parameter property, or NULL.

Returns the tie property for a parameter property, or nullptr.

Parameters
parProp:: parameter property

Definition at line 2312 of file FitPropertyBrowser.cpp.

References Mantid::Geometry::x.

◆ getTieString()

QString MantidQt::MantidWidgets::FitPropertyBrowser::getTieString ( ) const

Creates the "Ties" property value for the Fit algorithm.

◆ getWidthParameterNameOf()

std::string MantidQt::MantidWidgets::FitPropertyBrowser::getWidthParameterNameOf ( const QString &  prefix)

Definition at line 3363 of file FitPropertyBrowser.cpp.

References getPeakHandler().

◆ getWorkspace()

std::shared_ptr< Mantid::API::Workspace > MantidQt::MantidWidgets::FitPropertyBrowser::getWorkspace ( ) const

◆ getWorkspaceList()

QListWidget * MantidQt::MantidWidgets::FitPropertyBrowser::getWorkspaceList ( ) const
inline

Return the Fit menu.

This gives Python access to events emitted by this menu.

Definition at line 284 of file FitPropertyBrowser.h.

◆ getWorkspaceNames()

const 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 2830 of file FitPropertyBrowser.cpp.

References m_workspaceNames.

◆ getXColumnName()

QString MantidQt::MantidWidgets::FitPropertyBrowser::getXColumnName ( ) const

Get the name of the X column.

Definition at line 1975 of file FitPropertyBrowser.cpp.

References getWorkspace(), m_columnManager, and m_xColumn.

Referenced by doFit().

◆ getXRange()

QVector< double > MantidQt::MantidWidgets::FitPropertyBrowser::getXRange ( )

Get the X limits of the workspace.

Definition at line 1947 of file FitPropertyBrowser.cpp.

References getWorkspace(), m_columnManager, m_xColumn, and workspaceIndex().

◆ getYColumnName()

QString MantidQt::MantidWidgets::FitPropertyBrowser::getYColumnName ( ) const

Get the name of the Y column.

Definition at line 1990 of file FitPropertyBrowser.cpp.

References getWorkspace(), m_columnManager, and m_yColumn.

Referenced by doFit().

◆ handleFactoryUpdate()

void MantidQt::MantidWidgets::FitPropertyBrowser::handleFactoryUpdate ( Mantid::API::FunctionFactoryUpdateNotification_ptr  notice)
private

Callback for FunctionFactory update notifications.

Called when the function factory has been updated.

Parameters
noticeA Poco notification object

Definition at line 2326 of file FitPropertyBrowser.cpp.

References functionFactoryUpdateReceived().

◆ hasConstraints()

void MantidQt::MantidWidgets::FitPropertyBrowser::hasConstraints ( QtProperty *  parProp,
bool &  hasTie,
bool &  hasFix,
bool &  hasBounds 
) const
private

Does a parameter have a tie.

Does a parameter have a tie, is fixed, or has bounds.

Parameters
parProp:: The property for a function parameter
hasTie:: Parameter has a tie
hasFix:: Parameter is fixed
hasBounds:: Parameter has bounds

Definition at line 2290 of file FitPropertyBrowser.cpp.

Referenced by popupMenu().

◆ height()

double MantidQt::MantidWidgets::FitPropertyBrowser::height ( ) const

Height of the current peak.

Definition at line 1534 of file FitPropertyBrowser.cpp.

References m_currentHandler, and MantidQt::MantidWidgets::PropertyHandler::pfun().

◆ hideEvent()

void MantidQt::MantidWidgets::FitPropertyBrowser::hideEvent ( QHideEvent *  e)
overrideprotected

actions to do before the browser is hidden

Disconnect from the AnalysisDataService when hiden.

Definition at line 1798 of file FitPropertyBrowser.cpp.

References setADSObserveEnabled().

◆ ignoreInvalidData()

bool MantidQt::MantidWidgets::FitPropertyBrowser::ignoreInvalidData ( ) const

Get the ignore invalid data option.

Definition at line 1176 of file FitPropertyBrowser.cpp.

References m_boolManager, and m_ignoreInvalidData.

Referenced by doFit().

◆ init()

void MantidQt::MantidWidgets::FitPropertyBrowser::init ( )
virtual

◆ initBasicLayout()

void MantidQt::MantidWidgets::FitPropertyBrowser::initBasicLayout ( QWidget *  w)
protected

Initialise the layout, except for the fit button in the menu bar.

This initialization includes:

  1. SIGNALs/SLOTs when properties change.
  2. Action menus and associated SIGNALs/SLOTs.
  3. Initialize the CompositeFunction, the root from which to build the Model. 4. Update the list of available functions
    Parameters
    wwidget 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(), executePeakFindingAlgMenu(), executeSetupManageMenu(), executeSetupMenu(), fitResultsChanged(), functionChanged(), functionFactoryUpdateReceived(), 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().

◆ initLayout()

void MantidQt::MantidWidgets::FitPropertyBrowser::initLayout ( QWidget *  w)
protected

Initialise the layout.

This initialization includes:

  1. SIGNALs/SLOTs when properties change.
  2. Action menus and associated SIGNALs/SLOTs.
  3. Initialize the CompositeFunction, the root from which to build the Model. 4. Update the list of available functions
    Parameters
    wwidget parenting the action menus and the property tree browser

Definition at line 267 of file FitPropertyBrowser.cpp.

References initBasicLayout().

Referenced by init().

◆ intChanged

void MantidQt::MantidWidgets::FitPropertyBrowser::intChanged ( QtProperty *  prop)
protectedvirtualslot

◆ isAutoBack()

bool MantidQt::MantidWidgets::FitPropertyBrowser::isAutoBack ( ) const
inline

Definition at line 240 of file FitPropertyBrowser.h.

◆ isFitEnabled()

bool MantidQt::MantidWidgets::FitPropertyBrowser::isFitEnabled ( ) const

Returns true if the function is ready for a fit.

Definition at line 2144 of file FitPropertyBrowser.cpp.

References m_fitActionFit.

Referenced by popupMenu().

◆ isHistogramFit()

bool MantidQt::MantidWidgets::FitPropertyBrowser::isHistogramFit ( ) const

Get "HistogramFit" option.

Definition at line 1193 of file FitPropertyBrowser.cpp.

References m_enumManager, m_evaluationType, and m_evaluationTypes.

Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), and doFit().

◆ isParameterExplicitlySetOf()

bool MantidQt::MantidWidgets::FitPropertyBrowser::isParameterExplicitlySetOf ( const QString &  prefix,
const std::string &  param 
)

Definition at line 3373 of file FitPropertyBrowser.cpp.

References getPeakHandler().

◆ isPeak()

bool MantidQt::MantidWidgets::FitPropertyBrowser::isPeak ( ) const

Is the current function a peak?

Definition at line 1912 of file FitPropertyBrowser.cpp.

References count(), m_currentHandler, and MantidQt::MantidWidgets::PropertyHandler::pfun().

◆ isUndoEnabled()

bool MantidQt::MantidWidgets::FitPropertyBrowser::isUndoEnabled ( ) const

Tells if undo can be done.

Definition at line 2133 of file FitPropertyBrowser.cpp.

References compositeFunction(), and m_initialParameters.

Referenced by popupMenu().

◆ isWorkspaceValid()

bool MantidQt::MantidWidgets::FitPropertyBrowser::isWorkspaceValid ( Mantid::API::Workspace_sptr  ws) const
privatevirtual

Check if the workspace can be used in the fit.

The accepted types are MatrixWorkspaces or TableWorkspaces

Parameters
ws:: The workspace

Reimplemented in MantidQt::MantidWidgets::MuonFitPropertyBrowser.

Definition at line 1906 of file FitPropertyBrowser.cpp.

Referenced by addHandle(), and populateWorkspaceNames().

◆ itemDoubleClicked

void MantidQt::MantidWidgets::FitPropertyBrowser::itemDoubleClicked ( QListWidgetItem *  item)
signal

Referenced by initBasicLayout().

◆ loadFunction [1/2]

void MantidQt::MantidWidgets::FitPropertyBrowser::loadFunction ( )
privateslot

◆ loadFunction() [2/2]

void MantidQt::MantidWidgets::FitPropertyBrowser::loadFunction ( const QString &  funcString)

◆ loadFunctionFromString

void MantidQt::MantidWidgets::FitPropertyBrowser::loadFunctionFromString ( )
privateslot

Definition at line 2597 of file FitPropertyBrowser.cpp.

References loadFunction().

Referenced by executeSetupManageMenu().

◆ maxIterations()

int MantidQt::MantidWidgets::FitPropertyBrowser::maxIterations ( ) const

Get the max number of iterations.

Definition at line 1202 of file FitPropertyBrowser.cpp.

References m_intManager, and m_maxIterations.

Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), and doFit().

◆ minimizer()

std::string MantidQt::MantidWidgets::FitPropertyBrowser::minimizer ( bool  withProperties = false) const

◆ minimizerChanged()

void MantidQt::MantidWidgets::FitPropertyBrowser::minimizerChanged ( )
protected

Called when the minimizer changes. Creates minimizes's properties.

================================================================================================= Called when the minimizer changes.

Creates minimizes's properties.

Definition at line 3114 of file FitPropertyBrowser.cpp.

References addDoubleProperty(), m_boolManager, m_doubleManager, m_intManager, m_minimizerProperties, m_settingsGroup, m_stringManager, and minimizer().

Referenced by enumChanged().

◆ modifyFitMenu()

void MantidQt::MantidWidgets::FitPropertyBrowser::modifyFitMenu ( QAction *  fitAction,
bool  enabled 
)
protected

Definition at line 3236 of file FitPropertyBrowser.cpp.

References m_fitMenu.

◆ multifitFinished

void MantidQt::MantidWidgets::FitPropertyBrowser::multifitFinished ( )
signal

Referenced by finishHandle(), and initBasicLayout().

◆ normaliseData()

void MantidQt::MantidWidgets::FitPropertyBrowser::normaliseData ( bool  on)
inline

Set if the data must be normalised before fitting.

Definition at line 174 of file FitPropertyBrowser.h.

◆ outputName()

std::string MantidQt::MantidWidgets::FitPropertyBrowser::outputName ( ) const
virtual

◆ parameterChanged [1/2]

void MantidQt::MantidWidgets::FitPropertyBrowser::parameterChanged ( const Mantid::API::IFunction )
signal

◆ parameterChanged [2/2]

void MantidQt::MantidWidgets::FitPropertyBrowser::parameterChanged ( QtProperty *  prop)
privateslot

Called when one of the parameter values gets changed.

This could be caused either by user setting the value or programmatically.

Parameters
prop:: Parameter property which value got changed

Definition at line 1423 of file FitPropertyBrowser.cpp.

References getHandler(), m_changeSlotsEnabled, and MantidQt::MantidWidgets::PropertyHandler::setParameter().

◆ paste

void MantidQt::MantidWidgets::FitPropertyBrowser::paste ( )
privateslot

Paste a function string from the clipboard.

Definition at line 2628 of file FitPropertyBrowser.cpp.

References createCompositeFunction().

◆ plotCompositeMembers()

bool MantidQt::MantidWidgets::FitPropertyBrowser::plotCompositeMembers ( ) const

Returns true if a composite's member functions should be plotted also.

Returns
true if each function with a composite should also be plotted

Definition at line 2809 of file FitPropertyBrowser.cpp.

References m_boolManager, and m_plotCompositeMembers.

◆ plotCurrentGuess

void MantidQt::MantidWidgets::FitPropertyBrowser::plotCurrentGuess ( )
signal

◆ plotDiff()

bool MantidQt::MantidWidgets::FitPropertyBrowser::plotDiff ( ) const

Returns true if the difference plot should be drawn.

Definition at line 2806 of file FitPropertyBrowser.cpp.

References m_boolManager, and m_plotDiff.

Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::init().

◆ plotGuess

void MantidQt::MantidWidgets::FitPropertyBrowser::plotGuess ( )
signal

Referenced by plotGuessAll().

◆ plotGuessAll

void MantidQt::MantidWidgets::FitPropertyBrowser::plotGuessAll ( )
privateslot

Slot.

Sends a signal to plot the guess for the whole function

Definition at line 2424 of file FitPropertyBrowser.cpp.

References plotGuess().

Referenced by plotOrRemoveGuessAll(), and popupMenu().

◆ plotGuessCurrent

void MantidQt::MantidWidgets::FitPropertyBrowser::plotGuessCurrent ( )
privateslot

Slot.

Sends a signal to plot the guess for the current (selected) function

Definition at line 2419 of file FitPropertyBrowser.cpp.

References plotCurrentGuess().

Referenced by popupMenu().

◆ plotOrRemoveGuessAll

void MantidQt::MantidWidgets::FitPropertyBrowser::plotOrRemoveGuessAll ( )
privateslot

Definition at line 2437 of file FitPropertyBrowser.cpp.

References getHandler(), plotGuessAll(), and removeGuessAll().

Referenced by executeDisplayMenu().

◆ populateFitMenuButton()

void MantidQt::MantidWidgets::FitPropertyBrowser::populateFitMenuButton ( QSignalMapper *  fitMapper,
QMenu *  fitMenu 
)
protectedvirtual

Populate the fit button.

This initialization includes:

  1. SIGNALs/SLOTs when properties change.
  2. Actions and associated SIGNALs/SLOTs.
    Parameters
    fitMapperthe QMap to the fit mapper
    fitMenuthe 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().

◆ populateFunctionNames

void MantidQt::MantidWidgets::FitPropertyBrowser::populateFunctionNames ( )
protectedvirtualslot

◆ populateWorkspaceNames()

void MantidQt::MantidWidgets::FitPropertyBrowser::populateWorkspaceNames ( )
protected

◆ popupMenu

void MantidQt::MantidWidgets::FitPropertyBrowser::popupMenu ( const QPoint &  )
privateslot

◆ postDeleteHandle()

void MantidQt::MantidWidgets::FitPropertyBrowser::postDeleteHandle ( const std::string &  wsName)
overridevirtual

workspace was removed

Reimplemented from MantidQt::API::WorkspaceObserver.

Definition at line 1840 of file FitPropertyBrowser.cpp.

References removeWorkspace().

◆ processMultiBGResults

void MantidQt::MantidWidgets::FitPropertyBrowser::processMultiBGResults ( )
privateslot

Process and create some output if it is a MultiBG fit.

Definition at line 2870 of file FitPropertyBrowser.cpp.

References compositeFunction(), getFunctionAtIndex(), group, Mantid::Kernel::SingletonHolder< T >::Instance(), name, and workspaceName().

Referenced by initBasicLayout().

◆ rawData()

bool MantidQt::MantidWidgets::FitPropertyBrowser::rawData ( ) const
overridevirtual

◆ refitAutoBackground()

void MantidQt::MantidWidgets::FitPropertyBrowser::refitAutoBackground ( )

◆ registeredBackgrounds()

const QStringList & MantidQt::MantidWidgets::FitPropertyBrowser::registeredBackgrounds ( ) const
inline

Return a list of registered backgrounds.

Definition at line 208 of file FitPropertyBrowser.h.

◆ registeredFunctions()

const QStringList & MantidQt::MantidWidgets::FitPropertyBrowser::registeredFunctions ( ) const
inline

Return a list of registered functions.

Definition at line 204 of file FitPropertyBrowser.h.

◆ registeredOthers()

const QStringList & MantidQt::MantidWidgets::FitPropertyBrowser::registeredOthers ( ) const
inline

Return a list of registered other functions.

Definition at line 210 of file FitPropertyBrowser.h.

◆ registeredPeaks()

const QStringList & MantidQt::MantidWidgets::FitPropertyBrowser::registeredPeaks ( ) const
inline

Return a list of registered peaks.

Definition at line 206 of file FitPropertyBrowser.h.

◆ removeBounds

void MantidQt::MantidWidgets::FitPropertyBrowser::removeBounds ( )
privateslot

Slot.Removes lower and upper bounds from the selected parameter property.

Definition at line 2406 of file FitPropertyBrowser.cpp.

References MantidQt::MantidWidgets::PropertyHandler::findHandler(), getHandler(), m_browser, and MantidQt::MantidWidgets::PropertyHandler::removeConstraint().

Referenced by popupMenu().

◆ removeCurrentGuess

void MantidQt::MantidWidgets::FitPropertyBrowser::removeCurrentGuess ( )
signal

Referenced by removeGuessCurrent().

◆ removeFitCurves

void MantidQt::MantidWidgets::FitPropertyBrowser::removeFitCurves ( )
signal

Referenced by clearAllPlots().

◆ removeFunction()

void MantidQt::MantidWidgets::FitPropertyBrowser::removeFunction ( PropertyHandler handler)
virtual

Removes the function held by the property handler.

Definition at line 715 of file FitPropertyBrowser.cpp.

References compositeFunction(), functionChanged(), functionRemoved(), getHandler(), MantidQt::MantidWidgets::PropertyHandler::removeFunction(), and removePlotSignal().

Referenced by deleteFunction().

◆ removeGuess

void MantidQt::MantidWidgets::FitPropertyBrowser::removeGuess ( )
signal

Referenced by removeGuessAll().

◆ removeGuessAll

void MantidQt::MantidWidgets::FitPropertyBrowser::removeGuessAll ( )
privateslot

Slot.

Sends a signal to remove the guess for the whole function

Definition at line 2435 of file FitPropertyBrowser.cpp.

References removeGuess().

Referenced by plotOrRemoveGuessAll(), and popupMenu().

◆ removeGuessCurrent

void MantidQt::MantidWidgets::FitPropertyBrowser::removeGuessCurrent ( )
privateslot

Slot.

Sends a signal to remove the guess for the current (selected) function

Definition at line 2430 of file FitPropertyBrowser.cpp.

References removeCurrentGuess().

Referenced by popupMenu().

◆ removePlotSignal

void MantidQt::MantidWidgets::FitPropertyBrowser::removePlotSignal ( MantidQt::MantidWidgets::PropertyHandler )
signal

◆ removePropertiesFromSettingsBrowser

void MantidQt::MantidWidgets::FitPropertyBrowser::removePropertiesFromSettingsBrowser ( const QStringList &  propsToRemove)
virtualslot

Function to toggle the visibility of a settings group property exposed to python.

Definition at line 3073 of file FitPropertyBrowser.cpp.

References m_settingsGroup.

◆ removeWorkspace()

void MantidQt::MantidWidgets::FitPropertyBrowser::removeWorkspace ( const std::string &  wsName)

◆ removeWorkspaceAndSpectra()

void MantidQt::MantidWidgets::FitPropertyBrowser::removeWorkspaceAndSpectra ( const std::string &  wsName)

Definition at line 3272 of file FitPropertyBrowser.cpp.

References m_allowedSpectra, and removeWorkspace().

◆ renameHandle()

void MantidQt::MantidWidgets::FitPropertyBrowser::renameHandle ( const std::string &  oldName,
const std::string &  newName 
)
overridevirtual

Handler of the Rename notifications.

Could be overriden in inherited classes. The default handler is provided (doing nothing).

Parameters
oldName:: The old name of a workspace
newName:: The new name of a workspace

Reimplemented from MantidQt::API::WorkspaceObserver.

Definition at line 1877 of file FitPropertyBrowser.cpp.

References m_allowedSpectra, m_enumManager, m_workspace, m_workspaceNames, m_wsListWidget, and workspaceChange().

◆ reset

void MantidQt::MantidWidgets::FitPropertyBrowser::reset ( )
privateslot

reset the function part, renew function, all handlers are new

Definition at line 2634 of file FitPropertyBrowser.cpp.

References clearBrowser(), createCompositeFunction(), and theFunction().

Referenced by MantidQt::MantidWidgets::PropertyHandler::addFunction().

◆ saveFunction [1/2]

void MantidQt::MantidWidgets::FitPropertyBrowser::saveFunction ( )
privateslot

Definition at line 2558 of file FitPropertyBrowser.cpp.

References saveFunction().

Referenced by executeSetupManageMenu(), popupMenu(), and saveFunction().

◆ saveFunction() [2/2]

void MantidQt::MantidWidgets::FitPropertyBrowser::saveFunction ( const QString &  fnName)

save function

Definition at line 2567 of file FitPropertyBrowser.cpp.

References theFunction(), and updateSetupMenus().

◆ sendParameterChanged() [1/2]

void MantidQt::MantidWidgets::FitPropertyBrowser::sendParameterChanged ( const Mantid::API::IFunction f)
inline

◆ sendParameterChanged() [2/2]

void MantidQt::MantidWidgets::FitPropertyBrowser::sendParameterChanged ( const QString &  prefix)
inline

Definition at line 236 of file FitPropertyBrowser.h.

◆ sequentialFit

void MantidQt::MantidWidgets::FitPropertyBrowser::sequentialFit ( )
virtualslot

Definition at line 2731 of file FitPropertyBrowser.cpp.

References m_mantidui, SequentialFitDialog, and workspaceName().

Referenced by executeFitMenu().

◆ sequentialFitDone

void MantidQt::MantidWidgets::FitPropertyBrowser::sequentialFitDone ( ) const
signal

◆ sequentialFitFinished()

void MantidQt::MantidWidgets::FitPropertyBrowser::sequentialFitFinished ( )
inline

◆ setADSObserveEnabled()

void MantidQt::MantidWidgets::FitPropertyBrowser::setADSObserveEnabled ( bool  enabled)

◆ setAutoBackgroundName()

void MantidQt::MantidWidgets::FitPropertyBrowser::setAutoBackgroundName ( const QString &  aName)

Remember a background function name to be used for creating auto-background.

Parameters
aName:: A name of the auto-background. The may be followed by function attributes as name=value pairs separated by spaces.

Definition at line 2711 of file FitPropertyBrowser.cpp.

References m_auto_back, m_autoBgAttributes, m_autoBgName, and name.

Referenced by FitPropertyBrowser().

◆ setCentre()

void MantidQt::MantidWidgets::FitPropertyBrowser::setCentre ( double  value)

◆ setCurrentFunction() [1/2]

void MantidQt::MantidWidgets::FitPropertyBrowser::setCurrentFunction ( const Mantid::API::IFunction_const_sptr f) const
private

Set new current function.

Parameters
f:: New current function

Definition at line 1591 of file FitPropertyBrowser.cpp.

References getHandler(), and setCurrentFunction().

◆ setCurrentFunction() [2/2]

void MantidQt::MantidWidgets::FitPropertyBrowser::setCurrentFunction ( PropertyHandler h) const

◆ setDecimals()

void MantidQt::MantidWidgets::FitPropertyBrowser::setDecimals ( int  d)

Definition at line 2798 of file FitPropertyBrowser.cpp.

References Mantid::Geometry::d, m_decimals, and updateDecimals().

◆ setDefaultBackgroundType()

void MantidQt::MantidWidgets::FitPropertyBrowser::setDefaultBackgroundType ( const std::string &  fnType)

◆ setDefaultFunctionType()

void MantidQt::MantidWidgets::FitPropertyBrowser::setDefaultFunctionType ( const std::string &  fnType)

Set the default function type.

Definition at line 1050 of file FitPropertyBrowser.cpp.

References m_defaultFunction.

Referenced by setDefaultBackgroundType(), and setDefaultPeakType().

◆ setDefaultPeakType()

void MantidQt::MantidWidgets::FitPropertyBrowser::setDefaultPeakType ( const std::string &  fnType)

◆ setEndX()

void MantidQt::MantidWidgets::FitPropertyBrowser::setEndX ( double  end)
overridevirtual

Set the end X.

Implements MantidQt::MantidWidgets::IWorkspaceFitControl.

Definition at line 1929 of file FitPropertyBrowser.cpp.

References m_doubleManager, m_endX, and value.

Referenced by setWorkspaceName().

◆ setFitEnabled()

void MantidQt::MantidWidgets::FitPropertyBrowser::setFitEnabled ( bool  enable)
virtual

◆ setFwhm()

void MantidQt::MantidWidgets::FitPropertyBrowser::setFwhm ( double  value)

◆ setHeight()

void MantidQt::MantidWidgets::FitPropertyBrowser::setHeight ( double  value)

◆ setIgnoreInvalidData()

void MantidQt::MantidWidgets::FitPropertyBrowser::setIgnoreInvalidData ( bool  on)

Set the ignore invalid data option.

Definition at line 1179 of file FitPropertyBrowser.cpp.

References m_boolManager, and m_ignoreInvalidData.

Referenced by init().

◆ setOutputName()

void MantidQt::MantidWidgets::FitPropertyBrowser::setOutputName ( const std::string &  name)

Set the output name.

Definition at line 1140 of file FitPropertyBrowser.cpp.

References m_output, m_stringManager, and name.

Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::enumChanged(), and stringChanged().

◆ setPeakCentreOf()

void MantidQt::MantidWidgets::FitPropertyBrowser::setPeakCentreOf ( const QString &  prefix,
double  value 
)

Definition at line 3330 of file FitPropertyBrowser.cpp.

References getPeakHandler(), and value.

◆ setPeakFwhmOf()

void MantidQt::MantidWidgets::FitPropertyBrowser::setPeakFwhmOf ( const QString &  prefix,
double  value 
)

Definition at line 3352 of file FitPropertyBrowser.cpp.

References getPeakHandler(), and value.

◆ setPeakHeightOf()

void MantidQt::MantidWidgets::FitPropertyBrowser::setPeakHeightOf ( const QString &  prefix,
double  value 
)

Definition at line 3341 of file FitPropertyBrowser.cpp.

References getPeakHandler(), and value.

◆ setPeakToolOn

void MantidQt::MantidWidgets::FitPropertyBrowser::setPeakToolOn ( bool  on)
slot

Definition at line 2778 of file FitPropertyBrowser.cpp.

References m_displayActionPlotGuess, and m_peakToolOn.

◆ setStartX()

void MantidQt::MantidWidgets::FitPropertyBrowser::setStartX ( double  start)
overridevirtual

Set the start X.

Implements MantidQt::MantidWidgets::IWorkspaceFitControl.

Definition at line 1923 of file FitPropertyBrowser.cpp.

References m_doubleManager, m_startX, and value.

Referenced by setWorkspaceName().

◆ setStringPropertyValue()

void MantidQt::MantidWidgets::FitPropertyBrowser::setStringPropertyValue ( QtProperty *  prop,
const QString &  value 
) const
private

Set a value to a string property.

Parameters
prop:: A pointer to the property
value:: New value for the property

Definition at line 2505 of file FitPropertyBrowser.cpp.

References value.

Referenced by MantidQt::MantidWidgets::CreateAttributeProperty::apply(), and MantidQt::MantidWidgets::SetAttributeProperty::apply().

◆ setTextPlotGuess()

void MantidQt::MantidWidgets::FitPropertyBrowser::setTextPlotGuess ( const QString &  text)

alter text of Plot Guess

Definition at line 2813 of file FitPropertyBrowser.cpp.

References m_displayActionPlotGuess.

◆ setTip()

void MantidQt::MantidWidgets::FitPropertyBrowser::setTip ( const QString &  txt)

Display a tip.

Parameters
txt:: The text to display

Definition at line 2336 of file FitPropertyBrowser.cpp.

References m_tip.

◆ setupMultifit

void MantidQt::MantidWidgets::FitPropertyBrowser::setupMultifit ( )
privateslot

Call MultifitSetupDialog to populate MultiBG function.

Definition at line 2835 of file FitPropertyBrowser.cpp.

References endX(), getFunctionAtIndex(), loadFunction(), startX(), and workspaceName().

Referenced by popupMenu().

◆ setWorkspace()

void MantidQt::MantidWidgets::FitPropertyBrowser::setWorkspace ( const Mantid::API::IFunction_sptr function) const
protected

◆ setWorkspaceIndex()

void MantidQt::MantidWidgets::FitPropertyBrowser::setWorkspaceIndex ( int  i)
overridevirtual

◆ setWorkspaceName()

void MantidQt::MantidWidgets::FitPropertyBrowser::setWorkspaceName ( const QString &  wsName)
overridevirtual

◆ setWorkspaceProperties()

void MantidQt::MantidWidgets::FitPropertyBrowser::setWorkspaceProperties ( )
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 2944 of file FitPropertyBrowser.cpp.

References addWorkspaceIndexToBrowser(), m_browser, m_columnManager, m_customSettingsGroup, m_errColumn, m_evaluationType, m_settingsGroup, m_storedWorkspaceName, m_workspace, m_workspaceIndex, m_xColumn, m_yColumn, name, setWorkspaceIndex(), workspaceName(), and Mantid::Geometry::x.

Referenced by enumChanged().

◆ setXRange()

void MantidQt::MantidWidgets::FitPropertyBrowser::setXRange ( double  start,
double  end 
)

◆ showEvent()

void MantidQt::MantidWidgets::FitPropertyBrowser::showEvent ( QShowEvent *  e)
overrideprotected

actions to do before the browser made visible

Connect to the AnalysisDataService when shown.

Definition at line 1786 of file FitPropertyBrowser.cpp.

References populateWorkspaceNames(), and setADSObserveEnabled().

◆ showFitResultStatus

void MantidQt::MantidWidgets::FitPropertyBrowser::showFitResultStatus ( const QString &  status)
privateslot

Display the status string returned from Fit.

Parameters
status:: A status string as returned by OutputStatus Fit property.

Definition at line 1738 of file FitPropertyBrowser.cpp.

References m_status.

Referenced by initBasicLayout().

◆ sizeOfFunctionsGroup()

int MantidQt::MantidWidgets::FitPropertyBrowser::sizeOfFunctionsGroup ( ) const

Definition at line 3244 of file FitPropertyBrowser.cpp.

◆ startX()

double MantidQt::MantidWidgets::FitPropertyBrowser::startX ( ) const

◆ startXChanged

void MantidQt::MantidWidgets::FitPropertyBrowser::startXChanged ( double  )
signal

◆ stringChanged

void MantidQt::MantidWidgets::FitPropertyBrowser::stringChanged ( QtProperty *  prop)
privateslot

◆ theFunction()

Mantid::API::IFunction_const_sptr MantidQt::MantidWidgets::FitPropertyBrowser::theFunction ( ) const

Get the current function.

Definition at line 2520 of file FitPropertyBrowser.cpp.

References m_compositeFunction.

Referenced by copy(), getParameterNames(), getParameterValues(), reset(), and saveFunction().

◆ toggleSettingsBrowserVisible

void MantidQt::MantidWidgets::FitPropertyBrowser::toggleSettingsBrowserVisible ( )
virtualslot

Function to toggle the visibility of the settings browser.

Definition at line 3061 of file FitPropertyBrowser.cpp.

References m_browser, and m_settingsGroup.

◆ toggleWsListVisible

void MantidQt::MantidWidgets::FitPropertyBrowser::toggleWsListVisible ( )
virtualslot

Definition at line 3083 of file FitPropertyBrowser.cpp.

References m_hideWsListWidget.

◆ tryCreateFitFunction()

Mantid::API::IFunction_sptr MantidQt::MantidWidgets::FitPropertyBrowser::tryCreateFitFunction ( const QString &  str)
protected

Catches unexpected not found exceptions.

Definition at line 812 of file FitPropertyBrowser.cpp.

Referenced by createCompositeFunction().

◆ undoFit

void MantidQt::MantidWidgets::FitPropertyBrowser::undoFit ( )
slot

Slot.

Undoes the fit: restores the parameters to their initial values.

Definition at line 2113 of file FitPropertyBrowser.cpp.

References MantidQt::MantidWidgets::PropertyHandler::clearErrors(), clearFitResultStatus(), compositeFunction(), disableUndo(), fitUndone(), getHandler(), m_initialParameters, and updateParameters().

Referenced by executeFitMenu(), and popupMenu().

◆ updateAttributes()

void MantidQt::MantidWidgets::FitPropertyBrowser::updateAttributes ( )

Update the function attributes.

Update the function attributes which have changed.

Definition at line 2081 of file FitPropertyBrowser.cpp.

References getHandler(), and MantidQt::MantidWidgets::PropertyHandler::updateAttributes().

◆ updateBrowserFromFitResults()

void MantidQt::MantidWidgets::FitPropertyBrowser::updateBrowserFromFitResults ( const Mantid::API::IFunction_sptr finalFunction)
protected

Set the parameters to the fit outcome.

Definition at line 2101 of file FitPropertyBrowser.cpp.

References compositeFunction(), getHandler(), MantidQt::MantidWidgets::PropertyHandler::updateErrors(), and updateParameters().

Referenced by finishHandle().

◆ updateDecimals()

void MantidQt::MantidWidgets::FitPropertyBrowser::updateDecimals ( )
protected

impose a number of decimal places on all defined Double properties

Definition at line 2786 of file FitPropertyBrowser.cpp.

References m_decimals, and m_doubleManager.

Referenced by init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and setDecimals().

◆ updateParameters()

void MantidQt::MantidWidgets::FitPropertyBrowser::updateParameters ( )

Update the function parameters.

Update the function parameter properties.

Definition at line 2076 of file FitPropertyBrowser.cpp.

References getHandler(), and MantidQt::MantidWidgets::PropertyHandler::updateParameters().

Referenced by MantidQt::MantidWidgets::SequentialFitDialog::getFitResults(), undoFit(), and updateBrowserFromFitResults().

◆ updatePlotSpectrum

void MantidQt::MantidWidgets::FitPropertyBrowser::updatePlotSpectrum ( int  index)
signal

Referenced by intChanged().

◆ updateSetupMenus()

void MantidQt::MantidWidgets::FitPropertyBrowser::updateSetupMenus ( )
private

Update setup menus according to how these are set in settings.

Definition at line 578 of file FitPropertyBrowser.cpp.

References executeCustomSetupLoad(), executeCustomSetupRemove(), m_setupActionCustomSetup, and m_setupActionRemove.

Referenced by executeClearCustomSetups(), executeCustomSetupRemove(), initBasicLayout(), and saveFunction().

◆ updateStructureTooltips

void MantidQt::MantidWidgets::FitPropertyBrowser::updateStructureTooltips ( )
privateslot

Update structure tooltips for all functions.

Recursively updates structure tooltips for all the functions.

Definition at line 635 of file FitPropertyBrowser.cpp.

References getHandler(), and MantidQt::MantidWidgets::PropertyHandler::updateStructureTooltip().

Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and initBasicLayout().

◆ vectorDoubleChanged

void MantidQt::MantidWidgets::FitPropertyBrowser::vectorDoubleChanged ( QtProperty *  prop)
privateslot

Slot.

Responds to changing a vector attribute member

Parameters
prop:: A property managed by m_vectorDoubleManager.

Definition at line 2055 of file FitPropertyBrowser.cpp.

References enactAttributeChange(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), and getHandler().

Referenced by initBasicLayout().

◆ vectorSizeChanged

void MantidQt::MantidWidgets::FitPropertyBrowser::vectorSizeChanged ( QtProperty *  prop)
privateslot

Slot.

Responds to changing a vector attribute size

Parameters
prop:: A property managed by m_vectorSizeManager.

Definition at line 2066 of file FitPropertyBrowser.cpp.

References enactAttributeChange(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), and getHandler().

Referenced by initBasicLayout().

◆ workspaceChange()

void MantidQt::MantidWidgets::FitPropertyBrowser::workspaceChange ( const QString &  wsName)
privatevirtual

Sets the new workspace to the current one.

Sets a new workspace.

Definition at line 2818 of file FitPropertyBrowser.cpp.

References m_guessOutputName, m_output, m_stringManager, workspaceName(), workspaceNameChanged(), and wsChangePPAssign().

Referenced by enumChanged(), and renameHandle().

◆ workspaceClicked

void MantidQt::MantidWidgets::FitPropertyBrowser::workspaceClicked ( const QString &  wsName)
signal

Referenced by workspaceDoubleClicked().

◆ workspaceDoubleClicked

void MantidQt::MantidWidgets::FitPropertyBrowser::workspaceDoubleClicked ( QListWidgetItem *  item)
slot

Definition at line 541 of file FitPropertyBrowser.cpp.

References workspaceClicked().

Referenced by initBasicLayout().

◆ workspaceIndex()

int MantidQt::MantidWidgets::FitPropertyBrowser::workspaceIndex ( ) const

◆ workspaceIndexChanged

void MantidQt::MantidWidgets::FitPropertyBrowser::workspaceIndexChanged ( int  index)
signal

Referenced by intChanged().

◆ workspaceName()

std::string MantidQt::MantidWidgets::FitPropertyBrowser::workspaceName ( ) const

◆ workspaceNameChanged

void MantidQt::MantidWidgets::FitPropertyBrowser::workspaceNameChanged ( const QString &  )
signal

◆ wsChangePPAssign

void MantidQt::MantidWidgets::FitPropertyBrowser::wsChangePPAssign ( const QString &  )
signal

Referenced by workspaceChange().

◆ xRangeChanged

void MantidQt::MantidWidgets::FitPropertyBrowser::xRangeChanged ( double  ,
double   
)
signal

Friends And Related Symbol Documentation

◆ CreateAttributeProperty

friend class CreateAttributeProperty
friend

Definition at line 702 of file FitPropertyBrowser.h.

◆ PropertyHandler

friend class PropertyHandler
friend

Definition at line 701 of file FitPropertyBrowser.h.

◆ SequentialFitDialog

friend class SequentialFitDialog
friend

Definition at line 705 of file FitPropertyBrowser.h.

Referenced by sequentialFit().

◆ SetAttribute

friend class SetAttribute
friend

Definition at line 703 of file FitPropertyBrowser.h.

◆ SetAttributeProperty

friend class SetAttributeProperty
friend

Definition at line 704 of file FitPropertyBrowser.h.

Member Data Documentation

◆ m_allowedSpectra

QMap<QString, QList<int> > MantidQt::MantidWidgets::FitPropertyBrowser::m_allowedSpectra
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 695 of file FitPropertyBrowser.h.

Referenced by addAllowedSpectra(), addHandle(), getAllowedIndex(), populateWorkspaceNames(), removeWorkspaceAndSpectra(), and renameHandle().

◆ m_allowedTableWorkspace

QString MantidQt::MantidWidgets::FitPropertyBrowser::m_allowedTableWorkspace
private

If set it contains the table workspace name to be fitted in this browser:

Definition at line 697 of file FitPropertyBrowser.h.

Referenced by addAllowedTableWorkspace(), addHandle(), and populateWorkspaceNames().

◆ m_auto_back

bool MantidQt::MantidWidgets::FitPropertyBrowser::m_auto_back
private

If true background function will be included automatically.

Definition at line 664 of file FitPropertyBrowser.h.

Referenced by createCompositeFunction(), loadFunction(), and setAutoBackgroundName().

◆ m_autoBackground

PropertyHandler* MantidQt::MantidWidgets::FitPropertyBrowser::m_autoBackground
private

◆ m_autoBgAttributes

QString MantidQt::MantidWidgets::FitPropertyBrowser::m_autoBgAttributes
private

List of attributes of the autobackground function as name=value pairs separated by spaces.

Definition at line 670 of file FitPropertyBrowser.h.

Referenced by addAutoBackground(), and setAutoBackgroundName().

◆ m_autoBgName

QString MantidQt::MantidWidgets::FitPropertyBrowser::m_autoBgName
private

Name of the autobackground function.

Definition at line 667 of file FitPropertyBrowser.h.

Referenced by addAutoBackground(), FitPropertyBrowser(), and setAutoBackgroundName().

◆ m_boolManager

QtBoolPropertyManager* MantidQt::MantidWidgets::FitPropertyBrowser::m_boolManager
protected

◆ m_browser

QtTreePropertyBrowser* MantidQt::MantidWidgets::FitPropertyBrowser::m_browser
protected

◆ m_changeSlotsEnabled

bool MantidQt::MantidWidgets::FitPropertyBrowser::m_changeSlotsEnabled
protected

◆ m_columnManager

QtEnumPropertyManager* MantidQt::MantidWidgets::FitPropertyBrowser::m_columnManager
protected

◆ m_compositeFunction

std::shared_ptr<Mantid::API::CompositeFunction> MantidQt::MantidWidgets::FitPropertyBrowser::m_compositeFunction
protected

◆ m_convolveMembers

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_convolveMembers
protected

Definition at line 521 of file FitPropertyBrowser.h.

Referenced by convolveMembers(), and init().

◆ m_costFunction

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_costFunction
protected

◆ m_costFunctions

QStringList MantidQt::MantidWidgets::FitPropertyBrowser::m_costFunctions
mutableprotected

A list of available cost functions.

Definition at line 567 of file FitPropertyBrowser.h.

Referenced by costFunction(), init(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::init().

◆ m_currentHandler

PropertyHandler* MantidQt::MantidWidgets::FitPropertyBrowser::m_currentHandler
mutableprivate

◆ m_customSettingsGroup

QtBrowserItem* MantidQt::MantidWidgets::FitPropertyBrowser::m_customSettingsGroup
protected

Group for custom options available on muon analysis widget.

Definition at line 545 of file FitPropertyBrowser.h.

Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and setWorkspaceProperties().

◆ m_dataTypes

QStringList MantidQt::MantidWidgets::FitPropertyBrowser::m_dataTypes
mutableprivate

A list of available data types.

Definition at line 648 of file FitPropertyBrowser.h.

◆ m_decimals

int MantidQt::MantidWidgets::FitPropertyBrowser::m_decimals
private

Number of decimal places in double properties.

Definition at line 676 of file FitPropertyBrowser.h.

Referenced by addDoubleProperty(), setDecimals(), and updateDecimals().

◆ m_defaultBackground

std::string MantidQt::MantidWidgets::FitPropertyBrowser::m_defaultBackground
private

Default background name.

Definition at line 655 of file FitPropertyBrowser.h.

Referenced by defaultBackgroundType(), FitPropertyBrowser(), and setDefaultBackgroundType().

◆ m_defaultFunction

std::string MantidQt::MantidWidgets::FitPropertyBrowser::m_defaultFunction
private

Default function name.

Definition at line 651 of file FitPropertyBrowser.h.

Referenced by defaultFunctionType(), FitPropertyBrowser(), and setDefaultFunctionType().

◆ m_defaultPeak

std::string MantidQt::MantidWidgets::FitPropertyBrowser::m_defaultPeak
private

Default peak name.

Definition at line 653 of file FitPropertyBrowser.h.

Referenced by defaultPeakType(), FitPropertyBrowser(), and setDefaultPeakType().

◆ m_displayActionClearAll

QAction* MantidQt::MantidWidgets::FitPropertyBrowser::m_displayActionClearAll
private

Definition at line 618 of file FitPropertyBrowser.h.

Referenced by initBasicLayout().

◆ m_displayActionPlotGuess

QAction* MantidQt::MantidWidgets::FitPropertyBrowser::m_displayActionPlotGuess
private

Definition at line 616 of file FitPropertyBrowser.h.

Referenced by initBasicLayout(), setPeakToolOn(), and setTextPlotGuess().

◆ m_displayActionQuality

QAction* MantidQt::MantidWidgets::FitPropertyBrowser::m_displayActionQuality
private

Definition at line 617 of file FitPropertyBrowser.h.

Referenced by finishHandle(), and initBasicLayout().

◆ m_doubleManager

QtDoublePropertyManager* MantidQt::MantidWidgets::FitPropertyBrowser::m_doubleManager
protected

◆ m_endX

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_endX
protected

◆ m_enumManager

QtEnumPropertyManager* MantidQt::MantidWidgets::FitPropertyBrowser::m_enumManager
protected

◆ m_errColumn

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_errColumn
protected

Definition at line 525 of file FitPropertyBrowser.h.

Referenced by getErrColumnName(), init(), and setWorkspaceProperties().

◆ m_evaluationType

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_evaluationType
protected

◆ m_evaluationTypes

QStringList MantidQt::MantidWidgets::FitPropertyBrowser::m_evaluationTypes
mutableprotected

A list of possible function evaluation types.

Definition at line 569 of file FitPropertyBrowser.h.

Referenced by init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and isHistogramFit().

◆ m_excludeRange

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_excludeRange
protected

Definition at line 519 of file FitPropertyBrowser.h.

Referenced by getExcludeRange(), and init().

◆ m_filenameManager

QtStringPropertyManager* MantidQt::MantidWidgets::FitPropertyBrowser::m_filenameManager
protected

◆ m_fitActionEvaluate

QAction* MantidQt::MantidWidgets::FitPropertyBrowser::m_fitActionEvaluate
protected

Definition at line 538 of file FitPropertyBrowser.h.

Referenced by populateFitMenuButton().

◆ m_fitActionFit

QAction* MantidQt::MantidWidgets::FitPropertyBrowser::m_fitActionFit
protected

◆ m_fitActionSeqFit

QAction* MantidQt::MantidWidgets::FitPropertyBrowser::m_fitActionSeqFit
protected

◆ m_fitActionUndoFit

QAction* MantidQt::MantidWidgets::FitPropertyBrowser::m_fitActionUndoFit
protected

◆ m_fitAlgOutputStatus

std::string MantidQt::MantidWidgets::FitPropertyBrowser::m_fitAlgOutputStatus
private

Definition at line 689 of file FitPropertyBrowser.h.

Referenced by finishHandle(), and getFitAlgorithmOutputStatus().

◆ m_fitAlgParameters

std::string MantidQt::MantidWidgets::FitPropertyBrowser::m_fitAlgParameters
private

Definition at line 688 of file FitPropertyBrowser.h.

Referenced by doFit(), and getFitAlgorithmParameters().

◆ m_fitMapper

QSignalMapper* MantidQt::MantidWidgets::FitPropertyBrowser::m_fitMapper
private

Make sure m_groupMember belongs to the group.

Fit and Display menu

Definition at line 614 of file FitPropertyBrowser.h.

Referenced by createFitMenuButton().

◆ m_fitMenu

QMenu* MantidQt::MantidWidgets::FitPropertyBrowser::m_fitMenu
private

Definition at line 615 of file FitPropertyBrowser.h.

Referenced by createFitMenuButton(), and modifyFitMenu().

◆ m_fitSelector

SelectFunctionDialog* MantidQt::MantidWidgets::FitPropertyBrowser::m_fitSelector
private

Definition at line 632 of file FitPropertyBrowser.h.

Referenced by acceptFit(), addFunction(), and closeFit().

◆ m_fitTree

QTreeWidget* MantidQt::MantidWidgets::FitPropertyBrowser::m_fitTree
private

Definition at line 634 of file FitPropertyBrowser.h.

◆ m_formulaManager

QtStringPropertyManager* MantidQt::MantidWidgets::FitPropertyBrowser::m_formulaManager
protected

◆ m_functionsGroup

QtBrowserItem* MantidQt::MantidWidgets::FitPropertyBrowser::m_functionsGroup
protected

◆ m_groupManager

QtGroupPropertyManager* MantidQt::MantidWidgets::FitPropertyBrowser::m_groupManager
protected

◆ m_guessOutputName

bool MantidQt::MantidWidgets::FitPropertyBrowser::m_guessOutputName
protected

if true the output name will be guessed every time workspace name is changeed

Definition at line 552 of file FitPropertyBrowser.h.

Referenced by stringChanged(), and workspaceChange().

◆ m_hideWsListWidget

bool MantidQt::MantidWidgets::FitPropertyBrowser::m_hideWsListWidget
private

bool to display ws list or not

Definition at line 661 of file FitPropertyBrowser.h.

Referenced by addFitResultWorkspacesToTableWidget(), and toggleWsListVisible().

◆ m_ignoreInvalidData

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_ignoreInvalidData
protected

Definition at line 514 of file FitPropertyBrowser.h.

Referenced by boolChanged(), ignoreInvalidData(), init(), and setIgnoreInvalidData().

◆ m_initialParameters

std::vector<double> MantidQt::MantidWidgets::FitPropertyBrowser::m_initialParameters
protected

To keep a copy of the initial parameters in case for undo fit.

Definition at line 572 of file FitPropertyBrowser.h.

Referenced by disableUndo(), doFit(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit(), isUndoEnabled(), and undoFit().

◆ m_intManager

QtIntPropertyManager* MantidQt::MantidWidgets::FitPropertyBrowser::m_intManager
protected

◆ m_mantidui

QObject* MantidQt::MantidWidgets::FitPropertyBrowser::m_mantidui
private

holds effectively a MantidUI for connecting

Definition at line 679 of file FitPropertyBrowser.h.

Referenced by init(), and sequentialFit().

◆ m_maxIterations

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_maxIterations
protected

Definition at line 516 of file FitPropertyBrowser.h.

Referenced by fit(), init(), intChanged(), and maxIterations().

◆ m_minimizer

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_minimizer
protected

◆ m_minimizerProperties

QList<QtProperty *> MantidQt::MantidWidgets::FitPropertyBrowser::m_minimizerProperties
protected

Definition at line 528 of file FitPropertyBrowser.h.

Referenced by minimizer(), and minimizerChanged().

◆ m_minimizers

QStringList MantidQt::MantidWidgets::FitPropertyBrowser::m_minimizers
mutableprotected

A list of available minimizers.

Definition at line 563 of file FitPropertyBrowser.h.

Referenced by init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and minimizer().

◆ m_oldWorkspaceIndex

int MantidQt::MantidWidgets::FitPropertyBrowser::m_oldWorkspaceIndex
private

Store workspace index to revert to in case validation fails.

Definition at line 699 of file FitPropertyBrowser.h.

Referenced by getAllowedIndex(), and intChanged().

◆ m_output

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_output
protected

◆ m_parameterManager

ParameterPropertyManager* MantidQt::MantidWidgets::FitPropertyBrowser::m_parameterManager
protected

◆ m_peakRadius

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_peakRadius
protected

Definition at line 517 of file FitPropertyBrowser.h.

Referenced by getPeakRadius(), init(), and intChanged().

◆ m_peakToolOn

bool MantidQt::MantidWidgets::FitPropertyBrowser::m_peakToolOn
private

Shows if the PeakPickerTool is on.

Definition at line 658 of file FitPropertyBrowser.h.

Referenced by popupMenu(), and setPeakToolOn().

◆ m_plotCompositeMembers

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_plotCompositeMembers
protected

Definition at line 520 of file FitPropertyBrowser.h.

Referenced by boolChanged(), init(), and plotCompositeMembers().

◆ m_plotDiff

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_plotDiff
protected

◆ m_rawData

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_rawData
protected

◆ m_registeredBackgrounds

QStringList MantidQt::MantidWidgets::FitPropertyBrowser::m_registeredBackgrounds
mutableprotected

A list of registered backgrounds.

Definition at line 559 of file FitPropertyBrowser.h.

Referenced by populateFunctionNames(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::populateFunctionNames().

◆ m_registeredFunctions

QStringList MantidQt::MantidWidgets::FitPropertyBrowser::m_registeredFunctions
mutableprotected

◆ m_registeredOther

QStringList MantidQt::MantidWidgets::FitPropertyBrowser::m_registeredOther
mutableprotected

A list of registered functions that are neither peaks nor backgrounds.

Definition at line 561 of file FitPropertyBrowser.h.

Referenced by populateFunctionNames(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::populateFunctionNames().

◆ m_registeredPeaks

QStringList MantidQt::MantidWidgets::FitPropertyBrowser::m_registeredPeaks
mutableprotected

◆ m_settingsGroup

QtBrowserItem* MantidQt::MantidWidgets::FitPropertyBrowser::m_settingsGroup
protected

◆ m_setupActionCustomSetup

QAction* MantidQt::MantidWidgets::FitPropertyBrowser::m_setupActionCustomSetup
private

Setup menu.

Definition at line 622 of file FitPropertyBrowser.h.

Referenced by initBasicLayout(), and updateSetupMenus().

◆ m_setupActionRemove

QAction* MantidQt::MantidWidgets::FitPropertyBrowser::m_setupActionRemove
private

Definition at line 623 of file FitPropertyBrowser.h.

Referenced by initBasicLayout(), and updateSetupMenus().

◆ m_shouldBeNormalised

bool MantidQt::MantidWidgets::FitPropertyBrowser::m_shouldBeNormalised
private

Should the data be normalised before fitting?

Definition at line 685 of file FitPropertyBrowser.h.

Referenced by doFit().

◆ m_showParamErrors

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_showParamErrors
protected

◆ m_startX

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_startX
protected

◆ m_status

QLabel* MantidQt::MantidWidgets::FitPropertyBrowser::m_status
private

To display fit status.

Definition at line 629 of file FitPropertyBrowser.h.

Referenced by clearFitResultStatus(), initBasicLayout(), and showFitResultStatus().

◆ m_storedWorkspaceName

std::string MantidQt::MantidWidgets::FitPropertyBrowser::m_storedWorkspaceName
private

store current workspace name

Definition at line 682 of file FitPropertyBrowser.h.

Referenced by enumChanged(), and setWorkspaceProperties().

◆ m_stringManager

QtStringPropertyManager* MantidQt::MantidWidgets::FitPropertyBrowser::m_stringManager
protected

◆ m_stringManagers

QMap<QString, QtStringPropertyManager *> MantidQt::MantidWidgets::FitPropertyBrowser::m_stringManagers
private

String property managers for special case attributes such as Filename or Formula <attribute_name,string_manager>

Definition at line 643 of file FitPropertyBrowser.h.

◆ m_tip

QLabel* MantidQt::MantidWidgets::FitPropertyBrowser::m_tip
private

To display a tip text.

Definition at line 627 of file FitPropertyBrowser.h.

Referenced by createFitMenuButton(), initBasicLayout(), and setTip().

◆ m_updateObserver

Poco::NObserver<FitPropertyBrowser, Mantid::API::FunctionFactoryUpdateNotification> MantidQt::MantidWidgets::FitPropertyBrowser::m_updateObserver
private

Observes algorithm factory update notifications.

Definition at line 608 of file FitPropertyBrowser.h.

Referenced by initBasicLayout(), and ~FitPropertyBrowser().

◆ m_vectorDoubleManager

QtDoublePropertyManager* MantidQt::MantidWidgets::FitPropertyBrowser::m_vectorDoubleManager
protected

◆ m_vectorManager

QtGroupPropertyManager* MantidQt::MantidWidgets::FitPropertyBrowser::m_vectorManager
protected

◆ m_vectorSizeManager

QtIntPropertyManager* MantidQt::MantidWidgets::FitPropertyBrowser::m_vectorSizeManager
protected

◆ m_windowBaseString

QString MantidQt::MantidWidgets::FitPropertyBrowser::m_windowBaseString
private

Definition at line 619 of file FitPropertyBrowser.h.

◆ m_workspace

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_workspace
protected

◆ m_workspaceIndex

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_workspaceIndex
protected

◆ m_workspaceLabel

QLabel* MantidQt::MantidWidgets::FitPropertyBrowser::m_workspaceLabel
private

◆ m_workspaceNames

QStringList MantidQt::MantidWidgets::FitPropertyBrowser::m_workspaceNames
mutableprotected

◆ m_wsListWidget

QListWidget* MantidQt::MantidWidgets::FitPropertyBrowser::m_wsListWidget
private

◆ m_xColumn

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_xColumn
protected

◆ m_yColumn

QtProperty* MantidQt::MantidWidgets::FitPropertyBrowser::m_yColumn
protected

Definition at line 524 of file FitPropertyBrowser.h.

Referenced by getYColumnName(), init(), and setWorkspaceProperties().


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