38 #include <QVBoxLayout>
39 #include <QPushButton>
40 #include <QMessageBox>
41 #include <QApplication>
56 QVBoxLayout* layout =
new QVBoxLayout();
57 layout->setAlignment(Qt::AlignTop);
61 HeaderWidget*
header =
new HeaderWidget(
"Specify Author Information",
62 "Input contact information of the author and initial maintainer of the "
63 "generated package. catkin requires valid details in the package's "
66 layout->addWidget(header);
68 QLabel* name_title =
new QLabel(
this);
69 name_title->setText(
"Name of the maintainer of this MoveIt configuration:");
70 layout->addWidget(name_title);
72 name_edit_ =
new QLineEdit(
this);
73 connect(name_edit_, SIGNAL(editingFinished()),
this, SLOT(editedName()));
74 layout->addWidget(name_edit_);
76 QLabel* email_title =
new QLabel(
this);
77 email_title->setText(
"Email of the maintainer of this MoveIt configuration:");
78 layout->addWidget(email_title);
80 email_edit_ =
new QLineEdit(
this);
81 connect(email_edit_, SIGNAL(editingFinished()),
this, SLOT(editedEmail()));
82 layout->addWidget(email_edit_);
85 this->setLayout(layout);
91 void AuthorInformationWidget::focusGiven()
94 this->name_edit_->setText(QString::fromStdString(config_data_->author_name_));
95 this->email_edit_->setText(QString::fromStdString(config_data_->author_email_));
98 void AuthorInformationWidget::editedName()
100 config_data_->author_name_ = this->name_edit_->text().toStdString();
101 config_data_->changes |= MoveItConfigData::AUTHOR_INFO;
104 void AuthorInformationWidget::editedEmail()
106 config_data_->author_email_ = this->email_edit_->text().toStdString();
107 config_data_->changes |= MoveItConfigData::AUTHOR_INFO;