10#include "ui_FitScriptGenerator.h"
34namespace MantidWidgets {
36class FitScriptGeneratorDataTable;
37class EditLocalParameterDialog;
38class IFitScriptGeneratorPresenter;
39struct GlobalParameter;
48 QMap<QString, QString>
const &fitOptions = QMap<QString, QString>());
53 void deleteHandle(std::string
const &wsName, [[maybe_unused]]
Workspace_sptr const &ws)
override;
54 void clearHandle()
override;
55 void renameHandle(std::string
const &wsName, std::string
const &newName)
override;
62 [[nodiscard]] std::vector<FitDomainIndex> allRows()
const override;
63 [[nodiscard]] std::vector<FitDomainIndex> selectedRows()
const override;
66 [[nodiscard]]
bool hasLoadedData()
const override;
68 [[nodiscard]]
double parameterValue(std::string
const ¶meter)
const override;
71 void renameWorkspace(std::string
const &workspaceName, std::string
const &newName)
override;
74 void addWorkspaceDomain(std::string
const &workspaceName,
WorkspaceIndex workspaceIndex,
double startX,
75 double endX)
override;
77 void openAddWorkspaceDialog()
override;
78 [[nodiscard]] std::vector<Mantid::API::MatrixWorkspace_const_sptr> getDialogWorkspaces()
override;
79 [[nodiscard]] std::vector<WorkspaceIndex> getDialogWorkspaceIndices()
const override;
81 void openEditLocalParameterDialog(std::string
const ¶meter, std::vector<std::string>
const &workspaceNames,
82 std::vector<std::string>
const &domainNames, std::vector<double>
const &values,
83 std::vector<bool>
const &fixes, std::vector<std::string>
const &ties,
84 std::vector<std::string>
const &constraints)
override;
85 std::tuple<std::string, std::vector<double>, std::vector<bool>, std::vector<std::string>, std::vector<std::string>>
86 getEditLocalParameterResults()
const override;
88 [[nodiscard]] std::tuple<std::string, std::string, std::string, std::string, std::string, bool>
89 fitOptions()
const override;
90 [[nodiscard]] std::string filepath()
const override;
92 void resetSelection()
override;
94 bool applyFunctionChangesToAll()
const override;
96 void clearFunction()
override;
99 void setSimultaneousMode(
bool simultaneousMode)
override;
101 void setGlobalTies(std::vector<GlobalTie>
const &globalTies)
override;
102 void setGlobalParameters(std::vector<GlobalParameter>
const &globalParameter)
override;
104 void displayWarning(std::string
const &message)
override;
106 void setSuccessText(std::string
const &text)
override;
107 void saveTextToClipboard(std::string
const &text)
const override;
112 QPushButton *
removeButton()
const override {
return m_ui.pbRemoveDomain; }
119 void closeEvent(QCloseEvent *event)
override;
122 void notifyADSDeleteEvent(std::string
const &workspaceName);
123 void notifyADSClearEvent();
124 void notifyADSRenameEvent(std::string
const &workspaceName, std::string
const &newName);
126 void closeAddWorkspaceDialog();
127 void addWorkspaceDialogAccepted(
bool close);
129 void onRemoveDomainClicked();
130 void onAddDomainClicked();
131 void onCellChanged(
int row,
int column);
132 void onItemSelected();
133 void onFunctionRemoved(QString
const &function);
134 void onFunctionAdded(QString
const &function);
135 void onFunctionReplaced(QString
const &function);
136 void onParameterChanged(QString
const ¶meter);
137 void onAttributeChanged(QString
const &attribute);
138 void onParameterTieChanged(QString
const ¶meter, QString
const &tie);
139 void onParameterConstraintRemoved(QString
const ¶meter);
140 void onParameterConstraintChanged(QString
const &functionIndex, QString
const &constraint);
141 void onGlobalParametersChanged(QStringList
const &globalParameters);
142 void onCopyFunctionToClipboard();
143 void onFunctionHelpRequested();
144 void onOutputBaseNameChanged(std::string
const &outputBaseName);
145 void onFittingModeChanged(
FittingMode fittingMode);
146 void onEditLocalParameterClicked(QString
const ¶meter);
147 void onEditLocalParameterFinished(
int result);
148 void onGenerateScriptToFileClicked();
149 void onGenerateScriptToClipboardClicked();
150 void onHelpClicked();
153 void connectUiSignals();
155 void setFitBrowserOptions(QMap<QString, QString>
const &fitOptions);
#define EXPORT_OPT_MANTIDQT_COMMON
std::map< DeltaEMode::Type, std::string > index
Attribute is a non-fitting parameter.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
std::shared_ptr< IFunction > IFunction_sptr
shared pointer to the function base class
void renameWorkspace(const IAlgorithm_sptr &renamer, const Workspace_sptr &workspace, const std::string &newName)