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
29{
30 connect ( OkButton, SIGNAL ( clicked() ), this, SLOT ( OkCommitMessage() ),
31 Qt::UniqueConnection );
32 connect ( CancelButton, SIGNAL ( clicked() ), this, SLOT ( CancelCommitMessage() ),
33 Qt::UniqueConnection );
34}
35
37{
38 return CommitMessageLine->text();
39}
40
42{
43 if ( !CommitMessageLine->text().isEmpty() )
44 {
45 OkButton->setEnabled ( true );
46 }
47 else
48 {
49 OkButton->setEnabled ( false );
50 }
51}
52
54{
55 accept();
56}
57
59{
60 reject();
61}
~CommitDialog()
Including DBE.
CommitDialog(QWidget *parent=0)
std::unique_ptr< dbe::Ui::CommitDialog > ui
QString GetCommitMessage() const