| 129 | } |
| 130 | |
| 131 | void |
| 132 | PanelWidget::takeClickFocus() |
| 133 | { |
| 134 | TabWidget* parentPane = getParentPane(); |
| 135 | |
| 136 | if (parentPane) { |
| 137 | parentPane->setWidgetClickFocus(this, true); |
| 138 | } |
| 139 | if (_gui) { |
| 140 | const RegisteredTabs& tabs = _gui->getRegisteredTabs(); |
| 141 | for (RegisteredTabs::const_iterator it = tabs.begin(); it != tabs.end(); ++it) { |
| 142 | if (it->second.first != this) { |
| 143 | it->second.first->removeClickFocus(); |
| 144 | } |
| 145 | } |
| 146 | _gui->setCurrentPanelFocus(this); |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | void |
| 151 | PanelWidget::removeClickFocus() |
no test coverage detected