| 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_VIBRATIONDIALOG_H |
| 7 |
#define AVOGADRO_QTPLUGINS_VIBRATIONDIALOG_H |
| 8 |
|
| 9 |
#include <QtWidgets/QDialog> |
| 10 |
|
| 11 |
#include <avogadro/qtgui/molecule.h> |
| 12 |
|
| 13 |
#include <QtCore/QModelIndex> |
| 14 |
|
| 15 |
namespace Ui { |
| 16 |
class VibrationDialog; |
| 17 |
} |
| 18 |
|
| 19 |
namespace Avogadro { |
| 20 |
namespace QtPlugins { |
| 21 |
|
| 22 |
/** |
| 23 |
* @brief The VibrationDialog presents vibrational modes. |
| 24 |
*/ |
| 25 |
|
| 26 |
class VibrationDialog : public QDialog |
| 27 |
{ |
| 28 |
Q_OBJECT |
| 29 |
|
| 30 |
public: |
| 31 |
explicit VibrationDialog(QWidget* parent = nullptr, |
| 32 |
Qt::WindowFlags f = Qt::WindowFlags()); |
| 33 |
~VibrationDialog() override; |
| 34 |
|
| 35 |
void setMolecule(QtGui::Molecule* molecule); |
| 36 |
int currentMode() const; |
| 37 |
|
| 38 |
protected slots: |
| 39 |
void selectRow(QModelIndex); |
| 40 |
void changeAnimation(); |
| 41 |
|
| 42 |
signals: |
| 43 |
void modeChanged(int mode); |
| 44 |
void amplitudeChanged(int amplitude); |
| 45 |
void startAnimation(); |
| 46 |
void stopAnimation(); |
| 47 |
|
| 48 |
private: |
| 49 |
Ui::VibrationDialog* m_ui; |
| 50 |
}; |
| 51 |
|
| 52 |
} // End namespace QtPlugins |
| 53 |
} // End namespace Avogadro |
| 54 |
|
| 55 |
#endif // AVOGADRO_QTPLUGINS_VibrationDialog_H |