| 175 | } |
| 176 | |
| 177 | PanelProperties* PropertiesPanelView::getPropertyWindow(WidgetStyle* _style, size_t _depth) |
| 178 | { |
| 179 | MapPropertyWindow::iterator item = mMapPropertyWindow.find(_style); |
| 180 | if (item == mMapPropertyWindow.end()) |
| 181 | { |
| 182 | PanelProperties* result = new PanelProperties(); |
| 183 | result->setDepth(_depth); |
| 184 | |
| 185 | mPanelView->insertItem(getIndexByDepth(_depth), result); |
| 186 | |
| 187 | mMapPropertyWindow[_style] = result; |
| 188 | return result; |
| 189 | } |
| 190 | |
| 191 | return (*item).second; |
| 192 | } |
| 193 | |
| 194 | size_t PropertiesPanelView::getIndexByDepth(size_t _depth) |
| 195 | { |
nothing calls this directly
no test coverage detected