Skip to content

Commit

Permalink
Move Gaussian and Slater concurrent classes to qtgui for orbital table
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Dec 26, 2024
1 parent f44e222 commit c7e3710
Show file tree
Hide file tree
Showing 15 changed files with 429 additions and 593 deletions.
7 changes: 7 additions & 0 deletions avogadro/io/cjsonformat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,13 @@ bool CjsonFormat::deserialize(std::istream& file, Molecule& molecule,
numArray.push_back(static_cast<unsigned int>(number));
basis->setMolecularOrbitalNumber(numArray);
}
json symmetryLabels = orbitals["symmetries"];
if (symmetryLabels.is_array()) {
std::vector<std::string> symArray;
for (auto& sym : symmetryLabels)
symArray.push_back(sym);
basis->setSymmetryLabels(symArray);
}
json moCoefficients = orbitals["moCoefficients"];
json moCoefficientsA = orbitals["alphaCoefficients"];
json moCoefficientsB = orbitals["betaCoefficients"];
Expand Down
10 changes: 7 additions & 3 deletions avogadro/qtgui/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
if(QT_VERSION EQUAL 6)
find_package(Qt6 COMPONENTS Widgets REQUIRED)
find_package(Qt6 COMPONENTS Widgets Concurrent REQUIRED)
else()
find_package(Qt5 COMPONENTS Widgets REQUIRED)
find_package(Qt5 COMPONENTS Widgets Concurrent REQUIRED)
endif()

# Provide some simple API to find the plugins, scripts, etc.
Expand Down Expand Up @@ -40,6 +40,7 @@ avogadro_headers(QtGui
extensionplugin.h
filebrowsewidget.h
fileformatdialog.h
gaussiansetconcurrent.h
generichighlighter.h
hydrogentools.h
insertfragmentdialog.h
Expand All @@ -62,6 +63,7 @@ avogadro_headers(QtGui
sceneplugin.h
scenepluginmodel.h
scriptloader.h
slatersetconcurrent.h
sortfiltertreeproxymodel.h
toolplugin.h
utilities.h
Expand All @@ -79,6 +81,7 @@ target_sources(QtGui PRIVATE
extensionplugin.cpp
filebrowsewidget.cpp
fileformatdialog.cpp
gaussiansetconcurrent.cpp
generichighlighter.cpp
hydrogentools.cpp
insertfragmentdialog.cpp
Expand All @@ -100,6 +103,7 @@ target_sources(QtGui PRIVATE
sceneplugin.cpp
scenepluginmodel.cpp
scriptloader.cpp
slatersetconcurrent.cpp
sortfiltertreeproxymodel.cpp
toolplugin.cpp
utilities.cpp
Expand All @@ -120,4 +124,4 @@ qt_add_resources(RC_SOURCES ${RCS})
target_sources(QtGui PRIVATE ${RC_SOURCES})

avogadro_add_library(QtGui)
target_link_libraries(QtGui PUBLIC Avogadro::IO Qt::Widgets)
target_link_libraries(QtGui PUBLIC Avogadro::IO Qt::Widgets Qt::Concurrent)
2 changes: 0 additions & 2 deletions avogadro/qtplugins/surfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ if(QT_VERSION EQUAL 6)
endif()

set(surfaces_srcs
gaussiansetconcurrent.cpp
slatersetconcurrent.cpp
surfacedialog.cpp
surfaces.cpp
)
Expand Down
150 changes: 0 additions & 150 deletions avogadro/qtplugins/surfaces/gaussiansetconcurrent.cpp

This file was deleted.

80 changes: 0 additions & 80 deletions avogadro/qtplugins/surfaces/gaussiansetconcurrent.h

This file was deleted.

Loading

1 comment on commit c7e3710

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ERROR: clang-format-diff detected formatting issues. See the artifact for a patch or run clang-format on your branch.

Please sign in to comment.