| 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 | { |
nothing calls this directly
no test coverage detected