Mantid
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MockFitScriptGeneratorView Class Reference

#include <FitScriptGeneratorMockObjects.h>

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

Public Member Functions

 MOCK_CONST_METHOD0 (addWorkspaceButton, QPushButton *())
 
 MOCK_CONST_METHOD0 (addWorkspaceDialog, AddWorkspaceDialog *())
 
 MOCK_CONST_METHOD0 (allRows, std::vector< FitDomainIndex >())
 
 MOCK_CONST_METHOD0 (applyFunctionChangesToAll, bool())
 
 MOCK_CONST_METHOD0 (currentRow, FitDomainIndex())
 
 MOCK_CONST_METHOD0 (filepath, std::string())
 
 MOCK_CONST_METHOD0 (fitOptions, std::tuple< std::string, std::string, std::string, std::string, std::string, bool >())
 
 MOCK_CONST_METHOD0 (generateScriptToClipboardButton, QPushButton *())
 
 MOCK_CONST_METHOD0 (generateScriptToFileButton, QPushButton *())
 
 MOCK_CONST_METHOD0 (getDialogWorkspaceIndices, std::vector< WorkspaceIndex >())
 
 MOCK_CONST_METHOD0 (getEditLocalParameterResults, std::tuple< std::string, std::vector< double >, std::vector< bool >, std::vector< std::string >, std::vector< std::string > >())
 
 MOCK_CONST_METHOD0 (hasLoadedData, bool())
 
 MOCK_CONST_METHOD0 (outputBaseName, std::string())
 
 MOCK_CONST_METHOD0 (removeButton, QPushButton *())
 
 MOCK_CONST_METHOD0 (selectedRows, std::vector< FitDomainIndex >())
 
 MOCK_CONST_METHOD0 (tableWidget, FitScriptGeneratorDataTable *())
 
 MOCK_CONST_METHOD1 (attributeValue, Mantid::API::IFunction::Attribute(std::string const &attribute))
 
 MOCK_CONST_METHOD1 (endX, double(FitDomainIndex index))
 
 MOCK_CONST_METHOD1 (parameterValue, double(std::string const &parameter))
 
 MOCK_CONST_METHOD1 (saveTextToClipboard, void(std::string const &text))
 
 MOCK_CONST_METHOD1 (setFunction, void(Mantid::API::IFunction_sptr const &function))
 
 MOCK_CONST_METHOD1 (startX, double(FitDomainIndex index))
 
 MOCK_CONST_METHOD1 (workspaceIndex, WorkspaceIndex(FitDomainIndex index))
 
 MOCK_CONST_METHOD1 (workspaceName, std::string(FitDomainIndex index))
 
 MOCK_METHOD0 (clearFunction, void())
 
 MOCK_METHOD0 (getDialogWorkspaces, std::vector< Mantid::API::MatrixWorkspace_const_sptr >())
 
 MOCK_METHOD0 (openAddWorkspaceDialog, void())
 
 MOCK_METHOD0 (resetSelection, void())
 
 MOCK_METHOD1 (displayWarning, void(std::string const &message))
 
 MOCK_METHOD1 (removeDomain, void(MantidQt::MantidWidgets::FitDomainIndex domainIndex))
 
 MOCK_METHOD1 (setGlobalParameters, void(std::vector< GlobalParameter > const &globalParameter))
 
 MOCK_METHOD1 (setGlobalTies, void(std::vector< GlobalTie > const &globalTies))
 
 MOCK_METHOD1 (setSimultaneousMode, void(bool simultaneousMode))
 
 MOCK_METHOD1 (setSuccessText, void(std::string const &text))
 
 MOCK_METHOD1 (subscribePresenter, void(IFitScriptGeneratorPresenter *presenter))
 
 MOCK_METHOD2 (renameWorkspace, void(std::string const &workspaceName, std::string const &newName))
 
 MOCK_METHOD4 (addWorkspaceDomain, void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, double startX, double endX))
 
 MOCK_METHOD7 (openEditLocalParameterDialog, void(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))
 
- 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...
 

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 61 of file FitScriptGeneratorMockObjects.h.

Member Function Documentation

◆ MOCK_CONST_METHOD0() [1/16]

MockFitScriptGeneratorView::MOCK_CONST_METHOD0 ( addWorkspaceButton  ,
QPushButton *  () 
)

◆ MOCK_CONST_METHOD0() [2/16]

MockFitScriptGeneratorView::MOCK_CONST_METHOD0 ( addWorkspaceDialog  ,
AddWorkspaceDialog () 
)

◆ MOCK_CONST_METHOD0() [3/16]

MockFitScriptGeneratorView::MOCK_CONST_METHOD0 ( allRows  ,
std::vector< FitDomainIndex () 
)

◆ MOCK_CONST_METHOD0() [4/16]

MockFitScriptGeneratorView::MOCK_CONST_METHOD0 ( applyFunctionChangesToAll  ,
bool()   
)

◆ MOCK_CONST_METHOD0() [5/16]

MockFitScriptGeneratorView::MOCK_CONST_METHOD0 ( currentRow  ,
FitDomainIndex()   
)

◆ MOCK_CONST_METHOD0() [6/16]

MockFitScriptGeneratorView::MOCK_CONST_METHOD0 ( filepath  ,
std::string()   
)

◆ MOCK_CONST_METHOD0() [7/16]

MockFitScriptGeneratorView::MOCK_CONST_METHOD0 ( fitOptions  ,
std::tuple< std::string, std::string, std::string, std::string, std::string, bool >  () 
)

◆ MOCK_CONST_METHOD0() [8/16]

MockFitScriptGeneratorView::MOCK_CONST_METHOD0 ( generateScriptToClipboardButton  ,
QPushButton *  () 
)

◆ MOCK_CONST_METHOD0() [9/16]

MockFitScriptGeneratorView::MOCK_CONST_METHOD0 ( generateScriptToFileButton  ,
QPushButton *  () 
)

◆ MOCK_CONST_METHOD0() [10/16]

MockFitScriptGeneratorView::MOCK_CONST_METHOD0 ( getDialogWorkspaceIndices  ,
std::vector< WorkspaceIndex () 
)

◆ MOCK_CONST_METHOD0() [11/16]

MockFitScriptGeneratorView::MOCK_CONST_METHOD0 ( getEditLocalParameterResults  ,
std::tuple< std::string, std::vector< double >, std::vector< bool >, std::vector< std::string >, std::vector< std::string > >  () 
)

◆ MOCK_CONST_METHOD0() [12/16]

MockFitScriptGeneratorView::MOCK_CONST_METHOD0 ( hasLoadedData  ,
bool()   
)

◆ MOCK_CONST_METHOD0() [13/16]

MockFitScriptGeneratorView::MOCK_CONST_METHOD0 ( outputBaseName  ,
std::string()   
)

◆ MOCK_CONST_METHOD0() [14/16]

MockFitScriptGeneratorView::MOCK_CONST_METHOD0 ( removeButton  ,
QPushButton *  () 
)

◆ MOCK_CONST_METHOD0() [15/16]

MockFitScriptGeneratorView::MOCK_CONST_METHOD0 ( selectedRows  ,
std::vector< FitDomainIndex () 
)

◆ MOCK_CONST_METHOD0() [16/16]

MockFitScriptGeneratorView::MOCK_CONST_METHOD0 ( tableWidget  ,
FitScriptGeneratorDataTable () 
)

◆ MOCK_CONST_METHOD1() [1/8]

MockFitScriptGeneratorView::MOCK_CONST_METHOD1 ( attributeValue  ,
Mantid::API::IFunction::Attribute(std::string const &attribute)   
)

◆ MOCK_CONST_METHOD1() [2/8]

MockFitScriptGeneratorView::MOCK_CONST_METHOD1 ( endX  ,
double(FitDomainIndex index  
)

◆ MOCK_CONST_METHOD1() [3/8]

MockFitScriptGeneratorView::MOCK_CONST_METHOD1 ( parameterValue  ,
double(std::string const &parameter)   
)

◆ MOCK_CONST_METHOD1() [4/8]

MockFitScriptGeneratorView::MOCK_CONST_METHOD1 ( saveTextToClipboard  ,
void(std::string const &text)   
)

◆ MOCK_CONST_METHOD1() [5/8]

MockFitScriptGeneratorView::MOCK_CONST_METHOD1 ( setFunction  ,
void(Mantid::API::IFunction_sptr const &function)   
)

◆ MOCK_CONST_METHOD1() [6/8]

MockFitScriptGeneratorView::MOCK_CONST_METHOD1 ( startX  ,
double(FitDomainIndex index  
)

◆ MOCK_CONST_METHOD1() [7/8]

MockFitScriptGeneratorView::MOCK_CONST_METHOD1 ( workspaceIndex  ,
WorkspaceIndex(FitDomainIndex index  
)

◆ MOCK_CONST_METHOD1() [8/8]

MockFitScriptGeneratorView::MOCK_CONST_METHOD1 ( workspaceName  ,
std::string(FitDomainIndex index  
)

◆ MOCK_METHOD0() [1/4]

MockFitScriptGeneratorView::MOCK_METHOD0 ( clearFunction  ,
void()   
)

◆ MOCK_METHOD0() [2/4]

MockFitScriptGeneratorView::MOCK_METHOD0 ( getDialogWorkspaces  ,
std::vector< Mantid::API::MatrixWorkspace_const_sptr () 
)

◆ MOCK_METHOD0() [3/4]

MockFitScriptGeneratorView::MOCK_METHOD0 ( openAddWorkspaceDialog  ,
void()   
)

◆ MOCK_METHOD0() [4/4]

MockFitScriptGeneratorView::MOCK_METHOD0 ( resetSelection  ,
void()   
)

◆ MOCK_METHOD1() [1/7]

MockFitScriptGeneratorView::MOCK_METHOD1 ( displayWarning  ,
void(std::string const &message)   
)

◆ MOCK_METHOD1() [2/7]

MockFitScriptGeneratorView::MOCK_METHOD1 ( removeDomain  ,
void(MantidQt::MantidWidgets::FitDomainIndex domainIndex)   
)

◆ MOCK_METHOD1() [3/7]

MockFitScriptGeneratorView::MOCK_METHOD1 ( setGlobalParameters  ,
void(std::vector< GlobalParameter > const &globalParameter)   
)

◆ MOCK_METHOD1() [4/7]

MockFitScriptGeneratorView::MOCK_METHOD1 ( setGlobalTies  ,
void(std::vector< GlobalTie > const &globalTies)   
)

◆ MOCK_METHOD1() [5/7]

MockFitScriptGeneratorView::MOCK_METHOD1 ( setSimultaneousMode  ,
void(bool simultaneousMode)   
)

◆ MOCK_METHOD1() [6/7]

MockFitScriptGeneratorView::MOCK_METHOD1 ( setSuccessText  ,
void(std::string const &text)   
)

◆ MOCK_METHOD1() [7/7]

MockFitScriptGeneratorView::MOCK_METHOD1 ( subscribePresenter  ,
void(IFitScriptGeneratorPresenter *presenter)   
)

◆ MOCK_METHOD2()

MockFitScriptGeneratorView::MOCK_METHOD2 ( renameWorkspace  ,
void(std::string const &workspaceName, std::string const &newName)   
)

◆ MOCK_METHOD4()

MockFitScriptGeneratorView::MOCK_METHOD4 ( addWorkspaceDomain  ,
void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, double startX, double endX  
)

◆ MOCK_METHOD7()

MockFitScriptGeneratorView::MOCK_METHOD7 ( openEditLocalParameterDialog  ,
void(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)   
)

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