Public Slots | Public Member Functions | Private Attributes | List of all members
dbutils::gui::SettingsDisplay Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/DatabaseUtils/cxx/include/GUI/SettingsDisplay.h"

Inheritance diagram for dbutils::gui::SettingsDisplay:

Public Slots

void updateNamedConfiguration (const dbutils::daqconfig::GlobalNameSpec &nameSpec)
 

Public Member Functions

 SettingsDisplay (QWidget *parent=0)
 
 ~SettingsDisplay ()
 

Private Attributes

NamedConfigGroupBox_namedConfigChoices
 

Detailed Description

Class for graphically displaying the current settings for user-selected parameters.

Author
Kurt Biery
Version
Revision
1.1.24.1
Date
2019/09/27 00:07:04

Definition at line 21 of file SettingsDisplay.h.

Constructor & Destructor Documentation

dbutils::gui::SettingsDisplay::SettingsDisplay ( QWidget *  parent = 0)

Creates panel that displays the user-selectable parameters.

Definition at line 14 of file SettingsDisplay.cpp.

References _namedConfigChoices.

14  : QWidget(parent)
15 {
16  _namedConfigChoices = new NamedConfigGroupBox();
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 }
NamedConfigGroupBox * _namedConfigChoices
dbutils::gui::SettingsDisplay::~SettingsDisplay ( )

Destroys the display.

Definition at line 29 of file SettingsDisplay.cpp.

References updateNamedConfiguration().

30 {
31 }

Member Function Documentation

void dbutils::gui::SettingsDisplay::updateNamedConfiguration ( const dbutils::daqconfig::GlobalNameSpec nameSpec)
slot

Updates the values of the named configuration parameters.

Definition at line 37 of file SettingsDisplay.cpp.

References _namedConfigChoices, dbutils::daqconfig::GlobalNameSpec::getConfigName(), dbutils::daqconfig::GlobalNameSpec::getDCMOpMode(), dbutils::daqconfig::GlobalNameSpec::getDetectorName(), dbutils::daqconfig::GlobalNameSpec::getTimestamp(), dbutils::daqconfig::GlobalNameSpec::hasTimestamp(), dbutils::gui::NamedConfigGroupBox::setConfigurationName(), dbutils::gui::NamedConfigGroupBox::setDCMOperatingMode(), dbutils::gui::NamedConfigGroupBox::setDetectorName(), and dbutils::gui::NamedConfigGroupBox::setTimestamp().

Referenced by dbutils::gui::DCSConfigEditorDisplay::DCSConfigEditorDisplay(), dbutils::gui::BasicEditorDisplay::loadNewDataset(), dbutils::gui::BasicEditorDisplay::saveChanges(), dbutils::gui::BasicEditorDisplay::saveChangesWithNewName(), and ~SettingsDisplay().

38 {
42  if (nameSpec.hasTimestamp()) {
44  }
45  else {
47  LATEST_TIME_STRING);
48  }
49 }
NamedConfigGroupBox * _namedConfigChoices
void setDetectorName(const std::string &detectorName)
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)

Member Data Documentation

NamedConfigGroupBox* dbutils::gui::SettingsDisplay::_namedConfigChoices
private

Definition at line 37 of file SettingsDisplay.h.

Referenced by SettingsDisplay(), and updateNamedConfiguration().


The documentation for this class was generated from the following files: