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

#include <FitScriptGeneratorView.h>

Inheritance diagram for MantidQt::MantidWidgets::FitScriptGeneratorView:
MantidQt::MantidWidgets::IFitScriptGeneratorView Mantid::API::AnalysisDataServiceObserver MantidQt::API::MantidWidget

Public Slots

void closeEvent (QCloseEvent *event) override
 

Public Member Functions

QPushButton * addWorkspaceButton () const override
 
AddWorkspaceDialogaddWorkspaceDialog () const override
 
void addWorkspaceDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex, double startX, double endX) override
 
std::vector< FitDomainIndexallRows () const override
 
bool applyFunctionChangesToAll () const override
 
Mantid::API::IFunction::Attribute attributeValue (std::string const &attribute) const override
 
void clearFunction () override
 
void clearHandle () override
 If the ADS is cleared, then this function will trigger, works by overloading this class and overriding this function. More...
 
FitDomainIndex currentRow () const override
 
void deleteHandle (std::string const &wsName, Workspace_sptr const &ws) override
 If a workspace is deleted from the ADS, then this function will trigger, works by overloading this class and overriding this function. More...
 
void displayWarning (std::string const &message) override
 
double endX (FitDomainIndex index) const override
 
std::string filepath () const override
 
std::tuple< std::string, std::string, std::string, std::string, std::string, bool > fitOptions () const override
 
 FitScriptGeneratorView (QWidget *parent=nullptr, FittingMode fittingMode=FittingMode::SEQUENTIAL, QMap< QString, QString > const &fitOptions=QMap< QString, QString >())
 
QPushButton * generateScriptToClipboardButton () const override
 
QPushButton * generateScriptToFileButton () const override
 
std::vector< WorkspaceIndexgetDialogWorkspaceIndices () const override
 
std::vector< Mantid::API::MatrixWorkspace_const_sptrgetDialogWorkspaces () override
 
std::tuple< std::string, std::vector< double >, std::vector< bool >, std::vector< std::string >, std::vector< std::string > > getEditLocalParameterResults () const override
 
bool hasLoadedData () const override
 
void openAddWorkspaceDialog () override
 
void openEditLocalParameterDialog (std::string const &parameter, std::vector< std::string > const &workspaceNames, std::vector< std::string > const &domainNames, std::vector< double > const &values, std::vector< bool > const &fixes, std::vector< std::string > const &ties, std::vector< std::string > const &constraints) override
 
double parameterValue (std::string const &parameter) const override
 
QPushButton * removeButton () const override
 
void removeDomain (FitDomainIndex domainIndex) override
 
void renameHandle (std::string const &wsName, std::string const &newName) override
 If a workspace is renamed in the ADS, then this function will trigger, works by overloading this class and overriding this function. More...
 
void renameWorkspace (std::string const &workspaceName, std::string const &newName) override
 
void resetSelection () override
 
void saveTextToClipboard (std::string const &text) const override
 
std::vector< FitDomainIndexselectedRows () const override
 
void setFunction (Mantid::API::IFunction_sptr const &function) const override
 
void setGlobalParameters (std::vector< GlobalParameter > const &globalParameter) override
 
void setGlobalTies (std::vector< GlobalTie > const &globalTies) override
 
void setSimultaneousMode (bool simultaneousMode) override
 
void setSuccessText (std::string const &text) override
 
double startX (FitDomainIndex index) const override
 
void subscribePresenter (IFitScriptGeneratorPresenter *presenter) override
 
FitScriptGeneratorDataTabletableWidget () const override
 Testing accessors. More...
 
WorkspaceIndex workspaceIndex (FitDomainIndex index) const override
 
std::string workspaceName (FitDomainIndex index) const override
 
 ~FitScriptGeneratorView () override
 
- Public Member Functions inherited from MantidQt::MantidWidgets::IFitScriptGeneratorView
virtual QPushButton * addWorkspaceButton () const =0
 
virtual AddWorkspaceDialogaddWorkspaceDialog () const =0
 
virtual void addWorkspaceDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex, double startX, double endX)=0
 
virtual std::vector< FitDomainIndexallRows () const =0
 
virtual bool applyFunctionChangesToAll () const =0
 
virtual Mantid::API::IFunction::Attribute attributeValue (std::string const &attribute) const =0
 
virtual void clearFunction ()=0
 
virtual FitDomainIndex currentRow () const =0
 
virtual void displayWarning (std::string const &message)=0
 
virtual double endX (FitDomainIndex index) const =0
 
virtual std::string filepath () const =0
 
virtual std::tuple< std::string, std::string, std::string, std::string, std::string, bool > fitOptions () const =0
 
virtual QPushButton * generateScriptToClipboardButton () const =0
 
virtual QPushButton * generateScriptToFileButton () const =0
 
virtual std::vector< WorkspaceIndexgetDialogWorkspaceIndices () const =0
 
virtual std::vector< Mantid::API::MatrixWorkspace_const_sptrgetDialogWorkspaces ()=0
 
virtual std::tuple< std::string, std::vector< double >, std::vector< bool >, std::vector< std::string >, std::vector< std::string > > getEditLocalParameterResults () const =0
 
virtual bool hasLoadedData () const =0
 
 IFitScriptGeneratorView (QWidget *parent=nullptr)
 
virtual void openAddWorkspaceDialog ()=0
 
virtual void openEditLocalParameterDialog (std::string const &parameter, std::vector< std::string > const &workspaceNames, std::vector< std::string > const &domainNames, std::vector< double > const &values, std::vector< bool > const &fixes, std::vector< std::string > const &ties, std::vector< std::string > const &constraints)=0
 
virtual double parameterValue (std::string const &parameter) const =0
 
virtual QPushButton * removeButton () const =0
 
virtual void removeDomain (FitDomainIndex domainIndex)=0
 
virtual void renameWorkspace (std::string const &workspaceName, std::string const &newName)=0
 
virtual void resetSelection ()=0
 
virtual void saveTextToClipboard (std::string const &text) const =0
 
virtual std::vector< FitDomainIndexselectedRows () const =0
 
virtual void setFunction (Mantid::API::IFunction_sptr const &function) const =0
 
virtual void setGlobalParameters (std::vector< GlobalParameter > const &globalParameter)=0
 
virtual void setGlobalTies (std::vector< GlobalTie > const &globalTies)=0
 
virtual void setSimultaneousMode (bool simultaneousMode)=0
 
virtual void setSuccessText (std::string const &text)=0
 
virtual double startX (FitDomainIndex index) const =0
 
virtual void subscribePresenter (IFitScriptGeneratorPresenter *presenter)=0
 
virtual FitScriptGeneratorDataTabletableWidget () const =0
 Testing accessors. More...
 
virtual WorkspaceIndex workspaceIndex (FitDomainIndex index) const =0
 
virtual std::string workspaceName (FitDomainIndex index) const =0
 
virtual ~IFitScriptGeneratorView ()=default
 
- Public Member Functions inherited from MantidQt::API::MantidWidget
virtual QVariant getUserInput () const
 Returns a QVariant containing what the widget classes as user input so that input can be returned through a common interface. More...
 
virtual void setUserInput (const QVariant &value)
 Sets a value on a mantid widget through a common interface. More...
 
- Public Member Functions inherited from Mantid::API::AnalysisDataServiceObserver
virtual void addHandle (const std::string &wsName, const Workspace_sptr &ws)
 If a workspace is added to the ADS, then this function will trigger, works by overloading this class and overriding this function. More...
 
 AnalysisDataServiceObserver ()
 
virtual void anyChangeHandle ()
 If anyChange to the ADS occurs then this function will trigger, works by overloading this class and overriding this function. More...
 
virtual void clearHandle ()
 If the ADS is cleared, then this function will trigger, works by overloading this class and overriding this function. More...
 
virtual void deleteHandle (const std::string &wsName, const Workspace_sptr &ws)
 If a workspace is deleted from the ADS, then this function will trigger, works by overloading this class and overriding this function. More...
 
virtual void groupHandle (const std::string &wsName, const Workspace_sptr &ws)
 If a group is created/added to the ADS, then this function will trigger, works by overloading this class and overriding this function. More...
 
virtual void groupUpdateHandle (const std::string &wsName, const Workspace_sptr &ws)
 If a group has a workspace added/removed in the ADS, then this function will trigger, works by overloading this class and overriding this function. More...
 
void observeAdd (bool turnOn=true)
 Function will add/remove the observer to the ADS for when a workspace is added to it. More...
 
void observeAll (bool turnOn=true)
 Function will turn on/off all observers for the ADS. More...
 
void observeClear (bool turnOn=true)
 Function will add/remove the observer to the ADS for when the ADS is cleared. More...
 
void observeDelete (bool turnOn=true)
 Function will add/remove the observer to the ADS for when a workspace is deleted. More...
 
void observeGroup (bool turnOn=true)
 Function will add/remove the observer to the ADS for when a group is added/created in the ADS. More...
 
void observeGroupUpdate (bool turnOn=true)
 Function will add/remove the observer to the ADS for if a workspace is added to a group or removed. More...
 
void observeRename (bool turnOn=true)
 Function will add/remove the observer to the ADS for when a workspace is renamed. More...
 
void observeReplace (bool turnOn=true)
 Function will add/remove the observer to the ADS for when a workspace is replaced. More...
 
void observeUnGroup (bool turnOn=true)
 Function will add/remove the observer to the ADS for when a group is removed/delete from the ADS. More...
 
virtual void renameHandle (const std::string &wsName, const std::string &newName)
 If a workspace is renamed in the ADS, then this function will trigger, works by overloading this class and overriding this function. More...
 
virtual void replaceHandle (const std::string &wsName, const Workspace_sptr &ws)
 If a workspace is replaced in the ADS, then this function will trigger, works by overloading this class and overriding this function. More...
 
virtual void unGroupHandle (const std::string &wsName, const Workspace_sptr &ws)
 If a group is removed from the ADS, then this function will trigger, works by overloading this class and overriding this function. More...
 
virtual ~AnalysisDataServiceObserver ()
 

Private Slots

void addWorkspaceDialogAccepted (bool close)
 
void closeAddWorkspaceDialog ()
 
void notifyADSClearEvent ()
 
void notifyADSDeleteEvent (std::string const &workspaceName)
 
void notifyADSRenameEvent (std::string const &workspaceName, std::string const &newName)
 
void onAddDomainClicked ()
 
void onAttributeChanged (QString const &attribute)
 
void onCellChanged (int row, int column)
 
void onCopyFunctionToClipboard ()
 
void onEditLocalParameterClicked (QString const &parameter)
 
void onEditLocalParameterFinished (int result)
 
void onFittingModeChanged (FittingMode fittingMode)
 
void onFunctionAdded (QString const &function)
 
void onFunctionHelpRequested ()
 
void onFunctionRemoved (QString const &function)
 
void onFunctionReplaced (QString const &function)
 
void onGenerateScriptToClipboardClicked ()
 
void onGenerateScriptToFileClicked ()
 
void onGlobalParametersChanged (QStringList const &globalParameters)
 
void onHelpClicked ()
 
void onItemSelected ()
 
void onOutputBaseNameChanged (std::string const &outputBaseName)
 
void onParameterChanged (QString const &parameter)
 
void onParameterConstraintChanged (QString const &functionIndex, QString const &constraint)
 
void onParameterConstraintRemoved (QString const &parameter)
 
void onParameterTieChanged (QString const &parameter, QString const &tie)
 
void onRemoveDomainClicked ()
 

Private Member Functions

void connectUiSignals ()
 
void setFitBrowserOptions (QMap< QString, QString > const &fitOptions)
 
void setFittingMode (FittingMode fittingMode)
 

Private Attributes

std::unique_ptr< AddWorkspaceDialogm_addWorkspaceDialog
 
std::unique_ptr< FitScriptGeneratorDataTablem_dataTable
 
EditLocalParameterDialogm_editLocalParameterDialog
 
std::unique_ptr< FitScriptOptionsBrowserm_fitOptionsBrowser
 
std::unique_ptr< FunctionTreeViewm_functionTreeView
 
IFitScriptGeneratorPresenterm_presenter
 
Ui::FitScriptGenerator m_ui
 

Additional Inherited Members

- Public Types inherited from MantidQt::MantidWidgets::IFitScriptGeneratorView
enum class  Event {
  ADSDeleteEvent , ADSClearEvent , ADSRenameEvent , RemoveDomainClicked ,
  AddDomainClicked , AddDomainAccepted , StartXChanged , EndXChanged ,
  SelectionChanged , FunctionRemoved , FunctionAdded , FunctionReplaced ,
  ParameterChanged , AttributeChanged , ParameterTieChanged , ParameterConstraintRemoved ,
  ParameterConstraintChanged , GlobalParametersChanged , EditLocalParameterClicked , EditLocalParameterFinished ,
  OutputBaseNameChanged , FittingModeChanged , GenerateScriptToFileClicked , GenerateScriptToClipboardClicked
}
 
- Signals inherited from MantidQt::API::MantidWidget
void runAsPythonScript (const QString &code, bool)
 
- Protected Member Functions inherited from MantidQt::API::MantidWidget
 MantidWidget (QWidget *parent=nullptr)
 Default constructor. More...
 
QString runPythonCode (const QString &code, bool no_output=false)
 Run python code that is passed to it and, optionally, return anything it wrote to standard output as a string. More...
 

Detailed Description

Definition at line 42 of file FitScriptGeneratorView.h.

Constructor & Destructor Documentation

◆ FitScriptGeneratorView()

MantidQt::MantidWidgets::FitScriptGeneratorView::FitScriptGeneratorView ( QWidget *  parent = nullptr,
FittingMode  fittingMode = FittingMode::SEQUENTIAL,
QMap< QString, QString > const &  fitOptions = QMap<QString, QString>() 
)

◆ ~FitScriptGeneratorView()

MantidQt::MantidWidgets::FitScriptGeneratorView::~FitScriptGeneratorView ( )
override

Member Function Documentation

◆ addWorkspaceButton()

QPushButton * MantidQt::MantidWidgets::FitScriptGeneratorView::addWorkspaceButton ( ) const
inlineoverridevirtual

◆ addWorkspaceDialog()

AddWorkspaceDialog * MantidQt::MantidWidgets::FitScriptGeneratorView::addWorkspaceDialog ( ) const
inlineoverridevirtual

◆ addWorkspaceDialogAccepted

void MantidQt::MantidWidgets::FitScriptGeneratorView::addWorkspaceDialogAccepted ( bool  close)
privateslot

◆ addWorkspaceDomain()

void MantidQt::MantidWidgets::FitScriptGeneratorView::addWorkspaceDomain ( std::string const &  workspaceName,
WorkspaceIndex  workspaceIndex,
double  startX,
double  endX 
)
overridevirtual

◆ allRows()

std::vector< FitDomainIndex > MantidQt::MantidWidgets::FitScriptGeneratorView::allRows ( ) const
overridevirtual

◆ applyFunctionChangesToAll()

bool MantidQt::MantidWidgets::FitScriptGeneratorView::applyFunctionChangesToAll ( ) const
overridevirtual

Implements MantidQt::MantidWidgets::IFitScriptGeneratorView.

Definition at line 440 of file FitScriptGeneratorView.cpp.

References m_ui.

◆ attributeValue()

IFunction::Attribute MantidQt::MantidWidgets::FitScriptGeneratorView::attributeValue ( std::string const &  attribute) const
overridevirtual

◆ clearFunction()

void MantidQt::MantidWidgets::FitScriptGeneratorView::clearFunction ( )
overridevirtual

◆ clearHandle()

void MantidQt::MantidWidgets::FitScriptGeneratorView::clearHandle ( )
overridevirtual

If the ADS is cleared, then this function will trigger, works by overloading this class and overriding this function.

Reimplemented from Mantid::API::AnalysisDataServiceObserver.

Definition at line 197 of file FitScriptGeneratorView.cpp.

References notifyADSClearEvent().

◆ closeAddWorkspaceDialog

void MantidQt::MantidWidgets::FitScriptGeneratorView::closeAddWorkspaceDialog ( )
privateslot

◆ closeEvent

void MantidQt::MantidWidgets::FitScriptGeneratorView::closeEvent ( QCloseEvent *  event)
overrideslot

Definition at line 484 of file FitScriptGeneratorView.cpp.

References closeAddWorkspaceDialog(), and m_addWorkspaceDialog.

◆ connectUiSignals()

void MantidQt::MantidWidgets::FitScriptGeneratorView::connectUiSignals ( )
private

Disconnected because it causes a crash when selecting a table row while editing a parameters value. This is because selecting a different row will change the current function in the FunctionTreeView. The closeEditor slot is then called after this, but the memory location of the old function is now a nullptr so there is a read access violation.

Definition at line 128 of file FitScriptGeneratorView.cpp.

References m_dataTable, m_fitOptionsBrowser, m_functionTreeView, m_ui, onAddDomainClicked(), onAttributeChanged(), onCellChanged(), onCopyFunctionToClipboard(), onEditLocalParameterClicked(), onFittingModeChanged(), onFunctionAdded(), onFunctionHelpRequested(), onFunctionRemoved(), onFunctionReplaced(), onGenerateScriptToClipboardClicked(), onGenerateScriptToFileClicked(), onGlobalParametersChanged(), onHelpClicked(), onItemSelected(), onOutputBaseNameChanged(), onParameterChanged(), onParameterConstraintChanged(), onParameterConstraintRemoved(), onParameterTieChanged(), and onRemoveDomainClicked().

Referenced by FitScriptGeneratorView().

◆ currentRow()

FitDomainIndex MantidQt::MantidWidgets::FitScriptGeneratorView::currentRow ( ) const
overridevirtual

◆ deleteHandle()

void MantidQt::MantidWidgets::FitScriptGeneratorView::deleteHandle ( std::string const &  wsName,
Workspace_sptr const &  ws 
)
overridevirtual

If a workspace is deleted from the ADS, then this function will trigger, works by overloading this class and overriding this function.

Parameters
wsNamestd::string; the name of the workspace
wsWorkspace_sptr; the Workspace that is deleted

Reimplemented from Mantid::API::AnalysisDataServiceObserver.

Definition at line 189 of file FitScriptGeneratorView.cpp.

References notifyADSDeleteEvent().

◆ displayWarning()

void MantidQt::MantidWidgets::FitScriptGeneratorView::displayWarning ( std::string const &  message)
overridevirtual

◆ endX()

double MantidQt::MantidWidgets::FitScriptGeneratorView::endX ( FitDomainIndex  index) const
overridevirtual

Implements MantidQt::MantidWidgets::IFitScriptGeneratorView.

Definition at line 330 of file FitScriptGeneratorView.cpp.

References index, and m_dataTable.

Referenced by addWorkspaceDomain().

◆ filepath()

std::string MantidQt::MantidWidgets::FitScriptGeneratorView::filepath ( ) const
overridevirtual

◆ fitOptions()

std::tuple< std::string, std::string, std::string, std::string, std::string, bool > MantidQt::MantidWidgets::FitScriptGeneratorView::fitOptions ( ) const
overridevirtual

◆ generateScriptToClipboardButton()

QPushButton * MantidQt::MantidWidgets::FitScriptGeneratorView::generateScriptToClipboardButton ( ) const
inlineoverridevirtual

◆ generateScriptToFileButton()

QPushButton * MantidQt::MantidWidgets::FitScriptGeneratorView::generateScriptToFileButton ( ) const
inlineoverridevirtual

◆ getDialogWorkspaceIndices()

std::vector< WorkspaceIndex > MantidQt::MantidWidgets::FitScriptGeneratorView::getDialogWorkspaceIndices ( ) const
overridevirtual

◆ getDialogWorkspaces()

std::vector< MatrixWorkspace_const_sptr > MantidQt::MantidWidgets::FitScriptGeneratorView::getDialogWorkspaces ( )
overridevirtual

◆ getEditLocalParameterResults()

std::tuple< std::string, std::vector< double >, std::vector< bool >, std::vector< std::string >, std::vector< std::string > > MantidQt::MantidWidgets::FitScriptGeneratorView::getEditLocalParameterResults ( ) const
overridevirtual

◆ hasLoadedData()

bool MantidQt::MantidWidgets::FitScriptGeneratorView::hasLoadedData ( ) const
overridevirtual

◆ notifyADSClearEvent

void MantidQt::MantidWidgets::FitScriptGeneratorView::notifyADSClearEvent ( )
privateslot

◆ notifyADSDeleteEvent

void MantidQt::MantidWidgets::FitScriptGeneratorView::notifyADSDeleteEvent ( std::string const &  workspaceName)
privateslot

◆ notifyADSRenameEvent

void MantidQt::MantidWidgets::FitScriptGeneratorView::notifyADSRenameEvent ( std::string const &  workspaceName,
std::string const &  newName 
)
privateslot

◆ onAddDomainClicked

void MantidQt::MantidWidgets::FitScriptGeneratorView::onAddDomainClicked ( )
privateslot

◆ onAttributeChanged

void MantidQt::MantidWidgets::FitScriptGeneratorView::onAttributeChanged ( QString const &  attribute)
privateslot

◆ onCellChanged

void MantidQt::MantidWidgets::FitScriptGeneratorView::onCellChanged ( int  row,
int  column 
)
privateslot

◆ onCopyFunctionToClipboard

void MantidQt::MantidWidgets::FitScriptGeneratorView::onCopyFunctionToClipboard ( )
privateslot

Definition at line 279 of file FitScriptGeneratorView.cpp.

References m_functionTreeView, and saveTextToClipboard().

Referenced by connectUiSignals().

◆ onEditLocalParameterClicked

void MantidQt::MantidWidgets::FitScriptGeneratorView::onEditLocalParameterClicked ( QString const &  parameter)
privateslot

◆ onEditLocalParameterFinished

void MantidQt::MantidWidgets::FitScriptGeneratorView::onEditLocalParameterFinished ( int  result)
privateslot

◆ onFittingModeChanged

void MantidQt::MantidWidgets::FitScriptGeneratorView::onFittingModeChanged ( FittingMode  fittingMode)
privateslot

◆ onFunctionAdded

void MantidQt::MantidWidgets::FitScriptGeneratorView::onFunctionAdded ( QString const &  function)
privateslot

◆ onFunctionHelpRequested

void MantidQt::MantidWidgets::FitScriptGeneratorView::onFunctionHelpRequested ( )
privateslot

Definition at line 284 of file FitScriptGeneratorView.cpp.

References m_functionTreeView.

Referenced by connectUiSignals().

◆ onFunctionRemoved

void MantidQt::MantidWidgets::FitScriptGeneratorView::onFunctionRemoved ( QString const &  function)
privateslot

◆ onFunctionReplaced

void MantidQt::MantidWidgets::FitScriptGeneratorView::onFunctionReplaced ( QString const &  function)
privateslot

◆ onGenerateScriptToClipboardClicked

void MantidQt::MantidWidgets::FitScriptGeneratorView::onGenerateScriptToClipboardClicked ( )
privateslot

◆ onGenerateScriptToFileClicked

void MantidQt::MantidWidgets::FitScriptGeneratorView::onGenerateScriptToFileClicked ( )
privateslot

◆ onGlobalParametersChanged

void MantidQt::MantidWidgets::FitScriptGeneratorView::onGlobalParametersChanged ( QStringList const &  globalParameters)
privateslot

◆ onHelpClicked

void MantidQt::MantidWidgets::FitScriptGeneratorView::onHelpClicked ( )
privateslot

◆ onItemSelected

void MantidQt::MantidWidgets::FitScriptGeneratorView::onItemSelected ( )
privateslot

◆ onOutputBaseNameChanged

void MantidQt::MantidWidgets::FitScriptGeneratorView::onOutputBaseNameChanged ( std::string const &  outputBaseName)
privateslot

◆ onParameterChanged

void MantidQt::MantidWidgets::FitScriptGeneratorView::onParameterChanged ( QString const &  parameter)
privateslot

◆ onParameterConstraintChanged

void MantidQt::MantidWidgets::FitScriptGeneratorView::onParameterConstraintChanged ( QString const &  functionIndex,
QString const &  constraint 
)
privateslot

◆ onParameterConstraintRemoved

void MantidQt::MantidWidgets::FitScriptGeneratorView::onParameterConstraintRemoved ( QString const &  parameter)
privateslot

◆ onParameterTieChanged

void MantidQt::MantidWidgets::FitScriptGeneratorView::onParameterTieChanged ( QString const &  parameter,
QString const &  tie 
)
privateslot

◆ onRemoveDomainClicked

void MantidQt::MantidWidgets::FitScriptGeneratorView::onRemoveDomainClicked ( )
privateslot

◆ openAddWorkspaceDialog()

void MantidQt::MantidWidgets::FitScriptGeneratorView::openAddWorkspaceDialog ( )
overridevirtual

◆ openEditLocalParameterDialog()

void MantidQt::MantidWidgets::FitScriptGeneratorView::openEditLocalParameterDialog ( std::string const &  parameter,
std::vector< std::string > const &  workspaceNames,
std::vector< std::string > const &  domainNames,
std::vector< double > const &  values,
std::vector< bool > const &  fixes,
std::vector< std::string > const &  ties,
std::vector< std::string > const &  constraints 
)
overridevirtual

◆ parameterValue()

double MantidQt::MantidWidgets::FitScriptGeneratorView::parameterValue ( std::string const &  parameter) const
overridevirtual

◆ removeButton()

QPushButton * MantidQt::MantidWidgets::FitScriptGeneratorView::removeButton ( ) const
inlineoverridevirtual

◆ removeDomain()

void MantidQt::MantidWidgets::FitScriptGeneratorView::removeDomain ( FitDomainIndex  domainIndex)
overridevirtual

◆ renameHandle()

void MantidQt::MantidWidgets::FitScriptGeneratorView::renameHandle ( std::string const &  wsName,
std::string const &  newName 
)
overridevirtual

If a workspace is renamed in the ADS, then this function will trigger, works by overloading this class and overriding this function.

Parameters
wsNamestd::string; the name of the workspace
newNamestd::string; the new name of the workspace

Reimplemented from Mantid::API::AnalysisDataServiceObserver.

Definition at line 205 of file FitScriptGeneratorView.cpp.

References notifyADSRenameEvent().

◆ renameWorkspace()

void MantidQt::MantidWidgets::FitScriptGeneratorView::renameWorkspace ( std::string const &  workspaceName,
std::string const &  newName 
)
overridevirtual

◆ resetSelection()

void MantidQt::MantidWidgets::FitScriptGeneratorView::resetSelection ( )
overridevirtual

◆ saveTextToClipboard()

void MantidQt::MantidWidgets::FitScriptGeneratorView::saveTextToClipboard ( std::string const &  text) const
overridevirtual

◆ selectedRows()

std::vector< FitDomainIndex > MantidQt::MantidWidgets::FitScriptGeneratorView::selectedRows ( ) const
overridevirtual

◆ setFitBrowserOptions()

void MantidQt::MantidWidgets::FitScriptGeneratorView::setFitBrowserOptions ( QMap< QString, QString > const &  fitOptions)
private

Definition at line 175 of file FitScriptGeneratorView.cpp.

References fitOptions(), and m_fitOptionsBrowser.

Referenced by FitScriptGeneratorView().

◆ setFittingMode()

void MantidQt::MantidWidgets::FitScriptGeneratorView::setFittingMode ( FittingMode  fittingMode)
private

Definition at line 180 of file FitScriptGeneratorView.cpp.

References m_fitOptionsBrowser.

Referenced by FitScriptGeneratorView().

◆ setFunction()

void MantidQt::MantidWidgets::FitScriptGeneratorView::setFunction ( Mantid::API::IFunction_sptr const &  function) const
overridevirtual

◆ setGlobalParameters()

void MantidQt::MantidWidgets::FitScriptGeneratorView::setGlobalParameters ( std::vector< GlobalParameter > const &  globalParameter)
overridevirtual

◆ setGlobalTies()

void MantidQt::MantidWidgets::FitScriptGeneratorView::setGlobalTies ( std::vector< GlobalTie > const &  globalTies)
overridevirtual

◆ setSimultaneousMode()

void MantidQt::MantidWidgets::FitScriptGeneratorView::setSimultaneousMode ( bool  simultaneousMode)
overridevirtual

◆ setSuccessText()

void MantidQt::MantidWidgets::FitScriptGeneratorView::setSuccessText ( std::string const &  text)
overridevirtual

Implements MantidQt::MantidWidgets::IFitScriptGeneratorView.

Definition at line 471 of file FitScriptGeneratorView.cpp.

References m_ui.

◆ startX()

double MantidQt::MantidWidgets::FitScriptGeneratorView::startX ( FitDomainIndex  index) const
overridevirtual

Implements MantidQt::MantidWidgets::IFitScriptGeneratorView.

Definition at line 328 of file FitScriptGeneratorView.cpp.

References index, and m_dataTable.

Referenced by addWorkspaceDomain().

◆ subscribePresenter()

void MantidQt::MantidWidgets::FitScriptGeneratorView::subscribePresenter ( IFitScriptGeneratorPresenter presenter)
overridevirtual

◆ tableWidget()

FitScriptGeneratorDataTable * MantidQt::MantidWidgets::FitScriptGeneratorView::tableWidget ( ) const
inlineoverridevirtual

Testing accessors.

Implements MantidQt::MantidWidgets::IFitScriptGeneratorView.

Definition at line 111 of file FitScriptGeneratorView.h.

◆ workspaceIndex()

WorkspaceIndex MantidQt::MantidWidgets::FitScriptGeneratorView::workspaceIndex ( FitDomainIndex  index) const
overridevirtual

Implements MantidQt::MantidWidgets::IFitScriptGeneratorView.

Definition at line 324 of file FitScriptGeneratorView.cpp.

References index, and m_dataTable.

Referenced by addWorkspaceDomain().

◆ workspaceName()

std::string MantidQt::MantidWidgets::FitScriptGeneratorView::workspaceName ( FitDomainIndex  index) const
overridevirtual

Member Data Documentation

◆ m_addWorkspaceDialog

std::unique_ptr<AddWorkspaceDialog> MantidQt::MantidWidgets::FitScriptGeneratorView::m_addWorkspaceDialog
private

◆ m_dataTable

std::unique_ptr<FitScriptGeneratorDataTable> MantidQt::MantidWidgets::FitScriptGeneratorView::m_dataTable
private

◆ m_editLocalParameterDialog

EditLocalParameterDialog* MantidQt::MantidWidgets::FitScriptGeneratorView::m_editLocalParameterDialog
private

◆ m_fitOptionsBrowser

std::unique_ptr<FitScriptOptionsBrowser> MantidQt::MantidWidgets::FitScriptGeneratorView::m_fitOptionsBrowser
private

◆ m_functionTreeView

std::unique_ptr<FunctionTreeView> MantidQt::MantidWidgets::FitScriptGeneratorView::m_functionTreeView
private

◆ m_presenter

IFitScriptGeneratorPresenter* MantidQt::MantidWidgets::FitScriptGeneratorView::m_presenter
private

◆ m_ui

Ui::FitScriptGenerator MantidQt::MantidWidgets::FitScriptGeneratorView::m_ui
private

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