Debian Codegraph @

avogadro/qtplugins/crystal/volumescalingdialog.h

raw symbols SCIP
1 /******************************************************************************
2 This source file is part of the MoleQueue project.
3 This source code is released under the 3-Clause BSD License, (see "LICENSE").
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 * @brief The VolumeScalingDialog class provides a dialog with options for
20 * adjusting the volume of a Molecule's UnitCell.
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 } // namespace QtPlugins
44 } // namespace Avogadro
45
46 #endif // AVOGADRO_QTPLUGINS_VOLUMESCALINGDIALOG_H