VPTissue Reference Manual
TemplateFilePage.h
Go to the documentation of this file.
1 #ifndef SIMPT_PAREX_TEMPLATE_FILE_PAGE_H_INCLUDED
2 #define SIMPT_PAREX_TEMPLATE_FILE_PAGE_H_INCLUDED
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
22 #include <QWizard>
23 #include <QWizardPage>
24 #include <boost/property_tree/ptree.hpp>
25 #include <map>
26 
27 class QComboBox;
28 class QLineEdit;
29 class QListWidget;
30 class QRadioButton;
31 
32 namespace SimPT_Parex {
33 
34 class Exploration;
35 
40 {
41  Q_OBJECT
42 public:
49  TemplateFilePage(std::shared_ptr<Exploration>& exploration, boost::property_tree::ptree& preferences);
50 
54  virtual ~TemplateFilePage() {}
55 
56 
57 private slots:
61  void BrowseLeafFile();
62 
63 
67  void BrowseParamsFile();
68 
69 private:
70  enum { Page_Start, Page_Path, Page_Param, Page_Files, Page_Send, Page_Template_Path };
71 
72 private:
73  virtual bool isComplete() const;
74  virtual bool validatePage();
75  virtual int nextId() const { return Page_Send; }
76 
77 private:
78  std::shared_ptr<Exploration>& m_exploration;
79  boost::property_tree::ptree& m_preferences;
80  boost::property_tree::ptree m_ptree;
81  std::vector<std::string> m_param_names;
82  std::vector< std::vector<std::string>> m_params;
83  QLineEdit* m_file_path;
84  QLineEdit* m_params_path;
85 };
86 
87 } // namespace
88 
89 #endif // end_of_include_guard
virtual ~TemplateFilePage()
Destructor.
see the online Qt documentation
Select the input template data file.
TemplateFilePage(std::shared_ptr< Exploration > &exploration, boost::property_tree::ptree &preferences)
Constructor.
Namespace for SimPT parameter explorer package.
Definition: Client.cpp:52