Public Slots | |
void | reactToEditorDataChange () |
void | reactToDataSave () |
Signals | |
void | aChangeWasMade () |
void | dataWasSaved () |
Public Member Functions | |
TabbedSetOfTableEditors (const std::string &subsystemName, const std::string &configType, const std::vector< std::string > &tableDefinitionList, QWidget *parent=0) | |
bool | loadData (const dbutils::daqconfig::IDSpec &idSpec) |
bool | hasChanges () const |
bool | saveChanges (const dbutils::daqconfig::IDSpec &oldGlobalIdSpec, const dbutils::daqconfig::IDSpec &newGlobalIdSpec, const dbutils::daqconfig::GlobalNameSpec &newGlobalNameSpec) |
bool | addInitialRow () |
void | isTopLevel (bool setting=true) |
Private Attributes | |
std::string | _subsystemName |
std::string | _configType |
std::vector< std::string > | _tableDefinitionList |
bool | _isTopLevel |
Class for displaying tabs for table-style editors of configuration data.
Definition at line 19 of file TabbedSetOfTableEditors.h.
dbutils::gui::TabbedSetOfTableEditors::TabbedSetOfTableEditors | ( | const std::string & | subsystemName, |
const std::string & | configType, | ||
const std::vector< std::string > & | tableDefinitionList, | ||
QWidget * | parent = 0 |
||
) |
Definition at line 13 of file TabbedSetOfTableEditors.cpp.
References _configType, _subsystemName, _tableDefinitionList, aChangeWasMade(), g4zmq::connect(), dataWasSaved(), shutoffs::filename, dbutils::gui::ConfigDataTableEditor::getTableName(), compare_h5_caf::idx, loadData(), reactToDataSave(), reactToEditorDataChange(), and string.
|
signal |
Referenced by isTopLevel(), reactToEditorDataChange(), and TabbedSetOfTableEditors().
|
virtual |
Requests that an initial row be added to the currently displayed table or tree.
Implements dbutils::gui::Changeable.
Definition at line 187 of file TabbedSetOfTableEditors.cpp.
References dbutils::gui::ConfigDataTableEditor::addInitialRow(), confusionMatrixTree::count, compare_h5_caf::idx, and fabricate::status.
|
signal |
Referenced by isTopLevel(), reactToDataSave(), and TabbedSetOfTableEditors().
|
virtual |
Tests whether there are any local changes that have not yet been stored in the database.
Implements dbutils::gui::Changeable.
Definition at line 72 of file TabbedSetOfTableEditors.cpp.
References confusionMatrixTree::count, dbutils::gui::ConfigDataTableEditor::hasChanges(), compare_h5_caf::idx, and saveChanges().
Referenced by saveChanges().
|
inline |
Definition at line 39 of file TabbedSetOfTableEditors.h.
References _isTopLevel, aChangeWasMade(), dataWasSaved(), reactToDataSave(), and reactToEditorDataChange().
|
virtual |
Loads the data associated with the specified config ID.
Implements dbutils::gui::Storeable.
Definition at line 37 of file TabbedSetOfTableEditors.cpp.
References _configType, _isTopLevel, _subsystemName, confusionMatrixTree::count, dbutils::daqconfig::IDSpec::getConfigId(), dbutils::gui::ConfigDataTableEditor::getTableName(), compare_h5_caf::idx, dbutils::gui::ConfigDataTableEditor::loadData(), bp_utils::progressBar(), and fabricate::status.
Referenced by TabbedSetOfTableEditors().
|
slot |
Definition at line 205 of file TabbedSetOfTableEditors.cpp.
References dataWasSaved(), and dbutils::gui::CustomTabBehaviors::updateTabTextColors().
Referenced by isTopLevel(), and TabbedSetOfTableEditors().
|
slot |
Definition at line 199 of file TabbedSetOfTableEditors.cpp.
References aChangeWasMade(), and dbutils::gui::CustomTabBehaviors::updateTabTextColors().
Referenced by isTopLevel(), and TabbedSetOfTableEditors().
|
virtual |
Saves all local changes to the database.
Implements dbutils::gui::Storeable.
Definition at line 84 of file TabbedSetOfTableEditors.cpp.
References _configType, _isTopLevel, _subsystemName, om::cerr, novadaq::Status::code, confusionMatrixTree::count, allTimeWatchdog::endl, dbutils::daqconfig::IDSpec::getConfigId(), dbutils::daqconfig::GlobalNameSpec::getConfigName(), dbutils::daqconfig::GlobalNameSpec::getDCMOpMode(), hasChanges(), compare_h5_caf::idx, dbutils::daqconfig::IDSpec::isDAQConfiguration(), novadaq::Status::message, bp_utils::progressBar(), dbutils::SimpleParameterSet::put(), dbutils::gui::ConfigDataTableEditor::saveChanges(), fabricate::status, and string.
Referenced by hasChanges().
|
private |
Definition at line 54 of file TabbedSetOfTableEditors.h.
Referenced by loadData(), saveChanges(), and TabbedSetOfTableEditors().
|
private |
Definition at line 56 of file TabbedSetOfTableEditors.h.
Referenced by isTopLevel(), loadData(), and saveChanges().
|
private |
Definition at line 53 of file TabbedSetOfTableEditors.h.
Referenced by loadData(), saveChanges(), and TabbedSetOfTableEditors().
|
private |
Definition at line 55 of file TabbedSetOfTableEditors.h.
Referenced by TabbedSetOfTableEditors().