MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / store

Method store

src/openms_gui/source/VISUAL/VISUALIZER/DataProcessingVisualizer.cpp:66–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 }
65
66 void DataProcessingVisualizer::store()
67 {
68 DateTime date;
69 try
70 {
71 date.set(completion_time_->text());
72 ptr_->setCompletionTime(date);
73 }
74 catch (exception & /*e*/)
75 {
76 if (date.isNull())
77 {
78 std::string status = "Format of date in DATAPROCESSING is not correct.";
79 emit sendStatus(status);
80 }
81 }
82
83 //actions
84 ptr_->getProcessingActions().clear();
85 for (UInt i = 0; i < DataProcessing::SIZE_OF_PROCESSINGACTION; ++i)
86 {
87 if (actions_->item(i)->checkState() == Qt::Checked)
88 {
89 ptr_->getProcessingActions().insert(DataProcessing::ProcessingAction(i));
90 }
91 }
92
93 temp_ = (*ptr_);
94 }
95
96 void DataProcessingVisualizer::undo_()
97 {

Callers

nothing calls this directly

Calls 6

ProcessingActionEnum · 0.85
setCompletionTimeMethod · 0.80
setMethod · 0.45
isNullMethod · 0.45
clearMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected