| 411 | } |
| 412 | |
| 413 | void TreeControl::notifyMousePressed(Widget* pSender, int nLeft, int nTop, MouseButton nID) |
| 414 | { |
| 415 | if ((nID == MouseButton::Left || nID == MouseButton::Right) && pSender != mpWidgetScroll) |
| 416 | { |
| 417 | Node* pSelection = mpSelection; |
| 418 | if (pSender == getClientWidget()) |
| 419 | pSelection = nullptr; |
| 420 | else if (pSender->getVisible()) |
| 421 | pSelection = *pSender->getUserData<Node*>(); |
| 422 | |
| 423 | setSelection(pSelection); |
| 424 | |
| 425 | if (nID == MouseButton::Right) |
| 426 | eventTreeNodeContextMenu(this, mpSelection); |
| 427 | } |
| 428 | } |
| 429 | |
| 430 | void TreeControl::notifyMouseWheel(Widget* pSender, int nValue) |
| 431 | { |
nothing calls this directly
no test coverage detected