DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SchemaMethodEditor.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/SchemaMethodEditor.h to include/dbe/SchemaMethodEditor.hpp).
5
6#ifndef SCHEMAMETHODEDITOR_H
7#define SCHEMAMETHODEDITOR_H
8
10#include "oks/class.hpp"
11#include "oks/method.hpp"
12#include <QWidget>
13#include <memory>
14
15namespace dbse {
16
17namespace Ui {
18class SchemaMethodEditor;
19} // namespace Ui
20
21class SchemaMethodEditor : public QWidget
22{
23 Q_OBJECT
24public:
28 QWidget* parent = nullptr);
29 explicit SchemaMethodEditor(dunedaq::oks::OksClass* ClassInfo, QWidget* parent = nullptr);
30
31 void SetController();
32 void InitialSettings();
33 void ParseToSave();
34 void ParseToCreate();
35 void BuildModels();
36
37protected:
38 void FillInfo();
39
40private:
41 std::unique_ptr<dbse::Ui::SchemaMethodEditor> ui;
45 bool UsedNew;
47 bool ShouldOpenMethodImplementationEditor(QString Name);
48 bool create();
49private slots:
50 void ProxySlot();
52 void OpenMethodImplementationEditor(QModelIndex Index);
54 void ClassUpdated(QString ClassName);
55signals:
57};
58
59} // namespace dbse
60#endif // SCHEMAMETHODEDITOR_H
void ClassUpdated(QString ClassName)
CustomMethodImplementationModel * ImplementationModel
dunedaq::oks::OksClass * m_class
dunedaq::oks::OksMethod * m_method
void OpenMethodImplementationEditor(QModelIndex Index)
bool ShouldOpenMethodImplementationEditor(QString Name)
SchemaMethodEditor(dunedaq::oks::OksClass *ClassInfo, dunedaq::oks::OksMethod *Method, QWidget *parent=nullptr)
std::unique_ptr< dbse::Ui::SchemaMethodEditor > ui
The OKS class.
Definition class.hpp:223
OKS method class.
Definition method.hpp:147
Including QT Headers.