DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
ObjectCreator.hpp
Go to the documentation of this file.
1#ifndef OBJECTCREATOR_H
2#define OBJECTCREATOR_H
3
4#include "dbe/FileModel.hpp"
6
7#include "conffwk/Schema.hpp"
9
10#include <QWidget>
11#include <QStatusBar>
12#include <QUuid>
13
14#include <memory>
15
16namespace dbe
17{
18
19namespace Ui
20{
21class ObjectCreator;
22} // namespace Ui
23
24class ObjectCreator: public QWidget
25{
26
27 Q_OBJECT
28
29public:
37 ObjectCreator ( dunedaq::conffwk::class_t const & classinfo, QWidget * parent = 0 );
38
46 ObjectCreator ( tref const & clonefrom,
47 dunedaq::conffwk::relationship_t const & relation, QWidget * parent = 0 );
48
55 ObjectCreator ( tref const & clonefrom, QWidget * parent = 0 );
56
57 bool CanClose();
58
59private slots:
60 void AddInclude();
61 void UpdateActions();
62 void UpdateActions ( QString );
66 void CreateObject(bool openEditor = false);
67 void CreateOpenObject();
68 void SetObjectChanged();
69 void ActiveFileChanged ( QString const & );
70 void MustPressReturn ( QString const & );
71 void SetUID();
72
73signals:
75
76private:
77 void setup_editor();
78 void setup_copy_editor();
79
80 void SetComboClass();
81 void SetController();
82 void BuildFileModel();
83 void SetStatusBar();
84 QString GetMessage();
85
86 bool GetState ( int Flags );
87 void BuildContextMenu();
88 void FillUidComboBox();
89 void closeEvent ( QCloseEvent * event );
90
91 std::unique_ptr<dbe::Ui::ObjectCreator> ui;
92
94
95 std::unique_ptr<tref> this_src_object;
96 std::unique_ptr<tref> this_target_object;
98
99 QSortFilterProxyModel this_sort;
101
102 QStatusBar * this_status_bar;
103
105
106 bool UidSet;
107 QString this_newuid;
110 QMenu * ContextMenu;
111
115
116 QUuid const uuid;
117};
118} //end namespace dbe
119
120#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.