27 #include <boost/property_tree/exceptions.hpp>
28 #include <boost/property_tree/xml_parser.hpp>
30 #include <QDoubleValidator>
31 #include <QFileDialog>
32 #include <QFormLayout>
36 #include <QListWidget>
37 #include <QMessageBox>
38 #include <QPushButton>
39 #include <QRadioButton>
41 #include <QRegExpValidator>
44 #include <QVBoxLayout>
60 SendPage::SendPage(
const std::shared_ptr<Exploration> &exploration)
61 : m_exploration(exploration)
63 setTitle(
"Send exploration");
64 setSubTitle(
"Give a name for the exploration.");
66 QVBoxLayout* layout =
new QVBoxLayout;
68 m_name =
new QLineEdit;
69 QRegExpValidator* regex =
new QRegExpValidator(QRegExp(
"[A-Za-z\\d][A-Za-z\\d\\s]*"));
70 m_name->setValidator(regex);
71 layout->addWidget(m_name);
76 setButtonText(QWizard::FinishButton,
"Send");
78 connect(m_name, SIGNAL(textChanged(
const QString&)),
this, SIGNAL(completeChanged()));
82 void SendPage::initializePage()
84 m_name->setText(QString::fromStdString(m_exploration->GetName()));
89 bool SendPage::isComplete()
const
91 return m_name->text() !=
"";
95 bool SendPage::validatePage()
97 m_exploration->SetName(m_name->text().toStdString());
Interface for RangeSweep.
Namespace for SimPT parameter explorer package.
Interface for ParameterExploration.
Interface for FileExploration.