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
12#include "conffwk/Schema.hpp"
14
15#include <QWidget>
16#include <QStatusBar>
17#include <QUuid>
18
19#include <memory>
20
21namespace dbe
22{
23
24namespace Ui
25{
26class ObjectCreator;
27} // namespace Ui
28
29class ObjectCreator: public QWidget
30{
31
32 Q_OBJECT
33
34public:
42 ObjectCreator ( dunedaq::conffwk::class_t const & classinfo, QWidget * parent = 0 );
43
51 ObjectCreator ( tref const & clonefrom,
52 dunedaq::conffwk::relationship_t const & relation, QWidget * parent = 0 );
53
60 ObjectCreator ( tref const & clonefrom, QWidget * parent = 0 );
61
62 bool CanClose();
63
64private slots:
65 void AddInclude();
66 void UpdateActions();
67 void UpdateActions ( QString );
71 void CreateObject(bool openEditor = false);
72 void CreateOpenObject();
73 void SetObjectChanged();
74 void ActiveFileChanged ( QString const & );
75 void MustPressReturn ( QString const & );
76 void SetUID();
77
78signals:
80
81private:
82 void setup_editor();
83 void setup_copy_editor();
84
85 void SetComboClass();
86 void SetController();
87 void BuildFileModel();
88 void SetStatusBar();
89 QString GetMessage();
90
91 bool GetState ( int Flags );
92 void BuildContextMenu();
93 void FillUidComboBox();
94 void closeEvent ( QCloseEvent * event );
95
96 std::unique_ptr<dbe::Ui::ObjectCreator> ui;
97
99
100 std::unique_ptr<tref> this_src_object;
101 std::unique_ptr<tref> this_target_object;
103
104 QSortFilterProxyModel this_sort;
106
107 QStatusBar * this_status_bar;
108
110
111 bool UidSet;
112 QString this_newuid;
115 QMenu * ContextMenu;
116
120
121 QUuid const uuid;
122};
123} //end namespace dbe
124
125#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:35