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 <QSortFilterProxyModel>
11
#include <QUuid>
12
14
#include "
dbe/TreeModelInterface.hpp
"
15
#include "
dbe/model_common_interface.hpp
"
16
17
#include "
dbe/datahandler.hpp
"
18
#include <vector>
19
20
namespace
dbe
{
21
22
namespace
models
{
23
24
class
subtree_proxy
25
:
public
QSortFilterProxyModel
26
,
public
TreeModelInterface
27
,
public
model_common_impl
<subtree_proxy>
28
,
public
model_common_async_operations
<subtree_proxy>
29
{
30
Q_OBJECT
31
32
MODEL_COMMON_IMPL_REQ_DEF
(
subtree_proxy
)
33
34
public
:
35
explicit
subtree_proxy
(
const
QString& Name,
const
QStringList& Default, QObject* parent =
nullptr
);
36
~subtree_proxy
();
37
38
void
ResetModel
();
39
40
void
check_view_type
();
41
42
void
LoadClasses
();
43
44
treenode
*
getnode
(
const
QModelIndex& index)
const
;
45
46
protected
:
47
bool
filterAcceptsRow
(
int
source_row,
const
QModelIndex& source_parent)
const
;
48
49
bool
lessThan
(
const
QModelIndex& left,
const
QModelIndex& right)
const
;
50
51
private
:
52
bool
ApplyDefaultFilter
(
int
source_row,
const
QModelIndex& source_parent)
const
;
53
54
bool
ApplyUserFilter
(
int
source_row,
const
QModelIndex& source_parent)
const
;
55
56
QString
this_gui_windowname
;
57
QStringList
this_default_filter
;
58
Window
this_window_config
;
59
60
bool
this_apply_default_filter
;
61
62
private
slots:
63
void
slot_create_object
(QString
const
& src,
dref
const
& obj);
64
void
slot_remove_object
(QString
const
& src,
dref
const
& obj);
65
void
slot_update_object
(QString
const
& src,
dref
const
& obj);
66
void
slot_rename_object
(QString
const
& src,
dref
const
& obj);
67
};
68
}
69
// namespace models
70
}
// namespace dbe
71
#endif
// SUBTREEPROXYMODEL_H
TreeModelInterface.hpp
dbe::TreeModelInterface
Definition
TreeModelInterface.hpp:23
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:125
dbe::model_common_impl
Definition
model_common_interface.hpp:204
dbe::models::subtree_proxy::getnode
treenode * getnode(const QModelIndex &index) const
Definition
subtreeproxy.cpp:121
dbe::models::subtree_proxy::this_apply_default_filter
bool this_apply_default_filter
Definition
subtreeproxy.hpp:60
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:44
dbe::models::subtree_proxy::check_view_type
void check_view_type()
Definition
subtreeproxy.cpp:72
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:153
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:82
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:34
dbe::models::subtree_proxy::ResetModel
void ResetModel()
Definition
subtreeproxy.cpp:27
dbe::models::subtree_proxy::this_default_filter
QStringList this_default_filter
Definition
subtreeproxy.hpp:57
dbe::models::subtree_proxy::this_window_config
Window this_window_config
Definition
subtreeproxy.hpp:58
dbe::models::subtree_proxy::this_gui_windowname
QString this_gui_windowname
Definition
subtreeproxy.hpp:56
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:162
dbe::treenode
Definition
treenode.hpp:19
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:20
dbe
Include QT Headers.
Definition
BatchChangeWidget.hpp:16
dbe::dref
config_object_description dref
Definition
confobject_desc.hpp:90
dbe::Window
Definition
GraphicalClass.hpp:48
Generated on
for DUNE-DAQ by
1.18.0