DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
include
dbe
subtreeproxy.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/subtreeproxy.h to include/dbe/subtreeproxy.hpp).
5
6
#ifndef SUBTREEPROXYMODEL_H
7
#define SUBTREEPROXYMODEL_H
8
10
#include <QUuid>
11
#include <QSortFilterProxyModel>
12
14
#include "
dbe/TreeModelInterface.hpp
"
15
#include "
dbe/model_common_interface.hpp
"
16
17
#include <vector>
18
#include "
dbe/datahandler.hpp
"
19
20
namespace
dbe
21
{
22
23
namespace
models
24
{
25
26
class
subtree_proxy
:
27
public
QSortFilterProxyModel,
28
public
TreeModelInterface
,
29
public
model_common_impl
<subtree_proxy>,
30
public
model_common_async_operations
<subtree_proxy>
31
{
32
Q_OBJECT
33
34
MODEL_COMMON_IMPL_REQ_DEF
(
subtree_proxy
)
35
36
public :
37
38
explicit
subtree_proxy
(
const
QString & Name,
const
QStringList & Default,
39
QObject * parent =
nullptr
);
40
~subtree_proxy
();
41
42
void
ResetModel
();
43
44
void
check_view_type
();
45
46
void
LoadClasses
();
47
48
treenode
*
getnode
(
const
QModelIndex & index )
const
;
49
50
protected
:
51
52
bool
filterAcceptsRow
(
int
source_row,
const
QModelIndex & source_parent )
const
;
53
54
bool
lessThan
(
55
const
QModelIndex & left,
const
QModelIndex & right )
const
;
56
57
private
:
58
bool
ApplyDefaultFilter
(
int
source_row,
const
QModelIndex & source_parent )
const
;
59
60
bool
ApplyUserFilter
(
61
int
source_row,
const
QModelIndex & source_parent )
const
;
62
63
QString
this_gui_windowname
;
64
QStringList
this_default_filter
;
65
Window
this_window_config
;
66
67
bool
this_apply_default_filter
;
68
69
private
slots:
70
void
slot_create_object
( QString
const
& src,
dref
const
& obj );
71
void
slot_remove_object
( QString
const
& src,
dref
const
& obj );
72
void
slot_update_object
( QString
const
& src,
dref
const
& obj );
73
void
slot_rename_object
( QString
const
& src,
dref
const
& obj );
74
75
};
76
}
77
// namespace models
78
}
// namespace dbe
79
#endif
// SUBTREEPROXYMODEL_H
TreeModelInterface.hpp
dbe::TreeModelInterface
Definition
TreeModelInterface.hpp:24
dbe::model_common_async_operations< subtree_proxy >::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::subtree_proxy::getnode
treenode * getnode(const QModelIndex &index) const
Definition
subtreeproxy.cpp:134
dbe::models::subtree_proxy::this_apply_default_filter
bool this_apply_default_filter
Definition
subtreeproxy.hpp:67
dbe::models::subtree_proxy::slot_create_object
void slot_create_object(QString const &src, dref const &obj)
dbe::models::subtree_proxy::lessThan
bool lessThan(const QModelIndex &left, const QModelIndex &right) const
Definition
subtreeproxy.cpp:49
dbe::models::subtree_proxy::check_view_type
void check_view_type()
Definition
subtreeproxy.cpp:79
dbe::models::subtree_proxy::slot_remove_object
void slot_remove_object(QString const &src, dref const &obj)
dbe::models::subtree_proxy::ApplyDefaultFilter
bool ApplyDefaultFilter(int source_row, const QModelIndex &source_parent) const
Definition
subtreeproxy.cpp:166
dbe::models::subtree_proxy::slot_update_object
void slot_update_object(QString const &src, dref const &obj)
dbe::models::subtree_proxy::LoadClasses
void LoadClasses()
Definition
subtreeproxy.cpp:90
dbe::models::subtree_proxy::slot_rename_object
void slot_rename_object(QString const &src, dref const &obj)
dbe::models::subtree_proxy::filterAcceptsRow
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
Definition
subtreeproxy.cpp:36
dbe::models::subtree_proxy::~subtree_proxy
~subtree_proxy()
Definition
subtreeproxy.cpp:26
dbe::models::subtree_proxy::ResetModel
void ResetModel()
Definition
subtreeproxy.cpp:30
dbe::models::subtree_proxy::this_default_filter
QStringList this_default_filter
Definition
subtreeproxy.hpp:64
dbe::models::subtree_proxy::this_window_config
Window this_window_config
Definition
subtreeproxy.hpp:65
dbe::models::subtree_proxy::this_gui_windowname
QString this_gui_windowname
Definition
subtreeproxy.hpp:63
dbe::models::subtree_proxy::subtree_proxy
subtree_proxy(const QString &Name, const QStringList &Default, QObject *parent=nullptr)
Including DBE.
Definition
subtreeproxy.cpp:14
dbe::models::subtree_proxy::ApplyUserFilter
bool ApplyUserFilter(int source_row, const QModelIndex &source_parent) const
Definition
subtreeproxy.cpp:175
dbe::treenode
Definition
treenode.hpp:20
datahandler.hpp
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
dbe::Window
Definition
GraphicalClass.hpp:49
Generated on
for DUNE-DAQ by
1.17.0