| 254 | } |
| 255 | |
| 256 | void ComboBox::showList() |
| 257 | { |
| 258 | // пустой список не показываем |
| 259 | if (mList->getItemCount() == 0) |
| 260 | return; |
| 261 | |
| 262 | if (mListShow) |
| 263 | return; |
| 264 | mListShow = true; |
| 265 | |
| 266 | IntCoord coord = calculateListPosition(); |
| 267 | mList->setCoord(coord); |
| 268 | |
| 269 | if (mShowSmooth) |
| 270 | { |
| 271 | ControllerFadeAlpha* controller = createControllerFadeAlpha(COMBO_ALPHA_MAX, COMBO_ALPHA_COEF, true); |
| 272 | ControllerManager::getInstance().addItem(mList, controller); |
| 273 | } |
| 274 | else |
| 275 | { |
| 276 | mList->setVisible(true); |
| 277 | } |
| 278 | |
| 279 | InputManager::getInstance().setKeyFocusWidget(mList); |
| 280 | } |
| 281 | |
| 282 | void ComboBox::actionWidgetHide(Widget* _widget, ControllerItem* _controller) |
| 283 | { |
nothing calls this directly
no test coverage detected