19 #include <ctkXnatSubject.h>
37 void QmitkXnatSubjectWidget::Init()
42 if (m_Mode == Mode::INFO)
55 if (m_Subject->parent())
57 m_Controls.breadcrumbLabel->setText(
"Project:" + m_Subject->parent()->property(
"name"));
59 m_Controls.labelLineEdit->setText(m_Subject->property(
"label"));
60 m_Controls.birthdateLineEdit->setText(m_Subject->property(
"dob"));
61 m_Controls.genderLineEdit->setText(m_Subject->property(
"gender"));
62 m_Controls.handednessLineEdit->setText(m_Subject->property(
"handedness"));
63 m_Controls.heightLineEdit->setText(m_Subject->property(
"height"));
64 m_Controls.weightLineEdit->setText(m_Subject->property(
"weight"));
71 if (!
m_Controls.labelLineEdit->text().isEmpty())
73 m_Subject->setProperty(
"label",
m_Controls.labelLineEdit->text());
75 if (!
m_Controls.birthdateLineEdit->text().isEmpty())
77 m_Subject->setProperty(
"dob",
m_Controls.birthdateLineEdit->text());
79 if (!
m_Controls.genderLineEdit->text().isEmpty())
81 m_Subject->setProperty(
"gender",
m_Controls.genderLineEdit->text());
83 if (!
m_Controls.handednessLineEdit->text().isEmpty())
85 m_Subject->setProperty(
"handedness",
m_Controls.handednessLineEdit->text());
87 if (!
m_Controls.heightLineEdit->text().isEmpty())
89 m_Subject->setProperty(
"height",
m_Controls.heightLineEdit->text());
91 if (!
m_Controls.weightLineEdit->text().isEmpty())
93 m_Subject->setProperty(
"weight",
m_Controls.weightLineEdit->text());