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. More...
 
void clearBrowser ()
 
void executeClearCustomSetups ()
 
void executeCustomSetupRemove (const QString &name)
 
void executeDisplayMenu (const QString &)
 
virtual void executeFitMenu (const QString &)
 
void executeSetupManageMenu (const QString &)
 
void executeSetupMenu (const QString &)
 
void findPeaks ()
 
virtual void fit ()
 Do the fit. More...
 
virtual void removePropertiesFromSettingsBrowser (const QStringList &propsToRemove)
 Function to toggle the visibility of a settings group property exposed to python. More...
 
virtual void sequentialFit ()
 
void setPeakToolOn (bool on)
 
virtual void toggleSettingsBrowserVisible ()
 Function to toggle the visibility of the settings browser. More...
 
virtual void toggleWsListVisible ()
 
void undoFit ()
 Slot. More...
 
void workspaceDoubleClicked (QListWidgetItem *item)
 

Signals

void algorithmFinished (const QString &)
 
void algorithmStarted (const QString &)
 
void changedParameterOf (const QString &prefix)
 
void changeWindowTitle (const QString &)
 
void currentChanged () const
 
void endXChanged (double)
 
void errorsEnabled (bool enabled)
 
void executeFit (QString, QHash< QString, QString >, Mantid::API::AlgorithmObserver *)
 
void fitResultsChanged (const QString &status)
 
void fittingDone (const QString &)
 signal which can optionally be caught for customization after a fit has been done More...
 
void fitUndone ()
 
void functionChanged ()
 
void functionCleared ()
 
void functionFactoryUpdateReceived ()
 
void functionLoaded (const QString &)
 
void functionRemoved ()
 
void itemDoubleClicked (QListWidgetItem *item)
 
void multifitFinished ()
 
void parameterChanged (const Mantid::API::IFunction *)
 
void plotCurrentGuess ()
 
void plotGuess ()
 
void removeCurrentGuess ()
 
void removeFitCurves ()
 
void removeGuess ()
 
void removePlotSignal (MantidQt::MantidWidgets::PropertyHandler *)
 
void sequentialFitDone () const
 
void startXChanged (double)
 
void updatePlotSpectrum (int index)
 
void workspaceClicked (const QString &wsName)
 
void workspaceIndexChanged (int index)
 
void workspaceNameChanged (const QString &)
 
void wsChangePPAssign (const QString &)
 
void xRangeChanged (double, double)
 

Public Member Functions

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

Protected Slots

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

Protected Member Functions

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

Protected Attributes

QtBoolPropertyManager * m_boolManager
 
QtTreePropertyBrowser * m_browser
 
bool m_changeSlotsEnabled
 If false the change-slots (such as enumChanged(), doubleChanged()) are disabled. More...
 
QtEnumPropertyManager * m_columnManager
 
std::shared_ptr< Mantid::API::CompositeFunctionm_compositeFunction
 A copy of the edited function. More...
 
QtProperty * m_convolveMembers
 
QtProperty * m_costFunction
 
QStringList m_costFunctions
 A list of available cost functions. More...
 
QtBrowserItem * m_customSettingsGroup
 Group for custom options available on muon analysis widget. More...
 
QtDoublePropertyManager * m_doubleManager
 
QtProperty * m_endX
 
QtEnumPropertyManager * m_enumManager
 
QtProperty * m_errColumn
 
QtProperty * m_evaluationType
 
QStringList m_evaluationTypes
 A list of possible function evaluation types. More...
 
QtProperty * m_excludeRange
 
QtStringPropertyManager * m_filenameManager
 
QAction * m_fitActionEvaluate
 
QAction * m_fitActionFit
 
QAction * m_fitActionSeqFit
 
QAction * m_fitActionUndoFit
 
QtStringPropertyManager * m_formulaManager
 
QtBrowserItem * m_functionsGroup
 Group for functions. More...
 
QtGroupPropertyManager * m_groupManager
 Property managers: More...
 
bool m_guessOutputName
 if true the output name will be guessed every time workspace name is changeed More...
 
QtProperty * m_ignoreInvalidData
 
std::vector< double > m_initialParameters
 To keep a copy of the initial parameters in case for undo fit. More...
 
QtIntPropertyManager * m_intManager
 
QtProperty * m_maxIterations
 
QtProperty * m_minimizer
 
QList< QtProperty * > m_minimizerProperties
 
QStringList m_minimizers
 A list of available minimizers. More...
 
QtProperty * m_output
 
ParameterPropertyManager * m_parameterManager
 
QtProperty * m_peakRadius
 
QtProperty * m_plotCompositeMembers
 
QtProperty * m_plotDiff
 
QtProperty * m_rawData
 
QStringList m_registeredBackgrounds
 A list of registered backgrounds. More...
 
QStringList m_registeredFunctions
 A list of registered functions. More...
 
QStringList m_registeredOther
 A list of registered functions that are neither peaks nor backgrounds. More...
 
QStringList m_registeredPeaks
 A list of registered peaks. More...
 
QtBrowserItem * m_settingsGroup
 Group for input/output settings. More...
 
QtProperty * m_showParamErrors
 
QtProperty * m_startX
 
QtStringPropertyManager * m_stringManager
 
QtDoublePropertyManager * m_vectorDoubleManager
 
QtGroupPropertyManager * m_vectorManager
 
QtIntPropertyManager * m_vectorSizeManager
 
QtProperty * m_workspace
 
QtProperty * m_workspaceIndex
 
QStringList m_workspaceNames
 A list of available workspaces. More...
 
QtProperty * m_xColumn
 
QtProperty * m_yColumn
 
- Protected Attributes inherited from MantidQt::API::WorkspaceObserver
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspaceAddNotificationm_addObserver
 Poco::NObserver for DataServise::AddNotification. More...
 
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspaceAfterReplaceNotificationm_afterReplaceObserver
 Poco::NObserver for DataServise::AfterReplaceNotification. More...
 
Poco::NObserver< WorkspaceObserver, Mantid::API::ClearADSNotificationm_clearADSObserver
 Clear notification observer. More...
 
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspacePostDeleteNotificationm_postDeleteObserver
 Poco::NObserver for DataServise::DeleteNotification. More...
 
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspacePreDeleteNotificationm_preDeleteObserver
 Poco::NObserver for DataServise::DeleteNotification. More...
 
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspaceRenameNotificationm_renameObserver
 Poco::NObserver for DataServise::RenameNotification. More...
 

Private Slots

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

Private Member Functions

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

Private Attributes

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

Friends

class CreateAttributeProperty
 
class PropertyHandler
 
class SequentialFitDialog
 
class SetAttribute
 
class SetAttributeProperty
 

Detailed Description

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

Date
13/11/2009

Definition at line 65 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)

◆ 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 2352 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 2341 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 2347 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 2403 of file FitPropertyBrowser.cpp.

References m_decimals, and m_doubleManager.

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

◆ addFitResultWorkspacesToTableWidget()

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

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

Definition at line 504 of file FitPropertyBrowser.cpp.

References height(), Mantid::Kernel::SingletonHolder< T >::Instance(), m_hideWsListWidget, m_workspaceLabel, m_wsListWidget, and outputName().

◆ 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 3273 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 689 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 2310 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 2315 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 2320 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 2438 of file FitPropertyBrowser.cpp.

References m_enumManager.

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

References m_filenameManager, m_formulaManager, and m_stringManager.

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 2335 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 2325 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 2330 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 3018 of file FitPropertyBrowser.cpp.

References m_browser, m_settingsGroup, m_workspace, and m_workspaceIndex.

Referenced by setWorkspaceProperties().

◆ 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 3202 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 3191 of file FitPropertyBrowser.cpp.

References MantidQt::API::MantidDesktopServices::openUrl().

Referenced by popupMenu().

◆ centre()

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

Centre of the current peak.

Definition at line 1477 of file FitPropertyBrowser.cpp.

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

Referenced by findPeaks().

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

◆ clear

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

◆ clearAllPlots

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

Definition at line 2396 of file FitPropertyBrowser.cpp.

References removeFitCurves().

Referenced by executeDisplayMenu().

◆ clearBrowser

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

Definition at line 2049 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 1707 of file FitPropertyBrowser.cpp.

References m_status.

Referenced by initBasicLayout(), and undoFit().

◆ closeFit

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

Definition at line 738 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 3066 of file FitPropertyBrowser.cpp.

References endX(), Mantid::Kernel::SingletonHolder< T >::Instance(), m_columnManager, m_doubleManager, m_endX, m_startX, m_xColumn, startX(), and workspaceName().

Referenced by initBasicLayout().

◆ 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 1167 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 2574 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 1159 of file FitPropertyBrowser.cpp.

References m_costFunction, m_costFunctions, and m_enumManager.

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

◆ count()

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

◆ 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 744 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 = "")
protected

Create CompositeFunction from string.

Parameters
str:: [input] Function string

Definition at line 779 of file FitPropertyBrowser.cpp.

References createCompositeFunction(), and tryCreateFitFunction().

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

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

References m_boolManager, m_browser, m_columnManager, m_doubleManager, m_enumManager, m_filenameManager, m_formulaManager, m_intManager, m_parameterManager, m_stringManager, m_vectorDoubleManager, and m_vectorSizeManager.

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

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

References m_currentHandler.

Referenced by addAutoBackground(), and functionHelp().

◆ currentItemChanged

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

◆ defaultBackgroundType()

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

Get the default background type.

Definition at line 1044 of file FitPropertyBrowser.cpp.

References m_defaultBackground.

◆ defaultFunctionType()

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

Get the default function type.

Definition at line 1024 of file FitPropertyBrowser.cpp.

References m_defaultFunction.

◆ defaultPeakType()

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

Get the default peak type.

Definition at line 1030 of file FitPropertyBrowser.cpp.

References Mantid::API::g_log, m_defaultPeak, m_registeredPeaks, setDefaultPeakType(), and Mantid::Kernel::Logger::warning().

Referenced by findPeaks().

◆ deleteFunction

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

Slot.

Called to remove a function

Definition at line 1015 of file FitPropertyBrowser.cpp.

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

Referenced by popupMenu().

◆ deleteTie

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

◆ disableUndo()

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

disable undo when the function changes

Definition at line 2081 of file FitPropertyBrowser.cpp.

References m_fitActionUndoFit, and m_initialParameters.

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

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

References updateSetupMenus().

Referenced by executeSetupManageMenu().

◆ executeCustomSetupLoad

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

Definition at line 593 of file FitPropertyBrowser.cpp.

References loadFunction().

Referenced by updateSetupMenus().

◆ executeCustomSetupRemove

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

Definition at line 601 of file FitPropertyBrowser.cpp.

References updateSetupMenus().

Referenced by updateSetupMenus().

◆ executeDisplayMenu

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

Definition at line 637 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

◆ executeSetupManageMenu

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

◆ executeSetupMenu

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

Definition at line 645 of file FitPropertyBrowser.cpp.

References clear(), and findPeaks().

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

References findItem().

Referenced by findItem().

◆ findPeaks

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

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

References doFit(), m_intManager, m_maxIterations, and 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 3181 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 1515 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 2479 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 3328 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 245 of file FitPropertyBrowser.h.

◆ getErrColumnName()

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

Get the name of the Error column.

Definition at line 1961 of file FitPropertyBrowser.cpp.

References getWorkspace(), m_columnManager, and m_errColumn.

Referenced by doFit().

◆ getExcludeRange()

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

Get the excluded range for the fit.

Get the excluded range.

Definition at line 1185 of file FitPropertyBrowser.cpp.

References m_excludeRange, and m_stringManager.

Referenced by doFit().

◆ getFitAlgorithmOutputStatus()

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

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

Definition at line 3176 of file FitPropertyBrowser.cpp.

References m_fitAlgOutputStatus.

◆ getFitAlgorithmParameters()

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

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

Definition at line 3171 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 279 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 1634 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 1647 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 1687 of file FitPropertyBrowser.cpp.

References getFittingFunction().

◆ getHandler()

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

◆ getParameterNames()

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

Get function parameter names.

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

Definition at line 3158 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 3144 of file FitPropertyBrowser.cpp.

References theFunction().

◆ getPeakCentreOf()

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

Definition at line 3296 of file FitPropertyBrowser.cpp.

References getPeakHandler().

◆ getPeakFwhmOf()

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

Definition at line 3318 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 3307 of file FitPropertyBrowser.cpp.

References getPeakHandler().

◆ getPeakPrefixes()

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

Definition at line 3338 of file FitPropertyBrowser.cpp.

References getHandler().

◆ getPeakRadius()

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

Get the peak radius for peak functions.

Definition at line 1182 of file FitPropertyBrowser.cpp.

References m_intManager, and m_peakRadius.

Referenced by doFit().

◆ getShouldBeNormalised()

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

Definition at line 449 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 2263 of file FitPropertyBrowser.cpp.

◆ 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 3323 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 283 of file FitPropertyBrowser.h.

◆ getWorkspaceNames()

QStringList MantidQt::MantidWidgets::FitPropertyBrowser::getWorkspaceNames ( )

Returns the list of workspaces that are currently been worked on by the fit property browser.

Returns the list of workspace names the fit property browser is working on.

Definition at line 2801 of file FitPropertyBrowser.cpp.

References m_workspaceNames.

◆ getXColumnName()

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

Get the name of the X column.

Definition at line 1931 of file FitPropertyBrowser.cpp.

References getWorkspace(), m_columnManager, and m_xColumn.

Referenced by doFit().

◆ getXRange()

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

Get the X limits of the workspace.

Definition at line 1903 of file FitPropertyBrowser.cpp.

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

◆ getYColumnName()

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

Get the name of the Y column.

Definition at line 1946 of file FitPropertyBrowser.cpp.

References getWorkspace(), m_columnManager, and m_yColumn.

Referenced by doFit().

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

References functionFactoryUpdateReceived().

◆ hasConstraints()

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

Does a parameter have a tie.

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

Definition at line 2243 of file FitPropertyBrowser.cpp.

Referenced by popupMenu().

◆ height()

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

Height of the current peak.

Definition at line 1496 of file FitPropertyBrowser.cpp.

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

Referenced by addFitResultWorkspacesToTableWidget(), and findPeaks().

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

References setADSObserveEnabled().

◆ ignoreInvalidData()

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

Get the ignore invalid data option.

Definition at line 1153 of file FitPropertyBrowser.cpp.

References m_boolManager, and m_ignoreInvalidData.

Referenced by doFit().

◆ 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(), executeSetupManageMenu(), executeSetupMenu(), fitResultsChanged(), functionChanged(), functionFactoryUpdateReceived(), Mantid::Kernel::SingletonHolder< T >::Instance(), intChanged(), itemDoubleClicked(), m_boolManager, m_browser, m_changeSlotsEnabled, m_columnManager, m_displayActionClearAll, m_displayActionPlotGuess, m_displayActionQuality, m_doubleManager, m_enumManager, m_filenameManager, m_formulaManager, m_groupManager, m_intManager, m_parameterManager, m_setupActionCustomSetup, m_setupActionRemove, m_status, m_stringManager, m_tip, m_updateObserver, m_vectorDoubleManager, m_vectorSizeManager, m_workspaceLabel, m_wsListWidget, multifitFinished(), parameterChanged(), populateFunctionNames(), popupMenu(), processMultiBGResults(), showFitResultStatus(), stringChanged(), updateSetupMenus(), updateStructureTooltips(), vectorDoubleChanged(), vectorSizeChanged(), and workspaceDoubleClicked().

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

◆ 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 239 of file FitPropertyBrowser.h.

◆ isFitEnabled()

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

Returns true if the function is ready for a fit.

Definition at line 2098 of file FitPropertyBrowser.cpp.

References m_fitActionFit.

Referenced by popupMenu().

◆ isHistogramFit()

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

Get "HistogramFit" option.

Definition at line 1170 of file FitPropertyBrowser.cpp.

References m_enumManager, m_evaluationType, and m_evaluationTypes.

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

◆ isParameterExplicitlySetOf()

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

Definition at line 3333 of file FitPropertyBrowser.cpp.

References getPeakHandler().

◆ isPeak()

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

Is the current function a peak?

Definition at line 1868 of file FitPropertyBrowser.cpp.

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

◆ isUndoEnabled()

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

Tells if undo can be done.

Definition at line 2087 of file FitPropertyBrowser.cpp.

References compositeFunction(), and m_initialParameters.

Referenced by popupMenu().

◆ 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 1862 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 2548 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 1179 of file FitPropertyBrowser.cpp.

References m_intManager, and m_maxIterations.

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

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

References addDoubleProperty(), Mantid::Kernel::SingletonHolder< T >::Instance(), m_boolManager, m_doubleManager, m_intManager, m_minimizerProperties, m_settingsGroup, m_stringManager, and minimizer().

Referenced by enumChanged().

◆ modifyFitMenu()

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

Definition at line 3212 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 173 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 1400 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 2579 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 2780 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 2777 of file FitPropertyBrowser.cpp.

References m_boolManager, and m_plotDiff.

Referenced by init(), and 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 2375 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 2370 of file FitPropertyBrowser.cpp.

References plotCurrentGuess().

Referenced by popupMenu().

◆ plotOrRemoveGuessAll

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

Definition at line 2388 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 1796 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 2841 of file FitPropertyBrowser.cpp.

References compositeFunction(), getFunctionAtIndex(), Mantid::Kernel::SingletonHolder< T >::Instance(), 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 207 of file FitPropertyBrowser.h.

◆ registeredFunctions()

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

Return a list of registered functions.

Definition at line 203 of file FitPropertyBrowser.h.

◆ registeredOthers()

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

Return a list of registered other functions.

Definition at line 209 of file FitPropertyBrowser.h.

◆ registeredPeaks()

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

Return a list of registered peaks.

Definition at line 205 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 2357 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 695 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 2386 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 2381 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 3049 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 3248 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 1833 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 2585 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 2509 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 2518 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 235 of file FitPropertyBrowser.h.

◆ sequentialFit

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

Definition at line 2682 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 2662 of file FitPropertyBrowser.cpp.

References Mantid::Kernel::SingletonHolder< T >::Instance(), m_auto_back, m_autoBgAttributes, and m_autoBgName.

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 1553 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 2769 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 1027 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 1885 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 1156 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 1117 of file FitPropertyBrowser.cpp.

References m_output, and m_stringManager.

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

◆ setPeakCentreOf()

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

Definition at line 3290 of file FitPropertyBrowser.cpp.

References getPeakHandler(), and value.

◆ setPeakFwhmOf()

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

Definition at line 3312 of file FitPropertyBrowser.cpp.

References getPeakHandler(), and value.

◆ setPeakHeightOf()

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

Definition at line 3301 of file FitPropertyBrowser.cpp.

References getPeakHandler(), and value.

◆ setPeakToolOn

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

Definition at line 2751 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 1879 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 2456 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 2784 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 2287 of file FitPropertyBrowser.cpp.

References m_tip.

◆ setupMultifit

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

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

References addWorkspaceIndexToBrowser(), Mantid::Kernel::SingletonHolder< T >::Instance(), m_browser, m_columnManager, m_customSettingsGroup, m_errColumn, m_evaluationType, m_settingsGroup, m_storedWorkspaceName, m_workspace, m_workspaceIndex, m_xColumn, m_yColumn, setWorkspaceIndex(), and workspaceName().

Referenced by enumChanged().

◆ 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 1742 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 1694 of file FitPropertyBrowser.cpp.

References m_status.

Referenced by initBasicLayout().

◆ sizeOfFunctionsGroup()

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

Definition at line 3220 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 2471 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 3037 of file FitPropertyBrowser.cpp.

References m_browser, and m_settingsGroup.

◆ toggleWsListVisible

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

Definition at line 3059 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 792 of file FitPropertyBrowser.cpp.

References Mantid::Kernel::SingletonHolder< T >::Instance().

Referenced by createCompositeFunction().

◆ undoFit

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

Slot.

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

Definition at line 2067 of file FitPropertyBrowser.cpp.

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

Referenced by executeFitMenu(), and popupMenu().

◆ updateAttributes()

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

Update the function attributes.

Update the function attributes which have changed.

Definition at line 2037 of file FitPropertyBrowser.cpp.

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

◆ updateBrowserFromFitResults()

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

Set the parameters to the fit outcome.

Definition at line 2055 of file FitPropertyBrowser.cpp.

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

Referenced by finishHandle().

◆ updateDecimals()

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

impose a number of decimal places on all defined Double properties

Definition at line 2759 of file FitPropertyBrowser.cpp.

References m_decimals, and m_doubleManager.

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

◆ updateParameters()

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

Update the function parameters.

Update the function parameter properties.

Definition at line 2032 of file FitPropertyBrowser.cpp.

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

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

◆ 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 563 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 620 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 2011 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 2022 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 2789 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 526 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 Function Documentation

◆ CreateAttributeProperty

friend class CreateAttributeProperty
friend

Definition at line 694 of file FitPropertyBrowser.h.

◆ PropertyHandler

friend class PropertyHandler
friend

Definition at line 693 of file FitPropertyBrowser.h.

◆ SequentialFitDialog

friend class SequentialFitDialog
friend

Definition at line 697 of file FitPropertyBrowser.h.

Referenced by sequentialFit().

◆ SetAttribute

friend class SetAttribute
friend

Definition at line 695 of file FitPropertyBrowser.h.

◆ SetAttributeProperty

friend class SetAttributeProperty
friend

Definition at line 696 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 687 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 689 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 656 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 662 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 659 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 513 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 559 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 537 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 640 of file FitPropertyBrowser.h.

◆ m_decimals

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

Number of decimal places in double properties.

Definition at line 668 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 647 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 643 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 645 of file FitPropertyBrowser.h.

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

◆ m_displayActionClearAll

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

Definition at line 610 of file FitPropertyBrowser.h.

Referenced by initBasicLayout().

◆ m_displayActionPlotGuess

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

Definition at line 608 of file FitPropertyBrowser.h.

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

◆ m_displayActionQuality

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

Definition at line 609 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 517 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 561 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 511 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 530 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 681 of file FitPropertyBrowser.h.

Referenced by finishHandle(), and getFitAlgorithmOutputStatus().

◆ m_fitAlgParameters

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

Definition at line 680 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 606 of file FitPropertyBrowser.h.

Referenced by createFitMenuButton().

◆ m_fitMenu

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

Definition at line 607 of file FitPropertyBrowser.h.

Referenced by createFitMenuButton(), and modifyFitMenu().

◆ m_fitSelector

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

Definition at line 624 of file FitPropertyBrowser.h.

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

◆ m_fitTree

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

Definition at line 626 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 544 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 653 of file FitPropertyBrowser.h.

Referenced by addFitResultWorkspacesToTableWidget(), and toggleWsListVisible().

◆ m_ignoreInvalidData

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

Definition at line 506 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 564 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 671 of file FitPropertyBrowser.h.

Referenced by init(), and sequentialFit().

◆ m_maxIterations

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

Definition at line 508 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 520 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 555 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 691 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 509 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 650 of file FitPropertyBrowser.h.

Referenced by popupMenu(), and setPeakToolOn().

◆ m_plotCompositeMembers

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

Definition at line 512 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 551 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 553 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 614 of file FitPropertyBrowser.h.

Referenced by initBasicLayout(), and updateSetupMenus().

◆ m_setupActionRemove

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

Definition at line 615 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 677 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 621 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 674 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 635 of file FitPropertyBrowser.h.

◆ m_tip

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

To display a tip text.

Definition at line 619 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 600 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 611 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 516 of file FitPropertyBrowser.h.

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


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