VPTissue Reference Manual
CopyAttributesDialog.h
Go to the documentation of this file.
1 #ifndef SIMPT_EDITOR_COPY_ATTRIBUTES_DIALOG_H_INCLUDED
2 #define SIMPT_EDITOR_COPY_ATTRIBUTES_DIALOG_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 <boost/property_tree/ptree.hpp>
23 #include <QDialog>
24 #include <QStandardItemModel>
25 #include <QTableView>
26 
27 namespace SimPT_Editor {
28 
33 {
34 public:
41  CopyAttributesDialog(const boost::property_tree::ptree& pt, QWidget* parent = nullptr);
42 
46  virtual ~CopyAttributesDialog();
47 
54  boost::property_tree::ptree SelectedAttributes();
55 private:
62  void InitializeModel(const boost::property_tree::ptree& pt);
63 
67  void SetupGui();
68 
72  QTableView* m_table_view;
73  QStandardItemModel* m_model;
74 };
75 
76 } // namespace
77 
78 #endif // end-of-include-guard
Namespace for SimPT tissue editor package.
Definition: Cell.h:32
Dialog for selecting the attributes we want to copy.
boost::property_tree::ptree SelectedAttributes()
Get the selected attributes.
see the online Qt documentation
CopyAttributesDialog(const boost::property_tree::ptree &pt, QWidget *parent=nullptr)
Constructor.
see the online Qt documentation