AvogadroLibs 2.1.0-20261111
Loading...
Searching...
No Matches
EnergyUnitsDialog Class Reference

Ask which units energies are in, and which to show them in. More...

#include <energyunitsdialog.h>

Inheritance diagram for EnergyUnitsDialog:

Public Member Functions

 EnergyUnitsDialog (QWidget *parent=nullptr, const Core::Molecule *molecule=nullptr)
void accept () override

Static Public Member Functions

static bool getUnits (QWidget *parent=nullptr, const Core::Molecule *molecule=nullptr)

Detailed Description

<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.

Constructor & Destructor Documentation

◆ EnergyUnitsDialog()

EnergyUnitsDialog ( QWidget * parent = nullptr,
const Core::Molecule * molecule = nullptr )
explicit
Parameters
moleculethe 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.

Member Function Documentation

◆ 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()

void accept ( )
override

Write the chosen units to EnergyUnits.


The documentation for this class was generated from the following file: