consistently use wxAuiPaneInfo::Has/SetFlag() instead of using bit operations on its state field directly (this results in a warning about implicit sign change from HP aCC)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-11-14 23:12:59 +00:00
parent 62891c875f
commit 557946748f

View File

@ -1601,7 +1601,7 @@ void wxAuiManager::GetPanePositionsAndSizes(wxAuiDockInfo& dock,
{
wxAuiPaneInfo& pane = *(dock.panes.Item(pane_i));
if (pane.state & wxAuiPaneInfo::actionPane)
if (pane.HasFlag(wxAuiPaneInfo::actionPane))
{
wxASSERT_MSG(action_pane==-1, wxT("Too many fixed action panes"));
action_pane = pane_i;
@ -2213,7 +2213,7 @@ wxSizer* wxAuiManager::LayoutAll(wxAuiPaneInfoArray& panes,
dock.toolbar = false;
if (pane.HasFlag(wxAuiPaneInfo::optionDockFixed))
dock.fixed = true;
if (pane.state & wxAuiPaneInfo::actionPane)
if (pane.HasFlag(wxAuiPaneInfo::actionPane))
action_pane_marked = true;
}
@ -4380,7 +4380,7 @@ void wxAuiManager::OnMotion(wxMouseEvent& event)
wxAuiPaneInfo& pane = GetPane(m_action_window);
wxASSERT_MSG(pane.IsOk(), wxT("Pane window not found"));
pane.state |= wxAuiPaneInfo::actionPane;
pane.SetFlag(wxAuiPaneInfo::actionPane, true);
wxPoint pt = event.GetPosition();
DoDrop(m_docks, m_panes, pane, pt, m_action_offset);