| 75 | } |
| 76 | |
| 77 | void PropertyPanelControl::setCurrentData(DataPtr _data) |
| 78 | { |
| 79 | mCurrentData = _data; |
| 80 | |
| 81 | HideControls(); |
| 82 | |
| 83 | if (mCurrentData != nullptr) |
| 84 | { |
| 85 | mContentHeight = 0; |
| 86 | const DataType::VectorProperty& properties = mCurrentData->getType()->getProperties(); |
| 87 | for (const auto& property : properties) |
| 88 | { |
| 89 | if (property->getVisible()) |
| 90 | { |
| 91 | PropertyPtr pr = mCurrentData->getProperty(property->getName()); |
| 92 | InitialiseProperty(pr, mContentHeight); |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | updateView(); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | void PropertyPanelControl::updateView() |
| 101 | { |
no test coverage detected