00001 #include <QVBoxLayout> 00002 #include "rqt_mrta/new_application_wizard_page.h" 00003 00004 namespace rqt_mrta 00005 { 00006 NewApplicationWizardPage::NewApplicationWizardPage(NewApplicationWizard* parent, 00007 const QString& title) 00008 : QWizardPage(parent), application_config_(parent->getApplicationConfig()), 00009 package_config_(parent->getPackageConfig()), 00010 architecture_config_(parent->getArchitectureConfig()), setted_(false) 00011 { 00012 setTitle(title); 00013 } 00014 00015 NewApplicationWizardPage::~NewApplicationWizardPage() 00016 { 00017 architecture_config_ = NULL; 00018 application_config_ = NULL; 00019 package_config_ = NULL; 00020 } 00021 00022 void NewApplicationWizardPage::setWidget(QWidget* widget) 00023 { 00024 if (!setted_) 00025 { 00026 widget_ = widget; 00027 widget_->setParent(this); 00028 QVBoxLayout* layout = new QVBoxLayout(); 00029 layout->addWidget(widget_); 00030 setLayout(layout); 00031 setted_ = true; 00032 } 00033 } 00034 }