DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CommitDialog.cpp
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: no.
5
8
10
12 : QDialog(parent)
13 , ui(new Ui::CommitDialog)
14{
16 setupUi(this);
17
19 setModal(true);
20 setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
21 setToolTip("Enter a commit message (optional) and press the ok button.");
22 show();
23
26}
27
28void
30{
31 connect(OkButton, SIGNAL(clicked()), this, SLOT(OkCommitMessage()), Qt::UniqueConnection);
32 connect(CancelButton, SIGNAL(clicked()), this, SLOT(CancelCommitMessage()), Qt::UniqueConnection);
33}
34
35QString
37{
38 return CommitMessageLine->text();
39}
40
41void
43{
44 if (!CommitMessageLine->text().isEmpty()) {
45 OkButton->setEnabled(true);
46 } else {
47 OkButton->setEnabled(false);
48 }
49}
50
51void
56
57void
~CommitDialog()
Including DBE.
CommitDialog(QWidget *parent=0)
std::unique_ptr< dbe::Ui::CommitDialog > ui
QString GetCommitMessage() const