DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
include
dbe
tableselection.hpp
Go to the documentation of this file.
1
// DUNE DAQ modification notice:
2
// This file has been modified from the original ATLAS dbe source for the DUNE DAQ project.
3
// Fork baseline commit: dbe-02-12-17 (2022-05-12).
4
// Renamed since fork: yes (from dbe/tableselection.h to include/dbe/tableselection.hpp).
5
6
#ifndef TABLESELECTIONMODEL_H
7
#define TABLESELECTIONMODEL_H
8
10
#include "
dbe/table.hpp
"
11
12
#include <QSortFilterProxyModel>
14
#include "
dbe/TableNode.hpp
"
15
#include "
dbe/model_common_interface.hpp
"
16
17
namespace
dbe
{
18
namespace
models
{
19
20
class
tableselection
21
:
public
QSortFilterProxyModel
22
,
public
model_common_impl
<tableselection>
23
,
public
model_common_async_operations
<tableselection>
24
{
25
Q_OBJECT
26
27
MODEL_COMMON_IMPL_REQ_DEF
(
tableselection
)
28
29
public
:
30
typedef
TableNode
type_datum
;
31
32
enum
FilterType
33
{
34
RegExpFilter
= 1,
35
ExactFilter
= 2
36
};
37
38
tableselection
(QObject* parent = 0);
39
40
void
SetFilterType
(
FilterType
Filter);
41
42
TableNode
*
getnode
(
const
QModelIndex& index)
const
;
43
44
bool
setData
(
const
QModelIndex& index,
const
QVariant& value,
int
role);
45
46
void
ResetModel
();
47
48
protected
:
49
bool
filterAcceptsRow
(
int
sourceRow,
const
QModelIndex& sourceParent)
const
;
50
51
bool
lessThan
(
const
QModelIndex& left,
const
QModelIndex& right)
const
;
52
53
private
:
54
QVariant
LastSavedValue
;
55
FilterType
Type
;
56
57
private
slots:
58
void
slot_create_object
(QString
const
& src,
dref
const
& obj);
59
void
slot_remove_object
(QString
const
& src,
dref
const
& obj);
60
void
slot_update_object
(QString
const
& src,
dref
const
& obj);
61
void
slot_rename_object
(QString
const
& src,
dref
const
& obj);
62
};
63
64
}
65
// namespace models
66
}
// namespace dbe
67
#endif
// TABLESELECTIONMODEL_H
TableNode.hpp
dbe::TableNode
Definition
TableNode.hpp:13
dbe::model_common_async_operations< tableselection >::model_common_async_operations
MODEL_COMMON_TYPES_TOPLEVEL_DEFINITIONS model_common_async_operations()
Definition
model_common_operations.hpp:125
dbe::model_common_impl
Definition
model_common_interface.hpp:204
dbe::models::tableselection::Type
FilterType Type
Definition
tableselection.hpp:55
dbe::models::tableselection::ResetModel
void ResetModel()
Definition
tableselection.cpp:68
dbe::models::tableselection::FilterType
FilterType
Definition
tableselection.hpp:33
dbe::models::tableselection::RegExpFilter
@ RegExpFilter
Definition
tableselection.hpp:34
dbe::models::tableselection::ExactFilter
@ ExactFilter
Definition
tableselection.hpp:35
dbe::models::tableselection::type_datum
TableNode type_datum
Definition
tableselection.hpp:30
dbe::models::tableselection::getnode
TableNode * getnode(const QModelIndex &index) const
Definition
tableselection.cpp:24
dbe::models::tableselection::SetFilterType
void SetFilterType(FilterType Filter)
Definition
tableselection.cpp:18
dbe::models::tableselection::setData
bool setData(const QModelIndex &index, const QVariant &value, int role)
Definition
tableselection.cpp:41
dbe::models::tableselection::lessThan
bool lessThan(const QModelIndex &left, const QModelIndex &right) const
Definition
tableselection.cpp:100
dbe::models::tableselection::tableselection
tableselection(QObject *parent=0)
Definition
tableselection.cpp:10
dbe::models::tableselection::slot_update_object
void slot_update_object(QString const &src, dref const &obj)
dbe::models::tableselection::slot_create_object
void slot_create_object(QString const &src, dref const &obj)
dbe::models::tableselection::slot_rename_object
void slot_rename_object(QString const &src, dref const &obj)
dbe::models::tableselection::LastSavedValue
QVariant LastSavedValue
Definition
tableselection.hpp:54
dbe::models::tableselection::slot_remove_object
void slot_remove_object(QString const &src, dref const &obj)
dbe::models::tableselection::filterAcceptsRow
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const
Definition
tableselection.cpp:75
model_common_interface.hpp
MODEL_COMMON_IMPL_REQ_DEF
#define MODEL_COMMON_IMPL_REQ_DEF(classname)
Definition
model_common_interface_macros.hpp:30
dbe::models
Definition
datahandler.hpp:20
dbe
Include QT Headers.
Definition
BatchChangeWidget.hpp:16
dbe::dref
config_object_description dref
Definition
confobject_desc.hpp:90
table.hpp
Generated on
for DUNE-DAQ by
1.18.0