2 #include "ui_qxrdcalibrantpropertiesdialog.h"
13 setWindowTitle(tr(
"Calibrant %1 Properties (Locked)").arg(
m_Calibrant->get_Name()));
15 m_Name -> setEnabled(
false);
16 m_Description -> setEnabled(
false);
17 m_Symmetry -> setEnabled(
false);
18 m_Symmetry -> setEditable(
false);
19 m_A -> setEnabled(
false);
20 m_B -> setEnabled(
false);
21 m_C -> setEnabled(
false);
22 m_Alpha -> setEnabled(
false);
23 m_Beta -> setEnabled(
false);
24 m_Gamma -> setEnabled(
false);
26 setWindowTitle(tr(
"Calibrant %1 Properties").arg(
m_Calibrant->get_Name()));
29 m_Symmetry -> addItem(
"Hexagonal");
30 m_Symmetry -> addItem(
"R Hexagonal");
31 m_Symmetry -> addItem(
"Simple Cubic");
32 m_Symmetry -> addItem(
"BCC");
33 m_Symmetry -> addItem(
"FCC");
34 m_Symmetry -> addItem(
"Diamond");
38 m_Description -> setText(
m_Calibrant->get_Description());
39 m_Symmetry -> setCurrentIndex(
m_Calibrant->get_Symmetry());
60 m_Calibrant -> set_Description(m_Description -> text());
61 m_Calibrant -> set_Symmetry (m_Symmetry -> currentIndex());
~QxrdCalibrantPropertiesDialog()
QSharedPointer< QxrdCalibrant > QxrdCalibrantPtr
QxrdCalibrantPropertiesDialog(QWidget *parent, QxrdCalibrantPtr cal)
QxrdCalibrantPtr m_Calibrant