DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CustomFileView.hpp
Go to the documentation of this file.
1#ifndef CUSTOMFILEVIEW_H
2#define CUSTOMFILEVIEW_H
3
5#include <QTableView>
6#include <QPushButton>
7#include <QCheckBox>
8
9namespace dbe
10{
11class FindDialog;
12
13class CustomFileView: public QTableView
14{
15 Q_OBJECT
16public:
17 CustomFileView ( QWidget * parent = nullptr );
18 void CreateActions();
19 void ConnectActions();
20 void CreateContextMenu();
22 void contextMenuEvent ( QContextMenuEvent * Event );
23private:
25 QMenu * ContextMenu;
28 QAction * FindFile;
30 QDialog * FindFileDialog;
31 QLineEdit * LineEdit;
32 QPushButton * NextButton;
33 QPushButton * GoButton;
34 QCheckBox * WholeWordCheckBox;
38 QModelIndexList ListOfMatch;
39private slots:
40 void GoToFile();
41 void GoToNext();
42 void FindFileSlot();
44 void HideReadOnlyFilesSlot ( bool Hide );
45 void EditedSearchString ( QString Text );
46 void EditedSearchString();
47 void ChangeSelection ( QModelIndex Index );
48signals:
49 void stateChanged ( const QString & FileName );
50};
51} // end namespace dbe
52#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.