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
9#include <memory>
10#include <QWidget>
11#include "oks/class.hpp"
12#include "oks/method.hpp"
14
15
16
17namespace dbse
18{
19
20namespace Ui
21{
22class SchemaMethodEditor;
23} // namespace Ui
24
25class SchemaMethodEditor: public QWidget
26{
27 Q_OBJECT
28public:
30 explicit SchemaMethodEditor ( dunedaq::oks::OksClass * ClassInfo, dunedaq::oks::OksMethod * Method, QWidget * parent =
31 nullptr );
32 explicit SchemaMethodEditor ( dunedaq::oks::OksClass * ClassInfo, QWidget * parent = nullptr );
33
34 void SetController();
35 void InitialSettings();
36 void ParseToSave();
37 void ParseToCreate();
38 void BuildModels();
39protected:
40 void FillInfo();
41private:
42 std::unique_ptr<dbse::Ui::SchemaMethodEditor> ui;
46 bool UsedNew;
48 bool ShouldOpenMethodImplementationEditor ( QString Name );
49 bool create();
50private slots:
51 void ProxySlot();
53 void OpenMethodImplementationEditor ( QModelIndex Index );
55 void ClassUpdated( QString ClassName);
56signals:
58};
59
60} // namespace dbse
61#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:205
OKS method class.
Definition method.hpp:158
Including QT Headers.