Debian Codegraph @

avogadro/qtplugins/propertytables/propertytables.h

raw
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 AVOGADRO_QTPLUGINS_PROPERTYTABLES_H
7 #define AVOGADRO_QTPLUGINS_PROPERTYTABLES_H
8
9 #include <avogadro/qtgui/extensionplugin.h>
10 namespace Avogadro {
11
12 namespace Core {
13 class Molecule;
14 }
15
16 namespace QtPlugins {
17
18 /**
19 * @brief The PropertyTables class is an extension to launch
20 * a "property table" views of the molecule.
21 */
22 class PropertyTables : public Avogadro::QtGui::ExtensionPlugin
23 {
24 Q_OBJECT
25 public:
26 explicit PropertyTables(QObject* parent_ = nullptr);
27 ~PropertyTables() override;
28
29 QString name() const override { return tr("PropertyTables"); }
30 QString description() const override;
31 QList<QAction*> actions() const override;
32 QStringList menuPath(QAction*) const override;
33
34 public slots:
35 void setMolecule(QtGui::Molecule* mol) override;
36 void updateActions();
37
38 private slots:
39 void showDialog();
40
41 private:
42 QList<QAction*> m_actions;
43 QtGui::Molecule* m_molecule;
44 };
45
46 } // namespace QtPlugins
47 } // namespace Avogadro
48
49 #endif // AVOGADRO_QTPLUGINS_PROPERTYTABLES_H