00001 #include <QVBoxLayout> 00002 #include "rqt_mrta/define_robots_widget.h" 00003 #include "rqt_mrta/define_robots_wizard_page.h" 00004 #include "rqt_mrta/ui_define_robots_widget.h" 00005 00006 namespace rqt_mrta 00007 { 00008 DefineRobotsWizardPage::DefineRobotsWizardPage(NewApplicationWizard* parent) 00009 : NewApplicationWizardPage(parent, 00010 "Define the Application Robots and Tasks") 00011 { 00012 DefineRobotsWidget* widget = 00013 new DefineRobotsWidget(this, application_config_); 00014 connect(widget, SIGNAL(changed()), this, SIGNAL(completeChanged())); 00015 setWidget(widget); 00016 } 00017 00018 DefineRobotsWizardPage::~DefineRobotsWizardPage() {} 00019 00020 void DefineRobotsWizardPage::cleanupPage() { architecture_config_->reset(); } 00021 00022 bool DefineRobotsWizardPage::isComplete() const 00023 { 00024 return static_cast<DefineRobotsWidget*>(widget_)->validate().isEmpty(); 00025 } 00026 }