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
9#include "dbe/table.hpp"
12
13#include <QTableView>
14#include <QPushButton>
15#include <QUuid>
16#include <QPainter>
17#include <QStyleOptionViewItem>
18
19namespace dbe
20{
21
22class CustomTableView: public QTableView, public view_common_interface
23{
24 Q_OBJECT
25
26signals:
27 void OpenEditor ( tref Object );
28
29public:
30 explicit CustomTableView ( QWidget * parent = 0 );
31 void contextMenuEvent ( QContextMenuEvent * Event );
32
33private slots:
35 void slot_create_object();
36 void slot_edit_object();
37 void slot_copy_object();
38
39 void FindObjectSlot();
40
41 void slot_go_to_object();
42 void GoToNext();
43
44 void EditedSearchString ( QString Text );
45
47 void referencedBy_All();
48
49private:
50 void CreateActions();
51
52 void referencedBy ( tref obj, bool onlyComposite );
53
55 QAction * FindObject;
56 QAction * editObject;
57 QAction * deleteObjectAc;
58 QAction * refByAc;
59 QAction * refByAcOnlyComp;
60 QAction * copyObjectAc;
61
64 QLineEdit * LineEdit;
65 QPushButton * NextButton;
66 QPushButton * GoButton;
67
70 QModelIndexList ListOfMatch;
71
73};
74} // end namespace dbe
75#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:35