DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SchemaAttributeEditor.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/SchemaAttributeEditor.h to include/dbe/SchemaAttributeEditor.hpp).
5
6#ifndef SCHEMAATTRIBUTEEDITOR_H
7#define SCHEMAATTRIBUTEEDITOR_H
8
9#include "oks/attribute.hpp"
10#include <QWidget>
11#include <memory>
12
13namespace dbse {
14
15namespace Ui {
17}
18
19class SchemaAttributeEditor : public QWidget
20{
21 Q_OBJECT
22public:
24
26 dunedaq::oks::OksAttribute* AttributeData,
27 QWidget* parent = nullptr);
28
29 explicit SchemaAttributeEditor(dunedaq::oks::OksClass* ClassInfo, QWidget* parent = nullptr);
30
31 void InitialSettings();
32 void SetController();
33 void ParseToSave();
34 void ParseToCreate();
35
36protected:
37 void FillInfo();
38
39private:
40 void keyPressEvent(QKeyEvent* event) override;
41 std::unique_ptr<dbse::Ui::SchemaAttributeEditor> ui;
44 bool UsedNew;
46private slots:
47 void ProxySlot();
48 void ToggleFormat(int);
49 void ClassUpdated(QString ClassName);
50signals:
52};
53} // end namespace okse
54#endif // SCHEMAATTRIBUTEEDITOR_H
std::unique_ptr< dbse::Ui::SchemaAttributeEditor > ui
dunedaq::oks::OksAttribute * SchemaAttribute
SchemaAttributeEditor(dunedaq::oks::OksClass *ClassInfo, dunedaq::oks::OksAttribute *AttributeData, QWidget *parent=nullptr)
void ClassUpdated(QString ClassName)
void keyPressEvent(QKeyEvent *event) override
dunedaq::oks::OksClass * SchemaClass
OKS attribute class.
Definition attribute.hpp:94
The OKS class.
Definition class.hpp:223
Including QT Headers.