DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
ObjectCreator.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/ObjectCreator.h to include/dbe/ObjectCreator.hpp).
5
6#ifndef OBJECTCREATOR_H
7#define OBJECTCREATOR_H
8
9#include "dbe/FileModel.hpp"
10#include "dbe/ObjectEditor.hpp"
11
13#include "conffwk/Schema.hpp"
14
15#include <QStatusBar>
16#include <QUuid>
17#include <QWidget>
18
19#include <memory>
20
21namespace dbe {
22
23namespace Ui {
24class ObjectCreator;
25} // namespace Ui
26
27class ObjectCreator : public QWidget
28{
29
30 Q_OBJECT
31
32public:
40 ObjectCreator(dunedaq::conffwk::class_t const& classinfo, QWidget* parent = 0);
41
49 ObjectCreator(tref const& clonefrom, dunedaq::conffwk::relationship_t const& relation, QWidget* parent = 0);
50
57 ObjectCreator(tref const& clonefrom, QWidget* parent = 0);
58
59 bool CanClose();
60
61private slots:
62 void AddInclude();
63 void UpdateActions();
64 void UpdateActions(QString);
68 void CreateObject(bool openEditor = false);
69 void CreateOpenObject();
70 void SetObjectChanged();
71 void ActiveFileChanged(QString const&);
72 void MustPressReturn(QString const&);
73 void SetUID();
74
75signals:
77
78private:
79 void setup_editor();
80 void setup_copy_editor();
81
82 void SetComboClass();
83 void SetController();
84 void BuildFileModel();
85 void SetStatusBar();
86 QString GetMessage();
87
88 bool GetState(int Flags);
89 void BuildContextMenu();
90 void FillUidComboBox();
91 void closeEvent(QCloseEvent* event);
92
93 std::unique_ptr<dbe::Ui::ObjectCreator> ui;
94
96
97 std::unique_ptr<tref> this_src_object;
98 std::unique_ptr<tref> this_target_object;
100
101 QSortFilterProxyModel this_sort;
103
104 QStatusBar* this_status_bar;
105
107
108 bool UidSet;
109 QString this_newuid;
113
117
118 QUuid const uuid;
119};
120} // end namespace dbe
121
122#endif // OBJECTCREATOR_H
ObjectEditor * this_associated_editor
void MustPressReturn(QString const &)
dunedaq::conffwk::relationship_t this_relation
void ActiveFileChanged(QString const &)
ObjectCreator(dunedaq::conffwk::class_t const &classinfo, QWidget *parent=0)
void closeEvent(QCloseEvent *event)
std::unique_ptr< dbe::Ui::ObjectCreator > ui
dunedaq::conffwk::class_t this_object_class
std::unique_ptr< tref > this_src_object
void CreateObject(bool openEditor=false)
QSortFilterProxyModel this_sort
std::unique_ptr< tref > this_target_object
QStatusBar * this_status_bar
bool GetState(int Flags)
Include QT Headers.
inner::configobject::tref tref
Definition tref.hpp:36