Mantid
Loading...
Searching...
No Matches
qt
widgets
common
inc
MantidQtWidgets
Common
Batch
BuildSubtreeItems.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/AssertOrThrow.h
"
13
#include "
MantidQtWidgets/Common/Batch/QtStandardItemTreeAdapter.h
"
14
#include "
MantidQtWidgets/Common/Batch/RowLocationAdapter.h
"
15
#include "
MantidQtWidgets/Common/Batch/Subtree.h
"
16
#include "
MantidQtWidgets/Common/DllOption.h
"
17
#include <QStandardItem>
18
19
namespace
MantidQt
{
20
namespace
MantidWidgets {
21
namespace
Batch {
22
23
class
EXPORT_OPT_MANTIDQT_COMMON
BuildSubtreeItems
{
24
public
:
25
using
SubtreeConstIterator
=
typename
Subtree::const_iterator;
26
BuildSubtreeItems
(
QtStandardItemTreeModelAdapter
&adaptedModel,
RowLocationAdapter
const
&rowLocationAdapter);
27
QModelIndexForMainModel
modelIndexAt(
RowLocation
const
&parent)
const
;
28
29
void
operator()(
RowLocation
const
&parentOfSubtreeRoot,
int
index
,
Subtree
const
&subtree);
30
31
SubtreeConstIterator
buildRecursively(
int
index
,
RowLocation
const
&parent,
SubtreeConstIterator
current,
32
SubtreeConstIterator
end);
33
34
private
:
35
QtStandardItemTreeModelAdapter
&
m_adaptedMainModel
;
36
RowLocationAdapter
m_rowLocations
;
37
};
38
39
}
// namespace Batch
40
}
// namespace MantidWidgets
41
}
// namespace MantidQt
AssertOrThrow.h
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
QtStandardItemTreeAdapter.h
RowLocationAdapter.h
Subtree.h
MantidQt::MantidWidgets::Batch::BuildSubtreeItems
Definition:
BuildSubtreeItems.h:23
MantidQt::MantidWidgets::Batch::BuildSubtreeItems::m_adaptedMainModel
QtStandardItemTreeModelAdapter & m_adaptedMainModel
Definition:
BuildSubtreeItems.h:35
MantidQt::MantidWidgets::Batch::BuildSubtreeItems::SubtreeConstIterator
typename Subtree::const_iterator SubtreeConstIterator
Definition:
BuildSubtreeItems.h:25
MantidQt::MantidWidgets::Batch::BuildSubtreeItems::m_rowLocations
RowLocationAdapter m_rowLocations
Definition:
BuildSubtreeItems.h:36
MantidQt::MantidWidgets::Batch::QModelIndexForMainModel
Definition:
StrictQModelIndices.h:72
MantidQt::MantidWidgets::Batch::QtStandardItemTreeModelAdapter
Definition:
QtStandardItemTreeAdapter.h:23
MantidQt::MantidWidgets::Batch::RowLocationAdapter
Definition:
RowLocationAdapter.h:21
MantidQt::MantidWidgets::Batch::RowLocation
Definition:
RowLocation.h:22
MantidQt::MantidWidgets::Batch::Subtree
std::vector< Row > Subtree
Definition:
Subtree.h:18
MantidQt
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
Definition:
AddWorkspaceDialog.h:20
Generated on Tue Jan 3 2023 11:58:01 for Mantid by
1.9.5