Skip to content

Commit

Permalink
Refs #6473. FitPropertyBrowser: make method public.
Browse files Browse the repository at this point in the history
This is quite a useful method for leaving decision on which function
exactly to use for fit to the property browser.
  • Loading branch information
arturbekasov committed Dec 10, 2013
1 parent 86efd29 commit d6b9b76
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -96,8 +96,13 @@ class EXPORT_OPT_MANTIDQT_MANTIDWIDGETS FitPropertyBrowser: public QDockWidget,

/// Create a new function
PropertyHandler* addFunction(const std::string& fnName);

/// Get Composite Function
boost::shared_ptr<Mantid::API::CompositeFunction> compositeFunction()const{return m_compositeFunction;}

/// Return the fitting function
Mantid::API::IFunction_sptr getFittingFunction() const;

/// Get the default function type
std::string defaultFunctionType()const;
/// Set the default function type
Expand Down Expand Up @@ -209,6 +214,7 @@ class EXPORT_OPT_MANTIDQT_MANTIDWIDGETS FitPropertyBrowser: public QDockWidget,
/// Create a MatrixWorkspace from a TableWorkspace
Mantid::API::Workspace_sptr createMatrixFromTableWorkspace()const;


public slots:
virtual void fit(){ doFit(500); }
virtual void sequentialFit();
Expand Down Expand Up @@ -337,8 +343,6 @@ private slots:
void minimizerChanged();
/// Do the fitting
void doFit(int maxIterations);
/// Return the fitting function
Mantid::API::IFunction_sptr getFittingFunction() const;

/// Property managers:
QtGroupPropertyManager *m_groupManager;
Expand Down

0 comments on commit d6b9b76

Please sign in to comment.