-
-
Notifications
You must be signed in to change notification settings - Fork 165
/
molecularproperties.h
51 lines (39 loc) · 1.33 KB
/
molecularproperties.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/******************************************************************************
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_MOLECULARPROPERTIES_H
#define AVOGADRO_QTPLUGINS_MOLECULARPROPERTIES_H
#include <avogadro/qtgui/extensionplugin.h>
namespace Avogadro {
namespace Core {
class Molecule;
}
namespace QtPlugins {
class MolecularPropertiesDialog;
/**
* @brief The MolecularProperties class is an extension to launch
* a MolecularPropertiesDialog.
*/
class MolecularProperties : public Avogadro::QtGui::ExtensionPlugin
{
Q_OBJECT
public:
explicit MolecularProperties(QObject* parent_ = nullptr);
~MolecularProperties() override;
QString name() const override { return tr("Molecular Properties"); }
QString description() const override;
QList<QAction*> actions() const override;
QStringList menuPath(QAction*) const override;
public slots:
void setMolecule(QtGui::Molecule* mol) override;
private slots:
void showDialog();
private:
QAction* m_action;
MolecularPropertiesDialog* m_dialog;
QtGui::Molecule* m_molecule;
};
} // namespace QtPlugins
} // namespace Avogadro
#endif // AVOGADRO_QTPLUGINS_MOLECULARPROPERTIESEXTENSION_H