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 <QTableWidget>
12#include <QWidget>
13
14#include <memory>
15
16namespace dbe {
17
18namespace Ui {
20} // namespace Ui
21
22class BatchChangeWidget : public QWidget
23{
24 Q_OBJECT
25
26public:
28
29 explicit BatchChangeWidget(QWidget* parent = nullptr);
30
31 BatchChangeWidget(bool ObjectsFromTable, QString ClassName, std::vector<dref>& Objects, QWidget* parent = nullptr);
32
33private:
34 std::unique_ptr<dbe::Ui::BatchChangeWidget> ui;
35 std::vector<dref> TableObjects;
36
38
39 QString TableClass;
40 std::unique_ptr<QTableWidget> m_filter_table;
41
42 void SetController();
43 void filter(std::vector<dref>& Objects, const QString& ClassName);
44 void keyPressEvent(QKeyEvent* event) override;
45
46private slots:
47 void FillInfo(const QString& Name);
48
49 void MakeChanges();
50 void FindMatching();
51
52 void EnableCheckBox(QString RelationshipName);
53
56
57signals:
59 void sig_batch_change_stop(const QList<QPair<QString, QString>>&);
60};
61
62} // namespace dbe
63
64#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.