| 405 | } |
| 406 | |
| 407 | void ExpandingToolBar::ReparentExtraPanel() |
| 408 | { |
| 409 | // This is how we make sure the extra panel, which slides out |
| 410 | // like a drawer, appears on top of everything else in the window... |
| 411 | |
| 412 | wxPoint pos; |
| 413 | pos.x = mGrabberSize.x; |
| 414 | pos.y = mMainSize.y + mButtonSize.y; |
| 415 | wxWindow *frame = this; |
| 416 | while(!frame->IsTopLevel()) { |
| 417 | pos += frame->GetPosition(); |
| 418 | frame = frame->GetParent(); |
| 419 | } |
| 420 | |
| 421 | mExtraPanel->Reparent(frame); |
| 422 | mExtraPanel->SetPosition(pos); |
| 423 | } |
| 424 | |
| 425 | void ExpandingToolBar::MoveDrawer(wxSize prevSize) |
| 426 | { |
nothing calls this directly
no test coverage detected