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
9#include <memory>
10#include <QWidget>
11#include "oks/relationship.hpp"
12
13namespace dbse
14{
15namespace Ui
16{
17class SchemaRelationshipEditor;
18} // namespace Ui
19
20class SchemaRelationshipEditor: public QWidget
21{
22 Q_OBJECT
23public:
25
27 QWidget * parent = nullptr );
28
29 explicit SchemaRelationshipEditor ( dunedaq::oks::OksClass * Class, QWidget * parent = nullptr );
30
31 explicit SchemaRelationshipEditor ( dunedaq::oks::OksClass * Class, QString ClassType, QWidget * parent =
32 nullptr );
33
34 void InitialSettings();
35 void SetController();
36 void ParseToSave();
37 void ParseToCreate();
38protected:
39 void FillInfo();
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,
55 QString RelationshipName );
56};
57
58} // namespace dbse
59#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:205
Including QT Headers.