| 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_YAEHMOPBANDDIALOG_H |
| 7 |
#define AVOGADRO_QTPLUGINS_YAEHMOPBANDDIALOG_H |
| 8 |
|
| 9 |
#include "yaehmopsettings.h" |
| 10 |
|
| 11 |
#include <QDialog> |
| 12 |
|
| 13 |
#include <memory> |
| 14 |
|
| 15 |
namespace Avogadro::QtPlugins { |
| 16 |
|
| 17 |
namespace Ui { |
| 18 |
class BandDialog; |
| 19 |
} |
| 20 |
|
| 21 |
/** |
| 22 |
* @brief Dialog to perform a band structure calculation with yaehmop. |
| 23 |
*/ |
| 24 |
class BandDialog : public QDialog |
| 25 |
{ |
| 26 |
Q_OBJECT |
| 27 |
|
| 28 |
public: |
| 29 |
explicit BandDialog(QWidget* parent, YaehmopSettings& yaehmopSettings); |
| 30 |
~BandDialog() override; |
| 31 |
|
| 32 |
public slots: |
| 33 |
int exec() override; |
| 34 |
|
| 35 |
protected slots: |
| 36 |
void accept() override; |
| 37 |
|
| 38 |
private: |
| 39 |
std::unique_ptr<Ui::BandDialog> m_ui; |
| 40 |
YaehmopSettings& m_yaehmopSettings; |
| 41 |
}; |
| 42 |
|
| 43 |
} // namespace Avogadro::QtPlugins |
| 44 |
|
| 45 |
#endif // AVOGADRO_QTPLUGINS_YAEHMOPBANDDIALOG_H |