Mantid
Loading...
Searching...
No Matches
qt
widgets
common
inc
MantidQtWidgets
Common
Batch
FilteredTreeModel.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/RowLocationAdapter.h
"
14
#include "
MantidQtWidgets/Common/Batch/RowPredicate.h
"
15
#include "
MantidQtWidgets/Common/DllOption.h
"
16
#include <QSortFilterProxyModel>
17
#include <memory>
18
namespace
MantidQt
{
19
namespace
MantidWidgets {
20
namespace
Batch {
21
22
class
EXPORT_OPT_MANTIDQT_COMMON
FilteredTreeModel
:
public
QSortFilterProxyModel {
23
public
:
24
FilteredTreeModel
(
RowLocationAdapter
rowLocation, QObject *parent =
nullptr
);
25
void
setPredicate(std::unique_ptr<RowPredicate> predicate);
26
void
resetPredicate();
27
bool
isReset()
const
;
28
RowLocation
rowLocationAt(QModelIndex
const
&
index
)
const
;
29
30
protected
:
31
bool
filterAcceptsRow(
int
row,
const
QModelIndex &parent)
const override
;
32
33
private
:
34
std::unique_ptr<RowPredicate>
m_predicate
;
35
RowLocationAdapter
m_rowLocation
;
36
};
37
}
// namespace Batch
38
}
// namespace MantidWidgets
39
}
// 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
RowLocationAdapter.h
RowLocation.h
RowPredicate.h
MantidQt::MantidWidgets::Batch::FilteredTreeModel
Definition
FilteredTreeModel.h:22
MantidQt::MantidWidgets::Batch::FilteredTreeModel::m_predicate
std::unique_ptr< RowPredicate > m_predicate
Definition
FilteredTreeModel.h:34
MantidQt::MantidWidgets::Batch::FilteredTreeModel::m_rowLocation
RowLocationAdapter m_rowLocation
Definition
FilteredTreeModel.h:35
MantidQt::MantidWidgets::Batch::RowLocationAdapter
Definition
RowLocationAdapter.h:21
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