Go to the documentation of this file.00001 #include "rqt_mrta/new_architecture_wizard.h"
00002 #include "rqt_mrta/register_architecture_wizard_page.h"
00003 #include "utilities/exception.h"
00004
00005 namespace rqt_mrta
00006 {
00007
00008 NewArchitectureWizard::NewArchitectureWizard(QWidget* parent, Config* config,
00009 Qt::WindowFlags flags)
00010 : QWizard(parent, flags), config_(config)
00011 {
00012 if (!config_)
00013 {
00014 throw utilities::Exception(
00015 "The architecture configuration must not be null.");
00016 }
00017 setPage(RegisterArchitecture, new RegisterArchitectureWizardPage(this));
00018 setWindowTitle("New architecture ...");
00019 connect(this, SIGNAL(accepted()), this, SLOT(generate()));
00020 connect(this, SIGNAL(rejected()), this, SLOT(resetConfig()));
00021 }
00022
00023 NewArchitectureWizard::~NewArchitectureWizard() { config_ = NULL; }
00024
00025 Config* NewArchitectureWizard::getConfig() const { return config_; }
00026
00027 void NewArchitectureWizard::generate() {}
00028
00029 void NewArchitectureWizard::resetConfig() { config_->reset(); }
00030 }