DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
BatchChangeWidget.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/BatchChangeWidget.h to include/dbe/BatchChangeWidget.hpp).
5
6#ifndef BATCHCHANGEWIDGET_H
7#define BATCHCHANGEWIDGET_H
8
10
11#include <QWidget>
12#include <QTableWidget>
13
14#include <memory>
15
16
17namespace dbe
18{
19
20namespace Ui
21{
23} // namespace Ui
24
25class BatchChangeWidget: public QWidget
26{
27 Q_OBJECT
28
29public:
31
32 explicit BatchChangeWidget ( QWidget * parent = nullptr );
33
34 BatchChangeWidget ( bool ObjectsFromTable, QString ClassName,
35 std::vector<dref> & Objects, QWidget * parent = nullptr );
36
37private:
38 std::unique_ptr<dbe::Ui::BatchChangeWidget> ui;
39 std::vector<dref> TableObjects;
40
42
43 QString TableClass;
44 std::unique_ptr<QTableWidget> m_filter_table;
45
46 void SetController();
47 void filter ( std::vector<dref> & Objects, const QString & ClassName );
48 void keyPressEvent(QKeyEvent* event) override;
49
50private slots:
51 void FillInfo ( const QString & Name );
52
53 void MakeChanges();
54 void FindMatching();
55
56 void EnableCheckBox ( QString RelationshipName );
57
58 void UpdateRelationshipFilter ( int );
59 void UpdateRelationshipNewValues ( int );
60
61signals:
63 void sig_batch_change_stop(const QList<QPair<QString, QString>>&);
64};
65
66} // namespace dbe
67
68#endif // BATCHCHANGEWIDGET_H
BatchChangeWidget(QWidget *parent=nullptr)
void EnableCheckBox(QString RelationshipName)
void FillInfo(const QString &Name)
std::unique_ptr< dbe::Ui::BatchChangeWidget > ui
void keyPressEvent(QKeyEvent *event) override
void filter(std::vector< dref > &Objects, const QString &ClassName)
std::unique_ptr< QTableWidget > m_filter_table
void sig_batch_change_stop(const QList< QPair< QString, QString > > &)
std::vector< dref > TableObjects
Include QT Headers.