/****************************************************************************** This source file is part of the Avogadro project. This source code is released under the 3-Clause BSD License, (see "LICENSE"). ******************************************************************************/ #ifndef AVOGADRO_QTPLUGINS_CONSTRAINTS_H #define AVOGADRO_QTPLUGINS_CONSTRAINTS_H #include #include #include class QAction; namespace Avogadro { namespace QtPlugins { class ConstraintsDialog; class ConstraintsExtension : public QtGui::ExtensionPlugin { Q_OBJECT public: explicit ConstraintsExtension(QObject* parent = nullptr); ~ConstraintsExtension() override; QString name() const override { return tr("Constraints"); } QString description() const override { return tr("Set constraints for geometry optimizations"); } QList actions() const override; QStringList menuPath(QAction*) const override; void setMolecule(QtGui::Molecule* mol) override; private slots: void openDialog(); private: QList m_actions; QtGui::Molecule* m_molecule = nullptr; ConstraintsDialog* m_dialog = nullptr; }; } // namespace QtPlugins } // namespace Avogadro #endif // AVOGADRO_QTPLUGINS_CONSTRAINTS_H