git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39712
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
for (i = 0; i < border_width; ++i)
{
{
for (i = 0; i < border_width; ++i)
{
dc.DrawRectangle(rect.x, rect.y, rect.width, rect.height);
}
dc.DrawRectangle(rect.x, rect.y, rect.width, rect.height);
}
if (pane.state & wxPaneInfo::optionActive)
dc.SetTextForeground(m_active_caption_text_colour);
if (pane.state & wxPaneInfo::optionActive)
dc.SetTextForeground(m_active_caption_text_colour);
dc.SetTextForeground(m_inactive_caption_text_colour);
dc.SetTextForeground(m_inactive_caption_text_colour);
{
return AddPane(window, pane_info);
}
{
return AddPane(window, pane_info);
}
{
if (pane_info.IsFloating())
{
{
if (pane_info.IsFloating())
{
{
sizer_item = vert_pane_sizer->Add(1, 1, 1, wxEXPAND);
}
{
sizer_item = vert_pane_sizer->Add(1, 1, 1, wxEXPAND);
}
{
sizer_item = vert_pane_sizer->Add(pane.window, 1, wxEXPAND);
vert_pane_sizer->SetItemMinSize(pane.window, 1, 1);
{
sizer_item = vert_pane_sizer->Add(pane.window, 1, wxEXPAND);
vert_pane_sizer->SetItemMinSize(pane.window, 1, 1);
part.sizer_item = sizer_item;
uiparts.Add(part);
}
part.sizer_item = sizer_item;
uiparts.Add(part);
}
{
sizer_item = cont->Add(horz_pane_sizer, pane_proportion, wxEXPAND);
}
{
sizer_item = cont->Add(horz_pane_sizer, pane_proportion, wxEXPAND);
}
part.sizer_item = sizer_item;
uiparts.Add(part);
}
part.sizer_item = sizer_item;
uiparts.Add(part);
}
{
for (pane_i = 0; pane_i < pane_count; ++pane_i)
{
{
for (pane_i = 0; pane_i < pane_count; ++pane_i)
{
Position(pt.y - GetDockPixelOffset(drop) - offset.y);
return ProcessDockResult(target, drop);
}
Position(pt.y - GetDockPixelOffset(drop) - offset.y);
return ProcessDockResult(target, drop);
}
- else if (pt.y < layer_insert_offset &&
- pt.y > layer_insert_offset-auiLayerInsertPixels)
+ else if (pt.y < layer_insert_offset &&
+ pt.y > layer_insert_offset-auiLayerInsertPixels)
{
int new_layer = wxMax(wxMax(GetMaxLayer(docks, wxAUI_DOCK_TOP),
GetMaxLayer(docks, wxAUI_DOCK_LEFT)),
{
int new_layer = wxMax(wxMax(GetMaxLayer(docks, wxAUI_DOCK_TOP),
GetMaxLayer(docks, wxAUI_DOCK_LEFT)),
Position(pt.x - GetDockPixelOffset(drop) - offset.x);
return ProcessDockResult(target, drop);
}
Position(pt.x - GetDockPixelOffset(drop) - offset.x);
return ProcessDockResult(target, drop);
}
- else if (pt.x >= cli_size.x - layer_insert_offset &&
- pt.x < cli_size.x - layer_insert_offset + auiLayerInsertPixels)
+ else if (pt.x >= cli_size.x - layer_insert_offset &&
+ pt.x < cli_size.x - layer_insert_offset + auiLayerInsertPixels)
{
int new_layer = wxMax(wxMax(GetMaxLayer(docks, wxAUI_DOCK_RIGHT),
GetMaxLayer(docks, wxAUI_DOCK_TOP)),
{
int new_layer = wxMax(wxMax(GetMaxLayer(docks, wxAUI_DOCK_RIGHT),
GetMaxLayer(docks, wxAUI_DOCK_TOP)),
Position(pt.y - GetDockPixelOffset(drop) - offset.y);
return ProcessDockResult(target, drop);
}
Position(pt.y - GetDockPixelOffset(drop) - offset.y);
return ProcessDockResult(target, drop);
}
- else if (pt.y >= cli_size.y - layer_insert_offset &&
- pt.y < cli_size.y - layer_insert_offset + auiLayerInsertPixels)
+ else if (pt.y >= cli_size.y - layer_insert_offset &&
+ pt.y < cli_size.y - layer_insert_offset + auiLayerInsertPixels)
{
int new_layer = wxMax(wxMax(GetMaxLayer(docks, wxAUI_DOCK_BOTTOM),
GetMaxLayer(docks, wxAUI_DOCK_LEFT)),
{
int new_layer = wxMax(wxMax(GetMaxLayer(docks, wxAUI_DOCK_BOTTOM),
GetMaxLayer(docks, wxAUI_DOCK_LEFT)),
else
state = wxAUI_BUTTON_STATE_HOVER;
}
else
state = wxAUI_BUTTON_STATE_HOVER;
}
{
if (event.LeftDown())
state = wxAUI_BUTTON_STATE_HOVER;
{
if (event.LeftDown())
state = wxAUI_BUTTON_STATE_HOVER;
- else if (m_action == actionClickButton)
+ else if (m_action == actionClickButton)
{
m_hover_button = NULL;
m_frame->ReleaseMouse();
{
m_hover_button = NULL;
m_frame->ReleaseMouse();
- else if (m_action == actionClickCaption)
+ else if (m_action == actionClickCaption)
{
m_frame->ReleaseMouse();
}
{
m_frame->ReleaseMouse();
}
- else if (m_action == actionDragFloatingPane)
+ else if (m_action == actionDragFloatingPane)
{
m_frame->ReleaseMouse();
}
{
m_frame->ReleaseMouse();
}
- else if (m_action == actionDragToolbarPane)
+ else if (m_action == actionDragToolbarPane)
{
m_frame->ReleaseMouse();
{
m_frame->ReleaseMouse();
pane.state &= ~wxPaneInfo::actionPane;
Update();
}
pane.state &= ~wxPaneInfo::actionPane;
Update();
}
DrawResizeHint(dc, rect);
m_action_hintrect = rect;
}
DrawResizeHint(dc, rect);
m_action_hintrect = rect;
}
- else if (m_action == actionClickCaption)
+ else if (m_action == actionClickCaption)
{
int drag_x_threshold = wxSystemSettings::GetMetric(wxSYS_DRAG_X);
int drag_y_threshold = wxSystemSettings::GetMetric(wxSYS_DRAG_Y);
{
int drag_x_threshold = wxSystemSettings::GetMetric(wxSYS_DRAG_X);
int drag_y_threshold = wxSystemSettings::GetMetric(wxSYS_DRAG_Y);
- else if (m_action == actionDragFloatingPane)
+ else if (m_action == actionDragFloatingPane)
{
wxPoint pt = m_frame->ClientToScreen(event.GetPosition());
m_action_window->Move(pt.x - m_action_offset.x,
pt.y - m_action_offset.y);
}
{
wxPoint pt = m_frame->ClientToScreen(event.GetPosition());
m_action_window->Move(pt.x - m_action_offset.x,
pt.y - m_action_offset.y);
}
- else if (m_action == actionDragToolbarPane)
+ else if (m_action == actionDragToolbarPane)
{
wxPaneInfo& pane = GetPane(m_action_window);
wxASSERT_MSG(pane.IsOk(), wxT("Pane window not found"));
{
wxPaneInfo& pane = GetPane(m_action_window);
wxASSERT_MSG(pane.IsOk(), wxT("Pane window not found"));
- else if (event.button == wxPaneInfo::buttonPin)
+ else if (event.button == wxPaneInfo::buttonPin)
{
if ((m_flags & wxAUI_MGR_ALLOW_FLOATING) &&
pane.IsFloatable())
{
if ((m_flags & wxAUI_MGR_ALLOW_FLOATING) &&
pane.IsFloatable())