diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-04-18 19:05:35 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-04-18 19:05:35 -0300 |
commit | b43f89144d6122b3100efb3971c8fa32a3001888 (patch) | |
tree | 6480305acc1c45a4d06b4667aa2d052e9f74e0e1 /Project/ControlElementContainer.cpp | |
parent | 0ec05e0cb396a9ef153d29f605d4a0bbeb0dc7c1 (diff) | |
download | PSP.git-b43f89144d6122b3100efb3971c8fa32a3001888.tar.gz PSP.git-b43f89144d6122b3100efb3971c8fa32a3001888.tar.xz PSP.git-b43f89144d6122b3100efb3971c8fa32a3001888.zip |
Some bugfixes and generalization
Diffstat (limited to 'Project/ControlElementContainer.cpp')
-rw-r--r-- | Project/ControlElementContainer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Project/ControlElementContainer.cpp b/Project/ControlElementContainer.cpp index 0e0e9d4..f5372a8 100644 --- a/Project/ControlElementContainer.cpp +++ b/Project/ControlElementContainer.cpp @@ -7,6 +7,7 @@ ControlElementContainer::~ControlElementContainer() {} void ControlElementContainer::FillContainer(ControlEditor* editor) { ClearContainer(); + m_ctrlElementsList = editor->GetControlElementList(); m_cLineList = editor->GetConnectionLineList(); auto cElementList = editor->GetControlElementList(); for(auto it = cElementList.begin(), itEnd = cElementList.end(); it != itEnd; ++it) { @@ -45,3 +46,9 @@ void ControlElementContainer::ClearContainer() m_sumList.clear(); m_tfList.clear(); } + +void ControlElementContainer::FillContainer(std::vector<ControlElement*> controlElementList, std::vector<ConnectionLine*> connectionLineList) +{ + m_ctrlElementsList = controlElementList; + m_cLineList = connectionLineList; +} |