/****************************************************************************** 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_LAMMPSINPUT_H #define AVOGADRO_QTPLUGINS_LAMMPSINPUT_H #include class QAction; class QDialog; namespace Avogadro { namespace Io { class FileFormat; } namespace QtPlugins { class LammpsInputDialog; class LammpsInput : public QtGui::ExtensionPlugin { Q_OBJECT public: explicit LammpsInput(QObject* parent = nullptr); ~LammpsInput() override; QString name() const override { return tr("LAMMPS input"); } QString description() const override { return tr("Generate input for LAMMPS."); } QList actions() const override; QStringList menuPath(QAction*) const override; void setMolecule(QtGui::Molecule* mol) override; public slots: /** * Emitted when the user requests that a job's output be loaded in Avogadro. */ // void openJobOutput(const MoleQueue::JobObject& job); bool readMolecule(QtGui::Molecule& mol) override; private slots: void menuActivated(); private: QAction* m_action; QtGui::Molecule* m_molecule; LammpsInputDialog* m_dialog; const Io::FileFormat* m_outputFormat; QString m_outputFileName; }; } // namespace QtPlugins } // namespace Avogadro #endif // AVOGADRO_QTPLUGINS_LAMMPSINPUT_H