<table><tr><td style="">christianschaerf created this revision.<br />christianschaerf added a reviewer: Kalzium.<br />christianschaerf added a project: Kalzium.<br />Herald added a project: KDE Edu.<br />Herald added a subscriber: kde-edu.<br />christianschaerf requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D25648">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This patch implements loading Molecules in the XYZ and PDB formats by instantiating the appropriate subclass of Avogadro::Io::FileFormat<br />
based on the file ending.</p>

<p>Additionally, some error handling code was added so Kalzium does not crash when loading a molecule fails.</p>

<p>Note that this patch requires C++14 since make_unique is used. Should it, for some reason, not be possible to include C++14-only code into Kalzium,<br />
this can be worked around by constructing a std::unique_ptr with raw new.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R326 Kalzium</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25648">https://phabricator.kde.org/D25648</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>compoundviewer/CMakeLists.txt<br />
compoundviewer/iowrapper.cpp<br />
compoundviewer/iowrapper.h<br />
src/tools/moleculeview.cpp</div></div></div><br /><div><strong>To: </strong>christianschaerf, Kalzium<br /><strong>Cc: </strong>kde-edu, christianschaerf, narvaez, apol<br /></div>