| 332 | } |
| 333 | |
| 334 | void CClickWindowController::OnActionDoneEvent(const ActionDoneEvent& event) { |
| 335 | long x= event.GetPoint().x; |
| 336 | long y= event.GetPoint().y; |
| 337 | |
| 338 | // If cursor is over click window the notification takes place when |
| 339 | // mouse event is received otherwise update internal state |
| 340 | if (!IsCursorOverWindow(x,y)) |
| 341 | { |
| 342 | if (m_currentButton== CClickWindowController::DRAG) |
| 343 | { |
| 344 | if (!m_halfDragClick) m_halfDragClick= true; |
| 345 | else |
| 346 | { |
| 347 | m_halfDragClick= false; |
| 348 | m_currentButton= m_lockedButton; |
| 349 | } |
| 350 | } |
| 351 | else |
| 352 | m_currentButton= m_lockedButton; |
| 353 | |
| 354 | m_pWindow->UpdateButtons(GetEnabled(),GetCurrentButton(), GetLockedButton()); |
| 355 | } |
| 356 | } |
| 357 | |
| 358 | // Called from window. Notifies that button has been clicked. |
| 359 | void CClickWindowController::NotifyButtonClick (CClickWindowController::EButton button) |
nothing calls this directly
no test coverage detected