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
{
19
namespace
models
20
{
21
22
class
tableselection
:
23
public
QSortFilterProxyModel,
24
public
model_common_impl
<tableselection>,
25
public
model_common_async_operations
<tableselection>
26
{
27
Q_OBJECT
28
29
MODEL_COMMON_IMPL_REQ_DEF
(
tableselection
)
30
31
public :
32
33
typedef
TableNode
type_datum
;
34
35
enum
FilterType
36
{
37
RegExpFilter
= 1,
ExactFilter
= 2
38
};
39
40
tableselection
( QObject * parent = 0 );
41
42
void
SetFilterType
(
FilterType
Filter );
43
44
TableNode
*
getnode
(
const
QModelIndex & index )
const
;
45
46
bool
setData
(
const
QModelIndex & index,
const
QVariant & value,
int
role );
47
48
void
ResetModel
();
49
50
protected
:
51
bool
filterAcceptsRow
(
int
sourceRow,
const
QModelIndex & sourceParent )
const
;
52
53
bool
lessThan
(
const
QModelIndex & left,
const
QModelIndex & right )
const
;
54
55
private
:
56
QVariant
LastSavedValue
;
57
FilterType
Type
;
58
59
private
slots:
60
void
slot_create_object
( QString
const
& src,
dref
const
& obj );
61
void
slot_remove_object
( QString
const
& src,
dref
const
& obj );
62
void
slot_update_object
( QString
const
& src,
dref
const
& obj );
63
void
slot_rename_object
( QString
const
& src,
dref
const
& obj );
64
};
65
66
}
67
// namespace models
68
}
// namespace dbe
69
#endif
// TABLESELECTIONMODEL_H
TableNode.hpp
dbe::TableNode
Definition
TableNode.hpp:14
dbe::model_common_async_operations< tableselection >::model_common_async_operations
MODEL_COMMON_TYPES_TOPLEVEL_DEFINITIONS model_common_async_operations()
Definition
model_common_operations.hpp:124
dbe::model_common_impl
Definition
model_common_interface.hpp:209
dbe::models::tableselection::Type
FilterType Type
Definition
tableselection.hpp:57
dbe::models::tableselection::ResetModel
void ResetModel()
Definition
tableselection.cpp:79
dbe::models::tableselection::FilterType
FilterType
Definition
tableselection.hpp:36
dbe::models::tableselection::RegExpFilter
@ RegExpFilter
Definition
tableselection.hpp:37
dbe::models::tableselection::ExactFilter
@ ExactFilter
Definition
tableselection.hpp:37
dbe::models::tableselection::type_datum
TableNode type_datum
Definition
tableselection.hpp:33
dbe::models::tableselection::getnode
TableNode * getnode(const QModelIndex &index) const
Definition
tableselection.cpp:23
dbe::models::tableselection::SetFilterType
void SetFilterType(FilterType Filter)
Definition
tableselection.cpp:17
dbe::models::tableselection::setData
bool setData(const QModelIndex &index, const QVariant &value, int role)
Definition
tableselection.cpp:45
dbe::models::tableselection::lessThan
bool lessThan(const QModelIndex &left, const QModelIndex &right) const
Definition
tableselection.cpp:115
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:56
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:85
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:22
dbe
Include QT Headers.
Definition
BatchChangeWidget.hpp:18
dbe::dref
config_object_description dref
Definition
confobject_desc.hpp:109
table.hpp
Generated on
for DUNE-DAQ by
1.17.0