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