19 #include <ctkXnatProject.h>
36 void QmitkXnatProjectWidget::Init()
41 if (m_Mode == Mode::INFO)
55 m_Controls.nameLineEdit->setText(m_Project->property(
"name"));
56 m_Controls.descriptionLineEdit->setText(m_Project->property(
"description"));
57 if (!m_Project->property(
"pi_lastname").isEmpty())
59 m_Controls.piLineEdit->setText(m_Project->property(
"pi_lastname") +
", " + m_Project->property(
"pi_firstname"));
65 if (m_Mode == Mode::CREATE)
69 m_Project->setProperty(
"ID",
m_Controls.idLineEdit->text());
71 if (!
m_Controls.nameLineEdit->text().isEmpty())
73 m_Project->setProperty(
"name",
m_Controls.nameLineEdit->text());
75 if (!
m_Controls.descriptionLineEdit->text().isEmpty())
77 m_Project->setProperty(
"description",
m_Controls.descriptionLineEdit->text());