| 1 |
/****************************************************************************** |
| 2 |
This source file is part of the Avogadro project. |
| 3 |
This source code is released under the 3-Clause BSD License, (see "LICENSE"). |
| 4 |
******************************************************************************/ |
| 5 |
|
| 6 |
#ifndef QTAIMEXTENSION_H |
| 7 |
#define QTAIMEXTENSION_H |
| 8 |
|
| 9 |
#include <avogadro/qtgui/extensionplugin.h> |
| 10 |
|
| 11 |
#include <avogadro/core/avogadrocore.h> |
| 12 |
|
| 13 |
namespace Avogadro::QtPlugins { |
| 14 |
|
| 15 |
class QTAIMExtension : public QtGui::ExtensionPlugin |
| 16 |
{ |
| 17 |
Q_OBJECT |
| 18 |
public: |
| 19 |
explicit QTAIMExtension(QObject* parent = nullptr); |
| 20 |
~QTAIMExtension() override = default; |
| 21 |
|
| 22 |
QString name() const override { return tr("QTAIM"); } |
| 23 |
QString description() const override { return tr("QTAIM extension"); } |
| 24 |
QList<QAction*> actions() const override; |
| 25 |
QStringList menuPath(QAction* action) const override; |
| 26 |
|
| 27 |
public slots: |
| 28 |
void setMolecule(QtGui::Molecule* molecule) override; |
| 29 |
|
| 30 |
private slots: |
| 31 |
void triggered(); |
| 32 |
|
| 33 |
private: |
| 34 |
QList<QAction*> m_actions; |
| 35 |
QtGui::Molecule* m_molecule; |
| 36 |
}; |
| 37 |
|
| 38 |
} // end namespace Avogadro::QtPlugins |
| 39 |
|
| 40 |
#endif // QTAIMEXTENSION_H |