Go to the documentation of this file.00001 #include <QVBoxLayout>
00002 #include <rqt_mrta/config/application/rqt_mrta_package.h>
00003 #include "rqt_mrta/define_application_widget.h"
00004 #include "rqt_mrta/define_application_wizard_page.h"
00005 #include "rqt_mrta/ui_define_application_widget.h"
00006
00007 namespace rqt_mrta
00008 {
00009 DefineApplicationWizardPage::DefineApplicationWizardPage(
00010 NewApplicationWizard* parent)
00011 : NewApplicationWizardPage(parent, "Define the Application")
00012 {
00013 DefineApplicationWidget* widget = new DefineApplicationWidget(
00014 this, parent->getApplicationConfig(), parent->getPackageConfig());
00015 registerField("name*", widget->ui_->name_line_edit);
00016 registerField("package*", widget->ui_->package_line_edit);
00017 registerField("workspace_url*", widget->ui_->workspace_package_line_edit);
00018 registerField("version*", widget->ui_->version_line_edit);
00019 registerField("description*", widget->ui_->description_plain_text_edit);
00020 registerField("maintainer*", widget->ui_->maintainer_line_edit);
00021 registerField("maintainer_email*", widget->ui_->maintainer_email_line_edit);
00022 registerField("license*", widget->ui_->license_line_edit);
00023 registerField("run_depends", widget->ui_->run_depends_plain_text_edit);
00024 connect(package_config_, SIGNAL(changed()), this, SIGNAL(completeChanged()));
00025 setWidget(widget);
00026 }
00027
00028 DefineApplicationWizardPage::~DefineApplicationWizardPage() {}
00029
00030 void DefineApplicationWizardPage::initializePage()
00031 {
00032 application_config_->reset();
00033 package_config_->reset();
00034 architecture_config_->reset();
00035 }
00036
00037 bool DefineApplicationWizardPage::isComplete() const
00038 {
00039 return package_config_->validate().isEmpty();
00040 }
00041 }