DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
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"
16
17namespace dbe
18{
19namespace models
20{
21
23 public QSortFilterProxyModel,
24 public model_common_impl<tableselection>,
25 public model_common_async_operations<tableselection>
26{
27 Q_OBJECT
28
30
31public :
32
34
36 {
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
50protected:
51 bool filterAcceptsRow ( int sourceRow, const QModelIndex & sourceParent ) const;
52
53 bool lessThan ( const QModelIndex & left, const QModelIndex & right ) const;
54
55private:
58
59private 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
MODEL_COMMON_TYPES_TOPLEVEL_DEFINITIONS model_common_async_operations()
TableNode * getnode(const QModelIndex &index) const
void SetFilterType(FilterType Filter)
bool setData(const QModelIndex &index, const QVariant &value, int role)
bool lessThan(const QModelIndex &left, const QModelIndex &right) const
tableselection(QObject *parent=0)
void slot_update_object(QString const &src, dref const &obj)
void slot_create_object(QString const &src, dref const &obj)
void slot_rename_object(QString const &src, dref const &obj)
void slot_remove_object(QString const &src, dref const &obj)
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const
#define MODEL_COMMON_IMPL_REQ_DEF(classname)
Include QT Headers.
config_object_description dref