Debian Codegraph @

avogadro/qtplugins/lammpsinput/lammpsinput.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_LAMMPSINPUT_H
7 #define AVOGADRO_QTPLUGINS_LAMMPSINPUT_H
8
9 #include <avogadro/qtgui/extensionplugin.h>
10
11 class QAction;
12 class QDialog;
13
14 namespace Avogadro {
15 namespace Io {
16 class FileFormat;
17 }
18
19 namespace QtPlugins {
20
21 class LammpsInputDialog;
22
23 class LammpsInput : public QtGui::ExtensionPlugin
24 {
25 Q_OBJECT
26
27 public:
28 explicit LammpsInput(QObject* parent = nullptr);
29 ~LammpsInput() override;
30
31 QString name() const override { return tr("LAMMPS input"); }
32
33 QString description() const override
34 {
35 return tr("Generate input for LAMMPS.");
36 }
37
38 QList<QAction*> actions() const override;
39
40 QStringList menuPath(QAction*) const override;
41
42 void setMolecule(QtGui::Molecule* mol) override;
43
44 public slots:
45 /**
46 * Emitted when the user requests that a job's output be loaded in Avogadro.
47 */
48 // void openJobOutput(const MoleQueue::JobObject& job);
49
50 bool readMolecule(QtGui::Molecule& mol) override;
51
52 private slots:
53 void menuActivated();
54
55 private:
56 QAction* m_action;
57 QtGui::Molecule* m_molecule;
58 LammpsInputDialog* m_dialog;
59 const Io::FileFormat* m_outputFormat;
60 QString m_outputFileName;
61 };
62 } // namespace QtPlugins
63 } // namespace Avogadro
64
65 #endif // AVOGADRO_QTPLUGINS_LAMMPSINPUT_H