7 #include "uiMedDataQt/widget/EquipmentEditor.hpp" 9 #include <fwMedData/Equipment.hpp> 10 #include <fwMedData/Series.hpp> 12 #include <boost/algorithm/string.hpp> 14 #include <QFormLayout> 28 m_institutionName =
new QLineEdit();
30 QFormLayout* layout =
new QFormLayout();
32 layout->addRow(tr(
"Institution name"), m_institutionName);
34 QGroupBox* group =
new QGroupBox(tr(
"Equipment"));
35 group->setLayout(layout);
36 QVBoxLayout* topLayout =
new QVBoxLayout();
37 topLayout->addWidget(group);
38 this->setLayout(topLayout);
54 ::fwMedData::Equipment::sptr equipment = m_series->getEquipment();
55 SLM_ASSERT(
"Given series equipment is null", equipment);
57 m_institutionName->setText(QString::fromStdString(equipment->getInstitutionName()).trimmed());
63 ::fwMedData::Equipment::sptr equipment = ::fwMedData::Equipment::New();
64 equipment->setInstitutionName(m_institutionName->text().trimmed().toStdString());
The namespace uiMedDataQt contains editors for medical data.
Holds equipment information.
#define SLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...
Holds series information.