Skip to content
Commit 363a9f5d authored by Christian Schärf's avatar Christian Schärf Committed by Yuri Chornoivan
Browse files

Molecular editor: Enable loading molecules in other formats than cml

Summary:
This patch implements loading Molecules in the XYZ and PDB formats by instantiating the appropriate subclass of Avogadro::Io::FileFormat
based on the file ending.

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

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,
this can be worked around by constructing a std::unique_ptr with raw new.

Reviewers: #kalzium, yurchor

Reviewed By: yurchor

Subscribers: aacid, yurchor, kde-edu

Tags: #kde_edu, #kalzium

Differential Revision: https://phabricator.kde.org/D25648
parent 9fb18f8e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment