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