| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
#ifndef AVOGADRO_QTPLUGINS_VOLUMESCALINGDIALOG_H |
| 7 |
#define AVOGADRO_QTPLUGINS_VOLUMESCALINGDIALOG_H |
| 8 |
|
| 9 |
#include <QtWidgets/QDialog> |
| 10 |
|
| 11 |
namespace Avogadro { |
| 12 |
namespace QtPlugins { |
| 13 |
|
| 14 |
namespace Ui { |
| 15 |
class VolumeScalingDialog; |
| 16 |
} |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
class VolumeScalingDialog : public QDialog |
| 23 |
{ |
| 24 |
Q_OBJECT |
| 25 |
|
| 26 |
public: |
| 27 |
explicit VolumeScalingDialog(QWidget* parent = nullptr); |
| 28 |
~VolumeScalingDialog() override; |
| 29 |
|
| 30 |
void setCurrentVolume(double vol); |
| 31 |
double newVolume() const; |
| 32 |
bool transformAtoms() const; |
| 33 |
|
| 34 |
private slots: |
| 35 |
void volumeEdited(); |
| 36 |
void factorEdited(); |
| 37 |
|
| 38 |
private: |
| 39 |
Ui::VolumeScalingDialog* m_ui; |
| 40 |
double m_currentVolume; |
| 41 |
}; |
| 42 |
|
| 43 |
} |
| 44 |
} |
| 45 |
|
| 46 |
#endif |