| 178 | } |
| 179 | |
| 180 | void WorkspaceControl::notifyChangeSelectedWidget(MyGUI::Widget* _currentWidget) |
| 181 | { |
| 182 | mCurrentWidget = _currentWidget; |
| 183 | |
| 184 | if (mCurrentWidget != nullptr) |
| 185 | { |
| 186 | mAreaSelectorControl->setVisible(true); |
| 187 | mCoordValue = mCurrentWidget->getCoord(); |
| 188 | |
| 189 | WidgetStyle* widgetType = WidgetTypes::getInstance().findWidgetStyle(mCurrentWidget->getTypeName()); |
| 190 | mMoveableWidget = widgetType->resizeable; |
| 191 | |
| 192 | updateSelectorEnabled(); |
| 193 | updateSelectionFromValue(); |
| 194 | |
| 195 | // FIXME возвращаем себе кей фокус |
| 196 | if (!mMainWidget->getRootKeyFocus()) |
| 197 | MyGUI::InputManager::getInstance().setKeyFocusWidget(mMainWidget); |
| 198 | } |
| 199 | else |
| 200 | { |
| 201 | mAreaSelectorControl->setVisible(false); |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | void WorkspaceControl::notifyPropertyChangeCoord( |
| 206 | MyGUI::Widget* _widget, |
nothing calls this directly
no test coverage detected