SettingsDisplay.cpp
Go to the documentation of this file.
1 #include <DatabaseUtils/GUI/SettingsDisplay.h>
2 #include <DatabaseUtils/GUI/DBParamsGroupBox.h>
3 #include <DatabaseUtils/DAQConfig/NamedConfigUtils.h>
4 #include <QtGui/QHBoxLayout>
5 
6 namespace DAQCONFIG = dbutils::daqconfig;
7 
8 namespace dbutils {
9 namespace gui {
10 
11 /**
12  * Creates panel that displays the user-selectable parameters.
13  */
14 SettingsDisplay::SettingsDisplay(QWidget *parent) : QWidget(parent)
15 {
17  DBParamsGroupBox* dbParamsBox = new DBParamsGroupBox(this);
18 
19  QHBoxLayout* infoLayout = new QHBoxLayout;
20  infoLayout->addWidget(_namedConfigChoices);
21  infoLayout->addWidget(dbParamsBox);
22 
23  setLayout(infoLayout);
24 }
25 
26 /**
27  * Destroys the display.
28  */
30 {
31 }
32 
33 /**
34  * Updates the values of the named configuration parameters.
35  */
38 {
42  if (nameSpec.hasTimestamp()) {
44  }
45  else {
47  LATEST_TIME_STRING);
48  }
49 }
50 
51 } // end of namespace gui
52 } // end of namespace dbutils
NamedConfigGroupBox * _namedConfigChoices
void updateNamedConfiguration(const dbutils::daqconfig::GlobalNameSpec &nameSpec)
void setDetectorName(const std::string &detectorName)
SettingsDisplay(QWidget *parent=0)
void setConfigurationName(const std::string &name)
void setTimestamp(const std::string &timestamp)
std::string getDCMOpMode() const
std::string getTimestamp() const
std::string getConfigName() const
std::string getDetectorName() const
void setDCMOperatingMode(const std::string &dcmOpMode)