Skip to content
Snippets Groups Projects
Commit f2c2a929 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Units added for GUI's wavelength and beam angles

parent 937c86dc
No related branches found
No related tags found
No related merge requests found
......@@ -25,9 +25,9 @@
#include <QDebug>
const QString BeamItem::P_INTENSITY = "Intensity [1/s]";
const QString BeamItem::P_WAVELENGTH = "Wavelength [nm]";
const QString BeamItem::P_INCLINATION_ANGLE = "Inclination Angle [deg]";
const QString BeamItem::P_AZIMUTHAL_ANGLE = "Azimuthal Angle [deg]";
const QString BeamItem::P_WAVELENGTH = "Wavelength";
const QString BeamItem::P_INCLINATION_ANGLE = "Inclination Angle";
const QString BeamItem::P_AZIMUTHAL_ANGLE = "Azimuthal Angle";
BeamItem::BeamItem(ParameterizedItem *parent)
: ParameterizedItem(Constants::BeamType, parent)
......
......@@ -79,12 +79,12 @@ void BeamEditorWidget::setBeamItem(BeamItem *beamItem)
m_intensityEditor->addItemProperty(m_beamItem, BeamItem::P_INTENSITY);
ParameterizedItem *wavelengthItem = m_beamItem->getSubItems()[BeamItem::P_WAVELENGTH];
m_wavelengthEditor->addItemProperties(wavelengthItem, QString("Wavelength"), AwesomePropertyEditor::INSERT_AFTER);
m_wavelengthEditor->addItemProperties(wavelengthItem, QString("Wavelength [nm]"), AwesomePropertyEditor::INSERT_AFTER);
ParameterizedItem *inclinationAngleItem = m_beamItem->getSubItems()[BeamItem::P_INCLINATION_ANGLE];
m_inclinationAngleEditor->addItemProperties(inclinationAngleItem, QString("Inclination angle"), AwesomePropertyEditor::INSERT_AFTER);
m_inclinationAngleEditor->addItemProperties(inclinationAngleItem, QString("Inclination angle [deg]"), AwesomePropertyEditor::INSERT_AFTER);
ParameterizedItem *azimuthalAngleItem = m_beamItem->getSubItems()[BeamItem::P_AZIMUTHAL_ANGLE];
m_azimuthalAngleEditor->addItemProperties(azimuthalAngleItem, QString("Azimuthal angle"), AwesomePropertyEditor::INSERT_AFTER);
m_azimuthalAngleEditor->addItemProperties(azimuthalAngleItem, QString("Azimuthal angle [deg]"), AwesomePropertyEditor::INSERT_AFTER);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment