// determine the mouse offset and the pane size, both in the
// direction of the dock itself, and perpendicular to the dock
- int offset, size;
+ int mouseOffset, size;
if (part->orientation == wxVERTICAL)
{
- offset = pt.y - part->rect.y;
+ mouseOffset = pt.y - part->rect.y;
size = part->rect.GetHeight();
}
else
{
- offset = pt.x - part->rect.x;
+ mouseOffset = pt.x - part->rect.x;
size = part->rect.GetWidth();
}
// if we are in the top/left part of the pane,
// insert the pane before the pane being hovered over
- if (offset <= size/2)
+ if (mouseOffset <= size/2)
{
drop_position = part->pane->dock_pos;
DoInsertPane(panes,
// if we are in the bottom/right part of the pane,
// insert the pane before the pane being hovered over
- if (offset > size/2)
+ if (mouseOffset > size/2)
{
drop_position = part->pane->dock_pos+1;
DoInsertPane(panes,
pane.frame &&
pane.frame->IsShown())
{
- wxRect rect = pane.frame->GetRect();
+ wxRect r = pane.frame->GetRect();
#ifdef __WXGTK__
// wxGTK returns the client size, not the whole frame size
- rect.width += 15;
- rect.height += 35;
- rect.Inflate(5);
+ r.width += 15;
+ r.height += 35;
+ r.Inflate(5);
#endif
- clip.Subtract(rect);
+ clip.Subtract(r);
}
}
pane.SetFlag(wxAuiPaneInfo::actionPane, true);
- wxPoint pt = event.GetPosition();
- DoDrop(m_docks, m_panes, pane, pt, m_actionOffset);
+ wxPoint point = event.GetPosition();
+ DoDrop(m_docks, m_panes, pane, point, m_actionOffset);
// if DoDrop() decided to float the pane, set up
// the floating pane's initial position