VPTissue Reference Manual
ExplorationWizard.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2011-2016 Universiteit Antwerpen
3  *
4  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
5  * the European Commission - subsequent versions of the EUPL (the "Licence");
6  * You may not use this work except in compliance with the Licence.
7  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the Licence is distributed on an "AS IS" basis,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the Licence for the specific language governing
13  * permissions and limitations under the Licence.
14  */
20 #include "ExplorationWizard.h"
21 
22 #include <memory>
23 #include <iostream>
24 #include <sstream>
25 #include <fstream>
26 #include <functional>
27 
28 
29 #include <algorithm>
30 #include <cctype>
31 #include <locale>
32 
33 #include <boost/property_tree/exceptions.hpp>
34 #include <boost/property_tree/xml_parser.hpp>
35 #include <QComboBox>
36 #include <QDoubleValidator>
37 #include <QFileDialog>
38 #include <QFormLayout>
39 #include <QLabel>
40 #include <QLineEdit>
41 #include <QListView>
42 #include <QListWidget>
43 #include <QMessageBox>
44 #include <QPushButton>
45 #include <QRadioButton>
46 #include <QRegExp>
47 #include <QRegExpValidator>
48 #include <QSettings>
49 #include <QString>
50 #include <QVBoxLayout>
51 
56 
57 #include "FilesPage.h"
58 #include "ParamPage.h"
59 #include "PathPage.h"
60 #include "SendPage.h"
61 #include "StartPage.h"
62 #include "TemplateFilePage.h"
63 
64 
65 using namespace boost::property_tree;
66 using namespace boost::property_tree::xml_parser;
67 
68 namespace SimPT_Parex {
69 
70 /*
71  * ExplorationSetUp - Wizard
72  */
73 ExplorationWizard::ExplorationWizard(const ptree &preferences, const std::shared_ptr<const Exploration> &lastExploration, QWidget *parent)
74  : QWizard(parent), m_exploration(), m_preferences(preferences)
75 {
76  setPage(Page_Start, new StartPage(m_exploration, lastExploration));
77  setPage(Page_Path, new PathPage(m_exploration, m_preferences));
78  setPage(Page_Template_Path, new TemplateFilePage(m_exploration, m_preferences));
79 
80  setPage(Page_Param, new ParamPage(m_exploration));
81  setPage(Page_Files, new FilesPage(m_exploration, m_preferences));
82  setPage(Page_Send, new SendPage(m_exploration));
83 }
84 
85 std::shared_ptr<const Exploration> ExplorationWizard::GetExploration()
86 {
87  return m_exploration;
88 }
89 
90 
91 } // namespace
Interface for PathPage.
Interface for TemplateFilePage.
Interface for ExplorationWizard.
std::shared_ptr< const Exploration > GetExploration()
Returns the Exploration generated from the wizard.
Interface for FilesPage.
Select type of new exploration.
Definition: StartPage.h:39
Select the sim data input file.
Definition: PathPage.h:39
Interface for StartPage.
Select the input template data file.
Give a name for the exploration and send the exploration.
Definition: SendPage.h:39
Interface for ParamPage.
Interface for RangeSweep.
see the online Qt documentation
Set the parameters for the exploration.
Definition: ParamPage.h:39
see the online Qt documentation
Interface for ListSweep.
Namespace for SimPT parameter explorer package.
Definition: Client.cpp:52
Page to allow file selection.
Definition: FilesPage.h:39
Interface for ParameterExploration.
Interface for SendPage.
Interface for FileExploration.