fix unused variables and parameters warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -51,7 +51,7 @@ wxPopupWindow::~wxPopupWindow()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxPopupWindow::Create(wxWindow *parent, int flags)
|
bool wxPopupWindow::Create(wxWindow *parent, int WXUNUSED(flags))
|
||||||
{
|
{
|
||||||
m_macIsUserPane = false ;
|
m_macIsUserPane = false ;
|
||||||
|
|
||||||
@@ -63,13 +63,15 @@ bool wxPopupWindow::Create(wxWindow *parent, int flags)
|
|||||||
|
|
||||||
WindowClass wclass = kHelpWindowClass;
|
WindowClass wclass = kHelpWindowClass;
|
||||||
WindowAttributes attr = kWindowCompositingAttribute ;
|
WindowAttributes attr = kWindowCompositingAttribute ;
|
||||||
WindowRef parentWindow =(WindowRef) parent->MacGetTopLevelWindowRef();
|
|
||||||
|
|
||||||
Rect bounds = { 0,0,0,0 };
|
Rect bounds = { 0,0,0,0 };
|
||||||
OSStatus err = ::CreateNewWindow( wclass , attr , &bounds , (WindowRef*)&m_popupWindowRef ) ;
|
OSStatus err = ::CreateNewWindow( wclass , attr , &bounds , (WindowRef*)&m_popupWindowRef ) ;
|
||||||
if ( err == noErr )
|
if ( err == noErr )
|
||||||
{
|
{
|
||||||
// SetWindowGroup( (WindowRef) m_popupWindowRef, GetWindowGroup(parentWindow)); // Put them in the same group so that their window layers are consistent
|
#if 0
|
||||||
|
WindowRef parentWindow =(WindowRef) parent->MacGetTopLevelWindowRef();
|
||||||
|
SetWindowGroup( (WindowRef) m_popupWindowRef, GetWindowGroup(parentWindow)); // Put them in the same group so that their window layers are consistent
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
m_peer = new wxMacControl(this , true /*isRootControl*/) ;
|
m_peer = new wxMacControl(this , true /*isRootControl*/) ;
|
||||||
|
@@ -127,7 +127,7 @@ int wxRendererMac::DrawHeaderButton( wxWindow *win,
|
|||||||
{
|
{
|
||||||
CGContextRef cgContext;
|
CGContextRef cgContext;
|
||||||
wxGCDCImpl *impl = (wxGCDCImpl*) dc.GetImpl();
|
wxGCDCImpl *impl = (wxGCDCImpl*) dc.GetImpl();
|
||||||
|
|
||||||
cgContext = (CGContextRef) impl->GetGraphicsContext()->GetNativeContext();
|
cgContext = (CGContextRef) impl->GetGraphicsContext()->GetNativeContext();
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -250,7 +250,7 @@ void wxRendererMac::DrawSplitterSash( wxWindow *win,
|
|||||||
|
|
||||||
if ( !dc.IsKindOf( CLASSINFO( wxPaintDC ) ) )
|
if ( !dc.IsKindOf( CLASSINFO( wxPaintDC ) ) )
|
||||||
{
|
{
|
||||||
wxRect rect( (int) splitterRect.origin.x, (int) splitterRect.origin.y, (int) splitterRect.size.width,
|
wxRect rect( (int) splitterRect.origin.x, (int) splitterRect.origin.y, (int) splitterRect.size.width,
|
||||||
(int) splitterRect.size.height );
|
(int) splitterRect.size.height );
|
||||||
win->Refresh( &rect );
|
win->Refresh( &rect );
|
||||||
}
|
}
|
||||||
@@ -269,19 +269,19 @@ void wxRendererMac::DrawSplitterSash( wxWindow *win,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
wxRendererMac::DrawItemSelectionRect(wxWindow *win,
|
wxRendererMac::DrawItemSelectionRect(wxWindow * WXUNUSED(win),
|
||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
const wxRect& rect,
|
const wxRect& rect,
|
||||||
int flags )
|
int flags)
|
||||||
{
|
{
|
||||||
if ( !(flags & wxCONTROL_SELECTED) )
|
if ( !(flags & wxCONTROL_SELECTED) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
wxColour col( wxMacCreateCGColorFromHITheme( (flags & wxCONTROL_FOCUSED) ?
|
wxColour col( wxMacCreateCGColorFromHITheme( (flags & wxCONTROL_FOCUSED) ?
|
||||||
kThemeBrushAlternatePrimaryHighlightColor
|
kThemeBrushAlternatePrimaryHighlightColor
|
||||||
: kThemeBrushSecondaryHighlightColor ) );
|
: kThemeBrushSecondaryHighlightColor ) );
|
||||||
wxBrush selBrush( col );
|
wxBrush selBrush( col );
|
||||||
|
|
||||||
dc.SetPen( *wxTRANSPARENT_PEN );
|
dc.SetPen( *wxTRANSPARENT_PEN );
|
||||||
dc.SetBrush( selBrush );
|
dc.SetBrush( selBrush );
|
||||||
dc.DrawRectangle( rect );
|
dc.DrawRectangle( rect );
|
||||||
|
Reference in New Issue
Block a user