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;
31 QDialog * FindFileDialog;
32 QLineEdit * LineEdit;
33 QPushButton * NextButton;
34 QPushButton * GoButton;
35 QCheckBox * WholeWordCheckBox;
39 QModelIndexList ListOfMatch;
40private slots:
41 void GoToFile();
42 void GoToNext();
43 void FindFileSlot();
45 void HideReadOnlyFilesSlot ( bool Hide );
46 void EditedSearchString ( QString Text );
47 void EditedSearchString();
48 void ChangeSelection ( QModelIndex Index );
49 void file_info_slot ();
50 void file_info_slot (QModelIndex index);
51signals:
52 void stateChanged ( const QString & FileName );
53};
54} // end namespace dbe
55#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.