DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
include
dbe
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
11
namespace
dbe
12
{
13
14
class
ValidatorComboBox
:
public
QComboBox
15
{
16
Q_OBJECT
17
public
:
18
explicit
ValidatorComboBox
( QWidget * parent =
nullptr
);
19
~ValidatorComboBox
();
20
bool
IsValid
()
const
;
21
bool
IsChanged
()
const
;
22
QStringList
GetDataList
();
23
private
:
24
QStringList
DataList
;
25
QString
Default
;
26
bool
Valid
;
27
bool
ValueChanged
;
28
void
wheelEvent
( QWheelEvent * e );
29
public
slots:
30
void
TryValidate
(
const
QString & ValidateString );
31
private
slots:
32
void
ChangeDetected
(
const
QString & StringChange );
33
void
CheckDefaults
(
int
Default
);
34
bool
CompareDefaults
();
35
signals:
36
void
ValueWasChanged
();
37
};
38
39
}
// namespace dbe
40
#endif
// VALIDATORCOMBOBOX_H
dbe::ValidatorComboBox::IsChanged
bool IsChanged() const
Definition
ValidatorComboBox.cpp:34
dbe::ValidatorComboBox::ChangeDetected
void ChangeDetected(const QString &StringChange)
Definition
ValidatorComboBox.cpp:91
dbe::ValidatorComboBox::Default
QString Default
Definition
ValidatorComboBox.hpp:25
dbe::ValidatorComboBox::IsValid
bool IsValid() const
Definition
ValidatorComboBox.cpp:29
dbe::ValidatorComboBox::wheelEvent
void wheelEvent(QWheelEvent *e)
Definition
ValidatorComboBox.cpp:46
dbe::ValidatorComboBox::ValueWasChanged
void ValueWasChanged()
dbe::ValidatorComboBox::CheckDefaults
void CheckDefaults(int Default)
Definition
ValidatorComboBox.cpp:98
dbe::ValidatorComboBox::~ValidatorComboBox
~ValidatorComboBox()
Definition
ValidatorComboBox.cpp:25
dbe::ValidatorComboBox::Valid
bool Valid
Definition
ValidatorComboBox.hpp:26
dbe::ValidatorComboBox::DataList
QStringList DataList
Definition
ValidatorComboBox.hpp:24
dbe::ValidatorComboBox::ValueChanged
bool ValueChanged
Definition
ValidatorComboBox.hpp:27
dbe::ValidatorComboBox::ValidatorComboBox
ValidatorComboBox(QWidget *parent=nullptr)
Including QT Headers.
Definition
ValidatorComboBox.cpp:12
dbe::ValidatorComboBox::GetDataList
QStringList GetDataList()
Definition
ValidatorComboBox.cpp:39
dbe::ValidatorComboBox::TryValidate
void TryValidate(const QString &ValidateString)
Definition
ValidatorComboBox.cpp:52
dbe::ValidatorComboBox::CompareDefaults
bool CompareDefaults()
Definition
ValidatorComboBox.cpp:108
dbe
Include QT Headers.
Definition
BatchChangeWidget.hpp:18
Generated on
for DUNE-DAQ by
1.17.0