00001 #include "rqt_mrta/register_architecture_widget.h" 00002 #include "rqt_mrta/register_architecture_wizard_page.h" 00003 #include "rqt_mrta/ui_register_architecture_widget.h" 00004 00005 namespace rqt_mrta 00006 { 00007 RegisterArchitectureWizardPage::RegisterArchitectureWizardPage( 00008 NewArchitectureWizard* parent) 00009 : NewArchitectureWizardPage(parent, "Register the Architecture") 00010 { 00011 RegisterArchitectureWidget* widget = 00012 new RegisterArchitectureWidget(this, parent->getConfig()); 00013 registerField("package*", widget->ui_->architecture_line_edit); 00014 registerField("robots_type*", widget->ui_->robots_type_combo_box); 00015 registerField("tasks_type*", widget->ui_->tasks_type_combo_box); 00016 registerField("allocations_type*", widget->ui_->allocations_type_combo_box); 00017 connect(widget, SIGNAL(changed()), this, SLOT(updateComplete())); 00018 } 00019 00020 RegisterArchitectureWizardPage::~RegisterArchitectureWizardPage() {} 00021 00022 bool RegisterArchitectureWizardPage::isComplete() const 00023 { 00024 return widget_ && static_cast<RegisterArchitectureWidget*>(widget_)->validate().isEmpty(); 00025 } 00026 }