Mantid
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
MantidQt::MantidWidgets::IFitScriptGeneratorView Class Referenceabstract

#include <IFitScriptGeneratorView.h>

Inheritance diagram for MantidQt::MantidWidgets::IFitScriptGeneratorView:
MantidQt::API::MantidWidget MantidQt::MantidWidgets::FitScriptGeneratorView MockFitScriptGeneratorView

Public Types

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
}
 

Public Member Functions

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...
 

Additional Inherited Members

- 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 34 of file IFitScriptGeneratorView.h.

Member Enumeration Documentation

◆ Event

Enumerator
ADSDeleteEvent 
ADSClearEvent 
ADSRenameEvent 
RemoveDomainClicked 
AddDomainClicked 
AddDomainAccepted 
StartXChanged 
EndXChanged 
SelectionChanged 
FunctionRemoved 
FunctionAdded 
FunctionReplaced 
ParameterChanged 
AttributeChanged 
ParameterTieChanged 
ParameterConstraintRemoved 
ParameterConstraintChanged 
GlobalParametersChanged 
EditLocalParameterClicked 
EditLocalParameterFinished 
OutputBaseNameChanged 
FittingModeChanged 
GenerateScriptToFileClicked 
GenerateScriptToClipboardClicked 

Definition at line 38 of file IFitScriptGeneratorView.h.

Constructor & Destructor Documentation

◆ IFitScriptGeneratorView()

MantidQt::MantidWidgets::IFitScriptGeneratorView::IFitScriptGeneratorView ( QWidget *  parent = nullptr)
inline

Definition at line 65 of file IFitScriptGeneratorView.h.

◆ ~IFitScriptGeneratorView()

virtual MantidQt::MantidWidgets::IFitScriptGeneratorView::~IFitScriptGeneratorView ( )
virtualdefault

Member Function Documentation

◆ addWorkspaceButton()

virtual QPushButton * MantidQt::MantidWidgets::IFitScriptGeneratorView::addWorkspaceButton ( ) const
pure virtual

◆ addWorkspaceDialog()

virtual AddWorkspaceDialog * MantidQt::MantidWidgets::IFitScriptGeneratorView::addWorkspaceDialog ( ) const
pure virtual

◆ addWorkspaceDomain()

virtual void MantidQt::MantidWidgets::IFitScriptGeneratorView::addWorkspaceDomain ( std::string const &  workspaceName,
WorkspaceIndex  workspaceIndex,
double  startX,
double  endX 
)
pure virtual

◆ allRows()

virtual std::vector< FitDomainIndex > MantidQt::MantidWidgets::IFitScriptGeneratorView::allRows ( ) const
pure virtual

◆ applyFunctionChangesToAll()

virtual bool MantidQt::MantidWidgets::IFitScriptGeneratorView::applyFunctionChangesToAll ( ) const
pure virtual

◆ attributeValue()

virtual Mantid::API::IFunction::Attribute MantidQt::MantidWidgets::IFitScriptGeneratorView::attributeValue ( std::string const &  attribute) const
pure virtual

◆ clearFunction()

virtual void MantidQt::MantidWidgets::IFitScriptGeneratorView::clearFunction ( )
pure virtual

◆ currentRow()

virtual FitDomainIndex MantidQt::MantidWidgets::IFitScriptGeneratorView::currentRow ( ) const
pure virtual

◆ displayWarning()

virtual void MantidQt::MantidWidgets::IFitScriptGeneratorView::displayWarning ( std::string const &  message)
pure virtual

◆ endX()

virtual double MantidQt::MantidWidgets::IFitScriptGeneratorView::endX ( FitDomainIndex  index) const
pure virtual

◆ filepath()

virtual std::string MantidQt::MantidWidgets::IFitScriptGeneratorView::filepath ( ) const
pure virtual

◆ fitOptions()

virtual std::tuple< std::string, std::string, std::string, std::string, std::string, bool > MantidQt::MantidWidgets::IFitScriptGeneratorView::fitOptions ( ) const
pure virtual

◆ generateScriptToClipboardButton()

virtual QPushButton * MantidQt::MantidWidgets::IFitScriptGeneratorView::generateScriptToClipboardButton ( ) const
pure virtual

◆ generateScriptToFileButton()

virtual QPushButton * MantidQt::MantidWidgets::IFitScriptGeneratorView::generateScriptToFileButton ( ) const
pure virtual

◆ getDialogWorkspaceIndices()

virtual std::vector< WorkspaceIndex > MantidQt::MantidWidgets::IFitScriptGeneratorView::getDialogWorkspaceIndices ( ) const
pure virtual

◆ getDialogWorkspaces()

virtual std::vector< Mantid::API::MatrixWorkspace_const_sptr > MantidQt::MantidWidgets::IFitScriptGeneratorView::getDialogWorkspaces ( )
pure virtual

◆ getEditLocalParameterResults()

virtual std::tuple< std::string, std::vector< double >, std::vector< bool >, std::vector< std::string >, std::vector< std::string > > MantidQt::MantidWidgets::IFitScriptGeneratorView::getEditLocalParameterResults ( ) const
pure virtual

◆ hasLoadedData()

virtual bool MantidQt::MantidWidgets::IFitScriptGeneratorView::hasLoadedData ( ) const
pure virtual

◆ openAddWorkspaceDialog()

virtual void MantidQt::MantidWidgets::IFitScriptGeneratorView::openAddWorkspaceDialog ( )
pure virtual

◆ openEditLocalParameterDialog()

virtual void MantidQt::MantidWidgets::IFitScriptGeneratorView::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 
)
pure virtual

◆ parameterValue()

virtual double MantidQt::MantidWidgets::IFitScriptGeneratorView::parameterValue ( std::string const &  parameter) const
pure virtual

◆ removeButton()

virtual QPushButton * MantidQt::MantidWidgets::IFitScriptGeneratorView::removeButton ( ) const
pure virtual

◆ removeDomain()

virtual void MantidQt::MantidWidgets::IFitScriptGeneratorView::removeDomain ( FitDomainIndex  domainIndex)
pure virtual

◆ renameWorkspace()

virtual void MantidQt::MantidWidgets::IFitScriptGeneratorView::renameWorkspace ( std::string const &  workspaceName,
std::string const &  newName 
)
pure virtual

◆ resetSelection()

virtual void MantidQt::MantidWidgets::IFitScriptGeneratorView::resetSelection ( )
pure virtual

◆ saveTextToClipboard()

virtual void MantidQt::MantidWidgets::IFitScriptGeneratorView::saveTextToClipboard ( std::string const &  text) const
pure virtual

◆ selectedRows()

virtual std::vector< FitDomainIndex > MantidQt::MantidWidgets::IFitScriptGeneratorView::selectedRows ( ) const
pure virtual

◆ setFunction()

virtual void MantidQt::MantidWidgets::IFitScriptGeneratorView::setFunction ( Mantid::API::IFunction_sptr const &  function) const
pure virtual

◆ setGlobalParameters()

virtual void MantidQt::MantidWidgets::IFitScriptGeneratorView::setGlobalParameters ( std::vector< GlobalParameter > const &  globalParameter)
pure virtual

◆ setGlobalTies()

virtual void MantidQt::MantidWidgets::IFitScriptGeneratorView::setGlobalTies ( std::vector< GlobalTie > const &  globalTies)
pure virtual

◆ setSimultaneousMode()

virtual void MantidQt::MantidWidgets::IFitScriptGeneratorView::setSimultaneousMode ( bool  simultaneousMode)
pure virtual

◆ setSuccessText()

virtual void MantidQt::MantidWidgets::IFitScriptGeneratorView::setSuccessText ( std::string const &  text)
pure virtual

◆ startX()

virtual double MantidQt::MantidWidgets::IFitScriptGeneratorView::startX ( FitDomainIndex  index) const
pure virtual

◆ subscribePresenter()

virtual void MantidQt::MantidWidgets::IFitScriptGeneratorView::subscribePresenter ( IFitScriptGeneratorPresenter presenter)
pure virtual

◆ tableWidget()

virtual FitScriptGeneratorDataTable * MantidQt::MantidWidgets::IFitScriptGeneratorView::tableWidget ( ) const
pure virtual

Testing accessors.

Implemented in MantidQt::MantidWidgets::FitScriptGeneratorView.

◆ workspaceIndex()

virtual WorkspaceIndex MantidQt::MantidWidgets::IFitScriptGeneratorView::workspaceIndex ( FitDomainIndex  index) const
pure virtual

◆ workspaceName()

virtual std::string MantidQt::MantidWidgets::IFitScriptGeneratorView::workspaceName ( FitDomainIndex  index) const
pure virtual

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