Mantid
Loading...
Searching...
No Matches
RowLocationAdapter.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 +
11#pragma once
15#include <QStandardItemModel>
16
17namespace MantidQt {
18namespace MantidWidgets {
19namespace Batch {
20
22public:
23 RowLocationAdapter(QStandardItemModel const &model);
24
25 RowLocation atIndex(QModelIndexForMainModel const &index) const;
26 boost::optional<QModelIndexForMainModel> indexIfExistsAt(RowLocation const &location, int column = 0) const;
27 QModelIndexForMainModel indexAt(RowLocation const &location, int column = 0) const;
28
29private:
30 QModelIndex walkFromRootToParentIndexOf(RowLocation const &location) const;
31 QStandardItemModel const &m_model;
32};
33} // namespace Batch
34} // namespace MantidWidgets
35} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
std::map< DeltaEMode::Type, std::string > index
Definition: DeltaEMode.cpp:19
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...