DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SchemaRelationshipEditor.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/SchemaRelationshipEditor.h to include/dbe/SchemaRelationshipEditor.hpp).
5
6#ifndef SCHEMARELATIONSHIPEDITOR_H
7#define SCHEMARELATIONSHIPEDITOR_H
8
10#include <QWidget>
11#include <memory>
12
13namespace dbse {
14namespace Ui {
15class SchemaRelationshipEditor;
16} // namespace Ui
17
18class SchemaRelationshipEditor : public QWidget
19{
20 Q_OBJECT
21public:
23
26 QWidget* parent = nullptr);
27
28 explicit SchemaRelationshipEditor(dunedaq::oks::OksClass* Class, QWidget* parent = nullptr);
29
30 explicit SchemaRelationshipEditor(dunedaq::oks::OksClass* Class, QString ClassType, QWidget* parent = nullptr);
31
32 void InitialSettings();
33 void SetController();
34 void ParseToSave();
35 void ParseToCreate();
36
37protected:
38 void FillInfo();
39
40private:
41 void keyPressEvent(QKeyEvent* event) override;
42 dbse::Ui::SchemaRelationshipEditor* ui;
45 bool UsedNew;
48private slots:
49 void ProxySlot();
50 void UpdateClassCombo();
51 void ClassUpdated(QString className);
52signals:
54 void MakeGraphConnection(QString ClassName1, QString ClassName2, QString RelationshipName);
55};
56
57} // namespace dbse
58#endif // SCHEMARELATIONSHIPEDITOR_H
dbse::Ui::SchemaRelationshipEditor * ui
void MakeGraphConnection(QString ClassName1, QString ClassName2, QString RelationshipName)
SchemaRelationshipEditor(dunedaq::oks::OksClass *Class, dunedaq::oks::OksRelationship *Relationship, QWidget *parent=nullptr)
void keyPressEvent(QKeyEvent *event) override
dunedaq::oks::OksRelationship * SchemaRelationship
The OKS class.
Definition class.hpp:223
Including QT Headers.