| 11 | } |
| 12 | |
| 13 | bool AnnotationList::isModified() { |
| 14 | for (std::vector<std::shared_ptr<Annotation> >::iterator it = _annotations.begin(); it != _annotations.end(); ++it) { |
| 15 | if ((*it)->isModified()) { |
| 16 | return true; |
| 17 | } |
| 18 | } |
| 19 | for (std::vector<std::shared_ptr<AnnotationGroup> >::iterator it = _groups.begin(); it != _groups.end(); ++it) { |
| 20 | if ((*it)->isModified()) { |
| 21 | return true; |
| 22 | } |
| 23 | } |
| 24 | return false; |
| 25 | } |
| 26 | |
| 27 | void AnnotationList::resetModifiedStatus() { |
| 28 | for (std::vector<std::shared_ptr<Annotation> >::iterator it = _annotations.begin(); it != _annotations.end(); ++it) { |