DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CustomTableView.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/CustomTableView.h to include/dbe/CustomTableView.hpp).
5
6#ifndef CUSTOMTABLEVIEW_H
7#define CUSTOMTABLEVIEW_H
8
10#include "dbe/table.hpp"
12
13#include <QPainter>
14#include <QPushButton>
15#include <QStyleOptionViewItem>
16#include <QTableView>
17#include <QUuid>
18
19namespace dbe {
20
22 : public QTableView
24{
25 Q_OBJECT
26
27signals:
28 void OpenEditor(tref Object);
29
30public:
31 explicit CustomTableView(QWidget* parent = 0);
32 void contextMenuEvent(QContextMenuEvent* Event);
33
34private slots:
36 void slot_create_object();
37 void slot_edit_object();
38 void slot_copy_object();
39
40 void FindObjectSlot();
41
42 void slot_go_to_object();
43 void GoToNext();
44
45 void EditedSearchString(QString Text);
46
48 void referencedBy_All();
49
50private:
51 void CreateActions();
52
53 void referencedBy(tref obj, bool onlyComposite);
54
56 QAction* FindObject;
57 QAction* editObject;
59 QAction* refByAc;
61 QAction* copyObjectAc;
62
65 QLineEdit* LineEdit;
66 QPushButton* NextButton;
67 QPushButton* GoButton;
68
71 QModelIndexList ListOfMatch;
72
74};
75} // end namespace dbe
76#endif // CUSTOMTABLEVIEW_H
int ListIndex
Match Variables.
CustomTableView(QWidget *parent=0)
Including QT::include <QHeaderView>.
void OpenEditor(tref Object)
QDialog * m_find_object_dialog
File Dialog.
void referencedBy(tref obj, bool onlyComposite)
void EditedSearchString(QString Text)
void contextMenuEvent(QContextMenuEvent *Event)
QModelIndexList ListOfMatch
Include QT Headers.
inner::configobject::tref tref
Definition tref.hpp:36