DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CustomFileView.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/CustomFileView.h to include/dbe/CustomFileView.hpp).
5
6#ifndef CUSTOMFILEVIEW_H
7#define CUSTOMFILEVIEW_H
8
10#include <QTableView>
11#include <QPushButton>
12#include <QCheckBox>
13
14namespace dbe
15{
16class FindDialog;
17
18class CustomFileView: public QTableView
19{
20 Q_OBJECT
21public:
22 CustomFileView ( QWidget * parent = nullptr );
23 void CreateActions();
24 void ConnectActions();
25 void CreateContextMenu();
27 void contextMenuEvent ( QContextMenuEvent * Event );
28private:
30 QMenu * ContextMenu;
33 QAction * FindFile;
36 QDialog * FindFileDialog;
37 QLineEdit * LineEdit;
38 QPushButton * NextButton;
39 QPushButton * GoButton;
40 QCheckBox * WholeWordCheckBox;
44 QModelIndexList ListOfMatch;
45private slots:
46 void GoToFile();
47 void GoToNext();
48 void FindFileSlot();
50 void HideReadOnlyFilesSlot ( bool Hide );
51 void EditedSearchString ( QString Text );
52 void EditedSearchString();
53 void ChangeSelection ( QModelIndex Index );
54 void file_info_slot ();
55 void file_info_slot (QModelIndex index);
56signals:
57 void stateChanged ( const QString & FileName );
58};
59} // end namespace dbe
60#endif // CUSTOMFILEVIEW_H
CustomFileView(QWidget *parent=nullptr)
Including QT Headers.
void ChangeSelection(QModelIndex Index)
QCheckBox * CaseSensitiveCheckBox
QCheckBox * WholeWordCheckBox
void contextMenuEvent(QContextMenuEvent *Event)
Reimplemented functions.
QModelIndexList ListOfMatch
QPushButton * NextButton
void HideReadOnlyFilesSlot(bool Hide)
void stateChanged(const QString &FileName)
QMenu * ContextMenu
Context menu with the possible actions.
QDialog * FindFileDialog
File Dialog.
int ListIndex
Match Variables.
Include QT Headers.