Ask which units energies are in, and which to show them in.
More...
#include <energyunitsdialog.h>
<avogadro/qtgui/energyunitsdialog.h>
Reads as a sentence – "Convert energies from Hartree to kcal/mol" – and on OK writes both to EnergyUnits, so everything showing an energy follows.
◆ EnergyUnitsDialog()
| EnergyUnitsDialog |
( |
QWidget * | parent = nullptr, |
|
|
const Core::Molecule * | molecule = nullptr ) |
|
explicit |
- Parameters
-
| molecule | the molecule whose energies are on screen, when there is one. A file that records what units it used answers the first question already, so that half of the dialog reports it rather than asking. |
◆ getUnits()
| bool getUnits |
( |
QWidget * | parent = nullptr, |
|
|
const Core::Molecule * | molecule = nullptr ) |
|
static |
Show the dialog for parent and apply what the user chose.
- Returns
- true when they accepted it.
◆ accept()
The documentation for this class was generated from the following file: