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 <QCheckBox>
11#include <QPushButton>
12#include <QTableView>
13
14namespace dbe {
15class FindDialog;
16
17class CustomFileView : public QTableView
18{
19 Q_OBJECT
20public:
21 CustomFileView(QWidget* parent = nullptr);
22 void CreateActions();
23 void ConnectActions();
24 void CreateContextMenu();
26 void contextMenuEvent(QContextMenuEvent* Event);
27
28private:
33 QAction* FindFile;
37 QLineEdit* LineEdit;
38 QPushButton* NextButton;
39 QPushButton* GoButton;
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.
void EditedSearchString(QString Text)
Include QT Headers.