DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
ValidatorComboBox.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/ValidatorComboBox.h to include/dbe/ValidatorComboBox.hpp).
5
6#ifndef VALIDATORCOMBOBOX_H
7#define VALIDATORCOMBOBOX_H
8
9#include <QComboBox>
10
11namespace dbe
12{
13
14class ValidatorComboBox: public QComboBox
15{
16 Q_OBJECT
17public:
18 explicit ValidatorComboBox ( QWidget * parent = nullptr );
20 bool IsValid() const;
21 bool IsChanged() const;
22 QStringList GetDataList();
23private:
24 QStringList DataList;
25 QString Default;
26 bool Valid;
28 void wheelEvent ( QWheelEvent * e );
29public slots:
30 void TryValidate ( const QString & ValidateString );
31private slots:
32 void ChangeDetected ( const QString & StringChange );
33 void CheckDefaults ( int Default );
34 bool CompareDefaults();
35signals:
37};
38
39} // namespace dbe
40#endif // VALIDATORCOMBOBOX_H
void ChangeDetected(const QString &StringChange)
void wheelEvent(QWheelEvent *e)
void CheckDefaults(int Default)
ValidatorComboBox(QWidget *parent=nullptr)
Including QT Headers.
void TryValidate(const QString &ValidateString)
Include QT Headers.