Mantid
Loading...
Searching...
No Matches
RenameParDialog.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#include "DllOption.h"
10#include "ui_RenameParDialog.h"
11
12#include <string>
13#include <vector>
14
15namespace MantidQt {
16namespace MantidWidgets {
21 Q_OBJECT
22
23public:
26 RenameParDialog(std::vector<std::string> old_params, const std::vector<std::string> &new_params,
27 QWidget *parent = nullptr);
28 std::vector<std::string> setOutput() const;
29protected slots:
30 void uniqueIndexedNames(bool /*ok*/);
31 void doNotRename(bool /*ok*/);
32
33protected:
34 bool isUnique(const QString &name) const;
35 QString makeUniqueIndexedName(const QString &name);
37 Ui::RenameParDialog m_uiForm;
38 const std::vector<std::string> m_old_params;
39 const std::vector<std::string> m_new_params;
40};
41} // namespace MantidWidgets
42} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
A dialog for renaming parameters for a user function.
const std::vector< std::string > m_old_params
Ui::RenameParDialog m_uiForm
User interface elements.
const std::vector< std::string > m_new_params
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...